gsd-opencode 1.3.31

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 (68) hide show
  1. package/bin/install.js +222 -0
  2. package/command/gsd/add-phase.md +207 -0
  3. package/command/gsd/complete-milestone.md +105 -0
  4. package/command/gsd/consider-issues.md +201 -0
  5. package/command/gsd/create-roadmap.md +115 -0
  6. package/command/gsd/discuss-milestone.md +47 -0
  7. package/command/gsd/discuss-phase.md +60 -0
  8. package/command/gsd/execute-plan.md +128 -0
  9. package/command/gsd/help.md +315 -0
  10. package/command/gsd/insert-phase.md +227 -0
  11. package/command/gsd/list-phase-assumptions.md +50 -0
  12. package/command/gsd/map-codebase.md +84 -0
  13. package/command/gsd/new-milestone.md +59 -0
  14. package/command/gsd/new-project.md +316 -0
  15. package/command/gsd/pause-work.md +122 -0
  16. package/command/gsd/plan-fix.md +205 -0
  17. package/command/gsd/plan-phase.md +67 -0
  18. package/command/gsd/progress.md +316 -0
  19. package/command/gsd/remove-phase.md +338 -0
  20. package/command/gsd/research-phase.md +91 -0
  21. package/command/gsd/resume-work.md +40 -0
  22. package/command/gsd/verify-work.md +71 -0
  23. package/get-shit-done/references/checkpoints.md +287 -0
  24. package/get-shit-done/references/continuation-format.md +255 -0
  25. package/get-shit-done/references/git-integration.md +254 -0
  26. package/get-shit-done/references/plan-format.md +428 -0
  27. package/get-shit-done/references/principles.md +157 -0
  28. package/get-shit-done/references/questioning.md +162 -0
  29. package/get-shit-done/references/research-pitfalls.md +215 -0
  30. package/get-shit-done/references/scope-estimation.md +172 -0
  31. package/get-shit-done/references/tdd.md +263 -0
  32. package/get-shit-done/templates/codebase/architecture.md +255 -0
  33. package/get-shit-done/templates/codebase/concerns.md +310 -0
  34. package/get-shit-done/templates/codebase/conventions.md +307 -0
  35. package/get-shit-done/templates/codebase/integrations.md +280 -0
  36. package/get-shit-done/templates/codebase/stack.md +186 -0
  37. package/get-shit-done/templates/codebase/structure.md +285 -0
  38. package/get-shit-done/templates/codebase/testing.md +480 -0
  39. package/get-shit-done/templates/config.json +18 -0
  40. package/get-shit-done/templates/context.md +161 -0
  41. package/get-shit-done/templates/continue-here.md +78 -0
  42. package/get-shit-done/templates/discovery.md +146 -0
  43. package/get-shit-done/templates/issues.md +32 -0
  44. package/get-shit-done/templates/milestone-archive.md +123 -0
  45. package/get-shit-done/templates/milestone-context.md +93 -0
  46. package/get-shit-done/templates/milestone.md +115 -0
  47. package/get-shit-done/templates/phase-prompt.md +303 -0
  48. package/get-shit-done/templates/project.md +184 -0
  49. package/get-shit-done/templates/research.md +529 -0
  50. package/get-shit-done/templates/roadmap.md +196 -0
  51. package/get-shit-done/templates/state.md +210 -0
  52. package/get-shit-done/templates/summary.md +273 -0
  53. package/get-shit-done/templates/uat-issues.md +143 -0
  54. package/get-shit-done/workflows/complete-milestone.md +643 -0
  55. package/get-shit-done/workflows/create-milestone.md +416 -0
  56. package/get-shit-done/workflows/create-roadmap.md +481 -0
  57. package/get-shit-done/workflows/discovery-phase.md +293 -0
  58. package/get-shit-done/workflows/discuss-milestone.md +236 -0
  59. package/get-shit-done/workflows/discuss-phase.md +247 -0
  60. package/get-shit-done/workflows/execute-phase.md +1625 -0
  61. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  62. package/get-shit-done/workflows/map-codebase.md +434 -0
  63. package/get-shit-done/workflows/plan-phase.md +488 -0
  64. package/get-shit-done/workflows/research-phase.md +436 -0
  65. package/get-shit-done/workflows/resume-project.md +287 -0
  66. package/get-shit-done/workflows/transition.md +580 -0
  67. package/get-shit-done/workflows/verify-work.md +202 -0
  68. package/package.json +38 -0
