Overview
Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases. Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.Syntax
The phase number after which to insert the new phase (e.g., 72, 73.1)
The phase description for the urgent work
Purpose
Handle urgent work discovered during execution without renumbering the entire roadmap. This preserves the original phase numbers while clearly marking inserted work with decimal notation.Decimal Numbering
When inserting after phase N:- First insertion: N.1
- Second insertion after N: N.2
- Third insertion after N: N.3
- Insert after phase 72 → creates 72.1
- Insert after phase 72 again → creates 72.2
- Insert after phase 72.1 → creates 72.1.1
Process
The command executes the insert-phase workflow:- Argument Parsing - Validates after-phase-number and description
- Phase Verification - Confirms the after-phase exists in roadmap
- Decimal Calculation - Calculates next decimal number after specified phase
- Slug Generation - Creates URL-friendly slug from description
- Directory Creation - Creates
.planning/phases/{decimal}-{slug}/directory - Roadmap Update - Inserts phase entry after specified phase
- State Update - Tracks insertion in STATE.md
Examples
Insert Urgent Fix After Phase 72
Insert Second Urgent Item After 72
Insert After Decimal Phase
When to Use
- Urgent bugs discovered during execution
- Critical dependencies found after planning
- Security issues requiring immediate attention
- Blocking issues preventing next phase execution
When NOT to Use
- Non-urgent work: Add to end of milestone with
/gsd:add-phaseinstead - Future milestone work: Note in PROJECT.md for next milestone planning
- Planned work: Should be in original roadmap, not inserted mid-flight
Directory Structure
Creates directories with decimal numbers:Updated Files
.planning/ROADMAP.md- New decimal phase inserted in proper position.planning/STATE.md- Insertion tracked in roadmap evolution.planning/phases/{decimal}-{slug}/- New phase directory created
Validation Gates
The workflow validates:- After-phase exists in roadmap
- Description is provided
- Decimal calculation is correct
- Insertion point is valid
Next Steps
After inserting:Allowed Tools
- Read
- Write
- Bash