@undeemed/get-shit-done-codex 1.6.5

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 (79) hide show
  1. package/AGENTS.md +183 -0
  2. package/LICENSE +21 -0
  3. package/README.md +179 -0
  4. package/bin/install.js +214 -0
  5. package/commands/gsd/add-phase.md +207 -0
  6. package/commands/gsd/add-todo.md +182 -0
  7. package/commands/gsd/audit-milestone.md +258 -0
  8. package/commands/gsd/check-todos.md +217 -0
  9. package/commands/gsd/complete-milestone.md +136 -0
  10. package/commands/gsd/debug.md +149 -0
  11. package/commands/gsd/discuss-phase.md +80 -0
  12. package/commands/gsd/execute-phase.md +304 -0
  13. package/commands/gsd/help.md +383 -0
  14. package/commands/gsd/insert-phase.md +227 -0
  15. package/commands/gsd/list-phase-assumptions.md +50 -0
  16. package/commands/gsd/map-codebase.md +71 -0
  17. package/commands/gsd/new-milestone.md +717 -0
  18. package/commands/gsd/new-project.md +896 -0
  19. package/commands/gsd/pause-work.md +123 -0
  20. package/commands/gsd/plan-milestone-gaps.md +284 -0
  21. package/commands/gsd/plan-phase.md +475 -0
  22. package/commands/gsd/progress.md +356 -0
  23. package/commands/gsd/remove-phase.md +338 -0
  24. package/commands/gsd/research-phase.md +180 -0
  25. package/commands/gsd/resume-work.md +40 -0
  26. package/commands/gsd/update.md +172 -0
  27. package/commands/gsd/verify-work.md +219 -0
  28. package/commands/gsd/whats-new.md +124 -0
  29. package/get-shit-done/references/checkpoints.md +788 -0
  30. package/get-shit-done/references/continuation-format.md +249 -0
  31. package/get-shit-done/references/git-integration.md +254 -0
  32. package/get-shit-done/references/questioning.md +141 -0
  33. package/get-shit-done/references/tdd.md +263 -0
  34. package/get-shit-done/references/ui-brand.md +160 -0
  35. package/get-shit-done/references/verification-patterns.md +595 -0
  36. package/get-shit-done/templates/DEBUG.md +159 -0
  37. package/get-shit-done/templates/UAT.md +247 -0
  38. package/get-shit-done/templates/codebase/architecture.md +255 -0
  39. package/get-shit-done/templates/codebase/concerns.md +310 -0
  40. package/get-shit-done/templates/codebase/conventions.md +307 -0
  41. package/get-shit-done/templates/codebase/integrations.md +280 -0
  42. package/get-shit-done/templates/codebase/stack.md +186 -0
  43. package/get-shit-done/templates/codebase/structure.md +285 -0
  44. package/get-shit-done/templates/codebase/testing.md +480 -0
  45. package/get-shit-done/templates/config.json +26 -0
  46. package/get-shit-done/templates/context.md +291 -0
  47. package/get-shit-done/templates/continue-here.md +78 -0
  48. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  49. package/get-shit-done/templates/discovery.md +146 -0
  50. package/get-shit-done/templates/milestone-archive.md +123 -0
  51. package/get-shit-done/templates/milestone.md +115 -0
  52. package/get-shit-done/templates/phase-prompt.md +576 -0
  53. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  54. package/get-shit-done/templates/project.md +184 -0
  55. package/get-shit-done/templates/requirements.md +231 -0
  56. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  57. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  58. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  59. package/get-shit-done/templates/research-project/STACK.md +120 -0
  60. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  61. package/get-shit-done/templates/research.md +529 -0
  62. package/get-shit-done/templates/roadmap.md +202 -0
  63. package/get-shit-done/templates/state.md +206 -0
  64. package/get-shit-done/templates/summary.md +269 -0
  65. package/get-shit-done/templates/user-setup.md +323 -0
  66. package/get-shit-done/templates/verification-report.md +322 -0
  67. package/get-shit-done/workflows/complete-milestone.md +750 -0
  68. package/get-shit-done/workflows/diagnose-issues.md +233 -0
  69. package/get-shit-done/workflows/discovery-phase.md +293 -0
  70. package/get-shit-done/workflows/discuss-phase.md +422 -0
  71. package/get-shit-done/workflows/execute-phase.md +552 -0
  72. package/get-shit-done/workflows/execute-plan.md +1831 -0
  73. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  74. package/get-shit-done/workflows/map-codebase.md +289 -0
  75. package/get-shit-done/workflows/resume-project.md +311 -0
  76. package/get-shit-done/workflows/transition.md +564 -0
  77. package/get-shit-done/workflows/verify-phase.md +629 -0
  78. package/get-shit-done/workflows/verify-work.md +563 -0
  79. package/package.json +39 -0
