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
@@ -21,42 +21,55 @@ Output ONLY the reference content below. Do NOT add:
21
21
 
22
22
  ## Quick Start
23
23
 
24
- 1. `/gsd-new-project` - Initialize project with brief
25
- 2. `/gsd-create-roadmap` - Create roadmap and phases
26
- 3. `/gsd-plan-phase <number>` - Create detailed plan for first phase
27
- 4. `/gsd-execute-plan <path>` - Execute the plan
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
28
27
 
29
- ## Core Workflow
28
+ ## Staying Updated
29
+
30
+ GSD evolves fast. Check for updates periodically:
30
31
 
31
32
  ```
32
- Initialization → Planning → Execution → Milestone Completion
33
+ /gsd-whats-new
33
34
  ```
34
35
 
35
- ### Project Initialization
36
+ Shows what changed since your installed version. Update with:
36
37
 
37
- **`/gsd-new-project`**
38
- Initialize new project with brief and configuration.
38
+ ```bash
39
+ npx gsd-opencode@latest
40
+ ```
39
41
 
40
- - Creates `.planning/PROJECT.md` (vision and requirements)
41
- - Creates `.planning/config.json` (workflow mode)
42
- - Asks for workflow mode (interactive/yolo) upfront
43
- - Commits initialization files to git
42
+ ## Core Workflow
44
43
 
45
- Usage: `/gsd-new-project`
44
+ ```
45
+ /gsd-new-project → /gsd-plan-phase → /gsd-execute-phase → repeat
46
+ ```
46
47
 
47
- **`/gsd-create-roadmap`**
48
- Create roadmap and state tracking for initialized project.
48
+ ### Project Initialization
49
49
 
50
- - Creates `.planning/ROADMAP.md` (phase breakdown)
51
- - Creates `.planning/STATE.md` (project memory)
52
- - Creates `.planning/phases/` directories
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
53
66
 
54
- Usage: `/gsd-create-roadmap`
67
+ Usage: `/gsd-new-project`
55
68
 
56
69
  **`/gsd-map-codebase`**
57
70
  Map an existing codebase for brownfield projects.
58
71
 
59
- - Analyzes codebase with parallel explore agents
72
+ - Analyzes codebase with parallel Explore agents
60
73
  - Creates `.planning/codebase/` with 7 focused documents
61
74
  - Covers stack, architecture, structure, conventions, testing, integrations, concerns
62
75
  - Use before `/gsd-new-project` on existing codebases
@@ -106,30 +119,16 @@ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
106
119
 
107
120
  ### Execution
108
121
 
109
- **`/gsd-execute-plan <path>`**
110
- Execute a single PLAN.md file.
111
-
112
- - Runs plan tasks sequentially
113
- - Creates SUMMARY.md after completion
114
- - Updates STATE.md with accumulated context
115
- - Use for interactive execution with checkpoints
116
-
117
- Usage: `/gsd-execute-plan .planning/phases/01-foundation/01-01-PLAN.md`
118
-
119
122
  **`/gsd-execute-phase <phase-number>`**
120
- Execute all unexecuted plans in a phase with parallel agents.
123
+ Execute all plans in a phase.
121
124
 
122
- - Analyzes plan dependencies and spawns independent plans concurrently
123
- - Use when phase has 2+ plans and you want "walk away" execution
124
- - Respects max_concurrent_agents from config.json
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
125
129
 
126
130
  Usage: `/gsd-execute-phase 5`
127
131
 
128
- Options (via `.planning/config.json` parallelization section):
129
- - `max_concurrent_agents`: Limit parallel agents (default: 3)
130
- - `skip_checkpoints`: Skip human checkpoints in background (default: true)
131
- - `min_plans_for_parallel`: Minimum plans to trigger parallelization (default: 2)
132
-
133
132
  ### Roadmap Management
134
133
 
135
134
  **`/gsd-add-phase <description>`**
@@ -164,21 +163,15 @@ Result: Phase 17 deleted, phases 18-20 become 17-19
164
163
 
165
164
  ### Milestone Management
166
165
 
167
- **`/gsd-discuss-milestone`**
168
- Figure out what you want to build in the next milestone.
169
-
170
- - Reviews what shipped in previous milestone
171
- - Helps you identify features to add, improve, or fix
172
- - Routes to /gsd-new-milestone when ready
173
-
174
- Usage: `/gsd-discuss-milestone`
175
-
176
166
  **`/gsd-new-milestone <name>`**
177
- Create a new milestone with phases for an existing project.
167
+ Start a new milestone through unified flow.
178
168
 
179
- - Adds milestone section to ROADMAP.md
180
- - Creates phase directories
181
- - Updates STATE.md for new milestone
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).
182
175
 
183
176
  Usage: `/gsd-new-milestone "v2.0 Features"`
184
177
 
