gsd-opencode 1.5.2 → 1.6.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 (108) hide show
  1. package/agents/gsd-codebase-mapper.md +743 -0
  2. package/agents/gsd-debugger.md +1191 -0
  3. package/agents/gsd-executor.md +759 -0
  4. package/agents/gsd-integration-checker.md +427 -0
  5. package/agents/gsd-phase-researcher.md +637 -0
  6. package/agents/gsd-plan-checker.md +749 -0
  7. package/agents/gsd-planner.md +1373 -0
  8. package/agents/gsd-project-researcher.md +877 -0
  9. package/agents/gsd-research-synthesizer.md +250 -0
  10. package/agents/gsd-roadmapper.md +610 -0
  11. package/agents/gsd-verifier.md +782 -0
  12. package/bin/install.js +11 -1
  13. package/command/gsd/add-phase.md +5 -7
  14. package/command/gsd/add-todo.md +4 -6
  15. package/command/gsd/audit-milestone.md +257 -0
  16. package/command/gsd/check-todos.md +2 -4
  17. package/command/gsd/complete-milestone.md +53 -23
  18. package/command/gsd/debug.md +120 -30
  19. package/command/gsd/discuss-phase.md +51 -30
  20. package/command/gsd/execute-phase.md +192 -26
  21. package/command/gsd/help.md +66 -75
  22. package/command/gsd/insert-phase.md +6 -6
  23. package/command/gsd/list-phase-assumptions.md +1 -1
  24. package/command/gsd/map-codebase.md +15 -28
  25. package/command/gsd/new-milestone.md +693 -36
  26. package/command/gsd/new-project.md +668 -108
  27. package/command/gsd/pause-work.md +2 -2
  28. package/command/gsd/plan-milestone-gaps.md +284 -0
  29. package/command/gsd/plan-phase.md +449 -42
  30. package/command/gsd/progress.md +66 -36
  31. package/command/gsd/remove-phase.md +17 -19
  32. package/command/gsd/research-phase.md +155 -67
  33. package/command/gsd/resume-work.md +3 -3
  34. package/command/gsd/update.md +172 -0
  35. package/command/gsd/verify-work.md +186 -38
  36. package/command/gsd/whats-new.md +124 -0
  37. package/get-shit-done/references/checkpoints.md +599 -98
  38. package/get-shit-done/references/continuation-format.md +5 -11
  39. package/get-shit-done/references/questioning.md +87 -108
  40. package/get-shit-done/references/tdd.md +3 -3
  41. package/get-shit-done/references/ui-brand.md +160 -0
  42. package/get-shit-done/references/verification-patterns.md +595 -0
  43. package/get-shit-done/templates/DEBUG.md +3 -3
  44. package/get-shit-done/templates/UAT.md +247 -0
  45. package/get-shit-done/templates/codebase/architecture.md +5 -5
  46. package/get-shit-done/templates/codebase/concerns.md +1 -1
  47. package/get-shit-done/templates/codebase/conventions.md +1 -1
  48. package/get-shit-done/templates/codebase/structure.md +8 -8
  49. package/get-shit-done/templates/codebase/testing.md +2 -2
  50. package/get-shit-done/templates/context.md +221 -70
  51. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  52. package/get-shit-done/templates/discovery.md +5 -5
  53. package/get-shit-done/templates/phase-prompt.md +115 -2
  54. package/get-shit-done/templates/planner-subagent-prompt.md +117 -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 +2 -2
  62. package/get-shit-done/templates/roadmap.md +26 -20
  63. package/get-shit-done/templates/state.md +2 -17
  64. package/get-shit-done/templates/summary.md +13 -17
  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 +152 -45
  68. package/get-shit-done/workflows/diagnose-issues.md +233 -0
  69. package/get-shit-done/workflows/discovery-phase.md +12 -17
  70. package/get-shit-done/workflows/discuss-phase.md +309 -124
  71. package/get-shit-done/workflows/execute-phase.md +177 -18
  72. package/get-shit-done/workflows/execute-plan.md +163 -145
  73. package/get-shit-done/workflows/map-codebase.md +86 -231
  74. package/get-shit-done/workflows/resume-project.md +18 -20
  75. package/get-shit-done/workflows/transition.md +7 -23
  76. package/get-shit-done/workflows/verify-phase.md +629 -0
  77. package/get-shit-done/workflows/verify-work.md +495 -134
  78. package/package.json +2 -1
  79. package/command/gsd/consider-issues.md +0 -201
  80. package/command/gsd/create-roadmap.md +0 -115
  81. package/command/gsd/discuss-milestone.md +0 -47
  82. package/command/gsd/execute-plan.md +0 -103
  83. package/command/gsd/plan-fix.md +0 -205
  84. package/command/gsd/status.md +0 -127
  85. package/get-shit-done/references/debugging/debugging-mindset.md +0 -253
  86. package/get-shit-done/references/debugging/hypothesis-testing.md +0 -373
  87. package/get-shit-done/references/debugging/investigation-techniques.md +0 -337
  88. package/get-shit-done/references/debugging/verification-patterns.md +0 -425
  89. package/get-shit-done/references/debugging/when-to-research.md +0 -361
  90. package/get-shit-done/references/plan-format.md +0 -475
  91. package/get-shit-done/references/principles.md +0 -157
  92. package/get-shit-done/references/research-pitfalls.md +0 -215
  93. package/get-shit-done/references/scope-estimation.md +0 -256
  94. package/get-shit-done/templates/agent-history.md +0 -263
  95. package/get-shit-done/templates/checkpoint-return.md +0 -204
  96. package/get-shit-done/templates/config.json +0 -26
  97. package/get-shit-done/templates/continuation-prompt.md +0 -235
  98. package/get-shit-done/templates/issues.md +0 -32
  99. package/get-shit-done/templates/milestone-context.md +0 -93
  100. package/get-shit-done/templates/subagent-task-prompt.md +0 -95
  101. package/get-shit-done/templates/uat-issues.md +0 -143
  102. package/get-shit-done/workflows/_archive/execute-phase.md +0 -899
  103. package/get-shit-done/workflows/create-milestone.md +0 -416
  104. package/get-shit-done/workflows/create-roadmap.md +0 -481
  105. package/get-shit-done/workflows/debug.md +0 -426
  106. package/get-shit-done/workflows/discuss-milestone.md +0 -236
  107. package/get-shit-done/workflows/plan-phase.md +0 -701
  108. package/get-shit-done/workflows/research-phase.md +0 -436
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: gsd-pause-work
3
3
  description: Create context handoff when pausing work mid-phase
