plan-refactor

Plan complex changes using an eight-phase workflow with human gates.

15|6|Updated May 7, 2026
One-click install
npx skills add https://github.com/MinhThang1009/dotclaude --skill plan-refactor-minhthang1009
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: plan-refactor
Source: https://github.com/MinhThang1009/dotclaude/tree/main/plugins/plan-workflow/skills/plan-refactor
Command: npx skills add https://github.com/MinhThang1009/dotclaude --skill plan-refactor-minhthang1009

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The skill provides a universal eight-phase workflow to craft a self-contained implementation plan for any change (rename, bugfix, feature, refactor) that a fresh agent can execute after /compact, preventing context loss and ensuring traceable decisions.

Core Features & Use Cases

  • Eight-phase process with three mandatory human gates to govern plan creation and execution.
  • Phase-by-phase guidance including Exploration, Audit, Draft Plan, Verify Plan, Implement, Post-Implementation Audit, and Final Verify.
  • Type-agnostic planning suitable for changes touching multiple files or layers, with explicit verification and scope control.

Quick Start

Apply the universal eight-phase workflow to generate a complete, verifiable plan for the requested change.

Frequently Asked Questions about plan-refactor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I plan a complex code refactor across multiple files without losing context?

To plan a complex code refactor without context loss, use a formal eight-phase workflow with human gates and verification checkpoints. This process generates a self-contained implementation plan that ensures traceable decisions and safe, auditable change execution.

What is a phased workflow for software refactoring and when should I use it?

A phased workflow for software refactoring is a structured process enforcing exploration, scope freezes, and post-implementation audits. Use it for changes touching multiple files or layers, such as feature additions or bug fixes, to minimize risk and regressions.

How do I execute a code change plan after a context reset or /compact?

To execute a code change plan after a context reset, generate a self-contained implementation plan beforehand. This verified plan allows a fresh agent to execute the refactor safely, ensuring traceability and preventing context loss during the implementation phase.

Does this multi-layer refactor planning workflow require manual approval steps?

Yes, this multi-layer refactor planning workflow requires three mandatory human gates to govern plan creation and execution. These manual approval steps enforce gate reviews, scope freezes, and post-implementation audits to minimize risk and regressions.

Can I use this structured workflow for bug fixes and feature additions, not just refactoring?

Yes, you can use this structured workflow for bug fixes and feature additions. The eight-phase planning process is type-agnostic, making it suitable for any code change that touches multiple files or layers and requires strict verification and scope control.

What are the limitations of using an eight-phase workflow for code changes?

The limitation of an eight-phase workflow for code changes is the overhead from mandatory human gates, scope freezes, and post-implementation audits. This heavy, structured process may be excessive for simple, single-file modifications that do not require strict traceability.