willyu1007/template-skill-addon/plan-code-refactors
Claude Code and agent skill by willyu1007/template-skill-addon
- community
Checking that the SKILL.md file is still in the repository.
Plan code refactors by defining goals/non-goals, mapping dependencies, sequencing phases, and specifying verification and rollback checkpoints; triggers: refactor plan/restructure/rename/move modules.
Install
npx vskill@latest install willyu1007/template-skill-addon/plan-code-refactorsSKILL.md
The same SKILL.md was published earlier as willyu1007/template-skill-addon/plan-code-refactors.
Plan Code Refactors
Purpose
Create a refactor plan that reduces risk and avoids breaking builds by sequencing changes, defining checkpoints, and clarifying success criteria.
When to use
Use this skill when:
- A module/component has grown unmanageable
- You need to reorganize folders or boundaries
- You want to standardize repeated patterns across the codebase
- You are preparing a large dependency or framework upgrade
Inputs
- The refactor motivation (what pain it addresses)
- Current structure and known pain points
- Constraints (time, risk tolerance, compatibility requirements)
- Verification tools (build, typecheck, tests, lint, e2e)
Outputs
- A phased refactor plan with explicit checkpoints
- A dependency map for the refactor scope
- A risk register with mitigations
- Acceptance criteria and verification actions per phase
- Rollback strategy (what to revert to if a phase fails)
Steps
- Define goals and non-goals.
- Inventory the scope:
- files/modules involved
- external callers
- integration points
- Map dependencies and constraints:
- which modules import/own what
- build/test constraints
- naming/boundary conventions to preserve
- Choose a refactor strategy:
- extract modules
- rename/restructure
- introduce new abstractions
- Sequence phases:
- small, buildable increments
- explicit checkpoints where the codebase is “green”
- Define verification per phase:
- commands to run
- expected outcomes
- manual smoke checks if needed
- Define rollback points:
- last known-green commit
- what to revert if a phase fails
Verification
- [ ] Goals and non-goals are explicit
- [ ] Scope and dependencies are documented
- [ ] Plan is phased with buildable increments and checkpoints
- [ ] Verification actions per phase are concrete and reproducible
- [ ] Risks are listed with mitigations
- [ ] Rollback strategy is defined
Boundaries
- MUST NOT produce a plan without acceptance criteria and verification
- MUST NOT plan a large refactor as a single undifferentiated step
- MUST include rollback points for risky phases
- SHOULD keep the plan portable (avoid hard-coded paths unless required)
- SHOULD separate structural refactors from behavior changes
Included assets
- Templates:
./templates/phased-refactor-plan.mdprovides a phase structure. - Examples:
./examples/includes a sample phased plan.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.ai/skills/workflows/planning/plan-code-refactors/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/willyu1007/template-skill-addon/plan-code-refactors)