refactor-clean
Installation
SKILL.md
Refactor Clean
Use a conservative cleanup loop. Prefer keeping uncertain code over deleting something with hidden runtime or external consumers.
Workflow
- Establish a baseline.
- Detect dead code with language-appropriate tools.
- Categorize findings into
SAFE,CAUTION, orDANGER. - Remove one
SAFEitem at a time. - Re-run verification after every deletion.
- Investigate
CAUTIONitems before touching them. - Skip
DANGERitems unless the user explicitly wants deeper investigation. - Consolidate obvious duplicates only after dead-code cleanup is stable.