Overview
Add a new integer phase to the end of the current milestone in the roadmap. This command handles phase number calculation, directory creation with slug generation, roadmap structure updates, and state tracking.Syntax
The phase description (e.g., “User authentication system”, “Dashboard analytics”)
Process
The command follows the add-phase workflow:- Argument Parsing - Validates the description is provided
- Roadmap Check - Verifies ROADMAP.md exists
- Milestone Identification - Identifies the current milestone
- Phase Number Calculation - Calculates next sequential integer phase number (ignores existing decimal phases)
- Slug Generation - Creates URL-friendly slug from description
- Directory Creation - Creates
.planning/phases/{number}-{slug}/directory - Roadmap Update - Adds phase entry to ROADMAP.md under current milestone
- State Update - Tracks roadmap evolution in STATE.md
Phase Numbering
Phases use integer numbering (71, 72, 73, etc.) when added to the end of a milestone. Decimal phases (72.1, 72.2) are created only via/gsd:insert-phase for urgent work.
Directory Structure
Creates a directory with this pattern:- Phase 75: “User authentication system” →
.planning/phases/75-user-authentication-system/ - Phase 76: “Dashboard analytics” →
.planning/phases/76-dashboard-analytics/
Examples
Add Authentication Phase
75-user-authentication-system/.
Add API Integration Phase
Add Testing Phase
Updated Files
.planning/ROADMAP.md- New phase entry added under current milestone.planning/STATE.md- Roadmap evolution tracked.planning/phases/{number}-{slug}/- New empty phase directory created
Next Steps
After adding a phase:When to Use
- Adding planned work to the end of the current milestone
- Extending the milestone with additional sequential phases
- Adding work discovered during planning (not urgent mid-execution work)
When NOT to Use
- Urgent mid-execution work: Use
/gsd:insert-phaseinstead to insert work between existing phases - Future milestone work: Wait until the milestone is active, or note in PROJECT.md for next
/gsd:new-milestone
Allowed Tools
- Read
- Write
- Bash