# Safe refactor plan

> Turns a messy module into a reviewed refactor plan of small, revertable commits, filed as an issue.

- Page: https://youraiskill.com/skill/terminalskills-request-refactor-plan
- What it does: Produces a refactor plan and files it as a GitHub issue for review: interviews the user about the pain and the constraints, checks every claim against the code, weighs alternatives, pins down behaviour that must not change, and lays the work out as a sequence of small commits that each keep the build and tests passing. Use when the user says "plan this refactor", "write a refactoring RFC", "I want to restructure this module safely", "break this refactor into small steps", or "open an issue proposing a refactor".
- Niches: coding, project-management
- Licence: Apache-2.0
- Status: Checked: open licence, author credited, passed the YourAISkill safety scan. Can be added to a paid pack.
- Contents: instructions and reference files only (2 files)

To add it, see https://youraiskill.com/guides/how-to-add-a-skill-to-claude
