What problem does it solve?
Developers and teams need a reliable, interview-driven process to scope and execute refactors without creating large, risky pull requests; this Skill structures the conversation, verifies code, and produces a durable plan. It prevents scope creep, reduces review friction, and ensures each change is the smallest possible step that keeps the codebase working.
Core Features & Use Cases
- Interview-driven scoping: Elicit detailed problem descriptions and implementation constraints from the developer before proposing changes.
- Codebase exploration and verification: Use an Agent to inspect the codebase, check assumptions, and surface missing tests or risky areas.
- Multiple approaches and trade-offs: Present three or more alternative refactoring strategies and discuss pros/cons for architectural impact.
- Tiny-commit decomposition and RFC filing: Break the chosen approach into the smallest working commits and immediately file a GitHub issue RFC using gh issue create.
- Use Case: Planning a gradual migration of an authentication module to a new service by interviewing the owner, checking tests, proposing options, and generating a commit-by-commit plan as an issue.
Quick Start
Invoke the refactor-plan skill with /refactor-plan authentication to start the interview, explore the codebase, propose alternatives, decompose into tiny commits, and file an RFC issue.