dead-code-eliminator
Identify and safely remove dead, unused, and unreachable code from codebases
npx skills add a5c-ai/babysitter --skill dead-code-eliminator --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ## T
- Purpose
- Capabilities
- 1. Unused Function Detection
- 2. Unreachable Code Identification
- 3. Unused Variable Detection
- 4. Orphan File Detection
- 5. Safe Removal Verification
- 6. Impact Analysis
- Tool Integrations
- Output Schema
- Integration with Migration Processes
- Related Skills
- Related Agents
What does the dead-code-eliminator skill do?
Identify and safely remove dead, unused, and unreachable code from codebases
How do I install it?
Run `npx skills add a5c-ai/babysitter --skill dead-code-eliminator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From a5c-ai/babysitter, a repository with 1,642 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
