Plan a multi-file refactor with proper sequencing and rollback steps.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Refactor Plan
Create a detailed plan for this refactoring task.
## Refactor Goal
{{refactor_description}}
## Instructions
1. Search the codebase to understand current state
2. Identify all affected files and their dependencies
3. Plan changes in a safe sequence (types first, then implementations, then tests)
4. Include verification steps between changes
5. Consider rollback if something fails
## Output Format
```markdown
## Refactor Plan: [title]
### Current State
[Brief description of how things work now]
### Target State
[Brief description of how things will work after]
### Affected Files
| File | Change Type | Dependencies |
|------|-------------|--------------|
| path | modify/create/delete | blocks X, blocked by Y |
### Execution Plan
#### Phase 1: Types and Interfaces
- [ ] Step 1.1: [action] in `file.ts`
- [ ] Verify: [how to check it worked]
#### Phase 2: Implementation
- [ ] Step 2.1: [action] in `file.ts`
- [ ] Verify: [how to check]
#### Phase 3: Tests
- [ ] Step 3.1: Update tests in `file.test.ts`
- [ ] Verify: Run `npm test`
#### Phase 4: Cleanup
- [ ] Remove deprecated code
- [ ] Update documentation
### Rollback Plan
If something fails:
…
The line at the top of this page pins the label git:20260423.f4df73b, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_dzss2mbc5ieqkaub
GET https://markdownregistry.com/api/v1/resolve?ref=archubbuck/workspace-architect/refactor-plan
GET https://markdownregistry.com/api/v1/blob/161f60bc0eeb7b591244e954746257c6afcde24c4d9deab2538531928426dd09
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
archubbuck/workspace-architect · assets/plugins/awesome-copilot/skills/suggest-awesome-github-copilot-agents/SKILL.md · Suggest relevant GitHub Copilot Custom Agents files from the awesome-copilot repository based on current repository…
archubbuck/workspace-architect · assets/plugins/awesome-copilot/skills/suggest-awesome-github-copilot-instructions/SKILL.md · Suggest relevant GitHub Copilot instruction files from the awesome-copilot repository based on current repository…
archubbuck/workspace-architect · assets/plugins/awesome-copilot/skills/suggest-awesome-github-copilot-prompts/SKILL.md · Suggest relevant GitHub Copilot prompt files from the awesome-copilot repository based on current repository context…
archubbuck/workspace-architect · assets/plugins/awesome-copilot/skills/suggest-awesome-github-copilot-skills/SKILL.md · Suggest relevant GitHub Copilot skills from the awesome-copilot repository based on current repository context and chat…
archubbuck/workspace-architect · assets/plugins/azure-cloud-development/skills/az-cost-optimize/SKILL.md · Analyze Azure resources used in the app (IaC files and/or resources in a target rg) and optimize costs - creating…
archubbuck/workspace-architect · assets/plugins/azure-cloud-development/skills/azure-resource-health-diagnose/SKILL.md · Analyze Azure resource health, diagnose issues from logs and telemetry, and create a remediation plan for identified…
archubbuck/workspace-architect · assets/plugins/clojure-interactive-programming/skills/remember-interactive-programming/SKILL.md · A micro-prompt that reminds the agent that it is an interactive programmer. Works great in Clojure when Copilot has…
archubbuck/workspace-architect · assets/plugins/context-engineering/skills/context-map/SKILL.md · Generate a map of all files relevant to a task before making changes
archubbuck/workspace-architect · assets/plugins/context-engineering/skills/what-context-needed/SKILL.md · Ask Copilot what files it needs to see before answering a question
archubbuck/workspace-architect · assets/plugins/copilot-sdk/skills/copilot-sdk/SKILL.md · Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools…
archubbuck/workspace-architect · assets/skills/academy-guide/SKILL.md · Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it…
aboudjem/ui-ux-suite · skills/refactor-plan/SKILL.md · Prioritized redesign action plan covering quick wins, medium effort, and major rework. Use when the user asks for a…
gangjaeyu/harness_loop_full_korean · skills/refactor-plan/SKILL.md · 동작을 보존하는 코드 정리·의존성 갱신·스택 전환의 범위와 검증을 계획한다. 영향 문서와 필요한 작업만 보완하고 실행 요청이면 구현·검증까지 이어 수행한다.
vivantel/kms · plugins/kms/skills/refactor-plan/SKILL.md · Produces a safe, phased refactoring plan that respects existing decisions and guardrails, without writing anything. Use…
okhp3/skillz · community/refactor-plan/SKILL.md · Create a concrete plan before starting a multi-file refactor. Use when the user asks to plan, sequence, scope, or…