What problem does it solve?
This Skill helps teams and engineers plan, scope, and implement code refactors while preserving behavior and minimizing risk by guiding exploration, impact assessment, and implementation planning.
Core Features & Use Cases
- Exploration & Scoping: Restate goals (Feynman Echo), ask clarifying questions, challenge assumptions, and map the exact scope of the refactor.
- Impact Assessment: Trace dependencies, map architecture before/after, surface hidden complexity, and classify behavior-preservation risks and required tests.
- Decision & Implementation Planning: Compare refactoring options, sketch tradeoffs, recommend a path, optionally produce a spec and test strategy.
- Use Case: Take a legacy PaymentsService with brittle module boundaries and produce an actionable refactor plan that names files, identifies integration points, prescribes tests, and lists unknowns to spike.
Quick Start
Use the refactor skill to explore and produce a safe implementation plan and test strategy for refactoring the PaymentsService module.