What problem does it solve?
Refactoring efforts often drift into adding features or altering behavior, and this skill supplies clear boundaries so improvements focus strictly on readability, structure, and safety without harming existing functionality.
Core Features & Use Cases
- Allowed vs Not Allowed: Lists permitted cleanliness improvements alongside forbidden behavioral or feature changes to keep agents aligned with the scope.
- Quality Requirements: Emphasizes behavior preservation, test coverage maintenance, incremental changes, and greenfield assumptions to guide decision-making.
- Verification Checklist: Offers a final gate to confirm tests pass, no new APIs appear, and no unauthorized dependencies or functionality were introduced, making it ideal for disciplined refactors in mature codebases.
Quick Start
Apply the Refactor Scope guidelines to confirm the next refactor stays behavior-preserving before implementing changes.