@@ -226,19 +219,6 @@ Create context handoff when pausing work mid-phase.
226
219
 
227
220
  Usage: `/gsd-pause-work`
228
221
 
229
- ### Issue Management
230
-
231
- **`/gsd-consider-issues`**
232
- Review deferred issues with codebase context.
233
-
234
- - Analyzes all open issues against current codebase state
235
- - Identifies resolved issues (can close)
236
- - Identifies urgent issues (should address now)
237
- - Identifies natural fits for upcoming phases
238
- - Offers batch actions (close, insert phase, note for planning)
239
-
240
- Usage: `/gsd-consider-issues`
241
-
242
222
  ### Debugging
243
223
 
244
224
  **`/gsd-debug [issue description]`**
@@ -284,6 +264,16 @@ Usage: `/gsd-check-todos api`
284
264
  **`/gsd-help`**
285
265
  Show this command reference.
286
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
+
287
277
  ## Files & Structure
288
278
 
289
279
  ```
@@ -291,7 +281,6 @@ Show this command reference.
291
281
  ├── PROJECT.md # Project vision
292
282
  ├── ROADMAP.md # Current phase breakdown
293
283
  ├── STATE.md # Project memory & context
294
- ├── ISSUES.md # Deferred enhancements (created when needed)
295
284
  ├── config.json # Workflow mode & gates
296
285
  ├── todos/ # Captured ideas and tasks
297
286
  │ ├── pending/ # Todos waiting to be worked on
@@ -338,10 +327,11 @@ Change anytime by editing `.planning/config.json`
338
327
  **Starting a new project:**
339
328
 
340
329
  ```
341
- /gsd-new-project
342
- /gsd-create-roadmap
343
- /gsd-plan-phase 1
344
- /gsd-execute-plan .planning/phases/01-foundation/01-01-PLAN.md
330
+ /gsd-new-project # Unified flow: questioning → research → requirements → roadmap
331
+ /new
332
+ /gsd-plan-phase 1 # Create plans for first phase
333
+ /new
334
+ /gsd-execute-phase 1 # Execute all plans in phase
345
335
  ```
346
336
 
347
337
  **Resuming work after a break:**
@@ -355,14 +345,15 @@ Change anytime by editing `.planning/config.json`
355
345
  ```
356
346
  /gsd-insert-phase 5 "Critical security fix"
357
347
  /gsd-plan-phase 5.1
358
- /gsd-execute-plan .planning/phases/05.1-critical-security-fix/05.1-01-PLAN.md
348
+ /gsd-execute-phase 5.1
359
349
  ```
360
350
 
361
351
  **Completing a milestone:**
362
352
 
363
353
  ```
364
354
  /gsd-complete-milestone 1.0.0
365
- /gsd-new-project # Start next milestone
355
+ /new
356
+ /gsd-new-milestone # Start next milestone (questioning → research → requirements → roadmap)
366
357
  ```
367
358
 
368
359
  **Capturing ideas during work:**
@@ -385,8 +376,8 @@ Change anytime by editing `.planning/config.json`
385
376
 
386
377
  ## Getting Help
387
378
 
388
- - Read `.planning/PROJECT.md` for project vision
389
- - Read `.planning/STATE.md` for current context
379
+ - read `.planning/PROJECT.md` for project vision
380
+ - read `.planning/STATE.md` for current context
390
381
  - Check `.planning/ROADMAP.md` for phase status
391
382
  - Run `/gsd-progress` to check where you're up to
392
383
  </reference>
@@ -2,7 +2,7 @@
2
2
  name: gsd-insert-phase
3
3
  description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
4
4
  argument-hint: <after> <description>
5
- allowed-tools:
5
+ tools:
6
6
  - read
7
7
  - write
8
8
  - bash
@@ -25,8 +25,8 @@ Purpose: Handle urgent work discovered during execution without renumbering enti
25
25
 
26
26
  <step name="parse_arguments">
27
27
  Parse the command arguments:
28
- - First argument ($1): integer phase number to insert after
29
- - Remaining arguments ($2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 ...): phase description
28
+ - First argument: integer phase number to insert after
29
+ - Remaining arguments: phase description
30
30
 
31
31
  Example: `/gsd-insert-phase 72 Fix critical auth bug`
32
32
  → after = 72
@@ -71,7 +71,7 @@ else
71
71
  fi
72
72
  ```
73
73
 
74
- Read roadmap content for parsing.
74
+ read roadmap content for parsing.
75
75
  </step>
76
76
 
77
77
  <step name="verify_target_phase">
@@ -149,7 +149,7 @@ Insert the new phase entry into the roadmap:
149
149
  [To be added during planning]
