Runs the /quality-scan skill and fixes all issues found. Repeats until zero issues remain or 5 iterations complete.
Interactive only — this command makes code changes and commits. Do not use as an automated pipeline gate.
- Run
/quality-scanskill (all scan types) - If issues found: spawn the
refactor-cleaneragent (seeagents/refactor-cleaner.md) to fix them, grouped by category - Run verify-build (see
_shared/verify-build.md) after fixes - Run
/quality-scanagain - Repeat until:
- Zero issues found (success), OR
- 5 iterations completed (stop)
- Commit all fixes:
fix: resolve quality scan issues (iteration N)
- Fix every issue, not just easy ones
- Spawn refactor-cleaner with CLAUDE.md's pre-action protocol: dead code first, then structural changes, ≤5 files per phase
- Run tests after fixes to verify nothing broke
- Track iteration count and report progress