What problem does it solve?
Refactoring involves reorganizing code without changing external behavior, but teams often lack a clear, scoped process that ensures safety, test coverage, and maintainability after changes. This skill provides a structured approach to plan, execute, and validate refactors so improvements are predictable and reviewable.
Core Features & Use Cases
- Invocation modes: Post-Green (REFACTOR step) and explicit user requests.
- Scoped changes: focus on the minimal set of production and/or test code touched by the refactor.
- Guardrails: enforce naming conventions, maintain test coverage, and assess risk before applying changes.
- Companion skills: aligns with code-quality and testing skills to ensure cohesive quality improvements.
Quick Start
Identify a small, well-scoped module and start the refactor workflow, ensuring tests remain green after each change.