150
150
  ```
151
151
 
152
- 3. Write updated roadmap back to file
152
+ 3. write updated roadmap back to file
153
153
 
154
154
  The "(INSERTED)" marker helps identify decimal phases as urgent insertions.
155
155
 
@@ -159,7 +159,7 @@ Preserve all other content exactly (formatting, spacing, other phases).
159
159
  <step name="update_project_state">
160
160
  Update STATE.md to reflect the inserted phase:
161
161
 
162
- 1. Read `.planning/STATE.md`
162
+ 1. read `.planning/STATE.md`
163
163
  2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
164
164
  ```
165
165
  - Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)
@@ -2,7 +2,7 @@
2
2
  name: gsd-list-phase-assumptions
3
3
  description: Surface OpenCode's assumptions about a phase approach before planning
4
4
  argument-hint: "[phase]"
5
- allowed-tools:
5
+ tools:
6
6
  - read
7
7
  - bash
8
8
  - grep
@@ -1,33 +1,26 @@
1
1
  ---
2
2
  name: gsd-map-codebase
3
- description: Analyze codebase with parallel explore agents to produce .planning/codebase/ documents
3
+ description: Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents
4
4
  argument-hint: "[optional: specific area to map, e.g., 'api' or 'auth']"
5
- allowed-tools:
5
+ tools:
6
6
  - read
7
7
  - bash
8
8
  - glob
9
9
  - grep
10
10
  - write
11
- - task
11
+
12
12
  ---
13
13
 
14
14
  <objective>
15
- Analyze existing codebase using parallel explore agents to produce structured codebase documents.
15
+ Analyze existing codebase using parallel gsd-codebase-mapper agents to produce structured codebase documents.
16
16
 
17
- This command spawns multiple explore agents to analyze different aspects of the codebase in parallel, each with fresh context.
17
+ Each mapper agent explores a focus area and **writes documents directly** to `.planning/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
18
18
 
19
19
  Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
20
20
  </objective>
21
21
 
22
22
  <execution_context>
23
23
  @~/.config/opencode/get-shit-done/workflows/map-codebase.md
24
- @~/.config/opencode/get-shit-done/templates/codebase/stack.md
25
- @~/.config/opencode/get-shit-done/templates/codebase/architecture.md
26
- @~/.config/opencode/get-shit-done/templates/codebase/structure.md
27
- @~/.config/opencode/get-shit-done/templates/codebase/conventions.md
28
- @~/.config/opencode/get-shit-done/templates/codebase/testing.md
29
- @~/.config/opencode/get-shit-done/templates/codebase/integrations.md
30
- @~/.config/opencode/get-shit-done/templates/codebase/concerns.md
31
24
  </execution_context>
32
25
 
33
26
  <context>
@@ -58,26 +51,20 @@ Check for .planning/STATE.md - loads context if project already initialized
58
51
  <process>
59
52
  1. Check if .planning/codebase/ already exists (offer to refresh or skip)
60
53
  2. Create .planning/codebase/ directory structure
61
- 3. Spawn 4 parallel explore agents to analyze codebase:
62
- - Agent 1: Stack + Integrations (technology focus)
63
- - Agent 2: Architecture + Structure (organization focus)
64
- - Agent 3: Conventions + Testing (quality focus)
65
- - Agent 4: Concerns (issues focus)
66
- 4. Wait for all agents to complete, collect findings
67
- 5. Write 7 codebase documents using templates:
68
- - STACK.md - Languages, frameworks, key dependencies
69
- - ARCHITECTURE.md - System design, patterns, data flow
70
- - STRUCTURE.md - Directory layout, module organization
71
- - CONVENTIONS.md - Code style, naming, patterns
72
- - TESTING.md - Test structure, coverage, practices
73
- - INTEGRATIONS.md - APIs, databases, external services
74
- - CONCERNS.md - Technical debt, risks, issues
75
- 6. Offer next steps (typically: /gsd-new-project or /gsd-plan-phase)
54
+ 3. Spawn 4 parallel gsd-codebase-mapper agents:
55
+ - Agent 1: tech focus writes STACK.md, INTEGRATIONS.md
56
+ - Agent 2: arch focus writes ARCHITECTURE.md, STRUCTURE.md
57
+ - Agent 3: quality focus writes CONVENTIONS.md, TESTING.md
58
+ - Agent 4: concerns focus → writes CONCERNS.md
59
+ 4. Wait for agents to complete, collect confirmations (NOT document contents)
60
+ 5. Verify all 7 documents exist with line counts
61
+ 6. Commit codebase map
62
+ 7. Offer next steps (typically: /gsd-new-project or /gsd-plan-phase)
76
63
  </process>
77
64
 
78
65
  <success_criteria>
79
66
  - [ ] .planning/codebase/ directory created
80
- - [ ] All 7 codebase documents written
67
+ - [ ] All 7 codebase documents written by mapper agents
81
68
  - [ ] Documents follow template structure
82
69
  - [ ] Parallel agents completed without errors
83
70
  - [ ] User knows next steps