What problem does it solve?
This Skill automates the removal of unnecessary code, such as dead exports, unused functions, and leftover console logs, from your TypeScript/JavaScript files after AI code generation or development.
Core Features & Use Cases
- Dead Code Elimination: Identifies and removes unused exports, functions, types, and interfaces.
- Console Log Removal: Cleans up debugging
console.log statements.
- Git Diff Analysis: Focuses on changes within specified files using
git diff.
- Adaptive Parallelization: Optimizes analysis for a small number of files (sequential) versus a larger number (parallel analysis, sequential modification).
- Use Case: After an AI assistant generates a complex code module, use this Skill to ensure only the essential, actively used code remains, improving code quality and maintainability.
Quick Start
Use the code-cleaner skill to remove unused code from the files changed in the current git diff.