From dead-code-finder
Removes dead code identified from analysis reports, filtering by confidence level and validating each removal with linters and tests. Produces a git-friendly diff and summary of changes.
How this command is triggered — by the user, by Claude, or both
Slash command
/dead-code-finder:remove-dead-codeThe summary Claude sees in its command listing — used to decide when to auto-load this command
# /remove-dead-code - Remove Dead Code Safely remove identified dead code from the codebase. ## Steps 1. Load the dead code report from the most recent analysis 2. Filter to high-confidence items only (unless user requests medium/low) 3. Group removals by file to minimize file operations 4. For each file, identify the dead code segments to remove 5. Check for side effects: does the dead code initialize anything or register handlers 6. Remove unused imports that result from removing dead code 7. Remove empty files if all exports are unused 8. Clean up empty directories if all files are re...
Safely remove identified dead code from the codebase.
6plugins reuse this command
First indexed Mar 30, 2026
npx claudepluginhub ais1m0n3/awesome-claude-code-toolkit --plugin dead-code-finder/remove-dead-codeRemoves dead code identified from analysis reports, filtering by confidence level and validating each removal with linters and tests. Produces a git-friendly diff and summary of changes.
/refactor-cleanSafely identifies and removes dead code using static analysis tools (knip, depcheck, ts-prune), with test-driven verification, severity categorization, and automatic rollback on test failure.
/refactor-cleanSafely identifies and removes dead code from your project, with per-deletion test verification and automatic rollback on failures.
/refactor-cleanIdentifies and removes dead code using knip, depcheck, and ts-prune, with test verification before each deletion. Generates a severity-categorized report.
/remove-dead-codeScans the given file or directory for dead code — unused symbols, unreachable branches, stale feature flags, and commented-out blocks — then removes them and cleans up orphaned imports.
/dead-codeScans codebase for unused imports, exports, unreachable code, and dead feature flags; removes them in focused commits with verification.