Identifies and removes unused code, exports, and dependencies safely using automated test verification.
Safe Dead Code Cleanup is a specialized skill designed to prune technical debt by scanning projects for unused code, redundant TypeScript exports, and forgotten dependencies. By integrating industry-standard tools like knip, depcheck, and ts-prune, it generates a comprehensive risk-assessed report in Japanese. To ensure repository stability, the skill enforces a strict test-driven workflow where every deletion is verified against your existing test suite, with automatic rollbacks if a regression is detected.
主な機能
01Automatic rollback mechanism if tests fail during the cleanup process
020 GitHub stars
03Automated dead code analysis using knip, depcheck, and ts-prune
04Mandatory test-suite verification before and after every code removal
05Risk categorization for deletions (Safe, Caution, and Danger levels)
06Comprehensive Japanese-language reporting for all findings
ユースケース
01Pruning large legacy codebases to improve maintainability and reduce bundle size
02Identifying and removing unused third-party dependencies from package.json
03Cleaning up internal TypeScript exports to maintain a minimal and clean API surface