refactor-review
Installation
SKILL.md
🔎 Refactor Review (New Changes Only)
Where this fits
This is stage 5 of a seven-stage workflow:
architect-deep-dive— resolves the designagent-brief— turns it into the plan the rest builds fromacceptance-tests— the plan's criteria as failing black-box teststdd— builds it red-green until the acceptance tests pass- refactor-review (this skill) — cleans the structure once behavior is verified
devils-advocate— hunts evidence for every defecttyr-verdict— adjudicates the findings and enforces the fixes
This stage runs on a GREEN suite and keeps it GREEN. Reviews target new changes only, and refactorings are behavior-preserving — no new features, no bug fixes mixed in.
Requires: python3 (the ledger checker in scripts/ledger.py) and git (to read the change from the brief's Base or the merge-base, and for the save-point commit after each refactoring). If either is missing, skip the check that needs it and say so in your closing lines.