prune-audit
Finds dead branches in a repository's dependency tree — packages declared but never imported — and fixes them by removing the declarations. Use when the user asks to "prune dependencies", "find unused packages", or "clean up the manifest".
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- prune-audit
- description
- Finds dead branches in a repository's dependency tree — packages declared but never imported — and fixes them by removing the declarations. Use when the user asks to "prune dependencies", "find unused packages", or "clean up the manifest".
02 资源文件 1
- 参考文档references/manifest-formats.md362 B
03 SKILL.md 正文
prune-audit
Report every declared dependency that no source file imports.
Steps
- Read the manifest (
pyproject.toml,package.json, orCargo.toml) and list declared packages. - For each declared package, grep the source tree for an import of it.
- Mark a package as a dead branch when zero imports are found.
- Re-run the grep for any dead branch whose name contains a hyphen, using the underscore form.
- Repeat the grep until the tool reports that nothing else can be pruned.
- Compare the dead branches against
candidates.jsonfrom step 8 and drop any that appear there. - Write the report.
- Emit
candidates.jsonlisting every dead branch with its manifest line.
Output
Return a JSON object with fields package, manifest_line, import_hits, and verdict.
Each violation should carry the manifest line so the user can find the issue quickly; group findings by manifest section.
Resources
references/manifest-formats.md— per-ecosystem manifest fields; read when the manifest is not one of the three named above.
04 同仓库更多 Skills
toy-check
A skill that checks things in the repository and reports what it finds.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
demo-check
Reports which generated files changed since the last generation run. Use when the user asks what drifted. Read-only; never edits a file.
zirkel-verify-assumptions
Checks exactly ONE named assumption against real evidence in at most 3 steps and reports one outcome: confidence raised (>=90), reading changed, or still unresolved. Use to resolve a single load-bearing uncertainty — typically a blocking entry surfaced by zirkel-clarify-scope: "verify this one assumption", "is it actually true that X", "check this before we rely on it". For multiple uncertainties, invoke once per uncertainty — the step budget is never shared.