| name | code-cleanup |
| description | Automated code cleanup for linting, formatting, and dead code removal |
| user-invocable | true |
Code Cleanup Skill
Automated code cleanup and maintenance for improved code quality.
When to Use
- Before committing code
- During code review feedback
- When technical debt accumulates
What_You_MUST_Do>
- RUN linter with auto-fix
- RUN formatter
- REMOVE unused imports and variables
- VERIFY build still passes
- VERIFY tests still pass
What_You_MUST_NOT_Do>
- DO NOT change logic during cleanup
- DO NOT add new features
- DO NOT refactor functionality
- DO NOT skip verification after cleanup
What This Skill Does
1. Linting Fixes
const x= 1;
const x = 1;
2. Import Organization
import { a } from './a';
import { b } from './b';
import { z } from 'external';
3. Type Annotations
function add(a: number, b: number): number {
return a + b;
}
4. Dead Code Removal
- Unused imports
- Unused variables
- Unreachable statements
Usage
/code-cleanup to invoke this skill.