@m3hti/commit-genie 3.2.0 → 3.3.1

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/.claude/agents/gsd-codebase-mapper.md +764 -0
  2. package/.claude/agents/gsd-debugger.md +1246 -0
  3. package/.claude/agents/gsd-executor.md +469 -0
  4. package/.claude/agents/gsd-integration-checker.md +443 -0
  5. package/.claude/agents/gsd-phase-researcher.md +546 -0
  6. package/.claude/agents/gsd-plan-checker.md +690 -0
  7. package/.claude/agents/gsd-planner.md +1275 -0
  8. package/.claude/agents/gsd-project-researcher.md +621 -0
  9. package/.claude/agents/gsd-research-synthesizer.md +239 -0
  10. package/.claude/agents/gsd-roadmapper.md +642 -0
  11. package/.claude/agents/gsd-verifier.md +573 -0
  12. package/.claude/commands/gsd/add-phase.md +43 -0
  13. package/.claude/commands/gsd/add-tests.md +41 -0
  14. package/.claude/commands/gsd/add-todo.md +47 -0
  15. package/.claude/commands/gsd/audit-milestone.md +36 -0
  16. package/.claude/commands/gsd/check-todos.md +45 -0
  17. package/.claude/commands/gsd/cleanup.md +18 -0
  18. package/.claude/commands/gsd/complete-milestone.md +136 -0
  19. package/.claude/commands/gsd/debug.md +167 -0
  20. package/.claude/commands/gsd/discuss-phase.md +83 -0
  21. package/.claude/commands/gsd/execute-phase.md +41 -0
  22. package/.claude/commands/gsd/health.md +22 -0
  23. package/.claude/commands/gsd/help.md +22 -0
  24. package/.claude/commands/gsd/insert-phase.md +32 -0
  25. package/.claude/commands/gsd/join-discord.md +18 -0
  26. package/.claude/commands/gsd/list-phase-assumptions.md +46 -0
  27. package/.claude/commands/gsd/map-codebase.md +71 -0
  28. package/.claude/commands/gsd/new-milestone.md +44 -0
  29. package/.claude/commands/gsd/new-project.md +42 -0
  30. package/.claude/commands/gsd/new-project.md.bak +1041 -0
  31. package/.claude/commands/gsd/pause-work.md +38 -0
  32. package/.claude/commands/gsd/plan-milestone-gaps.md +34 -0
  33. package/.claude/commands/gsd/plan-phase.md +45 -0
  34. package/.claude/commands/gsd/progress.md +24 -0
  35. package/.claude/commands/gsd/quick.md +41 -0
  36. package/.claude/commands/gsd/reapply-patches.md +110 -0
  37. package/.claude/commands/gsd/remove-phase.md +31 -0
  38. package/.claude/commands/gsd/research-phase.md +189 -0
  39. package/.claude/commands/gsd/resume-work.md +40 -0
  40. package/.claude/commands/gsd/set-profile.md +34 -0
  41. package/.claude/commands/gsd/settings.md +36 -0
  42. package/.claude/commands/gsd/update.md +37 -0
  43. package/.claude/commands/gsd/verify-work.md +38 -0
  44. package/.claude/get-shit-done/VERSION +1 -0
  45. package/.claude/get-shit-done/bin/gsd-tools.cjs +588 -0
  46. package/.claude/get-shit-done/bin/lib/commands.cjs +553 -0
  47. package/.claude/get-shit-done/bin/lib/config.cjs +162 -0
  48. package/.claude/get-shit-done/bin/lib/core.cjs +411 -0
  49. package/.claude/get-shit-done/bin/lib/frontmatter.cjs +299 -0
  50. package/.claude/get-shit-done/bin/lib/init.cjs +710 -0
  51. package/.claude/get-shit-done/bin/lib/milestone.cjs +216 -0
  52. package/.claude/get-shit-done/bin/lib/phase.cjs +871 -0
  53. package/.claude/get-shit-done/bin/lib/roadmap.cjs +298 -0
  54. package/.claude/get-shit-done/bin/lib/state.cjs +679 -0
  55. package/.claude/get-shit-done/bin/lib/template.cjs +222 -0
  56. package/.claude/get-shit-done/bin/lib/verify.cjs +773 -0
  57. package/.claude/get-shit-done/references/checkpoints.md +776 -0
  58. package/.claude/get-shit-done/references/continuation-format.md +249 -0
  59. package/.claude/get-shit-done/references/decimal-phase-calculation.md +65 -0
  60. package/.claude/get-shit-done/references/git-integration.md +248 -0
  61. package/.claude/get-shit-done/references/git-planning-commit.md +38 -0
  62. package/.claude/get-shit-done/references/model-profile-resolution.md +34 -0
  63. package/.claude/get-shit-done/references/model-profiles.md +92 -0
  64. package/.claude/get-shit-done/references/phase-argument-parsing.md +61 -0
  65. package/.claude/get-shit-done/references/planning-config.md +196 -0
  66. package/.claude/get-shit-done/references/questioning.md +145 -0
  67. package/.claude/get-shit-done/references/tdd.md +263 -0
  68. package/.claude/get-shit-done/references/ui-brand.md +160 -0
  69. package/.claude/get-shit-done/references/verification-patterns.md +612 -0
  70. package/.claude/get-shit-done/templates/DEBUG.md +164 -0
  71. package/.claude/get-shit-done/templates/UAT.md +247 -0
  72. package/.claude/get-shit-done/templates/VALIDATION.md +76 -0
  73. package/.claude/get-shit-done/templates/codebase/architecture.md +255 -0
  74. package/.claude/get-shit-done/templates/codebase/concerns.md +310 -0
  75. package/.claude/get-shit-done/templates/codebase/conventions.md +307 -0
  76. package/.claude/get-shit-done/templates/codebase/integrations.md +280 -0
  77. package/.claude/get-shit-done/templates/codebase/stack.md +186 -0
  78. package/.claude/get-shit-done/templates/codebase/structure.md +285 -0
  79. package/.claude/get-shit-done/templates/codebase/testing.md +480 -0
  80. package/.claude/get-shit-done/templates/config.json +37 -0
  81. package/.claude/get-shit-done/templates/context.md +283 -0
  82. package/.claude/get-shit-done/templates/continue-here.md +78 -0
  83. package/.claude/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  84. package/.claude/get-shit-done/templates/discovery.md +146 -0
  85. package/.claude/get-shit-done/templates/milestone-archive.md +123 -0
  86. package/.claude/get-shit-done/templates/milestone.md +115 -0
  87. package/.claude/get-shit-done/templates/phase-prompt.md +569 -0
  88. package/.claude/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  89. package/.claude/get-shit-done/templates/project.md +184 -0
  90. package/.claude/get-shit-done/templates/requirements.md +231 -0
  91. package/.claude/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  92. package/.claude/get-shit-done/templates/research-project/FEATURES.md +147 -0
  93. package/.claude/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  94. package/.claude/get-shit-done/templates/research-project/STACK.md +120 -0
  95. package/.claude/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  96. package/.claude/get-shit-done/templates/research.md +552 -0
  97. package/.claude/get-shit-done/templates/retrospective.md +54 -0
  98. package/.claude/get-shit-done/templates/roadmap.md +202 -0
  99. package/.claude/get-shit-done/templates/state.md +176 -0
  100. package/.claude/get-shit-done/templates/summary-complex.md +59 -0
  101. package/.claude/get-shit-done/templates/summary-minimal.md +41 -0
  102. package/.claude/get-shit-done/templates/summary-standard.md +48 -0
  103. package/.claude/get-shit-done/templates/summary.md +248 -0
  104. package/.claude/get-shit-done/templates/user-setup.md +311 -0
  105. package/.claude/get-shit-done/templates/verification-report.md +322 -0
  106. package/.claude/get-shit-done/workflows/add-phase.md +111 -0
  107. package/.claude/get-shit-done/workflows/add-tests.md +350 -0
  108. package/.claude/get-shit-done/workflows/add-todo.md +157 -0
  109. package/.claude/get-shit-done/workflows/audit-milestone.md +297 -0
  110. package/.claude/get-shit-done/workflows/check-todos.md +176 -0
  111. package/.claude/get-shit-done/workflows/cleanup.md +152 -0
  112. package/.claude/get-shit-done/workflows/complete-milestone.md +763 -0
  113. package/.claude/get-shit-done/workflows/diagnose-issues.md +219 -0
  114. package/.claude/get-shit-done/workflows/discovery-phase.md +289 -0
  115. package/.claude/get-shit-done/workflows/discuss-phase.md +542 -0
  116. package/.claude/get-shit-done/workflows/execute-phase.md +449 -0
  117. package/.claude/get-shit-done/workflows/execute-plan.md +448 -0
  118. package/.claude/get-shit-done/workflows/health.md +156 -0
  119. package/.claude/get-shit-done/workflows/help.md +489 -0
  120. package/.claude/get-shit-done/workflows/insert-phase.md +129 -0
  121. package/.claude/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  122. package/.claude/get-shit-done/workflows/map-codebase.md +315 -0
  123. package/.claude/get-shit-done/workflows/new-milestone.md +382 -0
  124. package/.claude/get-shit-done/workflows/new-project.md +1116 -0
  125. package/.claude/get-shit-done/workflows/pause-work.md +122 -0
  126. package/.claude/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
  127. package/.claude/get-shit-done/workflows/plan-phase.md +569 -0
  128. package/.claude/get-shit-done/workflows/progress.md +381 -0
  129. package/.claude/get-shit-done/workflows/quick.md +453 -0
  130. package/.claude/get-shit-done/workflows/remove-phase.md +154 -0
  131. package/.claude/get-shit-done/workflows/research-phase.md +73 -0
  132. package/.claude/get-shit-done/workflows/resume-project.md +306 -0
  133. package/.claude/get-shit-done/workflows/set-profile.md +80 -0
  134. package/.claude/get-shit-done/workflows/settings.md +213 -0
  135. package/.claude/get-shit-done/workflows/transition.md +544 -0
  136. package/.claude/get-shit-done/workflows/update.md +219 -0
  137. package/.claude/get-shit-done/workflows/verify-phase.md +242 -0
  138. package/.claude/get-shit-done/workflows/verify-work.md +569 -0
  139. package/.claude/gsd-file-manifest.json +144 -0
  140. package/.claude/hooks/gsd-check-update.js +62 -0
  141. package/.claude/hooks/gsd-context-monitor.js +122 -0
  142. package/.claude/hooks/gsd-statusline.js +108 -0
  143. package/.claude/package.json +1 -0
  144. package/.claude/settings.json +49 -0
  145. package/dist/commands/generate.d.ts.map +1 -1
  146. package/dist/commands/generate.js +18 -8
  147. package/dist/commands/generate.js.map +1 -1
  148. package/dist/services/analyzerService.d.ts.map +1 -1
  149. package/dist/services/analyzerService.js +10 -0
  150. package/dist/services/analyzerService.js.map +1 -1
  151. package/dist/services/descriptionGenerator.d.ts.map +1 -1
  152. package/dist/services/descriptionGenerator.js +56 -14
  153. package/dist/services/descriptionGenerator.js.map +1 -1
  154. package/dist/services/fileContentAnalyzer.js +136 -17
  155. package/dist/services/fileContentAnalyzer.js.map +1 -1
  156. package/dist/services/fileContentAnalyzer.test.js +64 -0
  157. package/dist/services/fileContentAnalyzer.test.js.map +1 -1
  158. package/dist/services/semanticAnalyzer.js +20 -0
  159. package/dist/services/semanticAnalyzer.js.map +1 -1
  160. package/package.json +1 -1
