dead-code-eliminator
Installation
SKILL.md
Dead Code Eliminator
Use this skill when the user wants a dead-code audit, not a broad refactor. The default outcome is a reachability report and a removal order, with code changes only after the audit is clear.
Main Workflow
- Find the project entry points: executables, CLI bins, routes, jobs, exports, package indexes, and framework lifecycle hooks.
- Trace the live set from those roots through imports, calls, instantiations, and other statically provable edges.
- Mark anything unresolved, conditional, or externally consumable instead of guessing reachability.
- Separate test-only reachability from production reachability.
- Report dead code candidates, confidence level, and any correctness or soundness concerns in the live code.
- If the user asks for removal, delete in dependency-safe order after the audit is complete.