@@ -0,0 +1,304 @@
1
+ ---
2
+ name: gsd:execute-phase
3
+ description: Execute all plans in a phase with wave-based parallelization
4
+ argument-hint: "<phase-number> [--gaps-only]"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Edit
9
+ - Glob
10
+ - Grep
11
+ - Bash
12
+ - Task
13
+ - TodoWrite
14
+ - AskUserQuestion
15
+ ---
16
+
17
+ <objective>
18
+ Execute all plans in a phase using wave-based parallel execution.
19
+
20
+ Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
21
+
22
+ Context budget: ~15% orchestrator, 100% fresh per subagent.
23
+ </objective>
24
+
25
+ <execution_context>
26
+ @~/.claude/get-shit-done/references/ui-brand.md
27
+ @~/.claude/get-shit-done/workflows/execute-phase.md
28
+ </execution_context>
29
+
30
+ <context>
31
+ Phase: $ARGUMENTS
32
+
33
+ **Flags:**
34
+ - `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
35
+
36
+ @.planning/ROADMAP.md
37
+ @.planning/STATE.md
38
+ </context>
39
+
40
+ <process>
41
+ 1. **Validate phase exists**
42
+ - Find phase directory matching argument
43
+ - Count PLAN.md files
44
+ - Error if no plans found
45
+
46
+ 2. **Discover plans**
47
+ - List all *-PLAN.md files in phase directory
48
+ - Check which have *-SUMMARY.md (already complete)
49
+ - If `--gaps-only`: filter to only plans with `gap_closure: true`
50
+ - Build list of incomplete plans
51
+
52
+ 3. **Group by wave**
53
+ - Read `wave` from each plan's frontmatter
54
+ - Group plans by wave number
55
+ - Report wave structure to user
56
+
57
+ 4. **Execute waves**
58
+ For each wave in order:
59
+ - Spawn `gsd-executor` for each plan in wave (parallel Task calls)
60
+ - Wait for completion (Task blocks)
61
+ - Verify SUMMARYs created
62
+ - Proceed to next wave
63
+
64
+ 5. **Aggregate results**
65
+ - Collect summaries from all plans
66
+ - Report phase completion status
67
+
68
+ 6. **Commit any orchestrator corrections**
69
+ Check for uncommitted changes before verification:
70
+ ```bash
71
+ git status --porcelain
72
+ ```
73
+
74
+ **If changes exist:** Orchestrator made corrections between executor completions. Commit them:
75
+ ```bash
76
+ git add -u && git commit -m "fix({phase}): orchestrator corrections"
77
+ ```
78
+
79
+ **If clean:** Continue to verification.
80
+
81
+ 7. **Verify phase goal**
82
+ - Spawn `gsd-verifier` subagent with phase directory and goal
83
+ - Verifier checks must_haves against actual codebase (not SUMMARY claims)
84
+ - Creates VERIFICATION.md with detailed report
85
+ - Route by status:
86
+ - `passed` → continue to step 8
87
+ - `human_needed` → present items, get approval or feedback
88
+ - `gaps_found` → present gaps, offer `/gsd:plan-phase {X} --gaps`
89
+
90
+ 8. **Update roadmap and state**
91
+ - Update ROADMAP.md, STATE.md
92
+
93
+ 9. **Update requirements**
94
+ Mark phase requirements as Complete:
95
+ - Read ROADMAP.md, find this phase's `Requirements:` line (e.g., "AUTH-01, AUTH-02")
96
+ - Read REQUIREMENTS.md traceability table
97
+ - For each REQ-ID in this phase: change Status from "Pending" to "Complete"
98
+ - Write updated REQUIREMENTS.md
99
+ - Skip if: REQUIREMENTS.md doesn't exist, or phase has no Requirements line
100
+
101
+ 10. **Commit phase completion**
102
+ Bundle all phase metadata updates in one commit:
103
+ - Stage: `git add .planning/ROADMAP.md .planning/STATE.md`
104
+ - Stage REQUIREMENTS.md if updated: `git add .planning/REQUIREMENTS.md`
105
+ - Commit: `docs({phase}): complete {phase-name} phase`
106
+
107
+ 11. **Offer next steps**
108
+ - Route to next action (see `<offer_next>`)
109
+ </process>
110
+
111
+ <offer_next>
112
+ Output this markdown directly (not as a code block). Route based on status:
113
+
114
+ | Status | Route |
115
+ |--------|-------|
116
+ | `gaps_found` | Route C (gap closure) |
117
+ | `human_needed` | Present checklist, then re-route based on approval |
118
+ | `passed` + more phases | Route A (next phase) |
119
+ | `passed` + last phase | Route B (milestone complete) |
120
+
121
+ ---
122
+
123
+ **Route A: Phase verified, more phases remain**
124
+
125
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
126
+ GSD ► PHASE {Z} COMPLETE ✓
127
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
128
+
129
+ **Phase {Z}: {Name}**
130
+
131
+ {Y} plans executed
132
+ Goal verified ✓
133
+
134
+ ───────────────────────────────────────────────────────────────
135
+
136
+ ## ▶ Next Up
137
+
138
+ **Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
139
+
140
+ /gsd:discuss-phase {Z+1} — gather context and clarify approach
141
+
142
+ <sub>/clear first → fresh context window</sub>
143
+
144
+ ───────────────────────────────────────────────────────────────
145
+
146
+ **Also available:**
147
+ - /gsd:plan-phase {Z+1} — skip discussion, plan directly
148
+ - /gsd:verify-work {Z} — manual acceptance testing before continuing
149
+
150
+ ───────────────────────────────────────────────────────────────
151
+
152
+ ---
153
+
154
+ **Route B: Phase verified, milestone complete**
155
+
156
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
157
+ GSD ► MILESTONE COMPLETE 🎉
158
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
159
+
160
+ **v1.0**
161
+
162
+ {N} phases completed
163
+ All phase goals verified ✓
164
+
165
+ ───────────────────────────────────────────────────────────────
166
+
167
+ ## ▶ Next Up
168
+
169
+ **Audit milestone** — verify requirements, cross-phase integration, E2E flows
170
+
171
+ /gsd:audit-milestone
172
+
173
+ <sub>/clear first → fresh context window</sub>
174
+
175
+ ───────────────────────────────────────────────────────────────
176
+
177
+ **Also available:**
178
+ - /gsd:verify-work — manual acceptance testing
179
+ - /gsd:complete-milestone — skip audit, archive directly
180
+
181
+ ───────────────────────────────────────────────────────────────
182
+
183
+ ---
184
+
185
+ **Route C: Gaps found — need additional planning**
186
+
187
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
188
+ GSD ► PHASE {Z} GAPS FOUND ⚠
189
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
190
+
191
+ **Phase {Z}: {Name}**
192
+
193
+ Score: {N}/{M} must-haves verified
194
+ Report: .planning/phases/{phase_dir}/{phase}-VERIFICATION.md
195
+
196
+ ### What's Missing
197
+
198
+ {Extract gap summaries from VERIFICATION.md}
199
+
200
+ ───────────────────────────────────────────────────────────────
201
+
202
+ ## ▶ Next Up
203
+
204
+ **Plan gap closure** — create additional plans to complete the phase
205
+
206
+ /gsd:plan-phase {Z} --gaps
207
+
208
+ <sub>/clear first → fresh context window</sub>
209
+
210
+ ───────────────────────────────────────────────────────────────
211
+
212
+ **Also available:**
213
+ - cat .planning/phases/{phase_dir}/{phase}-VERIFICATION.md — see full report
214
+ - /gsd:verify-work {Z} — manual testing before planning
215
+
216
+ ───────────────────────────────────────────────────────────────
217
+
218
+ ---
219
+
220
+ After user runs /gsd:plan-phase {Z} --gaps:
221
+ 1. Planner reads VERIFICATION.md gaps
222
+ 2. Creates plans 04, 05, etc. to close gaps
223
+ 3. User runs /gsd:execute-phase {Z} again
224
+ 4. Execute-phase runs incomplete plans (04, 05...)
225
+ 5. Verifier runs again → loop until passed
226
+ </offer_next>
227
+
228
+ <wave_execution>
229
+ **Parallel spawning:**
230
+
231
+ Spawn all plans in a wave with a single message containing multiple Task calls:
232
+
233
+ ```
234
+ Task(prompt="Execute plan at {plan_01_path}\n\nPlan: @{plan_01_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
235
+ Task(prompt="Execute plan at {plan_02_path}\n\nPlan: @{plan_02_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
236
+ Task(prompt="Execute plan at {plan_03_path}\n\nPlan: @{plan_03_path}\nProject state: @.planning/STATE.md", subagent_type="gsd-executor")
237
+ ```
238
+
239
+ All three run in parallel. Task tool blocks until all complete.
240
+
241
+ **No polling.** No background agents. No TaskOutput loops.
242
+ </wave_execution>
243
+
244
+ <checkpoint_handling>
245
+ Plans with `autonomous: false` have checkpoints. The execute-phase.md workflow handles the full checkpoint flow:
246
+ - Subagent pauses at checkpoint, returns structured state
247
+ - Orchestrator presents to user, collects response
248
+ - Spawns fresh continuation agent (not resume)
249
+
250
+ See `@~/.claude/get-shit-done/workflows/execute-phase.md` step `checkpoint_handling` for complete details.
251
+ </checkpoint_handling>
252
+
253
+ <deviation_rules>
254
+ During execution, handle discoveries automatically:
255
+
256
+ 1. **Auto-fix bugs** - Fix immediately, document in Summary
257
+ 2. **Auto-add critical** - Security/correctness gaps, add and document
258
+ 3. **Auto-fix blockers** - Can't proceed without fix, do it and document
259
+ 4. **Ask about architectural** - Major structural changes, stop and ask user
260
+
261
+ Only rule 4 requires user intervention.
262
+ </deviation_rules>
263
+
264
+ <commit_rules>
265
+ **Per-Task Commits:**
266
+
267
+ After each task completes:
268
+ 1. Stage only files modified by that task
269
+ 2. Commit with format: `{type}({phase}-{plan}): {task-name}`
270
+ 3. Types: feat, fix, test, refactor, perf, chore
271
+ 4. Record commit hash for SUMMARY.md
272
+
273
+ **Plan Metadata Commit:**
274
+
275
+ After all tasks in a plan complete:
276
+ 1. Stage plan artifacts only: PLAN.md, SUMMARY.md
277
+ 2. Commit with format: `docs({phase}-{plan}): complete [plan-name] plan`
278
+ 3. NO code files (already committed per-task)
279
+
280
+ **Phase Completion Commit:**
281
+
282
+ After all plans in phase complete (step 7):
283
+ 1. Stage: ROADMAP.md, STATE.md, REQUIREMENTS.md (if updated), VERIFICATION.md
284
+ 2. Commit with format: `docs({phase}): complete {phase-name} phase`
285
+ 3. Bundles all phase-level state updates in one commit
286
+
287
+ **NEVER use:**
288
+ - `git add .`
289
+ - `git add -A`
290
+ - `git add src/` or any broad directory
291
+
292
+ **Always stage files individually.**
293
+ </commit_rules>
294
+
295
+ <success_criteria>
296
+ - [ ] All incomplete plans in phase executed
297
+ - [ ] Each plan has SUMMARY.md
298
+ - [ ] Phase goal verified (must_haves checked against codebase)
299
+ - [ ] VERIFICATION.md created in phase directory
300
+ - [ ] STATE.md reflects phase completion
301
+ - [ ] ROADMAP.md updated
302
+ - [ ] REQUIREMENTS.md updated (phase requirements marked Complete)
303
+ - [ ] User informed of next steps
304
+ </success_criteria>
@@ -0,0 +1,383 @@
1
+ ---
2
+ name: gsd:help
3
+ description: Show available GSD commands and usage guide
4
+ ---
5
+
6
+ <objective>
7
+ Display the complete GSD command reference.
8
+
9
+ Output ONLY the reference content below. Do NOT add:
10
+
11
+ - Project-specific analysis
12
+ - Git status or file context
13
+ - Next-step suggestions
14
+ - Any commentary beyond the reference
15
+ </objective>
16
+
17
+ <reference>
18
+ # GSD Command Reference
19
+
20
+ **GSD** (Get Shit Done) creates hierarchical project plans optimized for solo agentic development with OpenAI Codex CLI.
21
+
22
+ ## Quick Start
23
+
24
+ 1. `/gsd:new-project` - Initialize project (includes research, requirements, roadmap)
25
+ 2. `/gsd:plan-phase 1` - Create detailed plan for first phase
26
+ 3. `/gsd:execute-phase 1` - Execute the phase
27
+
28
+ ## Staying Updated
29
+
30
+ GSD evolves fast. Check for updates periodically:
31
+
32
+ ```
33
+ /gsd:whats-new
34
+ ```
35
+
36
+ Shows what changed since your installed version. Update with:
37
+
38
+ ```bash
39
+ npx get-shit-done-cc@latest
40
+ ```
41
+
42
+ ## Core Workflow
43
+
44
+ ```
45
+ /gsd:new-project → /gsd:plan-phase → /gsd:execute-phase → repeat
46
+ ```
47
+
48
+ ### Project Initialization
49
+
50
+ **`/gsd:new-project`**
51
+ Initialize new project through unified flow.
52
+
53
+ One command takes you from idea to ready-for-planning:
54
+ - Deep questioning to understand what you're building
55
+ - Optional domain research (spawns 4 parallel researcher agents)
56
+ - Requirements definition with v1/v2/out-of-scope scoping
57
+ - Roadmap creation with phase breakdown and success criteria
58
+
59
+ Creates all `.planning/` artifacts:
60
+ - `PROJECT.md` — vision and requirements
61
+ - `config.json` — workflow mode (interactive/yolo)
62
+ - `research/` — domain research (if selected)
63
+ - `REQUIREMENTS.md` — scoped requirements with REQ-IDs
64
+ - `ROADMAP.md` — phases mapped to requirements
65
+ - `STATE.md` — project memory
66
+
67
+ Usage: `/gsd:new-project`
68
+
69
+ **`/gsd:map-codebase`**
70
+ Map an existing codebase for brownfield projects.
71
+
72
+ - Analyzes codebase with parallel Explore agents
73
+ - Creates `.planning/codebase/` with 7 focused documents
74
+ - Covers stack, architecture, structure, conventions, testing, integrations, concerns
75
+ - Use before `/gsd:new-project` on existing codebases
76
+
77
+ Usage: `/gsd:map-codebase`
78
+
79
+ ### Phase Planning
80
+
81
+ **`/gsd:discuss-phase <number>`**
82
+ Help articulate your vision for a phase before planning.
83
+
84
+ - Captures how you imagine this phase working
85
+ - Creates CONTEXT.md with your vision, essentials, and boundaries
86
+ - Use when you have ideas about how something should look/feel
87
+
88
+ Usage: `/gsd:discuss-phase 2`
89
+
90
+ **`/gsd:research-phase <number>`**
91
+ Comprehensive ecosystem research for niche/complex domains.
92
+
93
+ - Discovers standard stack, architecture patterns, pitfalls
94
+ - Creates RESEARCH.md with "how experts build this" knowledge
95
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
96
+ - Goes beyond "which library" to ecosystem knowledge
97
+
98
+ Usage: `/gsd:research-phase 3`
99
+
100
+ **`/gsd:list-phase-assumptions <number>`**
101
+ See what Claude is planning to do before it starts.
102
+
103
+ - Shows Codex's intended approach for a phase
104
+ - Lets you course-correct if Codex misunderstood your vision
105
+ - No files created - conversational output only
106
+
107
+ Usage: `/gsd:list-phase-assumptions 3`
108
+
109
+ **`/gsd:plan-phase <number>`**
110
+ Create detailed execution plan for a specific phase.
111
+
112
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
113
+ - Breaks phase into concrete, actionable tasks
114
+ - Includes verification criteria and success measures
115
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
116
+
117
+ Usage: `/gsd:plan-phase 1`
118
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
119
+
120
+ ### Execution
121
+
122
+ **`/gsd:execute-phase <phase-number>`**
123
+ Execute all plans in a phase.
124
+
125
+ - Groups plans by wave (from frontmatter), executes waves sequentially
126
+ - Plans within each wave run in parallel via Task tool
127
+ - Verifies phase goal after all plans complete
128
+ - Updates REQUIREMENTS.md, ROADMAP.md, STATE.md
129
+
130
+ Usage: `/gsd:execute-phase 5`
131
+
132
+ ### Roadmap Management
133
+
134
+ **`/gsd:add-phase <description>`**
135
+ Add new phase to end of current milestone.
136
+
137
+ - Appends to ROADMAP.md
138
+ - Uses next sequential number
139
+ - Updates phase directory structure
140
+
141
+ Usage: `/gsd:add-phase "Add admin dashboard"`
142
+
143
+ **`/gsd:insert-phase <after> <description>`**
144
+ Insert urgent work as decimal phase between existing phases.
145
+
146
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
147
+ - Useful for discovered work that must happen mid-milestone
148
+ - Maintains phase ordering
149
+
150
+ Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
151
+ Result: Creates Phase 7.1
152
+
153
+ **`/gsd:remove-phase <number>`**
154
+ Remove a future phase and renumber subsequent phases.
155
+
156
+ - Deletes phase directory and all references
157
+ - Renumbers all subsequent phases to close the gap
158
+ - Only works on future (unstarted) phases
159
+ - Git commit preserves historical record
160
+
161
+ Usage: `/gsd:remove-phase 17`
162
+ Result: Phase 17 deleted, phases 18-20 become 17-19
163
+
164
+ ### Milestone Management
165
+
166
+ **`/gsd:new-milestone <name>`**
167
+ Start a new milestone through unified flow.
168
+
169
+ - Deep questioning to understand what you're building next
170
+ - Optional domain research (spawns 4 parallel researcher agents)
171
+ - Requirements definition with scoping
172
+ - Roadmap creation with phase breakdown
173
+
174
+ Mirrors `/gsd:new-project` flow for brownfield projects (existing PROJECT.md).
175
+
176
+ Usage: `/gsd:new-milestone "v2.0 Features"`
177
+
178
+ **`/gsd:complete-milestone <version>`**
179
+ Archive completed milestone and prepare for next version.
180
+
181
+ - Creates MILESTONES.md entry with stats
182
+ - Archives full details to milestones/ directory
183
+ - Creates git tag for the release
184
+ - Prepares workspace for next version
185
+
186
+ Usage: `/gsd:complete-milestone 1.0.0`
187
+
188
+ ### Progress Tracking
189
+
190
+ **`/gsd:progress`**
191
+ Check project status and intelligently route to next action.
192
+
193
+ - Shows visual progress bar and completion percentage
194
+ - Summarizes recent work from SUMMARY files
195
+ - Displays current position and what's next
196
+ - Lists key decisions and open issues
197
+ - Offers to execute next plan or create it if missing
198
+ - Detects 100% milestone completion
199
+
200
+ Usage: `/gsd:progress`
201
+
202
+ ### Session Management
203
+
204
+ **`/gsd:resume-work`**
205
+ Resume work from previous session with full context restoration.
206
+
207
+ - Reads STATE.md for project context
208
+ - Shows current position and recent progress
209
+ - Offers next actions based on project state
210
+
211
+ Usage: `/gsd:resume-work`
212
+
213
+ **`/gsd:pause-work`**
214
+ Create context handoff when pausing work mid-phase.
215
+
216
+ - Creates .continue-here file with current state
217
+ - Updates STATE.md session continuity section
218
+ - Captures in-progress work context
219
+
220
+ Usage: `/gsd:pause-work`
221
+
222
+ ### Debugging
223
+
224
+ **`/gsd:debug [issue description]`**
225
+ Systematic debugging with persistent state across context resets.
226
+
227
+ - Gathers symptoms through adaptive questioning
228
+ - Creates `.planning/debug/[slug].md` to track investigation
229
+ - Investigates using scientific method (evidence → hypothesis → test)
230
+ - Survives `/clear` — run `/gsd:debug` with no args to resume
231
+ - Archives resolved issues to `.planning/debug/resolved/`
232
+
233
+ Usage: `/gsd:debug "login button doesn't work"`
234
+ Usage: `/gsd:debug` (resume active session)
235
+
236
+ ### Todo Management
237
+
238
+ **`/gsd:add-todo [description]`**
239
+ Capture idea or task as todo from current conversation.
240
+
241
+ - Extracts context from conversation (or uses provided description)
242
+ - Creates structured todo file in `.planning/todos/pending/`
243
+ - Infers area from file paths for grouping
244
+ - Checks for duplicates before creating
245
+ - Updates STATE.md todo count
246
+
247
+ Usage: `/gsd:add-todo` (infers from conversation)
248
+ Usage: `/gsd:add-todo Add auth token refresh`
249
+
250
+ **`/gsd:check-todos [area]`**
251
+ List pending todos and select one to work on.
252
+
253
+ - Lists all pending todos with title, area, age
254
+ - Optional area filter (e.g., `/gsd:check-todos api`)
255
+ - Loads full context for selected todo
256
+ - Routes to appropriate action (work now, add to phase, brainstorm)
257
+ - Moves todo to done/ when work begins
258
+
259
+ Usage: `/gsd:check-todos`
260
+ Usage: `/gsd:check-todos api`
261
+
262
+ ### Utility Commands
263
+
264
+ **`/gsd:help`**
265
+ Show this command reference.
266
+
267
+ **`/gsd:whats-new`**
268
+ See what's changed since your installed version.
269
+
270
+ - Shows installed vs latest version comparison
271
+ - Displays changelog entries for versions you've missed
272
+ - Highlights breaking changes
273
+ - Provides update instructions when behind
274
+
275
+ Usage: `/gsd:whats-new`
276
+
277
+ ## Files & Structure
278
+
279
+ ```
280
+ .planning/
281
+ ├── PROJECT.md # Project vision
282
+ ├── ROADMAP.md # Current phase breakdown
283
+ ├── STATE.md # Project memory & context
284
+ ├── config.json # Workflow mode & gates
285
+ ├── todos/ # Captured ideas and tasks
286
+ │ ├── pending/ # Todos waiting to be worked on
287
+ │ └── done/ # Completed todos
288
+ ├── debug/ # Active debug sessions
289
+ │ └── resolved/ # Archived resolved issues
290
+ ├── codebase/ # Codebase map (brownfield projects)
291
+ │ ├── STACK.md # Languages, frameworks, dependencies
292
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
293
+ │ ├── STRUCTURE.md # Directory layout, key files
294
+ │ ├── CONVENTIONS.md # Coding standards, naming
295
+ │ ├── TESTING.md # Test setup, patterns
296
+ │ ├── INTEGRATIONS.md # External services, APIs
297
+ │ └── CONCERNS.md # Tech debt, known issues
298
+ └── phases/
299
+ ├── 01-foundation/
300
+ │ ├── 01-01-PLAN.md
301
+ │ └── 01-01-SUMMARY.md
302
+ └── 02-core-features/
303
+ ├── 02-01-PLAN.md
304
+ └── 02-01-SUMMARY.md
305
+ ```
306
+
307
+ ## Workflow Modes
308
+
309
+ Set during `/gsd:new-project`:
310
+
311
+ **Interactive Mode**
312
+
313
+ - Confirms each major decision
314
+ - Pauses at checkpoints for approval
315
+ - More guidance throughout
316
+
317
+ **YOLO Mode**
318
+
319
+ - Auto-approves most decisions
320
+ - Executes plans without confirmation
321
+ - Only stops for critical checkpoints
322
+
323
+ Change anytime by editing `.planning/config.json`
324
+
325
+ ## Common Workflows
326
+
327
+ **Starting a new project:**
328
+
329
+ ```
330
+ /gsd:new-project # Unified flow: questioning → research → requirements → roadmap
331
+ /clear
332
+ /gsd:plan-phase 1 # Create plans for first phase
333
+ /clear
334
+ /gsd:execute-phase 1 # Execute all plans in phase
335
+ ```
336
+
337
+ **Resuming work after a break:**
338
+
339
+ ```
340
+ /gsd:progress # See where you left off and continue
341
+ ```
342
+
343
+ **Adding urgent mid-milestone work:**
344
+
345
+ ```
346
+ /gsd:insert-phase 5 "Critical security fix"
347
+ /gsd:plan-phase 5.1
348
+ /gsd:execute-phase 5.1
349
+ ```
350
+
351
+ **Completing a milestone:**
352
+
353
+ ```
354
+ /gsd:complete-milestone 1.0.0
355
+ /clear
356
+ /gsd:new-milestone # Start next milestone (questioning → research → requirements → roadmap)
357
+ ```
358
+
359
+ **Capturing ideas during work:**
360
+
361
+ ```
362
+ /gsd:add-todo # Capture from conversation context
363
+ /gsd:add-todo Fix modal z-index # Capture with explicit description
364
+ /gsd:check-todos # Review and work on todos
365
+ /gsd:check-todos api # Filter by area
366
+ ```
367
+
368
+ **Debugging an issue:**
369
+
370
+ ```
371
+ /gsd:debug "form submission fails silently" # Start debug session
372
+ # ... investigation happens, context fills up ...
373
+ /clear
374
+ /gsd:debug # Resume from where you left off
375
+ ```
376
+
377
+ ## Getting Help
378
+
379
+ - Read `.planning/PROJECT.md` for project vision
380
+ - Read `.planning/STATE.md` for current context
381
+ - Check `.planning/ROADMAP.md` for phase status
382
+ - Run `/gsd:progress` to check where you're up to
383
+ </reference>