Skip to main content
The .planning/ directory is the central workspace for all GSD project management files. It contains everything Claude needs to understand your project, track progress, and maintain context across sessions.

Directory Structure

Root Files

Core Documents

  • PROJECT.md - Living project context (vision, requirements, constraints, decisions)
  • REQUIREMENTS.md - v1/v2 requirements with phase traceability
  • ROADMAP.md - Phases with goals, dependencies, and success criteria
  • STATE.md - Current position, metrics, decisions, blockers
  • config.json - Project configuration (mode, granularity, model profile, workflow settings)

Research Directories

research/ - Domain Research (Greenfield)

Created during /gsd:new-project, contains parallel research findings:
  • ARCHITECTURE.md - System design patterns and structure
  • FEATURES.md - Existing feature analysis in the domain
  • PITFALLS.md - Common mistakes and anti-patterns
  • STACK.md - Technology choices and rationale
  • SUMMARY.md - Synthesized insights for quick reference

codebase/ - Codebase Analysis (Brownfield)

Created during /gsd:map-codebase for existing projects:
  • architecture.md - Current system architecture
  • concerns.md - Known issues and technical debt
  • conventions.md - Code standards and patterns
  • integrations.md - External services and APIs
  • stack.md - Current tech stack analysis
  • structure.md - File organization and modules
  • testing.md - Testing setup and coverage

Phase Work

phases/XX-name/ - Phase Execution

Each phase gets its own directory:
  • XX-CONTEXT.md - Implementation decisions from /gsd:discuss-phase
  • XX-RESEARCH.md - Phase-specific research findings
  • XX-YY-PLAN.md - Executable task plan (Phase XX, Plan YY)
  • XX-YY-SUMMARY.md - Completion summary with decisions and changes
  • XX-VERIFICATION.md - Goal verification report
  • XX-UAT.md - User acceptance testing results (from /gsd:verify-work)

Plan Naming Convention

  • Format: {phase}-{plan}-PLAN.md
  • Examples:
    • 01-01-PLAN.md - Phase 1, Plan 1
    • 01-02-PLAN.md - Phase 1, Plan 2
    • 02.1-01-PLAN.md - Inserted phase 2.1, Plan 1

Quick Mode

quick/NNN-description/

Ad-hoc tasks tracked separately from phases:
  • PLAN.md - Quick task plan
  • SUMMARY.md - Completion summary
Numbered sequentially (001, 002, 003…) with descriptive slugs.

Todos

todos/pending/ and todos/completed/

Ideas captured via /gsd:add-todo:
  • Each todo is a markdown file
  • Moved from pending/ to completed/ when done
  • Referenced in STATE.md

Milestones

milestones/vX.Y-name/

Completed milestone work archived via /gsd:complete-milestone:
  • Phase directories moved here after milestone ships
  • Keeps .planning/phases/ focused on current work
  • Preserves history for reference

File Size Constraints

GSD enforces size limits to keep Claude’s quality high:

Workflow File Access

Every workflow starts by reading:
  1. STATE.md (current position)
  2. PROJECT.md (core context)
  3. ROADMAP.md (phases and progress)
Planning reads:
  • REQUIREMENTS.md (what to deliver)
  • Research files (how to build it)
  • Prior SUMMARY.md files (what’s already done)
Execution reads:
  • PLAN.md files (what to implement)
  • CONTEXT.md (implementation decisions)
  • RESEARCH.md (domain knowledge)

Git Tracking

By default (planning.commit_docs: true):
  • All .planning/ files are committed
  • Each task gets atomic commits
  • History is preserved for future sessions
Disable via /gsd:settings if you prefer to keep planning docs local.

See Also