gsd-codex-cli 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (160) hide show
  1. package/.codex/prompts/gsd-add-phase.md +44 -0
  2. package/.codex/prompts/gsd-add-todo.md +43 -0
  3. package/.codex/prompts/gsd-audit-milestone.md +43 -0
  4. package/.codex/prompts/gsd-check-todos.md +43 -0
  5. package/.codex/prompts/gsd-complete-milestone.md +43 -0
  6. package/.codex/prompts/gsd-debug.md +46 -0
  7. package/.codex/prompts/gsd-discuss-phase.md +43 -0
  8. package/.codex/prompts/gsd-execute-phase.md +43 -0
  9. package/.codex/prompts/gsd-help.md +43 -0
  10. package/.codex/prompts/gsd-insert-phase.md +43 -0
  11. package/.codex/prompts/gsd-list-phase-assumptions.md +43 -0
  12. package/.codex/prompts/gsd-map-codebase.md +43 -0
  13. package/.codex/prompts/gsd-new-milestone.md +43 -0
  14. package/.codex/prompts/gsd-new-project.md +43 -0
  15. package/.codex/prompts/gsd-pause-work.md +43 -0
  16. package/.codex/prompts/gsd-plan-milestone-gaps.md +43 -0
  17. package/.codex/prompts/gsd-plan-phase.md +43 -0
  18. package/.codex/prompts/gsd-progress.md +43 -0
  19. package/.codex/prompts/gsd-quick.md +43 -0
  20. package/.codex/prompts/gsd-remove-phase.md +43 -0
  21. package/.codex/prompts/gsd-research-phase.md +43 -0
  22. package/.codex/prompts/gsd-resume-work.md +43 -0
  23. package/.codex/prompts/gsd-set-profile.md +43 -0
  24. package/.codex/prompts/gsd-settings.md +43 -0
  25. package/.codex/prompts/gsd-update.md +43 -0
  26. package/.codex/prompts/gsd-verify-work.md +43 -0
  27. package/.codex/skills/get-shit-done-codex/SKILL.md +65 -0
  28. package/.codex/skills/get-shit-done-codex/references/compat.md +32 -0
  29. package/.codex/skills/get-shit-done-codex/references/windows.md +23 -0
  30. package/CHANGELOG.md +1434 -0
  31. package/LICENSE +21 -0
  32. package/README.md +690 -0
  33. package/agents/gsd-codebase-mapper.md +761 -0
  34. package/agents/gsd-debugger.md +1198 -0
  35. package/agents/gsd-executor.md +419 -0
  36. package/agents/gsd-integration-checker.md +423 -0
  37. package/agents/gsd-phase-researcher.md +469 -0
  38. package/agents/gsd-plan-checker.md +622 -0
  39. package/agents/gsd-planner.md +1159 -0
  40. package/agents/gsd-project-researcher.md +618 -0
  41. package/agents/gsd-research-synthesizer.md +236 -0
  42. package/agents/gsd-roadmapper.md +639 -0
  43. package/agents/gsd-verifier.md +541 -0
  44. package/bin/install-codex.js +100 -0
  45. package/bin/install.js +1806 -0
  46. package/commands/gsd/add-phase.md +39 -0
  47. package/commands/gsd/add-todo.md +42 -0
  48. package/commands/gsd/audit-milestone.md +42 -0
  49. package/commands/gsd/check-todos.md +41 -0
  50. package/commands/gsd/cleanup.md +18 -0
  51. package/commands/gsd/complete-milestone.md +136 -0
  52. package/commands/gsd/debug.md +162 -0
  53. package/commands/gsd/discuss-phase.md +87 -0
  54. package/commands/gsd/execute-phase.md +42 -0
  55. package/commands/gsd/health.md +22 -0
  56. package/commands/gsd/help.md +22 -0
  57. package/commands/gsd/insert-phase.md +33 -0
  58. package/commands/gsd/join-discord.md +18 -0
  59. package/commands/gsd/list-phase-assumptions.md +50 -0
  60. package/commands/gsd/map-codebase.md +71 -0
  61. package/commands/gsd/new-milestone.md +51 -0
  62. package/commands/gsd/new-project.md +42 -0
  63. package/commands/gsd/pause-work.md +35 -0
  64. package/commands/gsd/plan-milestone-gaps.md +40 -0
  65. package/commands/gsd/plan-phase.md +44 -0
  66. package/commands/gsd/progress.md +24 -0
  67. package/commands/gsd/quick.md +40 -0
  68. package/commands/gsd/reapply-patches.md +110 -0
  69. package/commands/gsd/remove-phase.md +32 -0
  70. package/commands/gsd/research-phase.md +187 -0
  71. package/commands/gsd/resume-work.md +40 -0
  72. package/commands/gsd/set-profile.md +34 -0
  73. package/commands/gsd/settings.md +36 -0
  74. package/commands/gsd/update.md +37 -0
  75. package/commands/gsd/verify-work.md +39 -0
  76. package/get-shit-done/bin/gsd-tools.cjs +5243 -0
  77. package/get-shit-done/bin/gsd-tools.test.cjs +2273 -0
  78. package/get-shit-done/references/checkpoints.md +775 -0
  79. package/get-shit-done/references/continuation-format.md +249 -0
  80. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  81. package/get-shit-done/references/git-integration.md +248 -0
  82. package/get-shit-done/references/git-planning-commit.md +38 -0
  83. package/get-shit-done/references/model-profile-resolution.md +34 -0
  84. package/get-shit-done/references/model-profiles.md +92 -0
  85. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  86. package/get-shit-done/references/planning-config.md +196 -0
  87. package/get-shit-done/references/questioning.md +145 -0
  88. package/get-shit-done/references/tdd.md +263 -0
  89. package/get-shit-done/references/ui-brand.md +160 -0
  90. package/get-shit-done/references/verification-patterns.md +612 -0
  91. package/get-shit-done/templates/DEBUG.md +159 -0
  92. package/get-shit-done/templates/UAT.md +247 -0
  93. package/get-shit-done/templates/codebase/architecture.md +255 -0
  94. package/get-shit-done/templates/codebase/concerns.md +310 -0
  95. package/get-shit-done/templates/codebase/conventions.md +307 -0
  96. package/get-shit-done/templates/codebase/integrations.md +280 -0
  97. package/get-shit-done/templates/codebase/stack.md +186 -0
  98. package/get-shit-done/templates/codebase/structure.md +285 -0
  99. package/get-shit-done/templates/codebase/testing.md +480 -0
  100. package/get-shit-done/templates/config.json +36 -0
  101. package/get-shit-done/templates/context.md +283 -0
  102. package/get-shit-done/templates/continue-here.md +78 -0
  103. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  104. package/get-shit-done/templates/discovery.md +146 -0
  105. package/get-shit-done/templates/milestone-archive.md +123 -0
  106. package/get-shit-done/templates/milestone.md +115 -0
  107. package/get-shit-done/templates/phase-prompt.md +567 -0
  108. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  109. package/get-shit-done/templates/project.md +184 -0
  110. package/get-shit-done/templates/requirements.md +231 -0
  111. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  112. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  113. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  114. package/get-shit-done/templates/research-project/STACK.md +120 -0
  115. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  116. package/get-shit-done/templates/research.md +552 -0
  117. package/get-shit-done/templates/roadmap.md +202 -0
  118. package/get-shit-done/templates/state.md +176 -0
  119. package/get-shit-done/templates/summary-complex.md +59 -0
  120. package/get-shit-done/templates/summary-minimal.md +41 -0
  121. package/get-shit-done/templates/summary-standard.md +48 -0
  122. package/get-shit-done/templates/summary.md +246 -0
  123. package/get-shit-done/templates/user-setup.md +311 -0
  124. package/get-shit-done/templates/verification-report.md +322 -0
  125. package/get-shit-done/workflows/add-phase.md +111 -0
  126. package/get-shit-done/workflows/add-todo.md +157 -0
  127. package/get-shit-done/workflows/audit-milestone.md +242 -0
  128. package/get-shit-done/workflows/check-todos.md +176 -0
  129. package/get-shit-done/workflows/cleanup.md +152 -0
  130. package/get-shit-done/workflows/complete-milestone.md +674 -0
  131. package/get-shit-done/workflows/diagnose-issues.md +219 -0
  132. package/get-shit-done/workflows/discovery-phase.md +289 -0
  133. package/get-shit-done/workflows/discuss-phase.md +485 -0
  134. package/get-shit-done/workflows/execute-phase.md +408 -0
  135. package/get-shit-done/workflows/execute-plan.md +441 -0
  136. package/get-shit-done/workflows/health.md +156 -0
  137. package/get-shit-done/workflows/help.md +486 -0
  138. package/get-shit-done/workflows/insert-phase.md +129 -0
  139. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  140. package/get-shit-done/workflows/map-codebase.md +327 -0
  141. package/get-shit-done/workflows/new-milestone.md +373 -0
  142. package/get-shit-done/workflows/new-project.md +1113 -0
  143. package/get-shit-done/workflows/pause-work.md +122 -0
  144. package/get-shit-done/workflows/plan-milestone-gaps.md +256 -0
  145. package/get-shit-done/workflows/plan-phase.md +448 -0
  146. package/get-shit-done/workflows/progress.md +393 -0
  147. package/get-shit-done/workflows/quick.md +444 -0
  148. package/get-shit-done/workflows/remove-phase.md +154 -0
  149. package/get-shit-done/workflows/research-phase.md +74 -0
  150. package/get-shit-done/workflows/resume-project.md +306 -0
  151. package/get-shit-done/workflows/set-profile.md +80 -0
  152. package/get-shit-done/workflows/settings.md +200 -0
  153. package/get-shit-done/workflows/transition.md +539 -0
  154. package/get-shit-done/workflows/update.md +214 -0
  155. package/get-shit-done/workflows/verify-phase.md +242 -0
  156. package/get-shit-done/workflows/verify-work.md +570 -0
  157. package/hooks/dist/gsd-check-update.js +62 -0
  158. package/hooks/dist/gsd-statusline.js +91 -0
  159. package/package.json +54 -0
  160. package/scripts/build-hooks.js +42 -0
