AGENT SKILL

prune-check

Checks a repository's dependency tree for packages that are declared but never imported and reports them. Use when the user asks to "find unused packages", "check for dead dependencies", or "audit the manifest".

License 许可
MIT
所属仓库
Anselmoo/werkstoff
最近更新
2026-11-02
Stars
★ 1
Forks
0

01 前言 Front Matter

name
prune-check
description
Checks a repository's dependency tree for packages that are declared but never imported and reports them. Use when the user asks to "find unused packages", "check for dead dependencies", or "audit the manifest".

03 SKILL.md 正文

prune-check

Read the manifest, grep for each declared package, report the ones with zero import hits.

Steps

  1. Read the manifest and list declared packages.
  2. Grep the source tree for each package.
  3. Report packages with zero hits.

Output

{"unused": [{"package": "left-pad", "manifest_line": 14}]}

When nothing is unused, return {"unused": []}.

04 同仓库更多 Skills