weave-audit ยท diff
git:20260914.2922d55 to git:20261001.b4853ab
41 added, 3 removed. Audit A to A.
---
name: weave-audit
- description: Audit an entire repository for removable code, needless dependencies, duplicate helpers, dead flexibility, and custom code replaceable by native platform features. Use when the user asks for a Weave audit, repository simplification audit, or a ranked list of bloat.
+ description: >
+ Audit the whole repository for removable code: dead modules, needless
+ dependencies, duplicate helpers, dead flexibility, and custom code a native
+ feature or the stdlib replaces. Ranked list, biggest cut first. Use when the
+ user says "weave audit", "/weave-audit", "audit this repo", "find bloat", or
+ "what can I delete". One-shot report, edits nothing.
---
# Weave Audit
- Inspect the whole repository without changing it. Confirm usage before calling code dead.
+ `weave-review`, repo-wide. Scan the tracked tree (skip `node_modules`, `.git`,
+ build output, vendored code). Confirm usage with a search before calling
+ anything dead.
- Return a ranked list with location, evidence, safe deletion or simplification, and the replacement when one is needed. Separate confirmed removals from items that require measurement or product approval.
+ ## Tags
+
+ Same as `weave-review`: `delete`, `reuse`, `stdlib`, `native`, `yagni`,
+ `shrink`, `shared`.
+
+ ## Hunt
+
+ - Dependencies the stdlib or platform already ships, or used for one call.
+ - Two helpers doing the same job in different folders.
+ - Interfaces with one implementation, factories with one product, wrappers
+ that only delegate.
+ - Flags, options, and config keys nothing sets.
+ - Exported functions with no importer.
+
+ ## Output
+
+ One line per finding, ranked:
+
+ `<tag> <what to cut>. <replacement>. [path] evidence: <search or usage that proves it>`
+
+ Then two groups:
+
+ - **Safe now:** confirmed by search, no behavior change.
+ - **Needs a decision:** requires measurement, a product call, or touches a public API.
+
+ End with `net: -<N> lines, -<M> deps possible.` Nothing to cut:
+ `Lean already. Ship.`
+
+ ## Boundaries
+
+ Complexity only; correctness, security, and performance belong elsewhere.
+ Lists findings, applies nothing. One-shot.