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,315 @@
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 OpenCode.
21
+
22
+ ## Quick Start
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
28
+
29
+ ## Core Workflow
30
+
31
+ ```
32
+ Initialization → Planning → Execution → Milestone Completion
33
+ ```
34
+
35
+ ### Project Initialization
36
+
37
+ **`/gsd:new-project`**
38
+ Initialize new project with brief and configuration.
39
+
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
44
+
45
+ Usage: `/gsd:new-project`
46
+
47
+ **`/gsd:create-roadmap`**
48
+ Create roadmap and state tracking for initialized project.
49
+
50
+ - Creates `.planning/ROADMAP.md` (phase breakdown)
51
+ - Creates `.planning/STATE.md` (project memory)
52
+ - Creates `.planning/phases/` directories
53
+
54
+ Usage: `/gsd:create-roadmap`
55
+
56
+ **`/gsd:map-codebase`**
57
+ Map an existing codebase for brownfield projects.
58
+
59
+ - Analyzes codebase with parallel Explore agents
60
+ - Creates `.planning/codebase/` with 7 focused documents
61
+ - Covers stack, architecture, structure, conventions, testing, integrations, concerns
62
+ - Use before `/gsd:new-project` on existing codebases
63
+
64
+ Usage: `/gsd:map-codebase`
65
+
66
+ ### Phase Planning
67
+
68
+ **`/gsd:discuss-phase <number>`**
69
+ Help articulate your vision for a phase before planning.
70
+
71
+ - Captures how you imagine this phase working
72
+ - Creates CONTEXT.md with your vision, essentials, and boundaries
73
+ - Use when you have ideas about how something should look/feel
74
+
75
+ Usage: `/gsd:discuss-phase 2`
76
+
77
+ **`/gsd:research-phase <number>`**
78
+ Comprehensive ecosystem research for niche/complex domains.
79
+
80
+ - Discovers standard stack, architecture patterns, pitfalls
81
+ - Creates RESEARCH.md with "how experts build this" knowledge
82
+ - Use for 3D, games, audio, shaders, ML, and other specialized domains
83
+ - Goes beyond "which library" to ecosystem knowledge
84
+
85
+ Usage: `/gsd:research-phase 3`
86
+
87
+ **`/gsd:list-phase-assumptions <number>`**
88
+ See what Claude is planning to do before it starts.
89
+
90
+ - Shows Claude's intended approach for a phase
91
+ - Lets you course-correct if Claude misunderstood your vision
92
+ - No files created - conversational output only
93
+
94
+ Usage: `/gsd:list-phase-assumptions 3`
95
+
96
+ **`/gsd:plan-phase <number>`**
97
+ Create detailed execution plan for a specific phase.
98
+
99
+ - Generates `.planning/phases/XX-phase-name/XX-YY-PLAN.md`
100
+ - Breaks phase into concrete, actionable tasks
101
+ - Includes verification criteria and success measures
102
+ - Multiple plans per phase supported (XX-01, XX-02, etc.)
103
+
104
+ Usage: `/gsd:plan-phase 1`
105
+ Result: Creates `.planning/phases/01-foundation/01-01-PLAN.md`
106
+
107
+ ### Execution
108
+
109
+ **`/gsd:execute-plan <path>`**
110
+ Execute a PLAN.md file directly.
111
+
112
+ - Runs plan tasks sequentially
113
+ - Creates SUMMARY.md after completion
114
+ - Updates STATE.md with accumulated context
115
+ - Fast execution without loading full skill context
116
+
117
+ Usage: `/gsd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md`
118
+
119
+ ### Roadmap Management
120
+
121
+ **`/gsd:add-phase <description>`**
122
+ Add new phase to end of current milestone.
123
+
124
+ - Appends to ROADMAP.md
125
+ - Uses next sequential number
126
+ - Updates phase directory structure
127
+
128
+ Usage: `/gsd:add-phase "Add admin dashboard"`
129
+
130
+ **`/gsd:insert-phase <after> <description>`**
131
+ Insert urgent work as decimal phase between existing phases.
132
+
133
+ - Creates intermediate phase (e.g., 7.1 between 7 and 8)
134
+ - Useful for discovered work that must happen mid-milestone
135
+ - Maintains phase ordering
136
+
137
+ Usage: `/gsd:insert-phase 7 "Fix critical auth bug"`
138
+ Result: Creates Phase 7.1
139
+
140
+ **`/gsd:remove-phase <number>`**
141
+ Remove a future phase and renumber subsequent phases.
142
+
143
+ - Deletes phase directory and all references
144
+ - Renumbers all subsequent phases to close the gap
145
+ - Only works on future (unstarted) phases
146
+ - Git commit preserves historical record
147
+
148
+ Usage: `/gsd:remove-phase 17`
149
+ Result: Phase 17 deleted, phases 18-20 become 17-19
150
+
151
+ ### Milestone Management
152
+
153
+ **`/gsd:discuss-milestone`**
154
+ Figure out what you want to build in the next milestone.
155
+
156
+ - Reviews what shipped in previous milestone
157
+ - Helps you identify features to add, improve, or fix
158
+ - Routes to /gsd:new-milestone when ready
159
+
160
+ Usage: `/gsd:discuss-milestone`
161
+
162
+ **`/gsd:new-milestone <name>`**
163
+ Create a new milestone with phases for an existing project.
164
+
165
+ - Adds milestone section to ROADMAP.md
166
+ - Creates phase directories
167
+ - Updates STATE.md for new milestone
168
+
169
+ Usage: `/gsd:new-milestone "v2.0 Features"`
170
+
171
+ **`/gsd:complete-milestone <version>`**
172
+ Archive completed milestone and prepare for next version.
173
+
174
+ - Creates MILESTONES.md entry with stats
175
+ - Archives full details to milestones/ directory
176
+ - Creates git tag for the release
177
+ - Prepares workspace for next version
178
+
179
+ Usage: `/gsd:complete-milestone 1.0.0`
180
+
181
+ ### Progress Tracking
182
+
183
+ **`/gsd:progress`**
184
+ Check project status and intelligently route to next action.
185
+
186
+ - Shows visual progress bar and completion percentage
187
+ - Summarizes recent work from SUMMARY files
188
+ - Displays current position and what's next
189
+ - Lists key decisions and open issues
190
+ - Offers to execute next plan or create it if missing
191
+ - Detects 100% milestone completion
192
+
193
+ Usage: `/gsd:progress`
194
+
195
+ ### Session Management
196
+
197
+ **`/gsd:resume-work`**
198
+ Resume work from previous session with full context restoration.
199
+
200
+ - Reads STATE.md for project context
201
+ - Shows current position and recent progress
202
+ - Offers next actions based on project state
203
+
204
+ Usage: `/gsd:resume-work`
205
+
206
+ **`/gsd:pause-work`**
207
+ Create context handoff when pausing work mid-phase.
208
+
209
+ - Creates .continue-here file with current state
210
+ - Updates STATE.md session continuity section
211
+ - Captures in-progress work context
212
+
213
+ Usage: `/gsd:pause-work`
214
+
215
+ ### Issue Management
216
+
217
+ **`/gsd:consider-issues`**
218
+ Review deferred issues with codebase context.
219
+
220
+ - Analyzes all open issues against current codebase state
221
+ - Identifies resolved issues (can close)
222
+ - Identifies urgent issues (should address now)
223
+ - Identifies natural fits for upcoming phases
224
+ - Offers batch actions (close, insert phase, note for planning)
225
+
226
+ Usage: `/gsd:consider-issues`
227
+
228
+ ### Utility Commands
229
+
230
+ **`/gsd:help`**
231
+ Show this command reference.
232
+
233
+ ## Files & Structure
234
+
235
+ ```
236
+ .planning/
237
+ ├── PROJECT.md # Project vision
238
+ ├── ROADMAP.md # Current phase breakdown
239
+ ├── STATE.md # Project memory & context
240
+ ├── ISSUES.md # Deferred enhancements (created when needed)
241
+ ├── config.json # Workflow mode & gates
242
+ ├── codebase/ # Codebase map (brownfield projects)
243
+ │ ├── STACK.md # Languages, frameworks, dependencies
244
+ │ ├── ARCHITECTURE.md # Patterns, layers, data flow
245
+ │ ├── STRUCTURE.md # Directory layout, key files
246
+ │ ├── CONVENTIONS.md # Coding standards, naming
247
+ │ ├── TESTING.md # Test setup, patterns
248
+ │ ├── INTEGRATIONS.md # External services, APIs
249
+ │ └── CONCERNS.md # Tech debt, known issues
250
+ └── phases/
251
+ ├── 01-foundation/
252
+ │ ├── 01-01-PLAN.md
253
+ │ └── 01-01-SUMMARY.md
254
+ └── 02-core-features/
255
+ ├── 02-01-PLAN.md
256
+ └── 02-01-SUMMARY.md
257
+ ```
258
+
259
+ ## Workflow Modes
260
+
261
+ Set during `/gsd:new-project`:
262
+
263
+ **Interactive Mode**
264
+
265
+ - Confirms each major decision
266
+ - Pauses at checkpoints for approval
267
+ - More guidance throughout
268
+
269
+ **YOLO Mode**
270
+
271
+ - Auto-approves most decisions
272
+ - Executes plans without confirmation
273
+ - Only stops for critical checkpoints
274
+
275
+ Change anytime by editing `.planning/config.json`
276
+
277
+ ## Common Workflows
278
+
279
+ **Starting a new project:**
280
+
281
+ ```
282
+ /gsd:new-project
283
+ /gsd:create-roadmap
284
+ /gsd:plan-phase 1
285
+ /gsd:execute-plan .planning/phases/01-foundation/01-01-PLAN.md
286
+ ```
287
+
288
+ **Resuming work after a break:**
289
+
290
+ ```
291
+ /gsd:progress # See where you left off and continue
292
+ ```
293
+
294
+ **Adding urgent mid-milestone work:**
295
+
296
+ ```
297
+ /gsd:insert-phase 5 "Critical security fix"
298
+ /gsd:plan-phase 5.1
299
+ /gsd:execute-plan .planning/phases/05.1-critical-security-fix/05.1-01-PLAN.md
300
+ ```
301
+
302
+ **Completing a milestone:**
303
+
304
+ ```
305
+ /gsd:complete-milestone 1.0.0
306
+ /gsd:new-project # Start next milestone
307
+ ```
308
+
309
+ ## Getting Help
310
+
311
+ - Read `.planning/PROJECT.md` for project vision
312
+ - Read `.planning/STATE.md` for current context
313
+ - Check `.planning/ROADMAP.md` for phase status
314
+ - Run `/gsd:progress` to check where you're up to
315
+ </reference>
@@ -0,0 +1,227 @@
1
+ ---
2
+ name: gsd:insert-phase
3
+ description: Insert urgent work as decimal phase (e.g., 7.1) between existing phases
4
+ argument-hint: <after> <description>
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ ---
10
+
11
+ <objective>
12
+ Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
13
+
14
+ Uses decimal numbering (7.1, 7.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
15
+
16
+ Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @.planning/ROADMAP.md
21
+ @.planning/STATE.md
22
+ </execution_context>
23
+
24
+ <process>
25
+
26
+ <step name="parse_arguments">
27
+ Parse the command arguments:
28
+ - First argument: integer phase number to insert after
29
+ - Remaining arguments: phase description
30
+
31
+ Example: `/gsd:insert-phase 7 Fix critical auth bug`
32
+ → after = 7
33
+ → description = "Fix critical auth bug"
34
+
35
+ Validation:
36
+
37
+ ```bash
38
+ if [ $# -lt 2 ]; then
39
+ echo "ERROR: Both phase number and description required"
40
+ echo "Usage: /gsd:insert-phase <after> <description>"
41
+ echo "Example: /gsd:insert-phase 7 Fix critical auth bug"
42
+ exit 1
43
+ fi
44
+ ```
45
+
46
+ Parse first argument as integer:
47
+
48
+ ```bash
49
+ after_phase=$1
50
+ shift
51
+ description="$*"
52
+
53
+ # Validate after_phase is an integer
54
+ if ! [[ "$after_phase" =~ ^[0-9]+$ ]]; then
55
+ echo "ERROR: Phase number must be an integer"
56
+ exit 1
57
+ fi
58
+ ```
59
+
60
+ </step>
61
+
62
+ <step name="load_roadmap">
63
+ Load the roadmap file:
64
+
65
+ ```bash
66
+ if [ -f .planning/ROADMAP.md ]; then
67
+ ROADMAP=".planning/ROADMAP.md"
68
+ else
69
+ echo "ERROR: No roadmap found (.planning/ROADMAP.md)"
70
+ exit 1
71
+ fi
72
+ ```
73
+
74
+ Read roadmap content for parsing.
75
+ </step>
76
+
77
+ <step name="verify_target_phase">
78
+ Verify that the target phase exists in the roadmap:
79
+
80
+ 1. Search for "### Phase {after_phase}:" heading
81
+ 2. If not found:
82
+
83
+ ```
84
+ ERROR: Phase {after_phase} not found in roadmap
85
+ Available phases: [list phase numbers]
86
+ ```
87
+
88
+ Exit.
89
+
90
+ 3. Verify phase is in current milestone (not completed/archived)
91
+ </step>
92
+
93
+ <step name="find_existing_decimals">
94
+ Find existing decimal phases after the target phase:
95
+
96
+ 1. Search for all "### Phase {after_phase}.N:" headings
97
+ 2. Extract decimal suffixes (e.g., for Phase 7: find 7.1, 7.2, 7.3)
98
+ 3. Find the highest decimal suffix
99
+ 4. Calculate next decimal: max + 1
100
+
101
+ Examples:
102
+
103
+ - Phase 7 with no decimals → next is 7.1
104
+ - Phase 7 with 7.1 → next is 7.2
105
+ - Phase 7 with 7.1, 7.2 → next is 7.3
106
+
107
+ Store as: `decimal_phase="${after_phase}.${next_decimal}"`
108
+ </step>
109
+
110
+ <step name="generate_slug">
111
+ Convert the phase description to a kebab-case slug:
112
+
113
+ ```bash
114
+ slug=$(echo "$description" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
115
+ ```
116
+
117
+ Phase directory name: `{decimal-phase}-{slug}`
118
+ Example: `7.1-fix-critical-auth-bug`
119
+ </step>
120
+
121
+ <step name="create_phase_directory">
122
+ Create the phase directory structure:
123
+
124
+ ```bash
125
+ phase_dir=".planning/phases/${decimal_phase}-${slug}"
126
+ mkdir -p "$phase_dir"
127
+ ```
128
+
129
+ Confirm: "Created directory: $phase_dir"
130
+ </step>
131
+
132
+ <step name="update_roadmap">
133
+ Insert the new phase entry into the roadmap:
134
+
135
+ 1. Find insertion point: immediately after Phase {after_phase}'s content (before next phase heading or "---")
136
+ 2. Insert new phase heading with (INSERTED) marker:
137
+
138
+ ```
139
+ ### Phase {decimal_phase}: {Description} (INSERTED)
140
+
141
+ **Goal:** [Urgent work - to be planned]
142
+ **Depends on:** Phase {after_phase}
143
+ **Plans:** 0 plans
144
+
145
+ Plans:
146
+ - [ ] TBD (run /gsd:plan-phase {decimal_phase} to break down)
147
+
148
+ **Details:**
149
+ [To be added during planning]
150
+ ```
151
+
152
+ 3. Write updated roadmap back to file
153
+
154
+ The "(INSERTED)" marker helps identify decimal phases as urgent insertions.
155
+
156
+ Preserve all other content exactly (formatting, spacing, other phases).
157
+ </step>
158
+
159
+ <step name="update_project_state">
160
+ Update STATE.md to reflect the inserted phase:
161
+
162
+ 1. Read `.planning/STATE.md`
163
+ 2. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
164
+ ```
165
+ - Phase {decimal_phase} inserted after Phase {after_phase}: {description} (URGENT)
166
+ ```
167
+
168
+ If "Roadmap Evolution" section doesn't exist, create it.
169
+
170
+ Add note about insertion reason if appropriate.
171
+ </step>
172
+
173
+ <step name="completion">
174
+ Present completion summary:
175
+
176
+ ```
177
+ Phase {decimal_phase} inserted after Phase {after_phase}:
178
+ - Description: {description}
179
+ - Directory: .planning/phases/{decimal-phase}-{slug}/
180
+ - Status: Not planned yet
181
+ - Marker: (INSERTED) - indicates urgent work
182
+
183
+ Roadmap updated: {roadmap-path}
184
+ Project state updated: .planning/STATE.md
185
+
186
+ ---
187
+
188
+ ## ▶ Next Up
189
+
190
+ **Phase {decimal_phase}: {description}** — urgent insertion
191
+
192
+ `/gsd:plan-phase {decimal_phase}`
193
+
194
+ *`/clear` first → fresh context window*
195
+
196
+ ---
197
+
198
+ **Also available:**
199
+ - Review insertion impact: Check if Phase {next_integer} dependencies still make sense
200
+ - Review roadmap
201
+
202
+ ---
203
+ ```
204
+ </step>
205
+
206
+ </process>
207
+
208
+ <anti_patterns>
209
+
210
+ - Don't use this for planned work at end of milestone (use /gsd:add-phase)
211
+ - Don't insert before Phase 1 (decimal 0.1 makes no sense)
212
+ - Don't renumber existing phases
213
+ - Don't modify the target phase content
214
+ - Don't create plans yet (that's /gsd:plan-phase)
215
+ - Don't commit changes (user decides when to commit)
216
+ </anti_patterns>
217
+
218
+ <success_criteria>
219
+ Phase insertion is complete when:
220
+
221
+ - [ ] Phase directory created: `.planning/phases/{N.M}-{slug}/`
222
+ - [ ] Roadmap updated with new phase entry (includes "(INSERTED)" marker)
223
+ - [ ] Phase inserted in correct position (after target phase, before next integer phase)
224
+ - [ ] STATE.md updated with roadmap evolution note
225
+ - [ ] Decimal number calculated correctly (based on existing decimals)
226
+ - [ ] User informed of next steps and dependency implications
227
+ </success_criteria>
@@ -0,0 +1,50 @@
1
+ ---
2
+ name: gsd:list-phase-assumptions
3
+ description: Surface Claude's assumptions about a phase approach before planning
4
+ argument-hint: "[phase]"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Grep
9
+ - Glob
10
+ ---
11
+
12
+ <objective>
13
+ Analyze a phase and present Claude's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
14
+
15
+ Purpose: Help users see what Claude thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
16
+ Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
17
+ </objective>
18
+
19
+ <execution_context>
20
+ @~/.config/opencode/get-shit-done/workflows/list-phase-assumptions.md
21
+ </execution_context>
22
+
23
+ <context>
24
+ Phase number: $ARGUMENTS (required)
25
+
26
+ **Load project state first:**
27
+ @.planning/STATE.md
28
+
29
+ **Load roadmap:**
30
+ @.planning/ROADMAP.md
31
+ </context>
32
+
33
+ <process>
34
+ 1. Validate phase number argument (error if missing or invalid)
35
+ 2. Check if phase exists in roadmap
36
+ 3. Follow list-phase-assumptions.md workflow:
37
+ - Analyze roadmap description
38
+ - Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
39
+ - Present assumptions clearly
40
+ - Prompt "What do you think?"
41
+ 4. Gather feedback and offer next steps
42
+ </process>
43
+
44
+ <success_criteria>
45
+
46
+ - Phase validated against roadmap
47
+ - Assumptions surfaced across five areas
48
+ - User prompted for feedback
49
+ - User knows next steps (discuss context, plan phase, or correct assumptions)
50
+ </success_criteria>
@@ -0,0 +1,84 @@
1
+ ---
2
+ name: gsd:map-codebase
3
+ description: Analyze codebase with parallel Explore agents to produce .planning/codebase/ documents
4
+ argument-hint: "[optional: specific area to map, e.g., 'api' or 'auth']"
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - Write
11
+ - Task
12
+ ---
13
+
14
+ <objective>
15
+ Analyze existing codebase using parallel Explore agents to produce structured codebase documents.
16
+
17
+ This command spawns multiple Explore agents to analyze different aspects of the codebase in parallel, each with fresh context.
18
+
19
+ Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
20
+ </objective>
21
+
22
+ <execution_context>
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
+ </execution_context>
32
+
33
+ <context>
34
+ Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
35
+
36
+ **Load project state if exists:**
37
+ Check for .planning/STATE.md - loads context if project already initialized
38
+
39
+ **This command can run:**
40
+ - Before /gsd:new-project (brownfield codebases) - creates codebase map first
41
+ - After /gsd:new-project (greenfield codebases) - updates codebase map as code evolves
42
+ - Anytime to refresh codebase understanding
43
+ </context>
44
+
45
+ <when_to_use>
46
+ **Use map-codebase for:**
47
+ - Brownfield projects before initialization (understand existing code first)
48
+ - Refreshing codebase map after significant changes
49
+ - Onboarding to an unfamiliar codebase
50
+ - Before major refactoring (understand current state)
51
+ - When STATE.md references outdated codebase info
52
+
53
+ **Skip map-codebase for:**
54
+ - Greenfield projects with no code yet (nothing to map)
55
+ - Trivial codebases (<5 files)
56
+ </when_to_use>
57
+
58
+ <process>
59
+ 1. Check if .planning/codebase/ already exists (offer to refresh or skip)
60
+ 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)
76
+ </process>
77
+
78
+ <success_criteria>
79
+ - [ ] .planning/codebase/ directory created
80
+ - [ ] All 7 codebase documents written
81
+ - [ ] Documents follow template structure
82
+ - [ ] Parallel agents completed without errors
83
+ - [ ] User knows next steps
84
+ </success_criteria>