dead-code-eliminator
SolidIdentify and safely remove dead, unused, and unreachable code from codebases
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 96/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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
- Find unread variables
- Identify write-only variables
- Detect unused parameters
- Flag shadowed variables
### 4. Orphan File Detection
- Find unimported modules
- Identify orphaned assets
- Detect unused configuration
- Map file dependencies
### 5. Safe Removal Verification
- Verify no runtime references
- Check dynamic imports
- Validate reflection usage
- Test after removal
### 6. Impact Analysis
- Estimate removal scope
- Calculate size reduction
- Assess risk level
- Document dependencies
## Tool Integrations
| 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...
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
dead-code-detector
Identify unused code, imports, variables, and functions for safe removal.
335 Updated today
aiskillstore AI & Automation Solid
dead-code-removal
Detects and safely removes unused code (imports, functions, classes) across multiple languages. Use after refactoring, when removing features, or before production deployment. Includes safety checks and validation.
335 Updated today
aiskillstore AI & Automation Listed
dead-code-removal
Use to identify and safely delete unused functions, classes, exports, and files.
7 Updated 2 days ago
yeaight7 AI & Automation Solid
dead-code
Find unused functions and dead code in the codebase
496 Updated 1 months ago
vibeeval AI & Automation Listed
dead-code
Find unused functions and dead code in the codebase
3,795 Updated 4 months ago
parcadei