How It Works
GSD implements a systematic workflow that solves context rot through context engineering, multi-agent orchestration, and wave-based execution.The Core Pattern
Every phase follows the same pattern:Workflow Stages
1. Initialize Project
- Questions — Asks until it understands your idea completely (goals, constraints, tech preferences, edge cases)
- Research — Spawns parallel agents to investigate the domain (optional but recommended)
- Requirements — Extracts what’s v1, v2, and out of scope
- Roadmap — Creates phases mapped to requirements
Already have code? Run
/gsd:map-codebase first. It spawns parallel agents to analyze your stack, architecture, conventions, and concerns. Then /gsd:new-project knows your codebase — questions focus on what you’re adding, and planning automatically loads your patterns.PROJECT.md— Project vision and contextREQUIREMENTS.md— Scoped v1/v2 requirements with IDsROADMAP.md— Phase breakdown with status trackingSTATE.md— Decisions, blockers, session memory.planning/research/— Domain research findings
2. Discuss Phase
Visual features
Layout, density, interactions, empty states
APIs/CLIs
Response format, flags, error handling, verbosity
Content systems
Structure, tone, depth, flow
Organization tasks
Grouping criteria, naming, duplicates, exceptions
CONTEXT.md — feeds directly into the next two steps:
- Researcher reads it — Knows what patterns to investigate (“user wants card layout” → research card component libraries)
- Planner reads it — Knows what decisions are locked (“infinite scroll decided” → plan includes scroll handling)
{phase_num}-CONTEXT.md
3. Plan Phase
- Researches — Investigates how to implement this phase, guided by your CONTEXT.md decisions
- Plans — Creates 2-3 atomic task plans with XML structure
- Verifies — Checks plans against requirements, loops until they pass
Planning Agent Coordination
XML Plan Structure
Every plan uses structured XML optimized for Claude:Nyquist Validation (Automated Test Mapping)
During plan-phase research, GSD maps automated test coverage to each phase requirement before any code is written. This ensures that when Claude’s executor commits a task, a feedback mechanism already exists to verify it within seconds. The researcher:- Detects your existing test infrastructure
- Maps each requirement to a specific test command
- Identifies any test scaffolding that must be created before implementation begins (Wave 0 tasks)
Output:
{phase}-VALIDATION.md — the feedback contract for the phase.{phase_num}-RESEARCH.md— Domain research findings{phase_num}-{N}-PLAN.md— Atomic execution plans{phase_num}-VALIDATION.md— Test coverage mapping
4. Execute Phase
- Runs plans in waves — Parallel where possible, sequential when dependent
- Fresh context per plan — 200k tokens purely for implementation, zero accumulated garbage
- Commits per task — Every task gets its own atomic commit
- Verifies against goals — Checks the codebase delivers what the phase promised
Wave Execution Architecture
Plans are grouped into “waves” based on dependencies. Within each wave, plans run in parallel. Waves run sequentially.- Independent plans → Same wave → Run in parallel
- Dependent plans → Later wave → Wait for dependencies
- File conflicts → Sequential plans or same plan
Execution Coordination
{phase_num}-{N}-SUMMARY.md— Execution outcomes and decisions{phase_num}-VERIFICATION.md— Post-execution verification results- Git commits for each task
5. Verify Work
- Extracts testable deliverables — What you should be able to do now
- Walks you through one at a time — “Can you log in with email?” Yes/no, or describe what’s wrong
- Diagnoses failures automatically — Spawns debug agents to find root causes
- Creates verified fix plans — Ready for immediate re-execution
/gsd:execute-phase again with the fix plans it created.
Manual user acceptance testing (UAT) was contributed by reddit user OracleGreyBeard.
{phase_num}-UAT.md, fix plans if issues found
6. Repeat → Complete → Next Milestone
/gsd:complete-milestone archives the milestone and tags the release.
Then /gsd:new-milestone starts the next version — same flow as new-project but for your existing codebase. You describe what you want to build next, the system researches the domain, you scope requirements, and it creates a fresh roadmap. Each milestone is a clean cycle: define → build → ship.
Context Engineering
Claude Code is incredibly powerful if you give it the context it needs. Most people don’t. GSD handles it for you:| File | What it Does |
|---|---|
PROJECT.md | Project vision, always loaded |
research/ | Ecosystem knowledge (stack, features, architecture, pitfalls) |
REQUIREMENTS.md | Scoped v1/v2 requirements with phase traceability |
ROADMAP.md | Where you’re going, what’s done |
STATE.md | Decisions, blockers, position — memory across sessions |
PLAN.md | Atomic task with XML structure, verification steps |
SUMMARY.md | What happened, what changed, committed to history |
todos/ | Captured ideas and tasks for later work |
Files have size limits based on where Claude’s quality degrades. Stay under, get consistent excellence.
Multi-Agent Orchestration
Every stage uses the same pattern: a thin orchestrator spawns specialized agents, collects results, and routes to the next step.| Stage | Orchestrator Does | Agents Do |
|---|---|---|
| Research | Coordinates, presents findings | 4 parallel researchers investigate stack, features, architecture, pitfalls |
| Planning | Validates, manages iteration | Planner creates plans, checker verifies, loop until pass |
| Execution | Groups into waves, tracks progress | Executors implement in parallel, each with fresh 200k context |
| Verification | Presents results, routes next | Verifier checks codebase against goals, debuggers diagnose failures |
Quick Mode
- Same agents — Planner + executor, same quality
- Skips optional steps — No research, no plan checker, no verifier
- Separate tracking — Lives in
.planning/quick/, not phases
.planning/quick/001-add-dark-mode-toggle/PLAN.md, SUMMARY.md
Brownfield Workflow (Existing Codebase)
/gsd:map-codebase before /gsd:new-project. It spawns parallel agents to analyze:
Stack
Languages, frameworks, libraries, tools
Architecture
File structure, data flow, key patterns
Conventions
Naming, formatting, testing, documentation
Concerns
Technical debt, security issues, scalability concerns
codebase/STACK.mdcodebase/ARCHITECTURE.mdcodebase/CONVENTIONS.mdcodebase/CONCERNS.md
/gsd:new-project knows your codebase — questions focus on what you’re adding, and planning automatically loads your patterns.
Project File Structure
For reference, here is what GSD creates in your project:Full Project Lifecycle
Next Steps
Installation
Install GSD for your runtime
Quick Start
Your first GSD project
Commands
Complete command reference
Configuration
Workflow toggles and model profiles