Skip to main content

The Full Lifecycle

GSD structures development into five distinct stages: Each stage has a specific purpose. Skip a stage, and quality suffers.

Stage 1: Discuss Phase

Command: /gsd:discuss-phase [N] Purpose: Capture YOUR vision before Claude makes assumptions

What Happens

1

Phase Analysis

Claude reads the phase description from ROADMAP.md and analyzes what’s being built:
Identifies gray areas:
  • Layout (grid vs list vs table)
  • Density (compact vs spacious)
  • Interactions (hover states, click behavior)
  • Empty states (what shows when no projects)
2

Targeted Questions

For each gray area you select, Claude asks until satisfied:Layout:
  • Grid or list layout?
  • How many columns on desktop/mobile?
  • Card-based or table-based?
Density:
  • Show full project details or compact view?
  • Include descriptions in list or detail view only?
Interactions:
  • Click project → navigate or expand inline?
  • Hover states on cards?
  • Action buttons (edit/delete) always visible or on hover?
3

Create CONTEXT.md

Writes {phase}-CONTEXT.md with three sections:

Why It Matters

Without discuss-phase:
With discuss-phase:
The deeper you go in discuss-phase, the more the system builds what you actually want.

When to Use

Visual Features

Layout, density, interactions, empty states, styling preferences

APIs/CLIs

Response format, flags, error handling, verbosity levels

Content Systems

Structure, tone, depth, flow, examples vs theory

Organization Tasks

Grouping criteria, naming conventions, duplicate handling

When to Skip

Skip discuss-phase when:
  • Phase has no ambiguity (“Add field to database”)
  • You trust Claude’s defaults
  • Time pressure (can always re-plan)

Stage 2: Plan Phase

Command: /gsd:plan-phase [N] Purpose: Research how to build it, create executable plans

What Happens

1

Research (Optional)

Spawns 4 parallel researchers:
Disable: /gsd:plan-phase --skip-research or toggle in settings
2

Planning

Planner agent (fresh 200K context) reads:
  • PROJECT.md
  • REQUIREMENTS.md
  • -CONTEXT.md (your decisions)
  • -RESEARCH.md (ecosystem knowledge)
  • 2-4 relevant prior SUMMARYs
Creates 2-3 PLAN.md files with:
  • XML task structure
  • Dependency graph
  • Wave assignments
  • Goal-backward must-haves
3

Plan Checking (Optional)

Checker agent validates plans against 8 dimensions:
  1. Requirement coverage — All requirements addressed?
  2. Task completeness — Each task has name/files/action/verify/done?
  3. Dependency correctness — Wave assignments valid?
  4. Scope sanity — Plans fit ~50% context?
  5. Must-haves derivation — Frontmatter has goal-backward criteria?
  6. Key links planned — Critical connections identified?
  7. TDD appropriateness — Test-first where applicable?
  8. Nyquist validation — Every task has automated verify command?
If issues found: Planner revises (fresh context), checker validates again. Loop up to 3x.Disable: /gsd:plan-phase --skip-verify or toggle in settings
4

Commit Plans

Writes PLAN.md files to disk, updates ROADMAP.md, commits:

Discovery Levels

Planning includes mandatory discovery protocol:
For niche domains (3D, games, audio, shaders, ML), GSD suggests /gsd:research-phase before planning.

Wave Structure Example

Result: Plans 01 and 02 run in parallel (Wave 1), Plan 03 waits for both (Wave 2).

Stage 3: Execute Phase

Command: /gsd:execute-phase <N> Purpose: Run plans in parallel waves, commit atomically

What Happens

1

Wave Analysis

Orchestrator reads frontmatter from all PLAN.md files:
Groups plans by wave, sorts by dependencies.
2

Wave 1 Execution

Spawns executor agents in parallel:
Both run simultaneously. Orchestrator waits for both to complete.
3

Wave 2 Execution

After Wave 1 complete, spawns Wave 2 executors:
4

Verification (Optional)

After all waves complete, spawns verifier agent:
  • Reads all SUMMARY.md files
  • Checks must_haves from PLAN frontmatter
  • Inspects codebase for artifacts, key links
  • Writes VERIFICATION.md with pass/fail per must-have
Disable: Toggle workflow.verifier: false in settings

Deviation Handling

Executors apply rules automatically:
Trigger: Code doesn’t work (errors, incorrect output)Action: Fix → update tests → verify → continue → track deviationExample: Wrong SQL query causing 500 errors → fix query, add test, commit
Trigger: Code missing essential features for correctness/securityAction: Add → test → verify → continue → track deviationExample: Protected route with no auth check → add requireAuth() middleware
Trigger: Something prevents completing current taskAction: Fix → test → verify → continue → track deviationExample: Missing TypeScript type causing build errors → create type definition
Trigger: Fix requires significant structural modificationAction: STOP → return checkpoint with proposal → await user decisionExample: Plan says “add column” but executor realizes need new table → checkpoint
All deviations are documented in SUMMARY.md. Plans are guides, not scripts.

Checkpoints

When executor hits type="checkpoint:*":
  1. Completes all automation BEFORE checkpoint
  2. Pauses execution
  3. Returns structured message:
  1. Fresh continuation agent spawned after approval
In auto mode (workflow.auto_advance: true), checkpoint:human-verify and checkpoint:decision are auto-approved. Only checkpoint:human-action (auth gates) pause execution.

Atomic Commits

Each task gets its own commit immediately after completion:
See Atomic Commits for details.

Stage 4: Verify Work

Command: /gsd:verify-work [N] Purpose: Manual user acceptance testing with auto-diagnosis

What Happens

1

Extract Testable Deliverables

Claude reads:
  • Phase must_haves from PLAN frontmatter
  • Success criteria from PLAN files
  • VERIFICATION.md (automated checks)
Creates list of things you should be able to DO now:
2

Walk Through Each

For each deliverable:
3

Create UAT.md

Documents results:

Why Manual Testing?

Automated verification checks:
  • ✅ Code exists
  • ✅ Tests pass
  • ✅ Key files present
But does it work the way you expected?
Verify-work is where you confirm the feature actually does what you wanted. GSD automates the diagnosis and fix planning when issues are found.

Stage 5: Repeat

After verify-work:
1

Issues Found?

Run /gsd:execute-phase [N] again with gap closure plans:
Then /gsd:verify-work 3 again
2

Phase Complete?

Move to next phase:
3

All Phases Complete?

Audit and complete milestone:
4

Next Milestone?

Start fresh cycle:

Full Workflow Diagram

Quick Mode

Command: /gsd:quick Purpose: Ad-hoc tasks without full planning ceremony Skips:
  • Research phase
  • Plan checking
  • Verification stage
Keeps:
  • Context engineering
  • Atomic commits
  • State tracking
  • Deviation rules
Use for: Bug fixes, small features, config changes, one-off tasks.

Best Practices

/clear between stages

Run /clear after plan-phase, before execute-phase. Orchestrator spawns fresh agents anyway.

Discuss visual features

Always run discuss-phase for UI work. Layout, interactions, styling — these need your input.

Let verification happen

Don’t skip verify-work. It catches issues early and creates fix plans automatically.

Trust the waves

GSD automatically parallelizes. Prefer vertical slices (full features) over horizontal layers (all models, then APIs, then UI).

Next Steps

Atomic Commits

Learn how each task becomes a traceable commit

Quickstart

Try the full workflow on a sample project