@@ -0,0 +1,489 @@
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 get-shit-done-cc@latest
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
+ **PRD Express Path:** Pass `--prd path/to/requirements.md` to skip discuss-phase entirely. Your PRD becomes locked decisions in CONTEXT.md. Useful when you already have clear acceptance criteria.
103
+
104
+ ### Execution
105
+
106
+ **`/gsd:execute-phase <phase-number>`**
107
+ Execute all plans in a phase.
108
+
109
+ - Groups plans by wave (from frontmatter), executes waves sequentially
110
+ - Plans within each wave run in parallel via Task tool
111
+ - Verifies phase goal after all plans complete
112
+ - Updates REQUIREMENTS.md, ROADMAP.md, STATE.md
113
+
114
+ Usage: `/gsd:execute-phase 5`
115
+
116
+ ### Quick Mode
117
+
118
+ **`/gsd:quick`**
119
+ Execute small, ad-hoc tasks with GSD guarantees but skip optional agents.
120
+
121
+ Quick mode uses the same system with a shorter path:
122
+ - Spawns planner + executor (skips researcher, checker, verifier)
123
+ - Quick tasks live in `.planning/quick/` separate from planned phases
124
+ - Updates STATE.md tracking (not ROADMAP.md)
125
+
126
+ Use when you know exactly what to do and the task is small enough to not need research or verification.
127
+
128
+ Usage: `/gsd:quick`
129
+ Result: Creates `.planning/quick/NNN-slug/PLAN.md`, `.planning/quick/NNN-slug/SUMMARY.md`
130
+
131
+ ### Roadmap Management
132
+
133
+ **`/gsd:add-phase <description>`**
134
+ Add new phase to end of current milestone.
135
+
136
+ - Appends to ROADMAP.md
137
+ - Uses next sequential number
138
+ - Updates phase directory structure
139
+
140
+ Usage: `/gsd:add-phase "Add admin dashboard"`
141
+
142
+ **`/gsd:insert-phase <after> <description>`**
143
+ Insert urgent work as decimal phase between existing phases.
144
+
145
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
146
+ - Useful for discovered work that must happen mid-milestone
147
+ - Maintains phase ordering
148
+
149
+ Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
150
+ Result: Creates Phase 7.1
151
+
152
+ **`/gsd:remove-phase <number>`**
153
+ Remove a future phase and renumber subsequent phases.
154
+
155
+ - Deletes phase directory and all references
156
+ - Renumbers all subsequent phases to close the gap
157
+ - Only works on future (unstarted) phases
158
+ - Git commit preserves historical record
159
+
160
+ Usage: `/gsd:remove-phase 17`
161
+ Result: Phase 17 deleted, phases 18-20 become 17-19
162
+
163
+ ### Milestone Management
164
+
165
+ **`/gsd:new-milestone <name>`**
166
+ Start a new milestone through unified flow.
167
+
168
+ - Deep questioning to understand what you're building next
169
+ - Optional domain research (spawns 4 parallel researcher agents)
170
+ - Requirements definition with scoping
171
+ - Roadmap creation with phase breakdown
172
+
173
+ Mirrors `/gsd:new-project` flow for brownfield projects (existing PROJECT.md).
174
+
175
+ Usage: `/gsd:new-milestone "v2.0 Features"`
176
+
177
+ **`/gsd:complete-milestone <version>`**
178
+ Archive completed milestone and prepare for next version.
179
+
180
+ - Creates MILESTONES.md entry with stats
181
+ - Archives full details to milestones/ directory
182
+ - Creates git tag for the release
183
+ - Prepares workspace for next version
184
+
185
+ Usage: `/gsd:complete-milestone 1.0.0`
186
+
187
+ ### Progress Tracking
188
+
189
+ **`/gsd:progress`**
190
+ Check project status and intelligently route to next action.
191
+
192
+ - Shows visual progress bar and completion percentage
193
+ - Summarizes recent work from SUMMARY files
194
+ - Displays current position and what's next
195
+ - Lists key decisions and open issues
196
+ - Offers to execute next plan or create it if missing
197
+ - Detects 100% milestone completion
198
+
199
+ Usage: `/gsd:progress`
200
+
201
+ ### Session Management
202
+
203
+ **`/gsd:resume-work`**
204
+ Resume work from previous session with full context restoration.
205
+
206
+ - Reads STATE.md for project context
207
+ - Shows current position and recent progress
208
+ - Offers next actions based on project state
209
+
210
+ Usage: `/gsd:resume-work`
211
+
212
+ **`/gsd:pause-work`**
213
+ Create context handoff when pausing work mid-phase.
214
+
215
+ - Creates .continue-here file with current state
216
+ - Updates STATE.md session continuity section
217
+ - Captures in-progress work context
218
+
219
+ Usage: `/gsd:pause-work`
220
+
221
+ ### Debugging
222
+
223
+ **`/gsd:debug [issue description]`**
224
+ Systematic debugging with persistent state across context resets.
225
+
226
+ - Gathers symptoms through adaptive questioning
227
+ - Creates `.planning/debug/[slug].md` to track investigation
228
+ - Investigates using scientific method (evidence → hypothesis → test)
229
+ - Survives `/clear` — run `/gsd:debug` with no args to resume
230
+ - Archives resolved issues to `.planning/debug/resolved/`
231
+
232
+ Usage: `/gsd:debug "login button doesn't work"`
233
+ Usage: `/gsd:debug` (resume active session)
234
+
235
+ ### Todo Management
236
+
237
+ **`/gsd:add-todo [description]`**
238
+ Capture idea or task as todo from current conversation.
239
+
240
+ - Extracts context from conversation (or uses provided description)
241
+ - Creates structured todo file in `.planning/todos/pending/`
242
+ - Infers area from file paths for grouping
243
+ - Checks for duplicates before creating
244
+ - Updates STATE.md todo count
245
+
246
+ Usage: `/gsd:add-todo` (infers from conversation)
247
+ Usage: `/gsd:add-todo Add auth token refresh`
248
+
249
+ **`/gsd:check-todos [area]`**
250
+ List pending todos and select one to work on.
251
+
252
+ - Lists all pending todos with title, area, age
253
+ - Optional area filter (e.g., `/gsd:check-todos api`)
254
+ - Loads full context for selected todo
255
+ - Routes to appropriate action (work now, add to phase, brainstorm)
256
+ - Moves todo to done/ when work begins
257
+
258
+ Usage: `/gsd:check-todos`
259
+ Usage: `/gsd:check-todos api`
260
+
261
+ ### User Acceptance Testing
262
+
263
+ **`/gsd:verify-work [phase]`**
264
+ Validate built features through conversational UAT.
265
+
266
+ - Extracts testable deliverables from SUMMARY.md files
267
+ - Presents tests one at a time (yes/no responses)
268
+ - Automatically diagnoses failures and creates fix plans
269
+ - Ready for re-execution if issues found
270
+
271
+ Usage: `/gsd:verify-work 3`
272
+
273
+ ### Milestone Auditing
274
+
275
+ **`/gsd:audit-milestone [version]`**
276
+ Audit milestone completion against original intent.
277
+
278
+ - Reads all phase VERIFICATION.md files
279
+ - Checks requirements coverage
280
+ - Spawns integration checker for cross-phase wiring
281
+ - Creates MILESTONE-AUDIT.md with gaps and tech debt
282
+
283
+ Usage: `/gsd:audit-milestone`
284
+
285
+ **`/gsd:plan-milestone-gaps`**
286
+ Create phases to close gaps identified by audit.
287
+
288
+ - Reads MILESTONE-AUDIT.md and groups gaps into phases
289
+ - Prioritizes by requirement priority (must/should/nice)
290
+ - Adds gap closure phases to ROADMAP.md
291
+ - Ready for `/gsd:plan-phase` on new phases
292
+
293
+ Usage: `/gsd:plan-milestone-gaps`
294
+
295
+ ### Configuration
296
+
297
+ **`/gsd:settings`**
298
+ Configure workflow toggles and model profile interactively.
299
+
300
+ - Toggle researcher, plan checker, verifier agents
301
+ - Select model profile (quality/balanced/budget)
302
+ - Updates `.planning/config.json`
303
+
304
+ Usage: `/gsd:settings`
305
+
306
+ **`/gsd:set-profile <profile>`**
307
+ Quick switch model profile for GSD agents.
308
+
309
+ - `quality` — Opus everywhere except verification
310
+ - `balanced` — Opus for planning, Sonnet for execution (default)
311
+ - `budget` — Sonnet for writing, Haiku for research/verification
312
+
313
+ Usage: `/gsd:set-profile budget`
314
+
315
+ ### Utility Commands
316
+
317
+ **`/gsd:cleanup`**
318
+ Archive accumulated phase directories from completed milestones.
319
+
320
+ - Identifies phases from completed milestones still in `.planning/phases/`
321
+ - Shows dry-run summary before moving anything
322
+ - Moves phase dirs to `.planning/milestones/v{X.Y}-phases/`
323
+ - Use after multiple milestones to reduce `.planning/phases/` clutter
324
+
325
+ Usage: `/gsd:cleanup`
326
+
327
+ **`/gsd:help`**
328
+ Show this command reference.
329
+
330
+ **`/gsd:update`**
331
+ Update GSD to latest version with changelog preview.
332
+
333
+ - Shows installed vs latest version comparison
334
+ - Displays changelog entries for versions you've missed
335
+ - Highlights breaking changes
336
+ - Confirms before running install
337
+ - Better than raw `npx get-shit-done-cc`
338
+
339
+ Usage: `/gsd:update`
340
+
341
+ **`/gsd:join-discord`**
342
+ Join the GSD Discord community.
343
+
344
+ - Get help, share what you're building, stay updated
345
+ - Connect with other GSD users
346
+
347
+ Usage: `/gsd:join-discord`
348
+
349
+ ## Files & Structure
350
+
351
+ ```
352
+ .planning/
353
+ ├── PROJECT.md # Project vision
354
+ ├── ROADMAP.md # Current phase breakdown
355
+ ├── STATE.md # Project memory & context
356
+ ├── RETROSPECTIVE.md # Living retrospective (updated per milestone)
357
+ ├── config.json # Workflow mode & gates
358
+ ├── todos/ # Captured ideas and tasks
359
+ │ ├── pending/ # Todos waiting to be worked on
360
+ │ └── done/ # Completed todos
361
+ ├── debug/ # Active debug sessions
362
+ │ └── resolved/ # Archived resolved issues
363
+ ├── milestones/
364
+ │ ├── v1.0-ROADMAP.md # Archived roadmap snapshot
365
+ │ ├── v1.0-REQUIREMENTS.md # Archived requirements
366
+ │ └── v1.0-phases/ # Archived phase dirs (via /gsd:cleanup or --archive-phases)
367
+ │ ├── 01-foundation/
368
+ │ └── 02-core-features/
369
+ ├── codebase/ # Codebase map (brownfield projects)
370
+ │ ├── STACK.md # Languages, frameworks, dependencies
371
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
372
+ │ ├── STRUCTURE.md # Directory layout, key files
373
+ │ ├── CONVENTIONS.md # Coding standards, naming
374
+ │ ├── TESTING.md # Test setup, patterns
375
+ │ ├── INTEGRATIONS.md # External services, APIs
376
+ │ └── CONCERNS.md # Tech debt, known issues
377
+ └── phases/
378
+ ├── 01-foundation/
379
+ │ ├── 01-01-PLAN.md
380
+ │ └── 01-01-SUMMARY.md
381
+ └── 02-core-features/
382
+ ├── 02-01-PLAN.md
383
+ └── 02-01-SUMMARY.md
384
+ ```
385
+
386
+ ## Workflow Modes
387
+
388
+ Set during `/gsd:new-project`:
389
+
390
+ **Interactive Mode**
391
+
392
+ - Confirms each major decision
393
+ - Pauses at checkpoints for approval
394
+ - More guidance throughout
395
+
396
+ **YOLO Mode**
397
+
398
+ - Auto-approves most decisions
399
+ - Executes plans without confirmation
400
+ - Only stops for critical checkpoints
401
+
402
+ Change anytime by editing `.planning/config.json`
403
+
404
+ ## Planning Configuration
405
+
406
+ Configure how planning artifacts are managed in `.planning/config.json`:
407
+
408
+ **`planning.commit_docs`** (default: `true`)
409
+ - `true`: Planning artifacts committed to git (standard workflow)
410
+ - `false`: Planning artifacts kept local-only, not committed
411
+
412
+ When `commit_docs: false`:
413
+ - Add `.planning/` to your `.gitignore`
414
+ - Useful for OSS contributions, client projects, or keeping planning private
415
+ - All planning files still work normally, just not tracked in git
416
+
417
+ **`planning.search_gitignored`** (default: `false`)
418
+ - `true`: Add `--no-ignore` to broad ripgrep searches
419
+ - Only needed when `.planning/` is gitignored and you want project-wide searches to include it
420
+
421
+ Example config:
422
+ ```json
423
+ {
424
+ "planning": {
425
+ "commit_docs": false,
426
+ "search_gitignored": true
427
+ }
428
+ }
429
+ ```
430
+
431
+ ## Common Workflows
432
+
433
+ **Starting a new project:**
434
+
435
+ ```
436
+ /gsd:new-project # Unified flow: questioning → research → requirements → roadmap
437
+ /clear
438
+ /gsd:plan-phase 1 # Create plans for first phase
439
+ /clear
440
+ /gsd:execute-phase 1 # Execute all plans in phase
441
+ ```
442
+
443
+ **Resuming work after a break:**
444
+
445
+ ```
446
+ /gsd:progress # See where you left off and continue
447
+ ```
448
+
449
+ **Adding urgent mid-milestone work:**
450
+
451
+ ```
452
+ /gsd:insert-phase 5 "Critical security fix"
453
+ /gsd:plan-phase 5.1
454
+ /gsd:execute-phase 5.1
455
+ ```
456
+
457
+ **Completing a milestone:**
458
+
459
+ ```
460
+ /gsd:complete-milestone 1.0.0
461
+ /clear
462
+ /gsd:new-milestone # Start next milestone (questioning → research → requirements → roadmap)
463
+ ```
464
+
465
+ **Capturing ideas during work:**
466
+
467
+ ```
468
+ /gsd:add-todo # Capture from conversation context
469
+ /gsd:add-todo Fix modal z-index # Capture with explicit description
470
+ /gsd:check-todos # Review and work on todos
471
+ /gsd:check-todos api # Filter by area
472
+ ```
473
+
474
+ **Debugging an issue:**
475
+
476
+ ```
477
+ /gsd:debug "form submission fails silently" # Start debug session
478
+ # ... investigation happens, context fills up ...
479
+ /clear
480
+ /gsd:debug # Resume from where you left off
481
+ ```
482
+
483
+ ## Getting Help
484
+
485
+ - Read `.planning/PROJECT.md` for project vision
486
+ - Read `.planning/STATE.md` for current context
487
+ - Check `.planning/ROADMAP.md` for phase status
488
+ - Run `/gsd:progress` to check where you're up to
489
+ </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>