
Refactor Plan
The refactor-plan skill helps developers create detailed, sequenced plans for multi-file refactoring tasks by analyzing codebase dependencies and organizing changes into safe phases (types, implementation, tests, cleanup) with verification steps and rollback procedures. It's designed for software engineers managing complex refactors who need to minimize risk by understanding file dependencies and executing changes in the correct order. The skill solves the problem of coordinating large-scale code changes across multiple files without breaking functionality or losing track of what's been modified.
- skills.sh installs
- 13K
- GitHub stars
- 41K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add github/awesome-copilot --skill refactor-plan --agent claude-codeInstalls into .claude/skills of the current project.
Files
Refactor Plan
Create a detailed plan before making any code changes.
Instructions
- Do not edit files while preparing the plan.
- Search the codebase to understand the current state. Read enough implementation, tests, configuration, and docs to make the plan specific to the repository.
- Identify affected files, ownership boundaries, dependencies, and likely hidden coupling.
- Plan changes in a safe sequence. Prefer contracts and types first, then implementations, then callers, then tests, then cleanup.
- Include verification steps between phases and a final validation command.
- Include rollback or recovery steps for the riskiest phases.
- Output the complete plan using the format below.
- Stop after the plan and ask for confirmation before implementing. If the user already asked you to implement, still produce the plan first and wait for confirmation unless they explicitly said to continue without review after the plan.
If the request is too ambiguous to plan safely, ask concise clarifying questions instead of editing files.
Output Format
## Refactor Plan: [title]
### Current State
[Brief description of how things work now]
Sponsors
Details
More from github/awesome-copilot
All 318- Pytest Coverage13K
- Penpot Uiux Design12.9K
- Memory Merger12.9K
- Postgresql Code Review12.8K
- Create Implementation Plan12.6K
- Webapp Testing12.5K
- Architecture Blueprint Generator12.3K
- Typescript Mcp Server Generator12.1K
- Java Junit11.8K
- Dotnet Design Pattern Review11.7K
- Dotnet Upgrade11.7K
- Apple Appstore Reviewer11.5K
- Review And Refactor11.1K
- Update Implementation Plan11.1K
- Make Repo Contribution11.1K
- Csharp Async11.1K
- Editorconfig11K
- Create Github Action Workflow Specification10.8K
- Java Docs10.8K
- Python Mcp Server Generator10.5K
- Csharp Xunit10.4K
- Ai Prompt Engineering Safety Review10.4K
- Agentic Eval10.3K
- Create Architectural Decision Record10.3K