cleanup-unused

Installation
SKILL.md

Detect unused code, exports, files, and dependencies. Auto-delete only what's verifiably dead. Write a critical assessment with confidence ratings; defer ambiguous items to the human.

Preflight

  1. Detect language(s) by checking for: package.json (TS/JS), pyproject.toml/requirements.txt (Py), go.mod (Go), Cargo.toml (Rust). Skip languages not present.
  2. Check git state. If working tree is dirty, refuse to auto-apply — ask user to stash or commit first. The verify step needs a clean baseline to revert to.
  3. Create report dir: mkdir -p .claude/cleanup-reports/. Add .claude/cleanup-reports/ to .gitignore if not already present.
  4. Scan for dynamic-import patterns that defeat static analysis. Save the list — findings in these areas drop to MEDIUM confidence.
    • JS/TS: import(, require(, eval(, Function(, __webpack_require__, dynamic route file conventions (pages/, app/)
    • Python: __import__, importlib, getattr, plugin entry-points in setup.py/pyproject.toml
    • Go: reflect., plugin loader, build tags
    • Rust: cfg(feature = ...) gates, proc-macros, extern crate

Detect

Run the right tool per language. Install on demand only after asking.

Installs
2
GitHub Stars
78
First Seen
2 days ago
cleanup-unused — raintree-technology/claude-starter