Help us improve
Share bugs, ideas, or general feedback.
From claude-code-toolkit
Finds and removes dead code: unused imports/exports, unreachable code, dead feature flags. Uses TypeScript/ESLint/Python(Ruff)/Go linters; verifies with tests/build.
npx claudepluginhub rohitg00/awesome-claude-code-toolkitHow this command is triggered — by the user, by Claude, or both
Slash command
/claude-code-toolkit:dead-coderefactoring/The summary Claude sees in its command listing — used to decide when to auto-load this command
Find and remove dead code from the codebase. ## Steps ### 1. Unused Imports - Run the linter with unused import detection: - **TypeScript**: `tsc --noUnusedLocals --noUnusedParameters --noEmit` - **ESLint**: Check for `no-unused-vars`, `no-unused-imports` violations. - **Python**: `ruff check --select F401` or `flake8 --select=F401`. - **Go**: The compiler already catches unused imports. - Remove all unused imports. ### 2. Unused Exports - For each exported function, class, or constant, search the codebase for imports of that symbol. - If a symbol is exported but never imported e...
/refactor-cleanSafely identifies and removes dead code with test verification at every step. Categorizes findings by safety tier and handles each deletion atomically.
/find-dead-codeScans codebase for dead code like unused exports, files, variables, unreachable code, and long comments. Builds dependency graph from entry points and generates sorted report with confidence levels and totals.
/SKILLDetects and removes dead code in the repo using TypeScript scripts, reviews candidates in context, cleans in small batches, and validates with lint/build/test to prevent regressions.
/refactor-cleanSafely detects and removes dead code using tools like knip, ts-prune, vulture; verifies each deletion with full test suite; categorizes by risk and reports summary.
/dead-codeReports unreachable files, unused exports, and zombie packages tiered by confidence using Repowise's graph-reachability analysis. Supports filtering by path, confidence level, and kind.
/refactor-cleanIdentifies and removes dead code using knip, depcheck, and ts-prune, with test verification before each deletion. Categorizes findings by severity and generates a report.
Share bugs, ideas, or general feedback.
Find and remove dead code from the codebase.
tsc --noUnusedLocals --noUnusedParameters --noEmitno-unused-vars, no-unused-imports violations.ruff check --select F401 or flake8 --select=F401.return, throw, break, or continue statements.