@@ -0,0 +1,436 @@
1
+ <purpose>
2
+ Comprehensive research on HOW to implement a phase before planning.
3
+
4
+ Triggered by /gsd:research-phase command when the domain is niche, complex, or Claude's training is likely stale.
5
+
6
+ Produces RESEARCH.md with ecosystem knowledge that informs quality planning - not just "which library" but "how do experts build this."
7
+ </purpose>
8
+
9
+ <when_to_use>
10
+ **This workflow is for domains where Claude fails without research:**
11
+ - 3D graphics (Three.js, Babylon.js, procedural generation, level design)
12
+ - Game development (physics engines, collision, AI, ECS patterns)
13
+ - Audio/music (Web Audio, DSP, synthesis, MIDI)
14
+ - Shaders (GLSL, Metal, ISF, compute shaders)
15
+ - ML/AI integration (model serving, inference, vector DBs)
16
+ - Real-time systems (WebSockets, WebRTC, CRDT sync)
17
+ - Specialized frameworks with active ecosystems Claude may not know
18
+
19
+ **Skip this for commodity domains:**
20
+ - Standard auth (JWT, OAuth)
21
+ - CRUD APIs
22
+ - Forms and validation
23
+ - Well-documented integrations (Stripe, SendGrid)
24
+ </when_to_use>
25
+
26
+ <key_insight>
27
+ The current "mandatory discovery" in plan-phase asks: "Which library should I use?"
28
+
29
+ This workflow asks: "What do I not know that I don't know?"
30
+
31
+ For niche domains, the question isn't library selection - it's:
32
+ - What's the established architecture pattern?
33
+ - What libraries form the standard stack?
34
+ - What problems do people commonly hit?
35
+ - What's SOTA vs what Claude thinks is SOTA?
36
+ - What should NOT be hand-rolled?
37
+ </key_insight>
38
+
39
+ <process>
40
+
41
+ <step name="validate_phase" priority="first">
42
+ Phase number: $ARGUMENTS (required)
43
+
44
+ Validate phase exists in roadmap:
45
+
46
+ ```bash
47
+ if [ -f .planning/ROADMAP.md ]; then
48
+ grep -A5 "Phase ${PHASE}:" .planning/ROADMAP.md
49
+ fi
50
+ ```
51
+
52
+ **If phase not found:**
53
+ ```
54
+ Error: Phase ${PHASE} not found in roadmap.
55
+
56
+ Use /gsd:progress to see available phases.
57
+ ```
58
+ Exit workflow.
59
+
60
+ **If phase found:**
61
+ Extract:
62
+ - Phase number
63
+ - Phase name
64
+ - Phase description
65
+ - Any "Research: Likely" flags
66
+
67
+ Continue to check_existing.
68
+ </step>
69
+
70
+ <step name="check_existing">
71
+ Check if RESEARCH.md already exists for this phase:
72
+
73
+ ```bash
74
+ ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
75
+ ls .planning/phases/${PHASE}-*/${PHASE}-RESEARCH.md 2>/dev/null
76
+ ```
77
+
78
+ **If exists:**
79
+ ```
80
+ Phase ${PHASE} already has research: [path to RESEARCH.md]
81
+
82
+ What's next?
83
+ 1. Update research - Refresh with new findings
84
+ 2. View existing - Show me the current research
85
+ 3. Skip - Use existing research as-is
86
+ ```
87
+
88
+ Wait for user response.
89
+
90
+ If "Update research": Load existing RESEARCH.md, proceed to research with update mindset
91
+ If "View existing": Read and display RESEARCH.md, then offer update/skip
92
+ If "Skip": Exit workflow
93
+
94
+ **If doesn't exist:**
95
+ Continue to load_context.
96
+ </step>
97
+
98
+ <step name="load_context">
99
+ Load available context to inform research direction:
100
+
101
+ **1. Project context:**
102
+ ```bash
103
+ cat .planning/PROJECT.md 2>/dev/null | head -50
104
+ ```
105
+
106
+ **2. Phase context (if exists from /gsd:discuss-phase):**
107
+ ```bash
108
+ cat .planning/phases/${PHASE}-*/${PHASE}-CONTEXT.md 2>/dev/null
109
+ ```
110
+
111
+ If CONTEXT.md exists, use it to understand:
112
+ - User's specific goals for this phase
113
+ - Constraints mentioned
114
+ - Any preferences stated
115
+
116
+ **3. Prior phase decisions:**
117
+ ```bash
118
+ cat .planning/STATE.md 2>/dev/null | grep -A20 "## Accumulated Decisions"
119
+ ```
120
+
121
+ These may constrain technology choices.
122
+
123
+ Present what was found:
124
+ ```
125
+ Research context for Phase ${PHASE}: ${PHASE_NAME}
126
+
127
+ Roadmap description: ${PHASE_DESCRIPTION}
128
+
129
+ [If CONTEXT.md exists:]
130
+ Phase context available - will incorporate user preferences.
131
+
132
+ [If prior decisions exist:]
133
+ Prior decisions to respect: [list relevant ones]
134
+
135
+ Proceeding with ecosystem research...
136
+ ```
137
+ </step>
138
+
139
+ <step name="identify_domains">
140
+ Analyze the phase description to identify what needs researching.
141
+
142
+ **Ask: "What knowledge do I need to actually implement this well?"**
143
+
144
+ Categories to consider:
145
+
146
+ **1. Core Technology:**
147
+ - What's the primary technology/framework?
148
+ - What version is current? (Claude's training may be stale)
149
+ - What's the standard setup/toolchain?
150
+
151
+ **2. Ecosystem/Stack:**
152
+ - What libraries do experts pair with this?
153
+ - What's the "blessed" stack for this problem domain?
154
+ - What helper libraries exist that I might not know about?
155
+
156
+ **3. Architecture Patterns:**
157
+ - How do experts structure this type of project?
158
+ - What design patterns apply?
159
+ - What's the recommended project organization?
160
+
161
+ **4. Common Pitfalls:**
162
+ - What do beginners get wrong?
163
+ - What are the "gotchas" in this domain?
164
+ - What mistakes lead to rewrites?
165
+
166
+ **5. What NOT to Hand-Roll:**
167
+ - What existing solutions should be used instead of custom code?
168
+ - What problems look simple but have nasty edge cases?
169
+ - What libraries solve problems I don't know I have?
170
+
171
+ **6. Current State of the Art:**
172
+ - What's changed recently in this ecosystem?
173
+ - What approaches are now considered outdated?
174
+ - What new tools/patterns have emerged?
175
+
176
+ Present research scope:
177
+ ```
178
+ Research domains identified:
179
+
180
+ 1. Core: [e.g., "Three.js for 3D web graphics"]
181
+ 2. Ecosystem: [e.g., "Physics engine, asset loading, controls"]
182
+ 3. Patterns: [e.g., "Scene graph architecture, game loop patterns"]
183
+ 4. Pitfalls: [e.g., "Performance, memory, mobile compatibility"]
184
+ 5. Don't hand-roll: [e.g., "Physics, collision detection, procedural generation"]
185
+ 6. SOTA check: [e.g., "WebGPU vs WebGL, drei ecosystem"]
186
+
187
+ Proceeding with comprehensive research...
188
+ ```
189
+ </step>
190
+
191
+ <step name="execute_research">
192
+ Execute research systematically for each domain identified.
193
+
194
+ **CRITICAL: Source hierarchy - Context7 BEFORE WebSearch**
195
+
196
+ Claude's training data is 6-18 months stale. Treat pre-existing knowledge as hypothesis, not fact.
197
+
198
+ <research_protocol>
199
+
200
+ **For each domain, in order:**
201
+
202
+ **1. Context7 First (authoritative, current):**
203
+ ```
204
+ For core technology:
205
+ - mcp__context7__resolve-library-id with libraryName: "[main technology]"
206
+ - mcp__context7__get-library-docs with topic: "getting started"
207
+ - mcp__context7__get-library-docs with topic: "[specific concern]"
208
+
209
+ For ecosystem libraries:
210
+ - Resolve and fetch docs for each major library
211
+ - Focus on integration patterns, not just API reference
212
+ ```
213
+
214
+ **2. Official Documentation:**
215
+ - Use WebFetch for official docs not in Context7
216
+ - Check for "ecosystem" or "community" pages
217
+ - Look for "awesome-{technology}" lists
218
+ - Check GitHub trending/stars for the domain
219
+
220
+ **3. WebSearch for Ecosystem Discovery:**
221
+ ```
222
+ Ecosystem discovery queries (use {current_year}):
223
+ - "[technology] best practices {current_year}"
224
+ - "[technology] recommended libraries {current_year}"
225
+ - "[technology] common mistakes"
226
+ - "[technology] vs [alternative] {current_year}"
227
+ - "how to build [type of thing] with [technology]"
228
+ - "[technology] performance optimization"
229
+ - "[technology] project structure"
230
+
231
+ For niche domains:
232
+ - "[technology] tutorials {current_year}"
233
+ - "[technology] examples github"
234
+ - "[technology] showcase"
235
+ ```
236
+
237
+ **4. Cross-Verification (MANDATORY):**
238
+ Every WebSearch finding MUST be verified:
239
+ - Check Context7 or official docs to confirm
240
+ - Mark confidence level (HIGH if verified, MEDIUM if partially verified, LOW if WebSearch only)
241
+ - Flag contradictions between sources
242
+
243
+ </research_protocol>
244
+
245
+ <research_execution>
246
+ Execute research queries and document findings as you go:
247
+
248
+ **Core Technology Findings:**
249
+ - Current version: [from Context7]
250
+ - Key changes since [Claude's training]: [from docs/WebSearch]
251
+ - Setup approach: [verified pattern]
252
+
253
+ **Ecosystem Stack:**
254
+ - [Library 1]: [what it does, why it's standard, version]
255
+ - [Library 2]: [what it does, why it's standard, version]
256
+ - [Library 3]: [what it does, why it's standard, version]
257
+
258
+ **Architecture Patterns:**
259
+ - [Pattern 1]: [what it is, when to use]
260
+ - [Pattern 2]: [what it is, when to use]
261
+ - Project structure: [recommended organization]
262
+
263
+ **Common Pitfalls:**
264
+ - [Pitfall 1]: [what goes wrong, how to avoid]
265
+ - [Pitfall 2]: [what goes wrong, how to avoid]
266
+ - [Pitfall 3]: [what goes wrong, how to avoid]
267
+
268
+ **Don't Hand-Roll:**
269
+ - [Problem]: Use [library] instead because [reason]
270
+ - [Problem]: Use [library] instead because [reason]
271
+
272
+ **SOTA Updates:**
273
+ - [Old approach]: Now superseded by [new approach]
274
+ - [New tool]: [what it enables]
275
+ </research_execution>
276
+
277
+ </step>
278
+
279
+ <step name="quality_check">
280
+ Before creating RESEARCH.md, run through research-pitfalls.md checklist:
281
+
282
+ **From ~/.config/opencode/get-shit-done/references/research-pitfalls.md:**
283
+
284
+ - [ ] All enumerated items investigated (not just some)
285
+ - [ ] Negative claims verified with official docs
286
+ - [ ] Multiple sources cross-referenced for critical claims
287
+ - [ ] URLs provided for authoritative sources
288
+ - [ ] Publication dates checked (prefer recent/current)
289
+ - [ ] Tool/environment-specific variations documented
290
+ - [ ] Confidence levels assigned honestly
291
+ - [ ] Assumptions distinguished from verified facts
292
+ - [ ] "What might I have missed?" review completed
293
+
294
+ **Additional checks for ecosystem research:**
295
+ - [ ] Checked for libraries Claude might not know about
296
+ - [ ] Verified version numbers are current
297
+ - [ ] Confirmed patterns still recommended (not deprecated)
298
+ - [ ] Looked for "don't do this" warnings in docs
299
+ - [ ] Checked for breaking changes in recent versions
300
+ </step>
301
+
302
+ <step name="write_research">
303
+ Create RESEARCH.md using accumulated findings.
304
+
305
+ **File location:** `.planning/phases/${PHASE}-${SLUG}/${PHASE}-RESEARCH.md`
306
+
307
+ **If phase directory doesn't exist:**
308
+ Create it: `.planning/phases/${PHASE}-${SLUG}/`
309
+
310
+ Use template from ~/.config/opencode/get-shit-done/templates/research.md
311
+
312
+ Populate sections with verified findings from research execution.
313
+
314
+ **Critical content requirements:**
315
+
316
+ **1. Standard Stack section:**
317
+ - List specific libraries with versions
318
+ - Explain what each does and why it's standard
319
+ - Note any alternatives and when to use them
320
+
321
+ **2. Architecture Patterns section:**
322
+ - Document recommended patterns with code examples if available
323
+ - Include project structure recommendations
324
+ - Note what patterns to avoid
325
+
326
+ **3. Don't Hand-Roll section:**
327
+ - Be explicit about what problems have existing solutions
328
+ - Explain why custom solutions are worse
329
+ - List the libraries to use instead
330
+
331
+ **4. Common Pitfalls section:**
332
+ - Specific mistakes with explanations
333
+ - How to avoid each
334
+ - Warning signs to watch for
335
+
336
+ **5. Code Examples section:**
337
+ - Include verified code patterns from Context7/official docs
338
+ - Show the "right way" to do common operations
339
+ - Note any gotchas in the examples
340
+
341
+ Write file.
342
+ </step>
343
+
344
+ <step name="confirm_creation">
345
+ Present RESEARCH.md summary to user:
346
+
347
+ ```
348
+ Created: .planning/phases/${PHASE}-${SLUG}/${PHASE}-RESEARCH.md
349
+
350
+ ## Research Summary
351
+
352
+ **Domain:** [what was researched]
353
+
354
+ **Standard Stack:**
355
+ - [Library 1] - [brief what/why]
356
+ - [Library 2] - [brief what/why]
357
+ - [Library 3] - [brief what/why]
358
+
359
+ **Key Patterns:**
360
+ - [Pattern 1]
361
+ - [Pattern 2]
362
+
363
+ **Don't Hand-Roll:**
364
+ - [Thing 1] - use [library] instead
365
+ - [Thing 2] - use [library] instead
366
+
367
+ **Top Pitfalls:**
368
+ - [Pitfall 1]
369
+ - [Pitfall 2]
370
+
371
+ **Confidence:** [HIGH/MEDIUM/LOW] - [brief reason]
372
+
373
+ What's next?
374
+ 1. Plan this phase (/gsd:plan-phase ${PHASE}) - RESEARCH.md will be loaded automatically
375
+ 2. Dig deeper - Research specific areas more thoroughly
376
+ 3. Review full RESEARCH.md
377
+ 4. Done for now
378
+ ```
379
+ </step>
380
+
381
+ <step name="git_commit">
382
+ Commit phase research:
383
+
384
+ ```bash
385
+ git add .planning/phases/${PHASE}-${SLUG}/${PHASE}-RESEARCH.md
386
+ git commit -m "$(cat <<'EOF'
387
+ docs(${PHASE}): complete phase research
388
+
389
+ Phase ${PHASE}: ${PHASE_NAME}
390
+ - Standard stack identified
391
+ - Architecture patterns documented
392
+ - Common pitfalls catalogued
393
+ EOF
394
+ )"
395
+ ```
396
+
397
+ Confirm: "Committed: docs(${PHASE}): complete phase research"
398
+ </step>
399
+
400
+ </process>
401
+
402
+ <success_criteria>
403
+ - [ ] Phase validated against roadmap
404
+ - [ ] Research domains identified from phase description
405
+ - [ ] Context7 consulted for all relevant libraries
406
+ - [ ] Official docs consulted where Context7 lacks coverage
407
+ - [ ] WebSearch used for ecosystem discovery
408
+ - [ ] All WebSearch findings cross-verified
409
+ - [ ] Quality checklist completed
410
+ - [ ] RESEARCH.md created with comprehensive ecosystem knowledge
411
+ - [ ] Standard stack documented with versions
412
+ - [ ] Architecture patterns documented
413
+ - [ ] "Don't hand-roll" list is clear and actionable
414
+ - [ ] Common pitfalls catalogued
415
+ - [ ] Confidence levels assigned honestly
416
+ - [ ] RESEARCH.md committed to git
417
+ - [ ] User knows next steps (plan phase)
418
+ </success_criteria>
419
+
420
+ <integration_with_planning>
421
+ When /gsd:plan-phase runs after research:
422
+
423
+ 1. plan-phase detects RESEARCH.md exists in phase directory
424
+ 2. RESEARCH.md loaded as @context reference
425
+ 3. "Standard stack" informs library choices in tasks
426
+ 4. "Don't hand-roll" prevents custom solutions where libraries exist
427
+ 5. "Common pitfalls" inform verification criteria
428
+ 6. "Architecture patterns" inform task structure
429
+ 7. "Code examples" can be referenced in task actions
430
+
431
+ This produces higher quality plans because Claude knows:
432
+ - What tools experts use
433
+ - What patterns to follow
434
+ - What mistakes to avoid
435
+ - What NOT to build from scratch
436
+ </integration_with_planning>