Agent skill

dead-code-eliminator

Identify and safely remove dead, unused, and unreachable code from codebases

a5c-aigithub.com/a5c-aiGitHub ↗
claude-codecodexcan modify filesMIT
Install
npx skills add a5c-ai/babysitter --skill dead-code-eliminator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Allowed tools: BashReadWriteGrepGlobEdit
Path: library/specializations/code-migration-modernization/skills/dead-code-eliminator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,642
Language: JavaScript

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Purpose
  2. Capabilities
  3. 1. Unused Function Detection
  4. 2. Unreachable Code Identification
  5. 3. Unused Variable Detection
  6. 4. Orphan File Detection
  7. 5. Safe Removal Verification
  8. 6. Impact Analysis
  9. Tool Integrations
  10. Output Schema
  11. Integration with Migration Processes
  12. Related Skills
  13. Related Agents
Ships with 1 file
  • README.md
More from babysitter
All skills →
About this skill
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.

Keep going