What problem does it solve?
This Skill tackles the issue of code bloat and technical debt by systematically identifying and reporting on dead code, unused declarations, and phantom dependencies within a codebase.
Core Features & Use Cases
- Comprehensive Audit: Scans the entire repository for various forms of dead code.
- False Positive Mitigation: Includes a verification phase to avoid incorrectly flagging essential code.
- Risk-Based Triage: Prioritizes findings by risk level (High, Medium, Low) for efficient cleanup.
- Structured Reporting: Generates a detailed
DEAD-CODE.md report with findings, a cleanup roadmap, and an executive summary.
- Use Case: A developer can run this skill before a major refactor to understand exactly which parts of the codebase can be safely removed, reducing maintenance overhead and improving performance.
Quick Start
Run the dead-code skill to perform a full codebase analysis and generate a report.