Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Identify and safely remove dead, unused, and unreachable code from codebases
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -22% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -15% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 46% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -21% | 0% |
Identifies and safely removes dead code, unused functions, unreachable code paths, and orphaned files from codebases to reduce complexity and maintenance burden.
Enable safe dead code removal for:
| Tool | Language | Integration Method | |------|----------|-------------------| | ts-prune | TypeScript | CLI | | unimported | JavaScript | CLI | | deadcode | Python | CLI | | UCDetector | Java | Eclipse Plugin | | unused | Rust | CLI | | deadcode | Go | CLI | | webpack-bundle-analyzer | JavaScript | CLI |
json{ "analysisId": "string", "timestamp": "ISO8601", "deadCode": { "functions": [ { "file": "string", "name": "string", "line": "number", "confidence": "high|medium|low", "reason": "string" } ], "variables": [], "files": [], "unreachable": [] }, "impact": { "filesAffected": "number", "linesRemovable": "number", "estimatedSizeReduction": "string" }, "risks": [], "recommendations": [] }
static-code-analyzer: Combined analysiscode-smell-detector: Related smell detectionlegacy-decommissioning-specialist: Uses for cleanupcode-transformation-executor: Executes removalOther measured skills in the registry, with their headline benchmark lift.