gsd-code-first 1.0.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 (238) hide show
  1. package/LICENSE +21 -0
  2. package/README.ja-JP.md +834 -0
  3. package/README.ko-KR.md +823 -0
  4. package/README.md +937 -0
  5. package/README.pt-BR.md +452 -0
  6. package/README.zh-CN.md +800 -0
  7. package/agents/gsd-advisor-researcher.md +104 -0
  8. package/agents/gsd-annotator.md +148 -0
  9. package/agents/gsd-arc-executor.md +537 -0
  10. package/agents/gsd-arc-planner.md +374 -0
  11. package/agents/gsd-assumptions-analyzer.md +105 -0
  12. package/agents/gsd-code-planner.md +155 -0
  13. package/agents/gsd-codebase-mapper.md +770 -0
  14. package/agents/gsd-debugger.md +1373 -0
  15. package/agents/gsd-executor.md +509 -0
  16. package/agents/gsd-integration-checker.md +443 -0
  17. package/agents/gsd-nyquist-auditor.md +176 -0
  18. package/agents/gsd-phase-researcher.md +698 -0
  19. package/agents/gsd-plan-checker.md +773 -0
  20. package/agents/gsd-planner.md +1354 -0
  21. package/agents/gsd-project-researcher.md +654 -0
  22. package/agents/gsd-prototyper.md +161 -0
  23. package/agents/gsd-research-synthesizer.md +247 -0
  24. package/agents/gsd-roadmapper.md +679 -0
  25. package/agents/gsd-ui-auditor.md +439 -0
  26. package/agents/gsd-ui-checker.md +300 -0
  27. package/agents/gsd-ui-researcher.md +357 -0
  28. package/agents/gsd-user-profiler.md +171 -0
  29. package/agents/gsd-verifier.md +700 -0
  30. package/bin/install.js +5009 -0
  31. package/commands/gsd/add-backlog.md +76 -0
  32. package/commands/gsd/add-phase.md +43 -0
  33. package/commands/gsd/add-tests.md +41 -0
  34. package/commands/gsd/add-todo.md +47 -0
  35. package/commands/gsd/annotate.md +54 -0
  36. package/commands/gsd/audit-milestone.md +36 -0
  37. package/commands/gsd/audit-uat.md +24 -0
  38. package/commands/gsd/autonomous.md +41 -0
  39. package/commands/gsd/check-todos.md +45 -0
  40. package/commands/gsd/cleanup.md +18 -0
  41. package/commands/gsd/complete-milestone.md +136 -0
  42. package/commands/gsd/debug.md +173 -0
  43. package/commands/gsd/deep-plan.md +52 -0
  44. package/commands/gsd/discuss-phase.md +64 -0
  45. package/commands/gsd/do.md +30 -0
  46. package/commands/gsd/execute-phase.md +59 -0
  47. package/commands/gsd/extract-plan.md +35 -0
  48. package/commands/gsd/fast.md +30 -0
  49. package/commands/gsd/forensics.md +56 -0
  50. package/commands/gsd/health.md +22 -0
  51. package/commands/gsd/help.md +22 -0
  52. package/commands/gsd/insert-phase.md +32 -0
  53. package/commands/gsd/iterate.md +124 -0
  54. package/commands/gsd/join-discord.md +18 -0
  55. package/commands/gsd/list-phase-assumptions.md +46 -0
  56. package/commands/gsd/list-workspaces.md +19 -0
  57. package/commands/gsd/manager.md +39 -0
  58. package/commands/gsd/map-codebase.md +71 -0
  59. package/commands/gsd/milestone-summary.md +51 -0
  60. package/commands/gsd/new-milestone.md +44 -0
  61. package/commands/gsd/new-project.md +42 -0
  62. package/commands/gsd/new-workspace.md +44 -0
  63. package/commands/gsd/next.md +24 -0
  64. package/commands/gsd/note.md +34 -0
  65. package/commands/gsd/pause-work.md +38 -0
  66. package/commands/gsd/plan-milestone-gaps.md +34 -0
  67. package/commands/gsd/plan-phase.md +47 -0
  68. package/commands/gsd/plant-seed.md +28 -0
  69. package/commands/gsd/pr-branch.md +25 -0
  70. package/commands/gsd/profile-user.md +46 -0
  71. package/commands/gsd/progress.md +24 -0
  72. package/commands/gsd/prototype.md +56 -0
  73. package/commands/gsd/quick.md +47 -0
  74. package/commands/gsd/reapply-patches.md +123 -0
  75. package/commands/gsd/remove-phase.md +31 -0
  76. package/commands/gsd/remove-workspace.md +26 -0
  77. package/commands/gsd/research-phase.md +195 -0
  78. package/commands/gsd/resume-work.md +40 -0
  79. package/commands/gsd/review-backlog.md +61 -0
  80. package/commands/gsd/review.md +37 -0
  81. package/commands/gsd/session-report.md +19 -0
  82. package/commands/gsd/set-mode.md +41 -0
  83. package/commands/gsd/set-profile.md +12 -0
  84. package/commands/gsd/settings.md +36 -0
  85. package/commands/gsd/ship.md +23 -0
  86. package/commands/gsd/stats.md +18 -0
  87. package/commands/gsd/thread.md +127 -0
  88. package/commands/gsd/ui-phase.md +34 -0
  89. package/commands/gsd/ui-review.md +32 -0
  90. package/commands/gsd/update.md +37 -0
  91. package/commands/gsd/validate-phase.md +35 -0
  92. package/commands/gsd/verify-work.md +38 -0
  93. package/commands/gsd/workstreams.md +63 -0
  94. package/get-shit-done/bin/gsd-tools.cjs +946 -0
  95. package/get-shit-done/bin/lib/arc-scanner.cjs +341 -0
  96. package/get-shit-done/bin/lib/commands.cjs +959 -0
  97. package/get-shit-done/bin/lib/config.cjs +466 -0
  98. package/get-shit-done/bin/lib/core.cjs +1230 -0
  99. package/get-shit-done/bin/lib/frontmatter.cjs +336 -0
  100. package/get-shit-done/bin/lib/init.cjs +1442 -0
  101. package/get-shit-done/bin/lib/milestone.cjs +252 -0
  102. package/get-shit-done/bin/lib/model-profiles.cjs +68 -0
  103. package/get-shit-done/bin/lib/phase.cjs +888 -0
  104. package/get-shit-done/bin/lib/profile-output.cjs +952 -0
  105. package/get-shit-done/bin/lib/profile-pipeline.cjs +539 -0
  106. package/get-shit-done/bin/lib/roadmap.cjs +329 -0
  107. package/get-shit-done/bin/lib/security.cjs +382 -0
  108. package/get-shit-done/bin/lib/state.cjs +1031 -0
  109. package/get-shit-done/bin/lib/template.cjs +222 -0
  110. package/get-shit-done/bin/lib/uat.cjs +282 -0
  111. package/get-shit-done/bin/lib/verify.cjs +888 -0
  112. package/get-shit-done/bin/lib/workstream.cjs +491 -0
  113. package/get-shit-done/commands/gsd/workstreams.md +63 -0
  114. package/get-shit-done/references/arc-standard.md +315 -0
  115. package/get-shit-done/references/checkpoints.md +778 -0
  116. package/get-shit-done/references/continuation-format.md +249 -0
  117. package/get-shit-done/references/decimal-phase-calculation.md +64 -0
  118. package/get-shit-done/references/git-integration.md +295 -0
  119. package/get-shit-done/references/git-planning-commit.md +38 -0
  120. package/get-shit-done/references/model-profile-resolution.md +36 -0
  121. package/get-shit-done/references/model-profiles.md +139 -0
  122. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  123. package/get-shit-done/references/planning-config.md +202 -0
  124. package/get-shit-done/references/questioning.md +162 -0
  125. package/get-shit-done/references/tdd.md +263 -0
  126. package/get-shit-done/references/ui-brand.md +160 -0
  127. package/get-shit-done/references/user-profiling.md +681 -0
  128. package/get-shit-done/references/verification-patterns.md +612 -0
  129. package/get-shit-done/references/workstream-flag.md +58 -0
  130. package/get-shit-done/templates/DEBUG.md +164 -0
  131. package/get-shit-done/templates/UAT.md +265 -0
  132. package/get-shit-done/templates/UI-SPEC.md +100 -0
  133. package/get-shit-done/templates/VALIDATION.md +76 -0
  134. package/get-shit-done/templates/claude-md.md +122 -0
  135. package/get-shit-done/templates/codebase/architecture.md +255 -0
  136. package/get-shit-done/templates/codebase/concerns.md +310 -0
  137. package/get-shit-done/templates/codebase/conventions.md +307 -0
  138. package/get-shit-done/templates/codebase/integrations.md +280 -0
  139. package/get-shit-done/templates/codebase/stack.md +186 -0
  140. package/get-shit-done/templates/codebase/structure.md +285 -0
  141. package/get-shit-done/templates/codebase/testing.md +480 -0
  142. package/get-shit-done/templates/config.json +44 -0
  143. package/get-shit-done/templates/context.md +352 -0
  144. package/get-shit-done/templates/continue-here.md +78 -0
  145. package/get-shit-done/templates/copilot-instructions.md +7 -0
  146. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  147. package/get-shit-done/templates/dev-preferences.md +21 -0
  148. package/get-shit-done/templates/discovery.md +146 -0
  149. package/get-shit-done/templates/discussion-log.md +63 -0
  150. package/get-shit-done/templates/milestone-archive.md +123 -0
  151. package/get-shit-done/templates/milestone.md +115 -0
  152. package/get-shit-done/templates/phase-prompt.md +610 -0
  153. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  154. package/get-shit-done/templates/project.md +186 -0
  155. package/get-shit-done/templates/requirements.md +231 -0
  156. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  157. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  158. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  159. package/get-shit-done/templates/research-project/STACK.md +120 -0
  160. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  161. package/get-shit-done/templates/research.md +552 -0
  162. package/get-shit-done/templates/retrospective.md +54 -0
  163. package/get-shit-done/templates/roadmap.md +202 -0
  164. package/get-shit-done/templates/state.md +176 -0
  165. package/get-shit-done/templates/summary-complex.md +59 -0
  166. package/get-shit-done/templates/summary-minimal.md +41 -0
  167. package/get-shit-done/templates/summary-standard.md +48 -0
  168. package/get-shit-done/templates/summary.md +248 -0
  169. package/get-shit-done/templates/user-profile.md +146 -0
  170. package/get-shit-done/templates/user-setup.md +311 -0
  171. package/get-shit-done/templates/verification-report.md +322 -0
  172. package/get-shit-done/workflows/add-phase.md +112 -0
  173. package/get-shit-done/workflows/add-tests.md +351 -0
  174. package/get-shit-done/workflows/add-todo.md +158 -0
  175. package/get-shit-done/workflows/audit-milestone.md +340 -0
  176. package/get-shit-done/workflows/audit-uat.md +109 -0
  177. package/get-shit-done/workflows/autonomous.md +891 -0
  178. package/get-shit-done/workflows/check-todos.md +177 -0
  179. package/get-shit-done/workflows/cleanup.md +152 -0
  180. package/get-shit-done/workflows/complete-milestone.md +767 -0
  181. package/get-shit-done/workflows/diagnose-issues.md +231 -0
  182. package/get-shit-done/workflows/discovery-phase.md +289 -0
  183. package/get-shit-done/workflows/discuss-phase-assumptions.md +653 -0
  184. package/get-shit-done/workflows/discuss-phase.md +1049 -0
  185. package/get-shit-done/workflows/do.md +104 -0
  186. package/get-shit-done/workflows/execute-phase.md +846 -0
  187. package/get-shit-done/workflows/execute-plan.md +514 -0
  188. package/get-shit-done/workflows/fast.md +105 -0
  189. package/get-shit-done/workflows/forensics.md +265 -0
  190. package/get-shit-done/workflows/health.md +181 -0
  191. package/get-shit-done/workflows/help.md +634 -0
  192. package/get-shit-done/workflows/insert-phase.md +130 -0
  193. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  194. package/get-shit-done/workflows/list-workspaces.md +56 -0
  195. package/get-shit-done/workflows/manager.md +362 -0
  196. package/get-shit-done/workflows/map-codebase.md +377 -0
  197. package/get-shit-done/workflows/milestone-summary.md +223 -0
  198. package/get-shit-done/workflows/new-milestone.md +486 -0
  199. package/get-shit-done/workflows/new-project.md +1250 -0
  200. package/get-shit-done/workflows/new-workspace.md +237 -0
  201. package/get-shit-done/workflows/next.md +97 -0
  202. package/get-shit-done/workflows/node-repair.md +92 -0
  203. package/get-shit-done/workflows/note.md +156 -0
  204. package/get-shit-done/workflows/pause-work.md +176 -0
  205. package/get-shit-done/workflows/plan-milestone-gaps.md +273 -0
  206. package/get-shit-done/workflows/plan-phase.md +859 -0
  207. package/get-shit-done/workflows/plant-seed.md +169 -0
  208. package/get-shit-done/workflows/pr-branch.md +129 -0
  209. package/get-shit-done/workflows/profile-user.md +450 -0
  210. package/get-shit-done/workflows/progress.md +507 -0
  211. package/get-shit-done/workflows/quick.md +757 -0
  212. package/get-shit-done/workflows/remove-phase.md +155 -0
  213. package/get-shit-done/workflows/remove-workspace.md +90 -0
  214. package/get-shit-done/workflows/research-phase.md +82 -0
  215. package/get-shit-done/workflows/resume-project.md +326 -0
  216. package/get-shit-done/workflows/review.md +228 -0
  217. package/get-shit-done/workflows/session-report.md +146 -0
  218. package/get-shit-done/workflows/settings.md +283 -0
  219. package/get-shit-done/workflows/ship.md +228 -0
  220. package/get-shit-done/workflows/stats.md +60 -0
  221. package/get-shit-done/workflows/transition.md +671 -0
  222. package/get-shit-done/workflows/ui-phase.md +302 -0
  223. package/get-shit-done/workflows/ui-review.md +165 -0
  224. package/get-shit-done/workflows/update.md +323 -0
  225. package/get-shit-done/workflows/validate-phase.md +174 -0
  226. package/get-shit-done/workflows/verify-phase.md +254 -0
  227. package/get-shit-done/workflows/verify-work.md +637 -0
  228. package/hooks/dist/gsd-check-update.js +114 -0
  229. package/hooks/dist/gsd-context-monitor.js +156 -0
  230. package/hooks/dist/gsd-prompt-guard.js +96 -0
  231. package/hooks/dist/gsd-statusline.js +119 -0
  232. package/hooks/dist/gsd-workflow-guard.js +94 -0
  233. package/package.json +52 -0
  234. package/scripts/base64-scan.sh +262 -0
  235. package/scripts/build-hooks.js +82 -0
  236. package/scripts/prompt-injection-scan.sh +198 -0
  237. package/scripts/run-tests.cjs +29 -0
  238. package/scripts/secret-scan.sh +227 -0
