request-refactor-plan
Create a detailed refactor plan with tiny commits via user interview, then file it as a GitHub issue. Use when user wants to plan a refactor, create a refactoring RFC, or break a refactor into safe incremental steps.
Security Assessment
About request-refactor-plan
The 'request-refactor-plan' skill helps users systematically create a detailed refactor plan by breaking down the process into tiny, incremental commits. This is useful when users want to refactor code, create a refactoring RFC, or break a large refactor task into manageable and safer steps. The skill ensures that users address all necessary steps, including understanding the problem, exploring potential solutions, reviewing code, and creating a manageable implementation plan. By following this process, users can ensure that their refactor work is thorough, safe, and easy to test and review.
FAQ
What should I do if I don't have enough test coverage in the codebase?
If there is insufficient test coverage, you should discuss your testing plans with the user. Make sure to identify which areas of the codebase will be tested and ensure tests will be added for untested functionality.
What should be included in the refactor plan?
The refactor plan includes a problem statement, solution description, a long and detailed implementation plan broken into tiny commits, decisions on the approach, testing strategy, and things that are out of scope for the refactor.
Can this skill be used for large refactor projects?
Yes, this skill is designed to break down even large refactor projects into small, manageable commits. It encourages incremental changes to keep the codebase working at each step, making it suitable for both small and large refactors.
Install request-refactor-plan
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
mattpocock/skills