4
- allowed-tools:
4
+ tools:
5
5
  - read
6
6
  - write
7
7
  - bash
@@ -38,7 +38,7 @@ Ask user for clarifications if needed.
38
38
  </step>
39
39
 
40
40
  <step name="write">
41
- **Write handoff to `.planning/phases/XX-name/.continue-here.md`:**
41
+ **write handoff to `.planning/phases/XX-name/.continue-here.md`:**
42
42
 
43
43
  ```markdown
44
44
  ---
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: gsd-plan-milestone-gaps
3
+ description: Create phases to close all gaps identified by milestone audit
4
+ tools:
5
+ - read
6
+ - write
7
+ - bash
8
+ - glob
9
+ - grep
10
+ - question
11
+ ---
12
+
13
+ <objective>
14
+ Create all phases necessary to close gaps identified by `/gsd-audit-milestone`.
15
+
16
+ Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
17
+
18
+ One command creates all fix phases — no manual `/gsd-add-phase` per gap.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ <!-- Spawns gsd-planner agent which has all planning expertise baked in -->
23
+ </execution_context>
24
+
25
+ <context>
26
+ **Audit results:**
27
+ glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
28
+
29
+ **Original intent (for prioritization):**
30
+ @.planning/PROJECT.md
31
+ @.planning/REQUIREMENTS.md
32
+
33
+ **Current state:**
34
+ @.planning/ROADMAP.md
35
+ @.planning/STATE.md
36
+ </context>
37
+
38
+ <process>
39
+
40
+ ## 1. Load Audit Results
41
+
42
+ ```bash
43
+ # Find the most recent audit file
44
+ ls -t .planning/v*-MILESTONE-AUDIT.md 2>/dev/null | head -1
45
+ ```
46
+
47
+ Parse YAML frontmatter to extract structured gaps:
48
+ - `gaps.requirements` — unsatisfied requirements
49
+ - `gaps.integration` — missing cross-phase connections
50
+ - `gaps.flows` — broken E2E flows
51
+
52
+ If no audit file exists or has no gaps, error:
53
+ ```
54
+ No audit gaps found. Run `/gsd-audit-milestone` first.
55
+ ```
56
+
57
+ ## 2. Prioritize Gaps
58
+
59
+ Group gaps by priority from REQUIREMENTS.md:
60
+
61
+ | Priority | Action |
62
+ |----------|--------|
63
+ | `must` | Create phase, blocks milestone |
64
+ | `should` | Create phase, recommended |
65
+ | `nice` | Ask user: include or defer? |
66
+
67
+ For integration/flow gaps, infer priority from affected requirements.
68
+
69
+ ## 3. Group Gaps into Phases
70
+
71
+ Cluster related gaps into logical phases:
72
+
73
+ **Grouping rules:**
74
+ - Same affected phase → combine into one fix phase
75
+ - Same subsystem (auth, API, UI) → combine
76
+ - Dependency order (fix stubs before wiring)
77
+ - Keep phases focused: 2-4 tasks each
78
+
79
+ **Example grouping:**
80
+ ```
81
+ Gap: DASH-01 unsatisfied (Dashboard doesn't fetch)
82
+ Gap: Integration Phase 1→3 (Auth not passed to API calls)
83
+ Gap: Flow "View dashboard" broken at data fetch
84
+
85
+ → Phase 6: "Wire Dashboard to API"
86
+ - Add fetch to Dashboard.tsx
87
+ - Include auth header in fetch
88
+ - Handle response, update state
89
+ - Render user data
90
+ ```
91
+
92
+ ## 4. Determine Phase Numbers
93
+
94
+ Find highest existing phase:
95
+ ```bash
96
+ ls -d .planning/phases/*/ | sort -V | tail -1
97
+ ```
98
+
99
+ New phases continue from there:
100
+ - If Phase 5 is highest, gaps become Phase 6, 7, 8...
101
+
102
+ ## 5. Present Gap Closure Plan
103
+
104
+ ```markdown
105
+ ## Gap Closure Plan
106
+
107
+ **Milestone:** {version}
108
+ **Gaps to close:** {N} requirements, {M} integration, {K} flows
109
+
110
+ ### Proposed Phases
111
+
112
+ **Phase {N}: {Name}**
113
+ Closes:
114
+ - {REQ-ID}: {description}
115
+ - Integration: {from} → {to}
116
+ Tasks: {count}
117
+
118
+ **Phase {N+1}: {Name}**
119
+ Closes:
120
+ - {REQ-ID}: {description}
121
+ - Flow: {flow name}
122
+ Tasks: {count}
123
+
124
+ {If nice-to-have gaps exist:}
125
+
126
+ ### Deferred (nice-to-have)
127
+
128
+ These gaps are optional. Include them?
129
+ - {gap description}
130
+ - {gap description}
131
+
132
+ ---
133
+
134
+ Create these {X} phases? (yes / adjust / defer all optional)
135
+ ```
136
+
137
+ Wait for user confirmation.
138
+
139
+ ## 6. Update ROADMAP.md
140
+
141
+ Add new phases to current milestone:
142
+
143
+ ```markdown
144
+ ### Phase {N}: {Name}
145
+ **Goal:** {derived from gaps being closed}
146
+ **Requirements:** {REQ-IDs being satisfied}
147
+ **Gap Closure:** Closes gaps from audit
148
+
149
+ ### Phase {N+1}: {Name}
150
+ ...
151
+ ```
152
+
153
+ ## 7. Create Phase Directories
154
+
155
+ ```bash
156
+ mkdir -p ".planning/phases/{NN}-{name}"
157
+ ```
158
+
159
+ ## 8. Commit Roadmap Update
160
+
161
+ ```bash
162
+ git add .planning/ROADMAP.md
163
+ git commit -m "docs(roadmap): add gap closure phases {N}-{M}"
164
+ ```
165
+
166
+ ## 9. Offer Next Steps
167
+
168
+ ```markdown
169
+ ## ✓ Gap Closure Phases Created
170
+
171
+ **Phases added:** {N} - {M}
172
+ **Gaps addressed:** {count} requirements, {count} integration, {count} flows
173
+
174
+ ---
175
+
176
+ ## ▶ Next Up
177
+
178
+ **Plan first gap closure phase**
179
+
180
+ `/gsd-plan-phase {N}`
181
+
182
+ *`/new` first → fresh context window*
183
+
184
+ ---
185
+
186
+ **Also available:**
187
+ - `/gsd-execute-phase {N}` — if plans already exist
188
+ - `cat .planning/ROADMAP.md` — see updated roadmap
189
+
190
+ ---
191
+
192
+ **After all gap phases complete:**
193
+
194
+ `/gsd-audit-milestone` — re-audit to verify gaps closed
195
+ `/gsd-complete-milestone {version}` — archive when audit passes
196
+ ```
197
+
198
+ </process>
199
+
200
+ <gap_to_phase_mapping>
201
+
202
+ ## How Gaps Become Tasks
203
+
204
+ **Requirement gap → Tasks:**
205
+ ```yaml
206
+ gap:
207
+ id: DASH-01
208
+ description: "User sees their data"
209
+ reason: "Dashboard exists but doesn't fetch from API"
210
+ missing:
211
+ - "useEffect with fetch to /api/user/data"
212
+ - "State for user data"
213
+ - "Render user data in JSX"
214
+
215
+ becomes:
216
+
217
+ phase: "Wire Dashboard Data"
218
+ tasks:
219
+ - name: "Add data fetching"
220
+ files: [src/components/Dashboard.tsx]
221
+ action: "Add useEffect that fetches /api/user/data on mount"
222
+
223
+ - name: "Add state management"
224
+ files: [src/components/Dashboard.tsx]
225
+ action: "Add useState for userData, loading, error states"
226
+
227
+ - name: "Render user data"
228
+ files: [src/components/Dashboard.tsx]
229
+ action: "Replace placeholder with userData.map rendering"
230
+ ```
231
+
232
+ **Integration gap → Tasks:**
233
+ ```yaml
234
+ gap:
235
+ from_phase: 1
236
+ to_phase: 3
237
+ connection: "Auth token → API calls"
238
+ reason: "Dashboard API calls don't include auth header"
239
+ missing:
240
+ - "Auth header in fetch calls"
241
+ - "Token refresh on 401"
242
+
243
+ becomes:
244
+
245
+ phase: "Add Auth to Dashboard API Calls"
246
+ tasks:
247
+ - name: "Add auth header to fetches"
248
+ files: [src/components/Dashboard.tsx, src/lib/api.ts]
249
+ action: "Include Authorization header with token in all API calls"
250
+
251
+ - name: "Handle 401 responses"
252
+ files: [src/lib/api.ts]
253
+ action: "Add interceptor to refresh token or redirect to login on 401"
254
+ ```
255
+
256
+ **Flow gap → Tasks:**
257
+ ```yaml
258
+ gap:
259
+ name: "User views dashboard after login"
260
+ broken_at: "Dashboard data load"
261
+ reason: "No fetch call"
262
+ missing:
263
+ - "Fetch user data on mount"
264
+ - "Display loading state"
265
+ - "Render user data"
266
+
267
+ becomes:
268
+
269
+ # Usually same phase as requirement/integration gap
270
+ # Flow gaps often overlap with other gap types
271
+ ```
272
+
273
+ </gap_to_phase_mapping>
274
+
275
+ <success_criteria>
276
+ - [ ] MILESTONE-AUDIT.md loaded and gaps parsed
277
+ - [ ] Gaps prioritized (must/should/nice)
278
+ - [ ] Gaps grouped into logical phases
279
+ - [ ] User confirmed phase plan
280
+ - [ ] ROADMAP.md updated with new phases
281
+ - [ ] Phase directories created
282
+ - [ ] Changes committed
283
+ - [ ] User knows to run `/gsd-plan-phase` next
284
+ </success_criteria>