What problem does it solve?
Planning code refactors often leads to risky, large-scale changes that break existing functionality with no clear documentation of steps or rationale. This Skill eliminates that risk by guiding you through a structured interview process to create a detailed, step-by-step refactor plan broken into tiny, safe commits, and automatically files it as a GitHub issue for team tracking.
Core Features & Use Cases
- Guided Refactor Interview: Walks you through gathering full context on the refactor problem, exploring the codebase to verify assumptions, and evaluating alternative solutions.
- Tiny Commit Planning: Breaks the refactor into the smallest possible working steps per Martin Fowler's guidance, ensuring the codebase remains functional at every stage.
- Structured GitHub Issue Generation: Produces a complete refactor plan issue including problem statement, solution, detailed commit steps, decision documents, testing plans, and out-of-scope items.
- Use Case: For example, if you need to refactor a legacy user authentication module, this Skill will help you confirm test coverage, define the exact scope of changes, and produce an actionable plan your team can execute safely.
Quick Start
Use the request-refactor-plan skill to create a detailed incremental refactor plan for your legacy payment processing module and file it as a GitHub issue.