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,486 @@
1
+ <purpose>
2
+ Display the complete GSD command reference. Output ONLY the reference content. Do NOT add project-specific analysis, git status, next-step suggestions, or any commentary beyond the reference.
3
+ </purpose>
4
+
5
+ <reference>
6
+ # GSD Command Reference
7
+
8
+ **GSD** (Get Shit Done) creates hierarchical project plans optimized for solo agentic development with Claude Code.
9
+
10
+ ## Quick Start
11
+
12
+ 1. `/gsd:new-project` - Initialize project (includes research, requirements, roadmap)
13
+ 2. `/gsd:plan-phase 1` - Create detailed plan for first phase
14
+ 3. `/gsd:execute-phase 1` - Execute the phase
15
+
16
+ ## Staying Updated
17
+
18
+ GSD evolves fast. Update periodically:
19
+
20
+ ```bash
21
+ npx --yes --package=gsd-codex-cli@latest get-shit-done-cc
22
+ ```
23
+
24
+ ## Core Workflow
25
+
26
+ ```
27
+ /gsd:new-project → /gsd:plan-phase → /gsd:execute-phase → repeat
28
+ ```
29
+
30
+ ### Project Initialization
31
+
32
+ **`/gsd:new-project`**
33
+ Initialize new project through unified flow.
34
+
35
+ One command takes you from idea to ready-for-planning:
36
+ - Deep questioning to understand what you're building
37
+ - Optional domain research (spawns 4 parallel researcher agents)
38
+ - Requirements definition with v1/v2/out-of-scope scoping
39
+ - Roadmap creation with phase breakdown and success criteria
40
+
41
+ Creates all `.planning/` artifacts:
42
+ - `PROJECT.md` — vision and requirements
43
+ - `config.json` — workflow mode (interactive/yolo)
44
+ - `research/` — domain research (if selected)
45
+ - `REQUIREMENTS.md` — scoped requirements with REQ-IDs
46
+ - `ROADMAP.md` — phases mapped to requirements
47
+ - `STATE.md` — project memory
48
+
49
+ Usage: `/gsd:new-project`
50
+
51
+ **`/gsd:map-codebase`**
52
+ Map an existing codebase for brownfield projects.
53
+
54
+ - Analyzes codebase with parallel Explore agents
55
+ - Creates `.planning/codebase/` with 7 focused documents
56
+ - Covers stack, architecture, structure, conventions, testing, integrations, concerns
57
+ - Use before `/gsd:new-project` on existing codebases
58
+
59
+ Usage: `/gsd:map-codebase`
60
+
61
+ ### Phase Planning
62
+
63
+ **`/gsd:discuss-phase <number>`**
64
+ Help articulate your vision for a phase before planning.
65
+
66
+ - Captures how you imagine this phase working
67
+ - Creates CONTEXT.md with your vision, essentials, and boundaries
68
+ - Use when you have ideas about how something should look/feel
69
+
70
+ Usage: `/gsd:discuss-phase 2`
71
+
72
+ **`/gsd:research-phase <number>`**
73
+ Comprehensive ecosystem research for niche/complex domains.
74
+
75
+ - Discovers standard stack, architecture patterns, pitfalls
76
+ - Creates RESEARCH.md with "how experts build this" knowledge
77
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
78
+ - Goes beyond "which library" to ecosystem knowledge
79
+
80
+ Usage: `/gsd:research-phase 3`
81
+
82
+ **`/gsd:list-phase-assumptions <number>`**
83
+ See what Claude is planning to do before it starts.
84
+
85
+ - Shows Claude's intended approach for a phase
86
+ - Lets you course-correct if Claude misunderstood your vision
87
+ - No files created - conversational output only
88
+
89
+ Usage: `/gsd:list-phase-assumptions 3`
90
+
91
+ **`/gsd:plan-phase <number>`**
92
+ Create detailed execution plan for a specific phase.
93
+
94
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
95
+ - Breaks phase into concrete, actionable tasks
96
+ - Includes verification criteria and success measures
97
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
98
+
99
+ Usage: `/gsd:plan-phase 1`
100
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
101
+
102
+ ### Execution
103
+
104
+ **`/gsd:execute-phase <phase-number>`**
105
+ Execute all plans in a phase.
106
+
107
+ - Groups plans by wave (from frontmatter), executes waves sequentially
108
+ - Plans within each wave run in parallel via Task tool
109
+ - Verifies phase goal after all plans complete
110
+ - Updates REQUIREMENTS.md, ROADMAP.md, STATE.md
111
+
112
+ Usage: `/gsd:execute-phase 5`
113
+
114
+ ### Quick Mode
115
+
116
+ **`/gsd:quick`**
117
+ Execute small, ad-hoc tasks with GSD guarantees but skip optional agents.
118
+
119
+ Quick mode uses the same system with a shorter path:
120
+ - Spawns planner + executor (skips researcher, checker, verifier)
121
+ - Quick tasks live in `.planning/quick/` separate from planned phases
122
+ - Updates STATE.md tracking (not ROADMAP.md)
123
+
124
+ Use when you know exactly what to do and the task is small enough to not need research or verification.
125
+
126
+ Usage: `/gsd:quick`
127
+ Result: Creates `.planning/quick/NNN-slug/PLAN.md`, `.planning/quick/NNN-slug/SUMMARY.md`
128
+
129
+ ### Roadmap Management
130
+
131
+ **`/gsd:add-phase <description>`**
132
+ Add new phase to end of current milestone.
133
+
134
+ - Appends to ROADMAP.md
135
+ - Uses next sequential number
136
+ - Updates phase directory structure
137
+
138
+ Usage: `/gsd:add-phase "Add admin dashboard"`
139
+
140
+ **`/gsd:insert-phase <after> <description>`**
141
+ Insert urgent work as decimal phase between existing phases.
142
+
143
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
144
+ - Useful for discovered work that must happen mid-milestone
145
+ - Maintains phase ordering
146
+
147
+ Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
148
+ Result: Creates Phase 7.1
149
+
150
+ **`/gsd:remove-phase <number>`**
151
+ Remove a future phase and renumber subsequent phases.
152
+
153
+ - Deletes phase directory and all references
154
+ - Renumbers all subsequent phases to close the gap
155
+ - Only works on future (unstarted) phases
156
+ - Git commit preserves historical record
157
+
158
+ Usage: `/gsd:remove-phase 17`
159
+ Result: Phase 17 deleted, phases 18-20 become 17-19
160
+
161
+ ### Milestone Management
162
+
163
+ **`/gsd:new-milestone <name>`**
164
+ Start a new milestone through unified flow.
165
+
166
+ - Deep questioning to understand what you're building next
167
+ - Optional domain research (spawns 4 parallel researcher agents)
168
+ - Requirements definition with scoping
169
+ - Roadmap creation with phase breakdown
170
+
171
+ Mirrors `/gsd:new-project` flow for brownfield projects (existing PROJECT.md).
172
+
173
+ Usage: `/gsd:new-milestone "v2.0 Features"`
174
+
175
+ **`/gsd:complete-milestone <version>`**
176
+ Archive completed milestone and prepare for next version.
177
+
178
+ - Creates MILESTONES.md entry with stats
179
+ - Archives full details to milestones/ directory
180
+ - Creates git tag for the release
181
+ - Prepares workspace for next version
182
+
183
+ Usage: `/gsd:complete-milestone 1.0.0`
184
+
185
+ ### Progress Tracking
186
+
187
+ **`/gsd:progress`**
188
+ Check project status and intelligently route to next action.
189
+
190
+ - Shows visual progress bar and completion percentage
191
+ - Summarizes recent work from SUMMARY files
192
+ - Displays current position and what's next
193
+ - Lists key decisions and open issues
194
+ - Offers to execute next plan or create it if missing
195
+ - Detects 100% milestone completion
196
+
197
+ Usage: `/gsd:progress`
198
+
199
+ ### Session Management
200
+
201
+ **`/gsd:resume-work`**
202
+ Resume work from previous session with full context restoration.
203
+
204
+ - Reads STATE.md for project context
205
+ - Shows current position and recent progress
206
+ - Offers next actions based on project state
207
+
208
+ Usage: `/gsd:resume-work`
209
+
210
+ **`/gsd:pause-work`**
211
+ Create context handoff when pausing work mid-phase.
212
+
213
+ - Creates .continue-here file with current state
214
+ - Updates STATE.md session continuity section
215
+ - Captures in-progress work context
216
+
217
+ Usage: `/gsd:pause-work`
218
+
219
+ ### Debugging
220
+
221
+ **`/gsd:debug [issue description]`**
222
+ Systematic debugging with persistent state across context resets.
223
+
224
+ - Gathers symptoms through adaptive questioning
225
+ - Creates `.planning/debug/[slug].md` to track investigation
226
+ - Investigates using scientific method (evidence → hypothesis → test)
227
+ - Survives `/clear` — run `/gsd:debug` with no args to resume
228
+ - Archives resolved issues to `.planning/debug/resolved/`
229
+
230
+ Usage: `/gsd:debug "login button doesn't work"`
231
+ Usage: `/gsd:debug` (resume active session)
232
+
233
+ ### Todo Management
234
+
235
+ **`/gsd:add-todo [description]`**
236
+ Capture idea or task as todo from current conversation.
237
+
238
+ - Extracts context from conversation (or uses provided description)
239
+ - Creates structured todo file in `.planning/todos/pending/`
240
+ - Infers area from file paths for grouping
241
+ - Checks for duplicates before creating
242
+ - Updates STATE.md todo count
243
+
244
+ Usage: `/gsd:add-todo` (infers from conversation)
245
+ Usage: `/gsd:add-todo Add auth token refresh`
246
+
247
+ **`/gsd:check-todos [area]`**
248
+ List pending todos and select one to work on.
249
+
250
+ - Lists all pending todos with title, area, age
251
+ - Optional area filter (e.g., `/gsd:check-todos api`)
252
+ - Loads full context for selected todo
253
+ - Routes to appropriate action (work now, add to phase, brainstorm)
254
+ - Moves todo to done/ when work begins
255
+
256
+ Usage: `/gsd:check-todos`
257
+ Usage: `/gsd:check-todos api`
258
+
259
+ ### User Acceptance Testing
260
+
261
+ **`/gsd:verify-work [phase]`**
262
+ Validate built features through conversational UAT.
263
+
264
+ - Extracts testable deliverables from SUMMARY.md files
265
+ - Presents tests one at a time (yes/no responses)
266
+ - Automatically diagnoses failures and creates fix plans
267
+ - Ready for re-execution if issues found
268
+
269
+ Usage: `/gsd:verify-work 3`
270
+
271
+ ### Milestone Auditing
272
+
273
+ **`/gsd:audit-milestone [version]`**
274
+ Audit milestone completion against original intent.
275
+
276
+ - Reads all phase VERIFICATION.md files
277
+ - Checks requirements coverage
278
+ - Spawns integration checker for cross-phase wiring
279
+ - Creates MILESTONE-AUDIT.md with gaps and tech debt
280
+
281
+ Usage: `/gsd:audit-milestone`
282
+
283
+ **`/gsd:plan-milestone-gaps`**
284
+ Create phases to close gaps identified by audit.
285
+
286
+ - Reads MILESTONE-AUDIT.md and groups gaps into phases
287
+ - Prioritizes by requirement priority (must/should/nice)
288
+ - Adds gap closure phases to ROADMAP.md
289
+ - Ready for `/gsd:plan-phase` on new phases
290
+
291
+ Usage: `/gsd:plan-milestone-gaps`
292
+
293
+ ### Configuration
294
+
295
+ **`/gsd:settings`**
296
+ Configure workflow toggles and model profile interactively.
297
+
298
+ - Toggle researcher, plan checker, verifier agents
299
+ - Select model profile (quality/balanced/budget)
300
+ - Updates `.planning/config.json`
301
+
302
+ Usage: `/gsd:settings`
303
+
304
+ **`/gsd:set-profile <profile>`**
305
+ Quick switch model profile for GSD agents.
306
+
307
+ - `quality` — Opus everywhere except verification
308
+ - `balanced` — Opus for planning, Sonnet for execution (default)
309
+ - `budget` — Sonnet for writing, Haiku for research/verification
310
+
311
+ Usage: `/gsd:set-profile budget`
312
+
313
+ ### Utility Commands
314
+
315
+ **`/gsd:cleanup`**
316
+ Archive accumulated phase directories from completed milestones.
317
+
318
+ - Identifies phases from completed milestones still in `.planning/phases/`
319
+ - Shows dry-run summary before moving anything
320
+ - Moves phase dirs to `.planning/milestones/v{X.Y}-phases/`
321
+ - Use after multiple milestones to reduce `.planning/phases/` clutter
322
+
323
+ Usage: `/gsd:cleanup`
324
+
325
+ **`/gsd:help`**
326
+ Show this command reference.
327
+
328
+ **`/gsd:update`**
329
+ Update GSD to latest version with changelog preview.
330
+
331
+ - Shows installed vs latest version comparison
332
+ - Displays changelog entries for versions you've missed
333
+ - Highlights breaking changes
334
+ - Confirms before running install
335
+ - Better than raw `npx --yes --package=gsd-codex-cli@latest get-shit-done-cc`
336
+
337
+ Usage: `/gsd:update`
338
+
339
+ **`/gsd:join-discord`**
340
+ Join the GSD Discord community.
341
+
342
+ - Get help, share what you're building, stay updated
343
+ - Connect with other GSD users
344
+
345
+ Usage: `/gsd:join-discord`
346
+
347
+ ## Files & Structure
348
+
349
+ ```
350
+ .planning/
351
+ ├── PROJECT.md # Project vision
352
+ ├── ROADMAP.md # Current phase breakdown
353
+ ├── STATE.md # Project memory & context
354
+ ├── config.json # Workflow mode & gates
355
+ ├── todos/ # Captured ideas and tasks
356
+ │ ├── pending/ # Todos waiting to be worked on
357
+ │ └── done/ # Completed todos
358
+ ├── debug/ # Active debug sessions
359
+ │ └── resolved/ # Archived resolved issues
360
+ ├── milestones/
361
+ │ ├── v1.0-ROADMAP.md # Archived roadmap snapshot
362
+ │ ├── v1.0-REQUIREMENTS.md # Archived requirements
363
+ │ └── v1.0-phases/ # Archived phase dirs (via /gsd:cleanup or --archive-phases)
364
+ │ ├── 01-foundation/
365
+ │ └── 02-core-features/
366
+ ├── codebase/ # Codebase map (brownfield projects)
367
+ │ ├── STACK.md # Languages, frameworks, dependencies
368
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
369
+ │ ├── STRUCTURE.md # Directory layout, key files
370
+ │ ├── CONVENTIONS.md # Coding standards, naming
371
+ │ ├── TESTING.md # Test setup, patterns
372
+ │ ├── INTEGRATIONS.md # External services, APIs
373
+ │ └── CONCERNS.md # Tech debt, known issues
374
+ └── phases/
375
+ ├── 01-foundation/
376
+ │ ├── 01-01-PLAN.md
377
+ │ └── 01-01-SUMMARY.md
378
+ └── 02-core-features/
379
+ ├── 02-01-PLAN.md
380
+ └── 02-01-SUMMARY.md
381
+ ```
382
+
383
+ ## Workflow Modes
384
+
385
+ Set during `/gsd:new-project`:
386
+
387
+ **Interactive Mode**
388
+
389
+ - Confirms each major decision
390
+ - Pauses at checkpoints for approval
391
+ - More guidance throughout
392
+
393
+ **YOLO Mode**
394
+
395
+ - Auto-approves most decisions
396
+ - Executes plans without confirmation
397
+ - Only stops for critical checkpoints
398
+
399
+ Change anytime by editing `.planning/config.json`
400
+
401
+ ## Planning Configuration
402
+
403
+ Configure how planning artifacts are managed in `.planning/config.json`:
404
+
405
+ **`planning.commit_docs`** (default: `true`)
406
+ - `true`: Planning artifacts committed to git (standard workflow)
407
+ - `false`: Planning artifacts kept local-only, not committed
408
+
409
+ When `commit_docs: false`:
410
+ - Add `.planning/` to your `.gitignore`
411
+ - Useful for OSS contributions, client projects, or keeping planning private
412
+ - All planning files still work normally, just not tracked in git
413
+
414
+ **`planning.search_gitignored`** (default: `false`)
415
+ - `true`: Add `--no-ignore` to broad ripgrep searches
416
+ - Only needed when `.planning/` is gitignored and you want project-wide searches to include it
417
+
418
+ Example config:
419
+ ```json
420
+ {
421
+ "planning": {
422
+ "commit_docs": false,
423
+ "search_gitignored": true
424
+ }
425
+ }
426
+ ```
427
+
428
+ ## Common Workflows
429
+
430
+ **Starting a new project:**
431
+
432
+ ```
433
+ /gsd:new-project # Unified flow: questioning → research → requirements → roadmap
434
+ /clear
435
+ /gsd:plan-phase 1 # Create plans for first phase
436
+ /clear
437
+ /gsd:execute-phase 1 # Execute all plans in phase
438
+ ```
439
+
440
+ **Resuming work after a break:**
441
+
442
+ ```
443
+ /gsd:progress # See where you left off and continue
444
+ ```
445
+
446
+ **Adding urgent mid-milestone work:**
447
+
448
+ ```
449
+ /gsd:insert-phase 5 "Critical security fix"
450
+ /gsd:plan-phase 5.1
451
+ /gsd:execute-phase 5.1
452
+ ```
453
+
454
+ **Completing a milestone:**
455
+
456
+ ```
457
+ /gsd:complete-milestone 1.0.0
458
+ /clear
459
+ /gsd:new-milestone # Start next milestone (questioning → research → requirements → roadmap)
460
+ ```
461
+
462
+ **Capturing ideas during work:**
463
+
464
+ ```
465
+ /gsd:add-todo # Capture from conversation context
466
+ /gsd:add-todo Fix modal z-index # Capture with explicit description
467
+ /gsd:check-todos # Review and work on todos
468
+ /gsd:check-todos api # Filter by area
469
+ ```
470
+
471
+ **Debugging an issue:**
472
+
473
+ ```
474
+ /gsd:debug "form submission fails silently" # Start debug session
475
+ # ... investigation happens, context fills up ...
476
+ /clear
477
+ /gsd:debug # Resume from where you left off
478
+ ```
479
+
480
+ ## Getting Help
481
+
482
+ - Read `.planning/PROJECT.md` for project vision
483
+ - Read `.planning/STATE.md` for current context
484
+ - Check `.planning/ROADMAP.md` for phase status
485
+ - Run `/gsd:progress` to check where you're up to
486
+ </reference>
@@ -0,0 +1,129 @@
1
+ <purpose>
2
+ Insert a decimal phase for urgent work discovered mid-milestone between existing integer phases. Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions without renumbering the entire roadmap.
3
+ </purpose>
4
+
5
+ <required_reading>
6
+ Read all files referenced by the invoking prompt's execution_context before starting.
7
+ </required_reading>
8
+
9
+ <process>
10
+
11
+ <step name="parse_arguments">
12
+ Parse the command arguments:
13
+ - First argument: integer phase number to insert after
14
+ - Remaining arguments: phase description
15
+
16
+ Example: `/gsd:insert-phase 72 Fix critical auth bug`
17
+ -> after = 72
18
+ -> description = "Fix critical auth bug"
19
+
20
+ If arguments missing:
21
+
22
+ ```
23
+ ERROR: Both phase number and description required
24
+ Usage: /gsd:insert-phase <after> <description>
25
+ Example: /gsd:insert-phase 72 Fix critical auth bug
26
+ ```
27
+
28
+ Exit.
29
+
30
+ Validate first argument is an integer.
31
+ </step>
32
+
33
+ <step name="init_context">
34
+ Load phase operation context:
35
+
36
+ ```bash
37
+ INIT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs init phase-op "${after_phase}")
38
+ ```
39
+
40
+ Check `roadmap_exists` from init JSON. If false:
41
+ ```
42
+ ERROR: No roadmap found (.planning/ROADMAP.md)
43
+ ```
44
+ Exit.
45
+ </step>
46
+
47
+ <step name="insert_phase">
48
+ **Delegate the phase insertion to gsd-tools:**
49
+
50
+ ```bash
51
+ RESULT=$(node ~/.claude/get-shit-done/bin/gsd-tools.cjs phase insert "${after_phase}" "${description}")
52
+ ```
53
+
54
+ The CLI handles:
55
+ - Verifying target phase exists in ROADMAP.md
56
+ - Calculating next decimal phase number (checking existing decimals on disk)
57
+ - Generating slug from description
58
+ - Creating the phase directory (`.planning/phases/{N.M}-{slug}/`)
59
+ - Inserting the phase entry into ROADMAP.md after the target phase with (INSERTED) marker
60
+
61
+ Extract from result: `phase_number`, `after_phase`, `name`, `slug`, `directory`.
62
+ </step>
63
+
64
+ <step name="update_project_state">
65
+ Update STATE.md to reflect the inserted phase:
66
+
67
+ 1. Read `.planning/STATE.md`
68
+ 2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
69
+ ```
70
+ - Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)
71
+ ```
72
+
73
+ If "Roadmap Evolution" section doesn't exist, create it.
74
+ </step>
75
+
76
+ <step name="completion">
77
+ Present completion summary:
78
+
79
+ ```
80
+ Phase {decimal_phase} inserted after Phase {after_phase}:
81
+ - Description: {description}
82
+ - Directory: .planning/phases/{decimal-phase}-{slug}/
83
+ - Status: Not planned yet
84
+ - Marker: (INSERTED) - indicates urgent work
85
+
86
+ Roadmap updated: .planning/ROADMAP.md
87
+ Project state updated: .planning/STATE.md
88
+
89
+ ---
90
+
91
+ ## Next Up
92
+
93
+ **Phase {decimal_phase}: {description}** -- urgent insertion
94
+
95
+ `/gsd:plan-phase {decimal_phase}`
96
+
97
+ <sub>`/clear` first -> fresh context window</sub>
98
+
99
+ ---
100
+
101
+ **Also available:**
102
+ - Review insertion impact: Check if Phase {next_integer} dependencies still make sense
103
+ - Review roadmap
104
+
105
+ ---
106
+ ```
107
+ </step>
108
+
109
+ </process>
110
+
111
+ <anti_patterns>
112
+
113
+ - Don't use this for planned work at end of milestone (use /gsd:add-phase)
114
+ - Don't insert before Phase 1 (decimal 0.1 makes no sense)
115
+ - Don't renumber existing phases
116
+ - Don't modify the target phase content
117
+ - Don't create plans yet (that's /gsd:plan-phase)
118
+ - Don't commit changes (user decides when to commit)
119
+ </anti_patterns>
120
+
121
+ <success_criteria>
122
+ Phase insertion is complete when:
123
+
124
+ - [ ] `gsd-tools phase insert` executed successfully
125
+ - [ ] Phase directory created
126
+ - [ ] Roadmap updated with new phase entry (includes "(INSERTED)" marker)
127
+ - [ ] STATE.md updated with roadmap evolution note
128
+ - [ ] User informed of next steps and dependency implications
129
+ </success_criteria>