| name | dead-code-eliminator |
| description | Identify and safely remove dead, unused, and unreachable code from codebases |
| allowed-tools | ["Bash","Read","Write","Grep","Glob","Edit"] |
| graph | {"domains":["domain:software-engineering"],"specializations":["specialization:code-migration-modernization"],"skillAreas":["skill-area:dead-code-elimination","skill-area:code-analysis-linting"],"roles":["role:backend-engineer","role:refactor-bot"],"workflows":["workflow:technical-debt-reduction"],"topics":["topic:refactoring"]} |
Dead Code Eliminator Skill
Identifies and safely removes dead code, unused functions, unreachable code paths, and orphaned files from codebases to reduce complexity and maintenance burden.
Purpose
Enable safe dead code removal for:
- Codebase simplification
- Migration preparation
- Technical debt reduction
- Build size optimization
- Maintenance cost reduction
Capabilities
1. Unused Function Detection
- Find uncalled functions
- Identify unused exports
- Detect unreferenced methods
- Map call graphs
2. Unreachable Code Identification
- Analyze control flow
- Find code after returns
- Detect impossible conditions
- Identify dead branches
3. Unused Variable Detection