From auto-mobile
Detects 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.
npx claudepluginhub kaeawc/auto-mobile --plugin auto-mobiledead-code/# Dead Code Use this when the user wants dead-code analysis or cleanup. ## Workflow 1. Start with detection, not deletion. 2. For TypeScript, run `bash scripts/detect-dead-code-ts.sh`, optionally writing reports to `scratch/dead-code/`. 3. Review each candidate in full context before removing it. Unused exports in tooling output are often false positives. 4. Check callers, tests, generated code, and dynamic entry points before deleting anything. 5. Remove dead code in small batches so regressions are easy to isolate. 6. Re-run the detector and the relevant validation after each batch. #...
/refactor-cleanSafely detects and removes dead code using project-specific analysis tools, verifies each deletion with full test suite runs, and produces a cleanup summary.
/refactor-cleanSafely identifies dead code using analysis tools, removes safe items with test verification at each step, handles risky ones cautiously, and reports cleanup summary.
/dead-codeFinds and removes dead code: unused imports/exports, unreachable code, dead feature flags. Uses TypeScript/ESLint/Python(Ruff)/Go linters; verifies with tests/build.
/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.
/refactor-cleanSafely identifies dead code using knip, depcheck, ts-prune; generates analysis report; removes safe items after test verification and shows cleanup summary.
/cleanAnalyzes recent changes in commit range, unstaged files, or context for dead code, orphaned artifacts from failed branches; generates validated cleanup tasks and reports.
Share bugs, ideas, or general feedback.
Use this when the user wants dead-code analysis or cleanup.
bash scripts/detect-dead-code-ts.sh, optionally writing reports to scratch/dead-code/.bun tasks over ad hoc dead-code tools.package.json dependency findings as suggestions until confirmed.bun run lintbun run buildbun testbash scripts/validate-bun-test-timings.sh when test changes may affect the 100ms expectation