cleanup
When the codebase has accumulated cruft — removes noise, enforces formatting, safely renames identifiers.
4 skills tagged refactoring · capability axis.
When the codebase has accumulated cruft — removes noise, enforces formatting, safely renames identifiers.
When code needs restructuring but tests must stay green — safe refactoring with test-first verification.
When you need to restructure code without breaking behavior — complex refactors with strict test verification.
Master workflow for refactoring at four named depth levels (cosmetic, micro, meso, architectural) that compose as a ladder. Always runs chesterton-fence + style-conformance up front, closes with characterisation tests + minimal-diff + auditor. No skipped rungs.