dead-code-reaper/SKILL.md
Detect unused functions, classes, and variables. Uses Vulture (Python) and ts-prune (JS/TS) to find candidates, then relies on Agent verification to avoid false positives.
npx skillsauth add snqb/my-skills dead-code-reaperInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Find code that does nothing. Less code = Less complexity.
vulture to find unused code.ts-prune to find unused exports.Finds unused code candidates in Python files.
# Install if missing
pip install vulture > /dev/null 2>&1
# Run scan (exclude tests and migrations by default)
vulture . --min-confidence 80 --exclude "tests/,migrations/,venv/,.venv/"
Output Interpretation:
unused function 'foo'unused class 'Bar'Finds unused exports in TS/JS projects.
# Run with bunx (instant, no install needed)
bunx ts-prune | head -n 50
1. Detect Suspects Run the scan tool for the language.
2. Verify (The "Double Check") Static analysis is often wrong (false positives). Before declaring code "dead," check for dynamic usage:
getattr(x, "my_func")).main.py or cli.py?3. Report Present the list of verified dead code.
## Dead Code Candidates
| File | Symbol | Confidence | Recommendation |
|------|--------|------------|----------------|
| `utils.py` | `old_helper` | High | 🗑️ Delete |
| `api.py` | `unused_handler` | Medium | ⚠️ Check URL conf |
❌ Deleting without checking: Vulture is heuristic. It will be wrong. ❌ Ignoring API surfaces: Public libraries have "unused" functions that are meant for users. ❌ Removing "TODO" stubs: Empty functions might be placeholders.
vulturets-prune (via npx)documentation
Enrich Markdown articles with inline Wikipedia links. First mention of each notable entity gets a hyperlink. Use when asked to add wiki links, enrich, or add references to .md files.
development
Structured visual QA: screenshot → batch issues → fix all → verify. Replaces the 300-cycle screenshot→edit death spiral. Optional bishkek review as exit gate. Use when building/polishing UI with browser testing, or when user asks for N iterations/reviews.
development
Find complex code, analyze intent, recommend battle-tested library replacements. Uses radon/eslint for detection, GitHub quality search for alternatives.
research
Research real-world UI patterns from curated galleries (Collect UI, Component Gallery, Mobbin). Use when exploring what exists: dropdowns, accordions, inputs, navigation, cards, modals, etc.