kw-code-cleanup
Installation
SKILL.md
Code Cleanup Phase
Adds a cleanup phase at the end of the current GSD milestone based on real diagnostics. This skill ONLY creates the phase — it does NOT execute it.
Rules
- Always run diagnostics BEFORE proposing the phase.
- Scope to code touched in the current milestone, not the entire codebase.
- Always confirm with the user before creating the phase.
Workflow
Step 1: Detect context
Read these files in parallel:
.planning/STATE.md— active milestone name and version.planning/ROADMAP.md— phase list and max phase number
Extract: milestone version (e.g., v1.2), milestone name, and the phase numbers belonging to it.