@@ -0,0 +1,634 @@
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
+ - Optional `--batch` asks 2-5 related questions at a time instead of one-by-one
70
+
71
+ Usage: `/gsd:discuss-phase 2`
72
+ Usage: `/gsd:discuss-phase 2 --batch`
73
+ Usage: `/gsd:discuss-phase 2 --batch=3`
74
+
75
+ **`/gsd:research-phase <number>`**
76
+ Comprehensive ecosystem research for niche/complex domains.
77
+
78
+ - Discovers standard stack, architecture patterns, pitfalls
79
+ - Creates RESEARCH.md with "how experts build this" knowledge
80
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
81
+ - Goes beyond "which library" to ecosystem knowledge
82
+
83
+ Usage: `/gsd:research-phase 3`
84
+
85
+ **`/gsd:list-phase-assumptions <number>`**
86
+ See what Claude is planning to do before it starts.
87
+
88
+ - Shows Claude's intended approach for a phase
89
+ - Lets you course-correct if Claude misunderstood your vision
90
+ - No files created - conversational output only
91
+
92
+ Usage: `/gsd:list-phase-assumptions 3`
93
+
94
+ **`/gsd:plan-phase <number>`**
95
+ Create detailed execution plan for a specific phase.
96
+
97
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
98
+ - Breaks phase into concrete, actionable tasks
99
+ - Includes verification criteria and success measures
100
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
101
+
102
+ Usage: `/gsd:plan-phase 1`
103
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
104
+
105
+ **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.
106
+
107
+ ### Execution
108
+
109
+ **`/gsd:execute-phase <phase-number>`**
110
+ Execute all plans in a phase, or run a specific wave.
111
+
112
+ - Groups plans by wave (from frontmatter), executes waves sequentially
113
+ - Plans within each wave run in parallel via Task tool
114
+ - Optional `--wave N` flag executes only Wave `N` and stops unless the phase is now fully complete
115
+ - Verifies phase goal after all plans complete
116
+ - Updates REQUIREMENTS.md, ROADMAP.md, STATE.md
117
+
118
+ Usage: `/gsd:execute-phase 5`
119
+ Usage: `/gsd:execute-phase 5 --wave 2`
120
+
121
+ ### Smart Router
122
+
123
+ **`/gsd:do <description>`**
124
+ Route freeform text to the right GSD command automatically.
125
+
126
+ - Analyzes natural language input to find the best matching GSD command
127
+ - Acts as a dispatcher — never does the work itself
128
+ - Resolves ambiguity by asking you to pick between top matches
129
+ - Use when you know what you want but don't know which `/gsd:*` command to run
130
+
131
+ Usage: `/gsd:do fix the login button`
132
+ Usage: `/gsd:do refactor the auth system`
133
+ Usage: `/gsd:do I want to start a new milestone`
134
+
135
+ ### Quick Mode
136
+
137
+ **`/gsd:quick [--full] [--discuss] [--research]`**
138
+ Execute small, ad-hoc tasks with GSD guarantees but skip optional agents.
139
+
140
+ Quick mode uses the same system with a shorter path:
141
+ - Spawns planner + executor (skips researcher, checker, verifier by default)
142
+ - Quick tasks live in `.planning/quick/` separate from planned phases
143
+ - Updates STATE.md tracking (not ROADMAP.md)
144
+
145
+ Flags enable additional quality steps:
146
+ - `--discuss` — Lightweight discussion to surface gray areas before planning
147
+ - `--research` — Focused research agent investigates approaches before planning
148
+ - `--full` — Adds plan-checking (max 2 iterations) and post-execution verification
149
+
150
+ Flags are composable: `--discuss --research --full` gives the complete quality pipeline for a single task.
151
+
152
+ Usage: `/gsd:quick`
153
+ Usage: `/gsd:quick --research --full`
154
+ Result: Creates `.planning/quick/NNN-slug/PLAN.md`, `.planning/quick/NNN-slug/SUMMARY.md`
155
+
156
+ ---
157
+
158
+ **`/gsd:fast [description]`**
159
+ Execute a trivial task inline — no subagents, no planning files, no overhead.
160
+
161
+ For tasks too small to justify planning: typo fixes, config changes, forgotten commits, simple additions. Runs in the current context, makes the change, commits, and logs to STATE.md.
162
+
163
+ - No PLAN.md or SUMMARY.md created
164
+ - No subagent spawned (runs inline)
165
+ - ≤ 3 file edits — redirects to `/gsd:quick` if task is non-trivial
166
+ - Atomic commit with conventional message
167
+
168
+ Usage: `/gsd:fast "fix the typo in README"`
169
+ Usage: `/gsd:fast "add .env to gitignore"`
170
+
171
+ ### Roadmap Management
172
+
173
+ **`/gsd:add-phase <description>`**
174
+ Add new phase to end of current milestone.
175
+
176
+ - Appends to ROADMAP.md
177
+ - Uses next sequential number
178
+ - Updates phase directory structure
179
+
180
+ Usage: `/gsd:add-phase "Add admin dashboard"`
181
+
182
+ **`/gsd:insert-phase <after> <description>`**
183
+ Insert urgent work as decimal phase between existing phases.
184
+
185
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
186
+ - Useful for discovered work that must happen mid-milestone
187
+ - Maintains phase ordering
188
+
189
+ Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
190
+ Result: Creates Phase 7.1
191
+
192
+ **`/gsd:remove-phase <number>`**
193
+ Remove a future phase and renumber subsequent phases.
194
+
195
+ - Deletes phase directory and all references
196
+ - Renumbers all subsequent phases to close the gap
197
+ - Only works on future (unstarted) phases
198
+ - Git commit preserves historical record
199
+
200
+ Usage: `/gsd:remove-phase 17`
201
+ Result: Phase 17 deleted, phases 18-20 become 17-19
202
+
203
+ ### Milestone Management
204
+
205
+ **`/gsd:new-milestone <name>`**
206
+ Start a new milestone through unified flow.
207
+
208
+ - Deep questioning to understand what you're building next
209
+ - Optional domain research (spawns 4 parallel researcher agents)
210
+ - Requirements definition with scoping
211
+ - Roadmap creation with phase breakdown
212
+ - Optional `--reset-phase-numbers` flag restarts numbering at Phase 1 and archives old phase dirs first for safety
213
+
214
+ Mirrors `/gsd:new-project` flow for brownfield projects (existing PROJECT.md).
215
+
216
+ Usage: `/gsd:new-milestone "v2.0 Features"`
217
+ Usage: `/gsd:new-milestone --reset-phase-numbers "v2.0 Features"`
218
+
219
+ **`/gsd:complete-milestone <version>`**
220
+ Archive completed milestone and prepare for next version.
221
+
222
+ - Creates MILESTONES.md entry with stats
223
+ - Archives full details to milestones/ directory
224
+ - Creates git tag for the release
225
+ - Prepares workspace for next version
226
+
227
+ Usage: `/gsd:complete-milestone 1.0.0`
228
+
229
+ ### Progress Tracking
230
+
231
+ **`/gsd:progress`**
232
+ Check project status and intelligently route to next action.
233
+
234
+ - Shows visual progress bar and completion percentage
235
+ - Summarizes recent work from SUMMARY files
236
+ - Displays current position and what's next
237
+ - Lists key decisions and open issues
238
+ - Offers to execute next plan or create it if missing
239
+ - Detects 100% milestone completion
240
+
241
+ Usage: `/gsd:progress`
242
+
243
+ ### Session Management
244
+
245
+ **`/gsd:resume-work`**
246
+ Resume work from previous session with full context restoration.
247
+
248
+ - Reads STATE.md for project context
249
+ - Shows current position and recent progress
250
+ - Offers next actions based on project state
251
+
252
+ Usage: `/gsd:resume-work`
253
+
254
+ **`/gsd:pause-work`**
255
+ Create context handoff when pausing work mid-phase.
256
+
257
+ - Creates .continue-here file with current state
258
+ - Updates STATE.md session continuity section
259
+ - Captures in-progress work context
260
+
261
+ Usage: `/gsd:pause-work`
262
+
263
+ ### Debugging
264
+
265
+ **`/gsd:debug [issue description]`**
266
+ Systematic debugging with persistent state across context resets.
267
+
268
+ - Gathers symptoms through adaptive questioning
269
+ - Creates `.planning/debug/[slug].md` to track investigation
270
+ - Investigates using scientific method (evidence → hypothesis → test)
271
+ - Survives `/clear` — run `/gsd:debug` with no args to resume
272
+ - Archives resolved issues to `.planning/debug/resolved/`
273
+
274
+ Usage: `/gsd:debug "login button doesn't work"`
275
+ Usage: `/gsd:debug` (resume active session)
276
+
277
+ ### Quick Notes
278
+
279
+ **`/gsd:note <text>`**
280
+ Zero-friction idea capture — one command, instant save, no questions.
281
+
282
+ - Saves timestamped note to `.planning/notes/` (or `~/.claude/notes/` globally)
283
+ - Three subcommands: append (default), list, promote
284
+ - Promote converts a note into a structured todo
285
+ - Works without a project (falls back to global scope)
286
+
287
+ Usage: `/gsd:note refactor the hook system`
288
+ Usage: `/gsd:note list`
289
+ Usage: `/gsd:note promote 3`
290
+ Usage: `/gsd:note --global cross-project idea`
291
+
292
+ ### Todo Management
293
+
294
+ **`/gsd:add-todo [description]`**
295
+ Capture idea or task as todo from current conversation.
296
+
297
+ - Extracts context from conversation (or uses provided description)
298
+ - Creates structured todo file in `.planning/todos/pending/`
299
+ - Infers area from file paths for grouping
300
+ - Checks for duplicates before creating
301
+ - Updates STATE.md todo count
302
+
303
+ Usage: `/gsd:add-todo` (infers from conversation)
304
+ Usage: `/gsd:add-todo Add auth token refresh`
305
+
306
+ **`/gsd:check-todos [area]`**
307
+ List pending todos and select one to work on.
308
+
309
+ - Lists all pending todos with title, area, age
310
+ - Optional area filter (e.g., `/gsd:check-todos api`)
311
+ - Loads full context for selected todo
312
+ - Routes to appropriate action (work now, add to phase, brainstorm)
313
+ - Moves todo to done/ when work begins
314
+
315
+ Usage: `/gsd:check-todos`
316
+ Usage: `/gsd:check-todos api`
317
+
318
+ ### User Acceptance Testing
319
+
320
+ **`/gsd:verify-work [phase]`**
321
+ Validate built features through conversational UAT.
322
+
323
+ - Extracts testable deliverables from SUMMARY.md files
324
+ - Presents tests one at a time (yes/no responses)
325
+ - Automatically diagnoses failures and creates fix plans
326
+ - Ready for re-execution if issues found
327
+
328
+ Usage: `/gsd:verify-work 3`
329
+
330
+ ### Ship Work
331
+
332
+ **`/gsd:ship [phase]`**
333
+ Create a PR from completed phase work with an auto-generated body.
334
+
335
+ - Pushes branch to remote
336
+ - Creates PR with summary from SUMMARY.md, VERIFICATION.md, REQUIREMENTS.md
337
+ - Optionally requests code review
338
+ - Updates STATE.md with shipping status
339
+
340
+ Prerequisites: Phase verified, `gh` CLI installed and authenticated.
341
+
342
+ Usage: `/gsd:ship 4` or `/gsd:ship 4 --draft`
343
+
344
+ ---
345
+
346
+ **`/gsd:review --phase N [--gemini] [--claude] [--codex] [--all]`**
347
+ Cross-AI peer review — invoke external AI CLIs to independently review phase plans.
348
+
349
+ - Detects available CLIs (gemini, claude, codex)
350
+ - Each CLI reviews plans independently with the same structured prompt
351
+ - Produces REVIEWS.md with per-reviewer feedback and consensus summary
352
+ - Feed reviews back into planning: `/gsd:plan-phase N --reviews`
353
+
354
+ Usage: `/gsd:review --phase 3 --all`
355
+
356
+ ---
357
+
358
+ **`/gsd:pr-branch [target]`**
359
+ Create a clean branch for pull requests by filtering out .planning/ commits.
360
+
361
+ - Classifies commits: code-only (include), planning-only (exclude), mixed (include sans .planning/)
362
+ - Cherry-picks code commits onto a clean branch
363
+ - Reviewers see only code changes, no GSD artifacts
364
+
365
+ Usage: `/gsd:pr-branch` or `/gsd:pr-branch main`
366
+
367
+ ---
368
+
369
+ **`/gsd:plant-seed [idea]`**
370
+ Capture a forward-looking idea with trigger conditions for automatic surfacing.
371
+
372
+ - Seeds preserve WHY, WHEN to surface, and breadcrumbs to related code
373
+ - Auto-surfaces during `/gsd:new-milestone` when trigger conditions match
374
+ - Better than deferred items — triggers are checked, not forgotten
375
+
376
+ Usage: `/gsd:plant-seed "add real-time notifications when we build the events system"`
377
+
378
+ ---
379
+
380
+ **`/gsd:audit-uat`**
381
+ Cross-phase audit of all outstanding UAT and verification items.
382
+ - Scans every phase for pending, skipped, blocked, and human_needed items
383
+ - Cross-references against codebase to detect stale documentation
384
+ - Produces prioritized human test plan grouped by testability
385
+ - Use before starting a new milestone to clear verification debt
386
+
387
+ Usage: `/gsd:audit-uat`
388
+
389
+ ### Milestone Auditing
390
+
391
+ **`/gsd:audit-milestone [version]`**
392
+ Audit milestone completion against original intent.
393
+
394
+ - Reads all phase VERIFICATION.md files
395
+ - Checks requirements coverage
396
+ - Spawns integration checker for cross-phase wiring
397
+ - Creates MILESTONE-AUDIT.md with gaps and tech debt
398
+
399
+ Usage: `/gsd:audit-milestone`
400
+
401
+ **`/gsd:plan-milestone-gaps`**
402
+ Create phases to close gaps identified by audit.
403
+
404
+ - Reads MILESTONE-AUDIT.md and groups gaps into phases
405
+ - Prioritizes by requirement priority (must/should/nice)
406
+ - Adds gap closure phases to ROADMAP.md
407
+ - Ready for `/gsd:plan-phase` on new phases
408
+
409
+ Usage: `/gsd:plan-milestone-gaps`
410
+
411
+ ### Configuration
412
+
413
+ **`/gsd:settings`**
414
+ Configure workflow toggles and model profile interactively.
415
+
416
+ - Toggle researcher, plan checker, verifier agents
417
+ - Select model profile (quality/balanced/budget/inherit)
418
+ - Updates `.planning/config.json`
419
+
420
+ Usage: `/gsd:settings`
421
+
422
+ **`/gsd:set-profile <profile>`**
423
+ Quick switch model profile for GSD agents.
424
+
425
+ - `quality` — Opus everywhere except verification
426
+ - `balanced` — Opus for planning, Sonnet for execution (default)
427
+ - `budget` — Sonnet for writing, Haiku for research/verification
428
+ - `inherit` — Use current session model for all agents (OpenCode `/model`)
429
+
430
+ Usage: `/gsd:set-profile budget`
431
+
432
+ ### Utility Commands
433
+
434
+ **`/gsd:cleanup`**
435
+ Archive accumulated phase directories from completed milestones.
436
+
437
+ - Identifies phases from completed milestones still in `.planning/phases/`
438
+ - Shows dry-run summary before moving anything
439
+ - Moves phase dirs to `.planning/milestones/v{X.Y}-phases/`
440
+ - Use after multiple milestones to reduce `.planning/phases/` clutter
441
+
442
+ Usage: `/gsd:cleanup`
443
+
444
+ **`/gsd:help`**
445
+ Show this command reference.
446
+
447
+ **`/gsd:update`**
448
+ Update GSD to latest version with changelog preview.
449
+
450
+ - Shows installed vs latest version comparison
451
+ - Displays changelog entries for versions you've missed
452
+ - Highlights breaking changes
453
+ - Confirms before running install
454
+ - Better than raw `npx get-shit-done-cc`
455
+
456
+ Usage: `/gsd:update`
457
+
458
+ **`/gsd:join-discord`**
459
+ Join the GSD Discord community.
460
+
461
+ - Get help, share what you're building, stay updated
462
+ - Connect with other GSD users
463
+
464
+ Usage: `/gsd:join-discord`
465
+
466
+ ## Files & Structure
467
+
468
+ ```
469
+ .planning/
470
+ ├── PROJECT.md # Project vision
471
+ ├── ROADMAP.md # Current phase breakdown
472
+ ├── STATE.md # Project memory & context
473
+ ├── RETROSPECTIVE.md # Living retrospective (updated per milestone)
474
+ ├── config.json # Workflow mode & gates
475
+ ├── todos/ # Captured ideas and tasks
476
+ │ ├── pending/ # Todos waiting to be worked on
477
+ │ └── done/ # Completed todos
478
+ ├── debug/ # Active debug sessions
479
+ │ └── resolved/ # Archived resolved issues
480
+ ├── milestones/
481
+ │ ├── v1.0-ROADMAP.md # Archived roadmap snapshot
482
+ │ ├── v1.0-REQUIREMENTS.md # Archived requirements
483
+ │ └── v1.0-phases/ # Archived phase dirs (via /gsd:cleanup or --archive-phases)
484
+ │ ├── 01-foundation/
485
+ │ └── 02-core-features/
486
+ ├── codebase/ # Codebase map (brownfield projects)
487
+ │ ├── STACK.md # Languages, frameworks, dependencies
488
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
489
+ │ ├── STRUCTURE.md # Directory layout, key files
490
+ │ ├── CONVENTIONS.md # Coding standards, naming
491
+ │ ├── TESTING.md # Test setup, patterns
492
+ │ ├── INTEGRATIONS.md # External services, APIs
493
+ │ └── CONCERNS.md # Tech debt, known issues
494
+ └── phases/
495
+ ├── 01-foundation/
496
+ │ ├── 01-01-PLAN.md
497
+ │ └── 01-01-SUMMARY.md
498
+ └── 02-core-features/
499
+ ├── 02-01-PLAN.md
500
+ └── 02-01-SUMMARY.md
501
+ ```
502
+
503
+ ## Workflow Modes
504
+
505
+ Set during `/gsd:new-project`:
506
+
507
+ **Interactive Mode**
508
+
509
+ - Confirms each major decision
510
+ - Pauses at checkpoints for approval
511
+ - More guidance throughout
512
+
513
+ **YOLO Mode**
514
+
515
+ - Auto-approves most decisions
516
+ - Executes plans without confirmation
517
+ - Only stops for critical checkpoints
518
+
519
+ Change anytime by editing `.planning/config.json`
520
+
521
+ ## Planning Configuration
522
+
523
+ Configure how planning artifacts are managed in `.planning/config.json`:
524
+
525
+ **`planning.commit_docs`** (default: `true`)
526
+ - `true`: Planning artifacts committed to git (standard workflow)
527
+ - `false`: Planning artifacts kept local-only, not committed
528
+
529
+ When `commit_docs: false`:
530
+ - Add `.planning/` to your `.gitignore`
531
+ - Useful for OSS contributions, client projects, or keeping planning private
532
+ - All planning files still work normally, just not tracked in git
533
+
534
+ **`planning.search_gitignored`** (default: `false`)
535
+ - `true`: Add `--no-ignore` to broad ripgrep searches
536
+ - Only needed when `.planning/` is gitignored and you want project-wide searches to include it
537
+
538
+ Example config:
539
+ ```json
540
+ {
541
+ "planning": {
542
+ "commit_docs": false,
543
+ "search_gitignored": true
544
+ }
545
+ }
546
+ ```
547
+
548
+ ## Common Workflows
549
+
550
+ **Starting a new project:**
551
+
552
+ ```
553
+ /gsd:new-project # Unified flow: questioning → research → requirements → roadmap
554
+ /clear
555
+ /gsd:plan-phase 1 # Create plans for first phase
556
+ /clear
557
+ /gsd:execute-phase 1 # Execute all plans in phase
558
+ ```
559
+
560
+ **Resuming work after a break:**
561
+
562
+ ```
563
+ /gsd:progress # See where you left off and continue
564
+ ```
565
+
566
+ **Adding urgent mid-milestone work:**
567
+
568
+ ```
569
+ /gsd:insert-phase 5 "Critical security fix"
570
+ /gsd:plan-phase 5.1
571
+ /gsd:execute-phase 5.1
572
+ ```
573
+
574
+ **Completing a milestone:**
575
+
576
+ ```
577
+ /gsd:complete-milestone 1.0.0
578
+ /clear
579
+ /gsd:new-milestone # Start next milestone (questioning → research → requirements → roadmap)
580
+ ```
581
+
582
+ **Capturing ideas during work:**
583
+
584
+ ```
585
+ /gsd:add-todo # Capture from conversation context
586
+ /gsd:add-todo Fix modal z-index # Capture with explicit description
587
+ /gsd:check-todos # Review and work on todos
588
+ /gsd:check-todos api # Filter by area
589
+ ```
590
+
591
+ **Debugging an issue:**
592
+
593
+ ```
594
+ /gsd:debug "form submission fails silently" # Start debug session
595
+ # ... investigation happens, context fills up ...
596
+ /clear
597
+ /gsd:debug # Resume from where you left off
598
+ ```
599
+
600
+ ## Getting Help
601
+
602
+ - Read `.planning/PROJECT.md` for project vision
603
+ - Read `.planning/STATE.md` for current context
604
+ - Check `.planning/ROADMAP.md` for phase status
605
+ - Run `/gsd:progress` to check where you're up to
606
+
607
+ ## Code-First Commands
608
+
609
+ These commands are added by the `gsd-code-first` fork for code-first development workflows.
610
+
611
+ **`/gsd:prototype`**
612
+ Build a working code prototype with embedded @gsd-tags, then auto-extract CODE-INVENTORY.md.
613
+ Usage: `/gsd:prototype [path] [--phases N]`
614
+
615
+ **`/gsd:annotate`**
616
+ Retroactively annotate existing code with @gsd-tags, then auto-extract CODE-INVENTORY.md.
617
+ Usage: `/gsd:annotate [path] [--glob PATTERN]`
618
+
619
+ **`/gsd:extract-plan`**
620
+ Scan codebase for @gsd-tags and produce .planning/prototype/CODE-INVENTORY.md.
621
+ Usage: `/gsd:extract-plan [--phase N] [--type TAG_TYPE]`
622
+
623
+ **`/gsd:iterate`**
624
+ Run the full code-first loop: extract tags, generate plan, approve, execute.
625
+ Usage: `/gsd:iterate [--non-interactive] [--verify] [--annotate]`
626
+
627
+ **`/gsd:set-mode`**
628
+ Configure the per-phase workflow mode (code-first, plan-first, hybrid).
629
+ Usage: `/gsd:set-mode <mode> [--phase N]`
630
+
631
+ **`/gsd:deep-plan`**
632
+ Chain discuss-phase then plan-phase for phases needing upfront reasoning.
633
+ Usage: `/gsd:deep-plan <phase-number> [flags]`
634
+ </reference>