@@ -0,0 +1,373 @@
1
+ <purpose>
2
+
3
+ Start a new milestone cycle for an existing project. Loads project context, gathers milestone goals (from MILESTONE-CONTEXT.md or conversation), updates PROJECT.md and STATE.md, optionally runs parallel research, defines scoped requirements with REQ-IDs, spawns the roadmapper to create phased execution plan, and commits all artifacts. Brownfield equivalent of new-project.
4
+
5
+ </purpose>
6
+
7
+ <required_reading>
8
+
9
+ Read all files referenced by the invoking prompt's execution_context before starting.
10
+
11
+ </required_reading>
12
+
13
+ <process>
14
+
15
+ ## 1. Load Context
16
+
17
+ - Read PROJECT.md (existing project, validated requirements, decisions)
18
+ - Read MILESTONES.md (what shipped previously)
19
+ - Read STATE.md (pending todos, blockers)
20
+ - Check for MILESTONE-CONTEXT.md (from /gsd:discuss-milestone)
21
+
22
+ ## 2. Gather Milestone Goals
23
+
24
+ **If MILESTONE-CONTEXT.md exists:**
25
+ - Use features and scope from discuss-milestone
26
+ - Present summary for confirmation
27
+
28
+ **If no context file:**
29
+ - Present what shipped in last milestone
30
+ - Ask: "What do you want to build next?"
31
+ - Use AskUserQuestion to explore features, priorities, constraints, scope
32
+
33
+ ## 3. Determine Milestone Version
34
+
35
+ - Parse last version from MILESTONES.md
36
+ - Suggest next version (v1.0 → v1.1, or v2.0 for major)
37
+ - Confirm with user
38
+
39
+ ## 4. Update PROJECT.md
40
+
41
+ Add/update:
42
+
43
+ ```markdown
44
+ ## Current Milestone: v[X.Y] [Name]
45
+
46
+ **Goal:** [One sentence describing milestone focus]
47
+
48
+ **Target features:**
49
+ - [Feature 1]
50
+ - [Feature 2]
51
+ - [Feature 3]
52
+ ```
53
+
54
+ Update Active requirements section and "Last updated" footer.
55
+
56
+ ## 5. Update STATE.md
57
+
58
+ ```markdown
59
+ ## Current Position
60
+
61
+ Phase: Not started (defining requirements)
62
+ Plan: —
63
+ Status: Defining requirements
64
+ Last activity: [today] — Milestone v[X.Y] started
65
+ ```
66
+
67
+ Keep Accumulated Context section from previous milestone.
68
+
69
+ ## 6. Cleanup and Commit
70
+
71
+ Delete MILESTONE-CONTEXT.md if exists (consumed).
72
+
73
+ ```bash
74
+ node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: start milestone v[X.Y] [Name]" --files .planning/PROJECT.md .planning/STATE.md
75
+ ```
76
+
77
+ ## 7. Load Context and Resolve Models
78
+
79
+ ```bash
80
+ INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init new-milestone)
81
+ ```
82
+
83
+ Extract from init JSON: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `research_enabled`, `current_milestone`, `project_exists`, `roadmap_exists`.
84
+
85
+ ## 8. Research Decision
86
+
87
+ AskUserQuestion: "Research the domain ecosystem for new features before defining requirements?"
88
+ - "Research first (Recommended)" — Discover patterns, features, architecture for NEW capabilities
89
+ - "Skip research" — Go straight to requirements
90
+
91
+ **Persist choice to config** (so future `/gsd:plan-phase` honors it):
92
+
93
+ ```bash
94
+ # If "Research first": persist true
95
+ node ~/.claude/get-shit-done/bin/gsd-tools.cjs config-set workflow.research true
96
+
97
+ # If "Skip research": persist false
98
+ node ~/.claude/get-shit-done/bin/gsd-tools.cjs config-set workflow.research false
99
+ ```
100
+
101
+ **If "Research first":**
102
+
103
+ ```
104
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
105
+ GSD ► RESEARCHING
106
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
107
+
108
+ ◆ Spawning 4 researchers in parallel...
109
+ → Stack, Features, Architecture, Pitfalls
110
+ ```
111
+
112
+ ```bash
113
+ mkdir -p .planning/research
114
+ ```
115
+
116
+ Spawn 4 parallel gsd-project-researcher agents. Each uses this template with dimension-specific fields:
117
+
118
+ **Common structure for all 4 researchers:**
119
+ ```
120
+ Task(prompt="
121
+ <research_type>Project Research — {DIMENSION} for [new features].</research_type>
122
+
123
+ <milestone_context>
124
+ SUBSEQUENT MILESTONE — Adding [target features] to existing app.
125
+ {EXISTING_CONTEXT}
126
+ Focus ONLY on what's needed for the NEW features.
127
+ </milestone_context>
128
+
129
+ <question>{QUESTION}</question>
130
+
131
+ <project_context>[PROJECT.md summary]</project_context>
132
+
133
+ <downstream_consumer>{CONSUMER}</downstream_consumer>
134
+
135
+ <quality_gate>{GATES}</quality_gate>
136
+
137
+ <output>
138
+ Write to: .planning/research/{FILE}
139
+ Use template: ~/.claude/get-shit-done/templates/research-project/{FILE}
140
+ </output>
141
+ ", subagent_type="gsd-project-researcher", model="{researcher_model}", description="{DIMENSION} research")
142
+ ```
143
+
144
+ **Dimension-specific fields:**
145
+
146
+ | Field | Stack | Features | Architecture | Pitfalls |
147
+ |-------|-------|----------|-------------|----------|
148
+ | EXISTING_CONTEXT | Existing validated capabilities (DO NOT re-research): [from PROJECT.md] | Existing features (already built): [from PROJECT.md] | Existing architecture: [from PROJECT.md or codebase map] | Focus on common mistakes when ADDING these features to existing system |
149
+ | QUESTION | What stack additions/changes are needed for [new features]? | How do [target features] typically work? Expected behavior? | How do [target features] integrate with existing architecture? | Common mistakes when adding [target features] to [domain]? |
150
+ | CONSUMER | Specific libraries with versions for NEW capabilities, integration points, what NOT to add | Table stakes vs differentiators vs anti-features, complexity noted, dependencies on existing | Integration points, new components, data flow changes, suggested build order | Warning signs, prevention strategy, which phase should address it |
151
+ | GATES | Versions current (verify with Context7), rationale explains WHY, integration considered | Categories clear, complexity noted, dependencies identified | Integration points identified, new vs modified explicit, build order considers deps | Pitfalls specific to adding these features, integration pitfalls covered, prevention actionable |
152
+ | FILE | STACK.md | FEATURES.md | ARCHITECTURE.md | PITFALLS.md |
153
+
154
+ After all 4 complete, spawn synthesizer:
155
+
156
+ ```
157
+ Task(prompt="
158
+ Synthesize research outputs into SUMMARY.md.
159
+
160
+ Read: .planning/research/STACK.md, FEATURES.md, ARCHITECTURE.md, PITFALLS.md
161
+
162
+ Write to: .planning/research/SUMMARY.md
163
+ Use template: ~/.claude/get-shit-done/templates/research-project/SUMMARY.md
164
+ Commit after writing.
165
+ ", subagent_type="gsd-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
166
+ ```
167
+
168
+ Display key findings from SUMMARY.md:
169
+ ```
170
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
171
+ GSD ► RESEARCH COMPLETE ✓
172
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
173
+
174
+ **Stack additions:** [from SUMMARY.md]
175
+ **Feature table stakes:** [from SUMMARY.md]
176
+ **Watch Out For:** [from SUMMARY.md]
177
+ ```
178
+
179
+ **If "Skip research":** Continue to Step 9.
180
+
181
+ ## 9. Define Requirements
182
+
183
+ ```
184
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
185
+ GSD ► DEFINING REQUIREMENTS
186
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
187
+ ```
188
+
189
+ Read PROJECT.md: core value, current milestone goals, validated requirements (what exists).
190
+
191
+ **If research exists:** Read FEATURES.md, extract feature categories.
192
+
193
+ Present features by category:
194
+ ```
195
+ ## [Category 1]
196
+ **Table stakes:** Feature A, Feature B
197
+ **Differentiators:** Feature C, Feature D
198
+ **Research notes:** [any relevant notes]
199
+ ```
200
+
201
+ **If no research:** Gather requirements through conversation. Ask: "What are the main things users need to do with [new features]?" Clarify, probe for related capabilities, group into categories.
202
+
203
+ **Scope each category** via AskUserQuestion (multiSelect: true, header max 12 chars):
204
+ - "[Feature 1]" — [brief description]
205
+ - "[Feature 2]" — [brief description]
206
+ - "None for this milestone" — Defer entire category
207
+
208
+ Track: Selected → this milestone. Unselected table stakes → future. Unselected differentiators → out of scope.
209
+
210
+ **Identify gaps** via AskUserQuestion:
211
+ - "No, research covered it" — Proceed
212
+ - "Yes, let me add some" — Capture additions
213
+
214
+ **Generate REQUIREMENTS.md:**
215
+ - v1 Requirements grouped by category (checkboxes, REQ-IDs)
216
+ - Future Requirements (deferred)
217
+ - Out of Scope (explicit exclusions with reasoning)
218
+ - Traceability section (empty, filled by roadmap)
219
+
220
+ **REQ-ID format:** `[CATEGORY]-[NUMBER]` (AUTH-01, NOTIF-02). Continue numbering from existing.
221
+
222
+ **Requirement quality criteria:**
223
+
224
+ Good requirements are:
225
+ - **Specific and testable:** "User can reset password via email link" (not "Handle password reset")
226
+ - **User-centric:** "User can X" (not "System does Y")
227
+ - **Atomic:** One capability per requirement (not "User can login and manage profile")
228
+ - **Independent:** Minimal dependencies on other requirements
229
+
230
+ Present FULL requirements list for confirmation:
231
+
232
+ ```
233
+ ## Milestone v[X.Y] Requirements
234
+
235
+ ### [Category 1]
236
+ - [ ] **CAT1-01**: User can do X
237
+ - [ ] **CAT1-02**: User can do Y
238
+
239
+ ### [Category 2]
240
+ - [ ] **CAT2-01**: User can do Z
241
+
242
+ Does this capture what you're building? (yes / adjust)
243
+ ```
244
+
245
+ If "adjust": Return to scoping.
246
+
247
+ **Commit requirements:**
248
+ ```bash
249
+ node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: define milestone v[X.Y] requirements" --files .planning/REQUIREMENTS.md
250
+ ```
251
+
252
+ ## 10. Create Roadmap
253
+
254
+ ```
255
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
256
+ GSD ► CREATING ROADMAP
257
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
258
+
259
+ ◆ Spawning roadmapper...
260
+ ```
261
+
262
+ **Starting phase number:** Read MILESTONES.md for last phase number. Continue from there (v1.0 ended at phase 5 → v1.1 starts at phase 6).
263
+
264
+ ```
265
+ Task(prompt="
266
+ <planning_context>
267
+ @.planning/PROJECT.md
268
+ @.planning/REQUIREMENTS.md
269
+ @.planning/research/SUMMARY.md (if exists)
270
+ @.planning/config.json
271
+ @.planning/MILESTONES.md
272
+ </planning_context>
273
+
274
+ <instructions>
275
+ Create roadmap for milestone v[X.Y]:
276
+ 1. Start phase numbering from [N]
277
+ 2. Derive phases from THIS MILESTONE's requirements only
278
+ 3. Map every requirement to exactly one phase
279
+ 4. Derive 2-5 success criteria per phase (observable user behaviors)
280
+ 5. Validate 100% coverage
281
+ 6. Write files immediately (ROADMAP.md, STATE.md, update REQUIREMENTS.md traceability)
282
+ 7. Return ROADMAP CREATED with summary
283
+
284
+ Write files first, then return.
285
+ </instructions>
286
+ ", subagent_type="gsd-roadmapper", model="{roadmapper_model}", description="Create roadmap")
287
+ ```
288
+
289
+ **Handle return:**
290
+
291
+ **If `## ROADMAP BLOCKED`:** Present blocker, work with user, re-spawn.
292
+
293
+ **If `## ROADMAP CREATED`:** Read ROADMAP.md, present inline:
294
+
295
+ ```
296
+ ## Proposed Roadmap
297
+
298
+ **[N] phases** | **[X] requirements mapped** | All covered ✓
299
+
300
+ | # | Phase | Goal | Requirements | Success Criteria |
301
+ |---|-------|------|--------------|------------------|
302
+ | [N] | [Name] | [Goal] | [REQ-IDs] | [count] |
303
+
304
+ ### Phase Details
305
+
306
+ **Phase [N]: [Name]**
307
+ Goal: [goal]
308
+ Requirements: [REQ-IDs]
309
+ Success criteria:
310
+ 1. [criterion]
311
+ 2. [criterion]
312
+ ```
313
+
314
+ **Ask for approval** via AskUserQuestion:
315
+ - "Approve" — Commit and continue
316
+ - "Adjust phases" — Tell me what to change
317
+ - "Review full file" — Show raw ROADMAP.md
318
+
319
+ **If "Adjust":** Get notes, re-spawn roadmapper with revision context, loop until approved.
320
+ **If "Review":** Display raw ROADMAP.md, re-ask.
321
+
322
+ **Commit roadmap** (after approval):
323
+ ```bash
324
+ node ~/.claude/get-shit-done/bin/gsd-tools.cjs commit "docs: create milestone v[X.Y] roadmap ([N] phases)" --files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md
325
+ ```
326
+
327
+ ## 11. Done
328
+
329
+ ```
330
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
331
+ GSD ► MILESTONE INITIALIZED ✓
332
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
333
+
334
+ **Milestone v[X.Y]: [Name]**
335
+
336
+ | Artifact | Location |
337
+ |----------------|-----------------------------|
338
+ | Project | `.planning/PROJECT.md` |
339
+ | Research | `.planning/research/` |
340
+ | Requirements | `.planning/REQUIREMENTS.md` |
341
+ | Roadmap | `.planning/ROADMAP.md` |
342
+
343
+ **[N] phases** | **[X] requirements** | Ready to build ✓
344
+
345
+ ## ▶ Next Up
346
+
347
+ **Phase [N]: [Phase Name]** — [Goal]
348
+
349
+ `/gsd:discuss-phase [N]` — gather context and clarify approach
350
+
351
+ <sub>`/clear` first → fresh context window</sub>
352
+
353
+ Also: `/gsd:plan-phase [N]` — skip discussion, plan directly
354
+ ```
355
+
356
+ </process>
357
+
358
+ <success_criteria>
359
+ - [ ] PROJECT.md updated with Current Milestone section
360
+ - [ ] STATE.md reset for new milestone
361
+ - [ ] MILESTONE-CONTEXT.md consumed and deleted (if existed)
362
+ - [ ] Research completed (if selected) — 4 parallel agents, milestone-aware
363
+ - [ ] Requirements gathered and scoped per category
364
+ - [ ] REQUIREMENTS.md created with REQ-IDs
365
+ - [ ] gsd-roadmapper spawned with phase numbering context
366
+ - [ ] Roadmap files written immediately (not draft)
367
+ - [ ] User feedback incorporated (if any)
368
+ - [ ] ROADMAP.md phases continue from previous milestone
369
+ - [ ] All commits made (if planning docs committed)
370
+ - [ ] User knows next step: `/gsd:discuss-phase [N]`
371
+
372
+ **Atomic commits:** Each phase commits its artifacts immediately.
373
+ </success_criteria>