gsd-opencode 1.5.2 → 1.6.1

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,127 +0,0 @@
1
- ---
2
- name: gsd-status
3
- description: Check status of background agents from parallel execution
4
- argument-hint: "[--wait]"
5
- allowed-tools:
6
- - read
7
- - write
8
- - bash
9
- ---
10
-
11
- <objective>
12
- Monitor background agent status from /gsd-execute-phase parallel execution.
13
-
14
- Shows running/completed agents from agent-history.json.
15
- With --wait flag, blocks until all agents complete.
16
- </objective>
17
-
18
- <context>
19
- Arguments: $ARGUMENTS
20
- </context>
21
-
22
- <process>
23
-
24
- <step name="load_history">
25
- **Load agent history:**
26
-
27
- ```bash
28
- cat .planning/agent-history.json 2>/dev/null || echo '{"entries":[]}'
29
- ```
30
-
31
- If file doesn't exist or has no entries:
32
- ```
33
- No background agents tracked.
34
-
35
- Run /gsd-execute-phase to spawn parallel agents.
36
- ```
37
- Exit.
38
- </step>
39
-
40
- <step name="filter_agents">
41
- **Find background agents:**
42
-
43
- Filter entries where:
44
- - `execution_mode` is "parallel" or "background"
45
- - `status` is "spawned" (still running) or recently completed
46
-
47
- Group by `parallel_group` if present.
48
- </step>
49
-
50
- <step name="display">
51
- **Show status table:**
52
-
53
- ```
54
- Background Agents
55
- ════════════════════════════════════════
56
-
57
- | Plan | Status | Elapsed | Agent ID |
58
- |--------|-------------|----------|---------------|
59
- | 10-01 | ✓ Complete | 2m 15s | agent_01H... |
60
- | 10-02 | ⏳ Running | 1m 30s | agent_01H... |
61
- | 10-04 | ✓ Complete | 1m 45s | agent_01H... |
62
-
63
- Progress: 2/3 complete
64
-
65
- ════════════════════════════════════════
66
- Wait for all: /gsd-status --wait
67
- ```
68
-
69
- **Status icons:**
70
- - ✓ Complete
71
- - ⏳ Running
72
- - ✗ Failed
73
- - ⏸ Queued (waiting for dependency)
74
- </step>
75
-
76
- <step name="wait_mode">
77
- **If --wait flag provided:**
78
-
79
- For each agent with status "spawned", monitor until complete:
80
-
81
- Report as each completes:
82
- ```
83
- ⏳ Waiting for 3 agents...
84
-
85
- ✓ [1/3] 10-01 complete (2m 15s)
86
- ✓ [2/3] 10-04 complete (1m 45s)
87
- ✓ [3/3] 10-02 complete (3m 30s)
88
-
89
- ════════════════════════════════════════
90
- All agents complete!
91
-
92
- Total time: 3m 30s (parallel)
93
- Sequential estimate: 7m 30s
94
- Time saved: ~4m (53%)
95
- ════════════════════════════════════════
96
- ```
97
-
98
- Update agent-history.json with completion status for each.
99
- </step>
100
-
101
- <step name="next_steps">
102
- **After all complete (or if already complete):**
103
-
104
- ```
105
- ---
106
-
107
- ## ▶ Next Up
108
-
109
- All parallel agents finished. Review results:
110
-
111
- `/gsd-progress`
112
-
113
- *`/new` first → fresh context window*
114
-
115
- ---
116
- ```
117
- </step>
118
-
119
- </process>
120
-
121
- <success_criteria>
122
- - [ ] Reads agent-history.json for background agents
123
- - [ ] Updates history with current status
124
- - [ ] Shows simple status table
125
- - [ ] --wait flag blocks until all complete
126
- - [ ] Reports time savings vs sequential
127
- </success_criteria>
@@ -1,253 +0,0 @@
1
- <philosophy>
2
- Debugging is applied epistemology. You're investigating a system to discover truth about its behavior. The difference between junior and senior debugging is not knowledge of frameworks - it's the discipline of systematic investigation.
3
- </philosophy>
4
-
5
- <meta_debugging>
6
- **Special challenge**: When you're debugging code you wrote or modified, you're fighting your own mental model.
7
-
8
- **Why this is harder**:
9
- - You made the design decisions - they feel obviously correct
10
- - You remember your intent, not what you actually implemented
11
- - You see what you meant to write, not what's there
12
- - Familiarity breeds blindness to bugs
13
-
14
- **The trap**:
15
- - "I know this works because I implemented it correctly"
16
- - "The bug must be elsewhere - I designed this part"
17
- - "I tested this approach"
18
- - These thoughts are red flags. Code you wrote is guilty until proven innocent.
19
-
20
- **The discipline**:
21
-
22
- **1. Treat your own code as foreign**
23
- - Read it as if someone else wrote it
24
- - Don't assume it does what you intended
25
- - Verify what it actually does, not what you think it does
26
- - Fresh eyes see bugs; familiar eyes see intent
27
-
28
- **2. Question your own design decisions**
29
- - "I chose approach X because..." - Was that reasoning sound?
30
- - "I assumed Y would..." - Have you verified Y actually does that?
31
- - Your implementation decisions are hypotheses, not facts
32
-
33
- **3. Admit your mental model might be wrong**
34
- - You built a mental model of how this works
35
- - That model might be incomplete or incorrect
36
- - The code's behavior is truth; your model is just a guess
37
- - Be willing to discover you misunderstood the problem
38
-
39
- **4. Prioritize code you touched**
40
- - If you modified 100 lines and something breaks
41
- - Those 100 lines are the prime suspects
42
- - Don't assume the bug is in the framework or existing code
43
- - Start investigating where you made changes
44
-
45
- <example>
46
- ❌ "I implemented the auth flow correctly, the bug must be in the existing user service"
47
-
48
- ✅ "I implemented the auth flow. Let me verify each part:
49
- - Does login actually set the token? [test it]
50
- - Does the middleware actually validate it? [test it]
51
- - Does logout actually clear it? [test it]
52
- - One of these is probably wrong"
53
-
54
- The second approach found that logout wasn't clearing the token from localStorage, only from memory.
55
- </example>
56
-
57
- **The hardest admission**: "I implemented this wrong."
58
-
59
- Not "the requirements were unclear" or "the library is confusing" - YOU made an error. Whether it was 5 minutes ago or 5 days ago doesn't matter. Your code, your responsibility, your bug to find.
60
-
61
- This intellectual honesty is the difference between debugging for hours and finding bugs quickly.
62
- </meta_debugging>
63
-
64
- <foundation>
65
- When debugging, return to foundational truths:
66
-
67
- **What do you know for certain?**
68
- - What have you directly observed (not assumed)?
69
- - What can you prove with a test right now?
70
- - What is speculation vs evidence?
71
-
72
- **What are you assuming?**
73
- - "This library should work this way" - Have you verified?
74
- - "The docs say X" - Have you tested that X actually happens?
75
- - "This worked before" - Can you prove when it worked and what changed?
76
-
77
- Strip away everything you think you know. Build understanding from observable facts.
78
- </foundation>
79
-
80
- <example>
81
- ❌ "React state updates should be synchronous here"
82
- ✅ "Let me add a console.log to observe when state actually updates"
83
-
84
- ❌ "The API must be returning bad data"
85
- ✅ "Let me log the exact response payload to see what's actually being returned"
86
-
87
- ❌ "This database query should be fast"
88
- ✅ "Let me run EXPLAIN to see the actual execution plan"
89
- </example>
90
-
91
- <cognitive_biases>
92
-
93
- <bias name="confirmation_bias">
94
- **The problem**: You form a hypothesis and only look for evidence that confirms it.
95
-
96
- **The trap**: "I think it's a race condition" → You only look for async code, missing the actual typo in a variable name.
97
-
98
- **The antidote**: Actively seek evidence that disproves your hypothesis. Ask "What would prove me wrong?"
99
- </bias>
100
-
101
- <bias name="anchoring">
102
- **The problem**: The first explanation you encounter becomes your anchor, and you adjust from there instead of considering alternatives.
103
-
104
- **The trap**: Error message mentions "timeout" → You assume it's a network issue, when it's actually a deadlock.
105
-
106
- **The antidote**: Generate multiple independent hypotheses before investigating any single one. Force yourself to list 3+ possible causes.
107
- </bias>
108
-
109
- <bias name="availability_heuristic">
110
- **The problem**: You remember recent bugs and assume similar symptoms mean the same cause.
111
-
112
- **The trap**: "We had a caching issue last week, this must be caching too."
113
-
114
- **The antidote**: Treat each bug as novel until evidence suggests otherwise. Recent memory is not evidence.
115
- </bias>
116
-
117
- <bias name="sunk_cost_fallacy">
118
- **The problem**: You've spent 2 hours debugging down one path, so you keep going even when evidence suggests it's wrong.
119
-
120
- **The trap**: "I've almost figured out this state management issue" - when the actual bug is in the API layer.
121
-
122
- **The antidote**: Set checkpoints. Every 30 minutes, ask: "If I started fresh right now, is this still the path I'd take?"
123
- </bias>
124
-
125
- </cognitive_biases>
126
-
127
- <systematic_investigation>
128
-
129
- <discipline name="change_one_variable">
130
- **Why it matters**: If you change multiple things at once, you don't know which one fixed (or broke) it.
131
-
132
- **In practice**:
133
- 1. Make one change
134
- 2. Test
135
- 3. Observe result
136
- 4. Document
137
- 5. Repeat
138
-
139
- **The temptation**: "Let me also update this dependency and refactor this function and change this config..."
140
-
141
- **The reality**: Now you have no idea what actually mattered.
142
- </discipline>
143
-
144
- <discipline name="complete_reading">
145
- **Why it matters**: Skimming code causes you to miss crucial details. You see what you expect to see, not what's there.
146
-
147
- **In practice**:
148
- - Read entire functions, not just the "relevant" lines
149
- - Read imports and dependencies
150
- - Read configuration files completely
151
- - Read test files to understand intended behavior
152
-
153
- **The shortcut**: "This function is long, I'll just read the part where the error happens"
154
-
155
- **The miss**: The bug is actually in how the function is called 50 lines up.
156
- </discipline>
157
-
158
- <discipline name="embrace_not_knowing">
159
- **Why it matters**: Premature certainty stops investigation. "I don't know" is a position of strength.
160
-
161
- **In practice**:
162
- - "I don't know why this fails" - Good. Now you can investigate.
163
- - "It must be X" - Dangerous. You've stopped thinking.
164
-
165
- **The pressure**: Users want answers. Managers want ETAs. Your ego wants to look smart.
166
-
167
- **The truth**: "I need to investigate further" is more professional than a wrong fix.
168
- </discipline>
169
-
170
- </systematic_investigation>
171
-
172
- <when_to_restart>
173
-
174
- <restart_signals>
175
- You should consider starting over when:
176
-
177
- 1. **You've been investigating for 2+ hours with no progress**
178
- - You're likely tunnel-visioned
179
- - Take a break, then restart from evidence gathering
180
-
181
- 2. **You've made 3+ "fixes" that didn't work**
182
- - Your mental model is wrong
183
- - Go back to first principles
184
-
185
- 3. **You can't explain the current behavior**
186
- - Don't add more changes on top of confusion
187
- - First understand what's happening, then fix it
188
-
189
- 4. **You're debugging the debugger**
190
- - "Is my logging broken? Is the debugger lying?"
191
- - Step back. Something fundamental is wrong.
192
-
193
- 5. **The fix works but you don't know why**
194
- - This isn't fixed. This is luck.
195
- - Investigate until you understand, or revert the change
196
- </restart_signals>
197
-
198
- <restart_protocol>
199
- When restarting:
200
-
201
- 1. **Close all files and terminals**
202
- 2. **Write down what you know for certain** (not what you think)
203
- 3. **Write down what you've ruled out**
204
- 4. **List new hypotheses** (different from before)
205
- 5. **Begin again from Phase 1: Evidence Gathering**
206
-
207
- This isn't failure. This is professionalism.
208
- </restart_protocol>
209
-
210
- </when_to_restart>
211
-
212
- <humility>
213
- The best debuggers have deep humility about their mental models:
214
-
215
- **They know**:
216
- - Their understanding of the system is incomplete
217
- - Documentation can be wrong or outdated
218
- - Their memory of "how this works" may be faulty
219
- - The system's behavior is the only truth
220
-
221
- **They don't**:
222
- - Trust their first instinct
223
- - Assume anything works as designed
224
- - Skip verification steps
225
- - Declare victory without proof
226
-
227
- **They ask**:
228
- - "What am I missing?"
229
- - "What am I wrong about?"
230
- - "What haven't I tested?"
231
- - "What does the evidence actually say?"
232
- </humility>
233
-
234
- <craft>
235
- Debugging is a craft that improves with practice:
236
-
237
- **Novice debuggers**:
238
- - Try random things hoping something works
239
- - Skip reading code carefully
240
- - Don't test their hypotheses
241
- - Declare success too early
242
-
243
- **Expert debuggers**:
244
- - Form hypotheses explicitly
245
- - Test hypotheses systematically
246
- - Read code like literature
247
- - Verify fixes rigorously
248
- - Learn from each investigation
249
-
250
- **The difference**: Not intelligence. Not knowledge. Discipline.
251
-
252
- Practice the discipline of systematic investigation, and debugging becomes a strength.
253
- </craft>