Overview
The/gsd:plan-phase command transforms a roadmap phase into executable plans. It researches the domain (optional), creates atomic task plans with XML structure, and verifies them against requirements.
What It Does
1
Research (Optional)
Investigates how to implement this phase, guided by your CONTEXT.md decisions.
2
Plan Creation
Spawns planner agent to create 2-3 atomic task plans with XML structure.
3
Verification Loop
Spawns checker agent to verify plans against requirements. Loops until they pass or max iterations reached.
Files Created
RESEARCH.md
{phase_num}-RESEARCH.md - Domain investigation findingsPLAN.md
{phase_num}-{N}-PLAN.md - Executable task plans (2-3 per phase)Command Usage
- Basic Usage
- Auto-Detect Next
- Skip Research
- Force Re-Research
- Skip Verification
- Gap Closure Mode
- PRD Mode
- Research domain (if not exists)
- Create plans
- Verify plans
Research Phase
When research is enabled, GSD investigates your domain:.planning/{phase_num}-RESEARCH.md and loaded during planning.
Research Context
Research agent reads:PROJECT.md- Overall visionREQUIREMENTS.md- What must be delivered{phase_num}-CONTEXT.md- Your implementation preferencesSTATE.md- Prior decisions and blockers- Previous RESEARCH.md files - Avoid re-investigating
CONTEXT.md guides research. If you said “use Clerk” in discuss-phase, research focuses on Clerk best practices instead of comparing auth providers.
Plan Creation
The planner agent creates 2-3 atomic plans per phase:Plan Structure
Each plan has:- YAML Frontmatter - Phase number, plan number, dependencies
- Goal - What this plan achieves
- Context - Key decisions from prior work
- Tasks - 3-6 atomic tasks with XML structure
XML Task Format
XML structure is optimized for Claude’s attention mechanism. Tasks with clear structure get more consistent execution.
Plan Verification
After plans are created, the checker agent verifies them:1
Requirements Coverage
Does the plan achieve all requirements for this phase?
2
Dependency Validity
Are dependencies realistic? Can plans execute in declared order?
3
Atomic Scope
Is each plan small enough to execute in fresh context?
4
Task Clarity
Are actions specific enough to execute without guessing?
5
Verification Feasibility
Can verify steps be executed to confirm success?
Verification Loop
The loop continues until:- Plans pass all checks ✓
- Max iterations reached (3)
- User manually approves
Plan Dependencies
Plans can depend on other plans:- Independent plans run in parallel
- Dependent plans run in later waves
Configuration Impact
Granularity Setting
Controls plan size and count:- Coarse - Fewer, larger plans (3-5 tasks each)
- Standard (default) - Balanced (2-4 tasks each)
- Fine - More, smaller plans (1-2 tasks each)
Model Profile
Controls which Claude model plans:Workflow Toggles
/gsd:settings or per-command flags.
Example Session
1
Start planning
2
Research completes
3
Plans created
4
Verification passes
After Planning
Your.planning/ directory now has:
- Clear goals
- Specific actions
- Verification steps
- Dependency declarations
Next Steps
Execute Phase
Run plans in parallel waves with fresh context per plan
Update Plans
Edit PLAN.md files manually if needed before execution