get-shit-done-cc 1.2.13 → 1.3.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.
- package/README.md +2 -4
- package/commands/gsd/create-roadmap.md +3 -40
- package/commands/gsd/help.md +3 -25
- package/commands/gsd/map-codebase.md +85 -0
- package/commands/gsd/new-project.md +36 -8
- package/commands/gsd/plan-phase.md +3 -0
- package/get-shit-done/templates/codebase/architecture.md +249 -0
- package/get-shit-done/templates/codebase/concerns.md +299 -0
- package/get-shit-done/templates/codebase/conventions.md +307 -0
- package/get-shit-done/templates/codebase/integrations.md +280 -0
- package/get-shit-done/templates/codebase/stack.md +187 -0
- package/get-shit-done/templates/codebase/structure.md +285 -0
- package/get-shit-done/templates/codebase/testing.md +480 -0
- package/get-shit-done/workflows/create-roadmap.md +0 -105
- package/get-shit-done/workflows/execute-phase.md +47 -0
- package/get-shit-done/workflows/map-codebase.md +397 -0
- package/get-shit-done/workflows/plan-phase.md +48 -0
- package/package.json +1 -1
- package/commands/gsd/research-project.md +0 -195
- package/get-shit-done/references/research-subagent-prompts.md +0 -451
- package/get-shit-done/templates/project-research.md +0 -243
- package/get-shit-done/workflows/research-project.md +0 -223
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Orchestrate parallel Explore agents to analyze codebase and produce structured documents in .planning/codebase/
|
|
3
|
+
|
|
4
|
+
Each agent has fresh context and focuses on specific aspects. Output is concise (under 100 lines per document) and actionable for planning.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<philosophy>
|
|
8
|
+
**Why parallel agents:**
|
|
9
|
+
- Fresh context per domain (no token contamination)
|
|
10
|
+
- Thorough analysis without context exhaustion
|
|
11
|
+
- Each agent optimized for its domain (tech vs organization vs quality vs issues)
|
|
12
|
+
- Faster execution (agents run simultaneously)
|
|
13
|
+
|
|
14
|
+
**Why 100-line limit:**
|
|
15
|
+
Codebase maps are reference material loaded frequently. Concise summaries are more useful than exhaustive inventories. If codebase is large, summarize patterns rather than listing every file.
|
|
16
|
+
</philosophy>
|
|
17
|
+
|
|
18
|
+
<process>
|
|
19
|
+
|
|
20
|
+
<step name="check_existing" priority="first">
|
|
21
|
+
Check if .planning/codebase/ already exists:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ls -la .planning/codebase/ 2>/dev/null
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**If exists:**
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
.planning/codebase/ already exists with these documents:
|
|
31
|
+
[List files found]
|
|
32
|
+
|
|
33
|
+
What's next?
|
|
34
|
+
1. Refresh - Delete existing and remap codebase
|
|
35
|
+
2. Update - Keep existing, only update specific documents
|
|
36
|
+
3. Skip - Use existing codebase map as-is
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Wait for user response.
|
|
40
|
+
|
|
41
|
+
If "Refresh": Delete .planning/codebase/, continue to create_structure
|
|
42
|
+
If "Update": Ask which documents to update, continue to spawn_agents (filtered)
|
|
43
|
+
If "Skip": Exit workflow
|
|
44
|
+
|
|
45
|
+
**If doesn't exist:**
|
|
46
|
+
Continue to create_structure.
|
|
47
|
+
</step>
|
|
48
|
+
|
|
49
|
+
<step name="create_structure">
|
|
50
|
+
Create .planning/codebase/ directory:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
mkdir -p .planning/codebase
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Expected output files:**
|
|
57
|
+
- STACK.md (from stack.md template)
|
|
58
|
+
- ARCHITECTURE.md (from architecture.md template)
|
|
59
|
+
- STRUCTURE.md (from structure.md template)
|
|
60
|
+
- CONVENTIONS.md (from conventions.md template)
|
|
61
|
+
- TESTING.md (from testing.md template)
|
|
62
|
+
- INTEGRATIONS.md (from integrations.md template)
|
|
63
|
+
- CONCERNS.md (from concerns.md template)
|
|
64
|
+
|
|
65
|
+
Continue to spawn_agents.
|
|
66
|
+
</step>
|
|
67
|
+
|
|
68
|
+
<step name="spawn_agents">
|
|
69
|
+
Spawn 4 parallel Explore agents to analyze codebase.
|
|
70
|
+
|
|
71
|
+
Use Task tool with `subagent_type="Explore"` and `run_in_background=true` for parallel execution.
|
|
72
|
+
|
|
73
|
+
**Agent 1: Stack + Integrations (Technology Focus)**
|
|
74
|
+
|
|
75
|
+
Task tool parameters:
|
|
76
|
+
```
|
|
77
|
+
subagent_type: "Explore"
|
|
78
|
+
run_in_background: true
|
|
79
|
+
task_description: "Analyze codebase technology stack and external integrations"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Prompt:
|
|
83
|
+
```
|
|
84
|
+
Analyze this codebase for technology stack and external integrations.
|
|
85
|
+
|
|
86
|
+
Focus areas:
|
|
87
|
+
1. Languages (check file extensions, package manifests)
|
|
88
|
+
2. Runtime environment (Node.js, Python, etc. - check .nvmrc, .python-version, engines field)
|
|
89
|
+
3. Package manager and lockfiles
|
|
90
|
+
4. Frameworks (web, testing, build tools)
|
|
91
|
+
5. Key dependencies (critical packages for functionality)
|
|
92
|
+
6. External services (APIs, databases, auth providers)
|
|
93
|
+
7. Third-party integrations (payment, analytics, etc.)
|
|
94
|
+
8. Configuration approach (.env, config files)
|
|
95
|
+
|
|
96
|
+
Search for:
|
|
97
|
+
- package.json / requirements.txt / Cargo.toml / go.mod
|
|
98
|
+
- .env files, .env.example
|
|
99
|
+
- Config files (vite.config, webpack.config, tsconfig.json)
|
|
100
|
+
- API client code, database connection code
|
|
101
|
+
- Import statements for major libraries
|
|
102
|
+
|
|
103
|
+
Output findings for populating these sections:
|
|
104
|
+
- STACK.md: Languages, Runtime, Frameworks, Dependencies, Configuration
|
|
105
|
+
- INTEGRATIONS.md: External APIs, Services, Third-party tools
|
|
106
|
+
|
|
107
|
+
If something is not found, note "Not detected" for that category.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Agent 2: Architecture + Structure (Organization Focus)**
|
|
111
|
+
|
|
112
|
+
Task tool parameters:
|
|
113
|
+
```
|
|
114
|
+
subagent_type: "Explore"
|
|
115
|
+
run_in_background: true
|
|
116
|
+
task_description: "Analyze codebase architecture patterns and directory structure"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Prompt:
|
|
120
|
+
```
|
|
121
|
+
Analyze this codebase architecture and directory structure.
|
|
122
|
+
|
|
123
|
+
Focus areas:
|
|
124
|
+
1. Overall architectural pattern (monolith, microservices, layered, etc.)
|
|
125
|
+
2. Conceptual layers (API, service, data, utility)
|
|
126
|
+
3. Data flow and request lifecycle
|
|
127
|
+
4. Key abstractions and patterns (services, controllers, repositories)
|
|
128
|
+
5. Entry points (main files, server files, CLI entry)
|
|
129
|
+
6. Directory organization and purposes
|
|
130
|
+
7. Module boundaries
|
|
131
|
+
8. Naming conventions for directories and files
|
|
132
|
+
|
|
133
|
+
Search for:
|
|
134
|
+
- Entry points: index.ts, main.ts, server.ts, app.ts, cli.ts
|
|
135
|
+
- Directory structure patterns (src/, lib/, components/, services/)
|
|
136
|
+
- Import patterns (what imports what)
|
|
137
|
+
- Recurring code patterns (base classes, interfaces, common abstractions)
|
|
138
|
+
|
|
139
|
+
Output findings for populating these sections:
|
|
140
|
+
- ARCHITECTURE.md: Pattern, Layers, Data Flow, Abstractions, Entry Points
|
|
141
|
+
- STRUCTURE.md: Directory layout, Organization, Key locations
|
|
142
|
+
|
|
143
|
+
If something is not clear, provide best-guess interpretation based on code structure.
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
**Agent 3: Conventions + Testing (Quality Focus)**
|
|
147
|
+
|
|
148
|
+
Task tool parameters:
|
|
149
|
+
```
|
|
150
|
+
subagent_type: "Explore"
|
|
151
|
+
run_in_background: true
|
|
152
|
+
task_description: "Analyze coding conventions and test patterns"
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
Prompt:
|
|
156
|
+
```
|
|
157
|
+
Analyze this codebase for coding conventions and testing practices.
|
|
158
|
+
|
|
159
|
+
Focus areas:
|
|
160
|
+
1. Code style (indentation, quotes, semicolons, formatting)
|
|
161
|
+
2. File naming conventions (kebab-case, PascalCase, etc.)
|
|
162
|
+
3. Function/variable naming patterns
|
|
163
|
+
4. Comment and documentation style
|
|
164
|
+
5. Test framework and structure
|
|
165
|
+
6. Test organization (unit, integration, e2e)
|
|
166
|
+
7. Test coverage approach
|
|
167
|
+
8. Linting and formatting tools
|
|
168
|
+
|
|
169
|
+
Search for:
|
|
170
|
+
- Config files: .eslintrc, .prettierrc, tsconfig.json
|
|
171
|
+
- Test files: *.test.*, *.spec.*, __tests__/
|
|
172
|
+
- Test setup: vitest.config, jest.config
|
|
173
|
+
- Code patterns across multiple files
|
|
174
|
+
- README or CONTRIBUTING docs
|
|
175
|
+
|
|
176
|
+
Output findings for populating these sections:
|
|
177
|
+
- CONVENTIONS.md: Code Style, Naming, Patterns, Documentation
|
|
178
|
+
- TESTING.md: Framework, Structure, Coverage, Tools
|
|
179
|
+
|
|
180
|
+
Look at actual code files to infer conventions if config files are missing.
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
**Agent 4: Concerns (Issues Focus)**
|
|
184
|
+
|
|
185
|
+
Task tool parameters:
|
|
186
|
+
```
|
|
187
|
+
subagent_type: "Explore"
|
|
188
|
+
run_in_background: true
|
|
189
|
+
task_description: "Identify technical debt and areas of concern"
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Prompt:
|
|
193
|
+
```
|
|
194
|
+
Analyze this codebase for technical debt, known issues, and areas of concern.
|
|
195
|
+
|
|
196
|
+
Focus areas:
|
|
197
|
+
1. TODO and FIXME comments
|
|
198
|
+
2. Complex or hard-to-understand code
|
|
199
|
+
3. Missing error handling (try/catch, error checks)
|
|
200
|
+
4. Security patterns (hardcoded secrets, unsafe operations)
|
|
201
|
+
5. Outdated dependencies (check versions against current)
|
|
202
|
+
6. Missing tests for critical code
|
|
203
|
+
7. Duplicate code patterns
|
|
204
|
+
8. Performance concerns (N+1 queries, inefficient loops)
|
|
205
|
+
9. Documentation gaps (complex code without comments)
|
|
206
|
+
|
|
207
|
+
Search for:
|
|
208
|
+
- TODO, FIXME, HACK, XXX comments
|
|
209
|
+
- Large functions or files (>200 lines)
|
|
210
|
+
- Repeated code patterns
|
|
211
|
+
- Missing .env.example when .env is used
|
|
212
|
+
- Dependencies with known vulnerabilities (check versions)
|
|
213
|
+
- Error-prone patterns (no validation, no error handling)
|
|
214
|
+
|
|
215
|
+
Output findings for populating:
|
|
216
|
+
- CONCERNS.md: Technical Debt, Issues, Security, Performance, Documentation
|
|
217
|
+
|
|
218
|
+
Be constructive - focus on actionable concerns, not nitpicks.
|
|
219
|
+
If codebase is clean, note that rather than inventing problems.
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Continue to collect_results.
|
|
223
|
+
</step>
|
|
224
|
+
|
|
225
|
+
<step name="collect_results">
|
|
226
|
+
Wait for all 4 agents to complete.
|
|
227
|
+
|
|
228
|
+
Use TaskOutput tool to collect results from each agent. Since agents were run with `run_in_background=true`, retrieve their output.
|
|
229
|
+
|
|
230
|
+
**Collection pattern:**
|
|
231
|
+
|
|
232
|
+
For each agent, use TaskOutput tool to get the full exploration findings.
|
|
233
|
+
|
|
234
|
+
**Aggregate findings by document:**
|
|
235
|
+
|
|
236
|
+
From Agent 1 output, extract:
|
|
237
|
+
- STACK.md sections: Languages, Runtime, Frameworks, Dependencies, Configuration, Platform
|
|
238
|
+
- INTEGRATIONS.md sections: External APIs, Services, Authentication, Webhooks
|
|
239
|
+
|
|
240
|
+
From Agent 2 output, extract:
|
|
241
|
+
- ARCHITECTURE.md sections: Pattern Overview, Layers, Data Flow, Key Abstractions, Entry Points
|
|
242
|
+
- STRUCTURE.md sections: Directory Layout, Key Locations, Organization
|
|
243
|
+
|
|
244
|
+
From Agent 3 output, extract:
|
|
245
|
+
- CONVENTIONS.md sections: Code Style, Naming Conventions, Common Patterns, Documentation Style
|
|
246
|
+
- TESTING.md sections: Framework, Structure, Coverage, Tools
|
|
247
|
+
|
|
248
|
+
From Agent 4 output, extract:
|
|
249
|
+
- CONCERNS.md sections: Technical Debt, Known Issues, Security, Performance, Missing
|
|
250
|
+
|
|
251
|
+
**Handling missing findings:**
|
|
252
|
+
|
|
253
|
+
If an agent didn't find information for a section, use placeholder:
|
|
254
|
+
- "Not detected" (for infrastructure/tools that may not exist)
|
|
255
|
+
- "Not applicable" (for patterns that don't apply to this codebase)
|
|
256
|
+
- "No significant concerns" (for CONCERNS.md if codebase is clean)
|
|
257
|
+
|
|
258
|
+
**Line count check:**
|
|
259
|
+
|
|
260
|
+
Before writing, estimate total lines for each document. If any will exceed 100 lines:
|
|
261
|
+
- Summarize patterns instead of listing all instances
|
|
262
|
+
- Prioritize most important/frequent patterns
|
|
263
|
+
- Reference "see code for full details" for exhaustive lists
|
|
264
|
+
|
|
265
|
+
Continue to write_documents.
|
|
266
|
+
</step>
|
|
267
|
+
|
|
268
|
+
<step name="write_documents">
|
|
269
|
+
Write all 7 codebase documents using templates and agent findings.
|
|
270
|
+
|
|
271
|
+
**Template filling process:**
|
|
272
|
+
|
|
273
|
+
For each document:
|
|
274
|
+
|
|
275
|
+
1. **Read template file** from `~/.claude/get-shit-done/templates/codebase/{name}.md`
|
|
276
|
+
2. **Extract the "File Template" section** - this is the markdown code block containing the actual document structure
|
|
277
|
+
3. **Fill template placeholders** with agent findings:
|
|
278
|
+
- Replace `[YYYY-MM-DD]` with current date
|
|
279
|
+
- Replace `[Placeholder text]` with specific findings from agents
|
|
280
|
+
- If agent found nothing for a section, use appropriate placeholder:
|
|
281
|
+
- "Not detected" for optional infrastructure
|
|
282
|
+
- "Not applicable" for patterns that don't fit this codebase
|
|
283
|
+
- "No significant concerns" for clean codebase areas
|
|
284
|
+
4. **Verify line count** - if filled template exceeds 100 lines, summarize:
|
|
285
|
+
- Keep most critical findings
|
|
286
|
+
- Summarize patterns instead of exhaustive lists
|
|
287
|
+
- Add "(see code for full details)" where appropriate
|
|
288
|
+
5. **Write to .planning/codebase/{NAME}.md** (uppercase filename)
|
|
289
|
+
|
|
290
|
+
**Example filling pattern:**
|
|
291
|
+
|
|
292
|
+
Template placeholder:
|
|
293
|
+
```
|
|
294
|
+
**Primary:**
|
|
295
|
+
- [Language] [Version] - [Where used: e.g., "all application code"]
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
Agent finding:
|
|
299
|
+
```
|
|
300
|
+
Found: TypeScript 5.3 used in all .ts files throughout src/
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
Filled result:
|
|
304
|
+
```
|
|
305
|
+
**Primary:**
|
|
306
|
+
- TypeScript 5.3 - All application code
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
**Document writing order:**
|
|
310
|
+
|
|
311
|
+
1. **STACK.md** (from stack.md template + Agent 1 findings)
|
|
312
|
+
2. **INTEGRATIONS.md** (from integrations.md template + Agent 1 findings)
|
|
313
|
+
3. **ARCHITECTURE.md** (from architecture.md template + Agent 2 findings)
|
|
314
|
+
4. **STRUCTURE.md** (from structure.md template + Agent 2 findings)
|
|
315
|
+
5. **CONVENTIONS.md** (from conventions.md template + Agent 3 findings)
|
|
316
|
+
6. **TESTING.md** (from testing.md template + Agent 3 findings)
|
|
317
|
+
7. **CONCERNS.md** (from concerns.md template + Agent 4 findings)
|
|
318
|
+
|
|
319
|
+
After all documents written, continue to verify_output.
|
|
320
|
+
</step>
|
|
321
|
+
|
|
322
|
+
<step name="verify_output">
|
|
323
|
+
Verify all documents created successfully:
|
|
324
|
+
|
|
325
|
+
```bash
|
|
326
|
+
ls -la .planning/codebase/
|
|
327
|
+
wc -l .planning/codebase/*.md
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
**Verification checklist:**
|
|
331
|
+
- All 7 documents exist
|
|
332
|
+
- Each document under 100 lines
|
|
333
|
+
- No empty documents
|
|
334
|
+
- Templates populated with findings
|
|
335
|
+
|
|
336
|
+
If any checks fail, report issues to user.
|
|
337
|
+
|
|
338
|
+
Continue to offer_next.
|
|
339
|
+
</step>
|
|
340
|
+
|
|
341
|
+
<step name="offer_next">
|
|
342
|
+
Present completion summary and next steps.
|
|
343
|
+
|
|
344
|
+
**Output format:**
|
|
345
|
+
|
|
346
|
+
```
|
|
347
|
+
Codebase mapping complete.
|
|
348
|
+
|
|
349
|
+
Created .planning/codebase/:
|
|
350
|
+
- STACK.md ([N] lines) - Technologies and dependencies
|
|
351
|
+
- ARCHITECTURE.md ([N] lines) - System design and patterns
|
|
352
|
+
- STRUCTURE.md ([N] lines) - Directory layout and organization
|
|
353
|
+
- CONVENTIONS.md ([N] lines) - Code style and patterns
|
|
354
|
+
- TESTING.md ([N] lines) - Test structure and practices
|
|
355
|
+
- INTEGRATIONS.md ([N] lines) - External services and APIs
|
|
356
|
+
- CONCERNS.md ([N] lines) - Technical debt and issues
|
|
357
|
+
|
|
358
|
+
[If any files >100 lines, add warning: "⚠ Some files exceed 100 lines - consider summarizing further"]
|
|
359
|
+
|
|
360
|
+
---
|
|
361
|
+
|
|
362
|
+
## ▶ Next Up
|
|
363
|
+
|
|
364
|
+
**Initialize project** — use codebase context for planning
|
|
365
|
+
|
|
366
|
+
```
|
|
367
|
+
/gsd:new-project
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
371
|
+
|
|
372
|
+
---
|
|
373
|
+
|
|
374
|
+
**Also available:**
|
|
375
|
+
- Re-run mapping: `/gsd:map-codebase`
|
|
376
|
+
- Review specific file: `cat .planning/codebase/STACK.md`
|
|
377
|
+
- Edit any document before proceeding
|
|
378
|
+
|
|
379
|
+
---
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
End workflow.
|
|
383
|
+
</step>
|
|
384
|
+
|
|
385
|
+
</process>
|
|
386
|
+
|
|
387
|
+
<success_criteria>
|
|
388
|
+
- .planning/codebase/ directory created
|
|
389
|
+
- 4 parallel Explore agents spawned with run_in_background=true
|
|
390
|
+
- Agent prompts are specific and actionable
|
|
391
|
+
- TaskOutput used to collect all agent results
|
|
392
|
+
- All 7 codebase documents written using template filling
|
|
393
|
+
- Each document under 100 lines (or warning shown)
|
|
394
|
+
- Documents follow template structure with actual findings
|
|
395
|
+
- Clear completion summary with line counts
|
|
396
|
+
- User offered clear next steps in GSD style
|
|
397
|
+
</success_criteria>
|
|
@@ -96,6 +96,44 @@ Options:
|
|
|
96
96
|
This ensures planning has full project context.
|
|
97
97
|
</step>
|
|
98
98
|
|
|
99
|
+
<step name="load_codebase_context">
|
|
100
|
+
Check if codebase map exists:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
ls .planning/codebase/*.md 2>/dev/null
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**If .planning/codebase/ exists:**
|
|
107
|
+
|
|
108
|
+
Determine which codebase documents are relevant based on phase goal:
|
|
109
|
+
|
|
110
|
+
| Phase Keywords | Load These Documents |
|
|
111
|
+
|----------------|---------------------|
|
|
112
|
+
| UI, frontend, components, layout | CONVENTIONS.md, STRUCTURE.md |
|
|
113
|
+
| API, backend, endpoints, routes | ARCHITECTURE.md, CONVENTIONS.md |
|
|
114
|
+
| database, schema, models, migration | ARCHITECTURE.md, STACK.md |
|
|
115
|
+
| testing, tests, coverage | TESTING.md, CONVENTIONS.md |
|
|
116
|
+
| integration, external, API, service | INTEGRATIONS.md, STACK.md |
|
|
117
|
+
| refactor, cleanup, debt | CONCERNS.md, ARCHITECTURE.md |
|
|
118
|
+
| setup, config, infrastructure | STACK.md, STRUCTURE.md |
|
|
119
|
+
| (default - load minimal set) | STACK.md, ARCHITECTURE.md |
|
|
120
|
+
|
|
121
|
+
Read the relevant documents and summarize key constraints for this phase:
|
|
122
|
+
- From STACK.md: Technologies that must be used
|
|
123
|
+
- From ARCHITECTURE.md: Patterns that must be followed
|
|
124
|
+
- From CONVENTIONS.md: Code style requirements
|
|
125
|
+
- From CONCERNS.md: Issues to avoid or address
|
|
126
|
+
|
|
127
|
+
**Add to planning context:**
|
|
128
|
+
Track codebase constraints for inclusion in PLAN.md context section:
|
|
129
|
+
- Which documents loaded
|
|
130
|
+
- Key constraints extracted
|
|
131
|
+
- Patterns to follow
|
|
132
|
+
|
|
133
|
+
**If .planning/codebase/ doesn't exist:**
|
|
134
|
+
Skip this step - no codebase map available.
|
|
135
|
+
</step>
|
|
136
|
+
|
|
99
137
|
<step name="identify_phase">
|
|
100
138
|
Check roadmap for phases:
|
|
101
139
|
```bash
|
|
@@ -651,6 +689,16 @@ Output: [What artifacts will be created by this plan]
|
|
|
651
689
|
@.planning/ROADMAP.md
|
|
652
690
|
@.planning/STATE.md
|
|
653
691
|
|
|
692
|
+
[If codebase map exists (from /gsd:map-codebase):]
|
|
693
|
+
@.planning/codebase/STACK.md
|
|
694
|
+
@.planning/codebase/ARCHITECTURE.md
|
|
695
|
+
[Add other relevant docs based on phase type - see load_codebase_context step]
|
|
696
|
+
|
|
697
|
+
**Codebase constraints:**
|
|
698
|
+
- [Extracted constraints from codebase documents]
|
|
699
|
+
- [Technologies that must be used]
|
|
700
|
+
- [Patterns that must be followed]
|
|
701
|
+
|
|
654
702
|
[If comprehensive ecosystem research exists (from /gsd:research-phase):]
|
|
655
703
|
@.planning/phases/XX-name/{phase}-RESEARCH.md
|
|
656
704
|
|
package/package.json
CHANGED
|
@@ -1,195 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: Research domain ecosystem before creating roadmap
|
|
3
|
-
allowed-tools:
|
|
4
|
-
- Task
|
|
5
|
-
- Read
|
|
6
|
-
- Write
|
|
7
|
-
- Bash
|
|
8
|
-
- Glob
|
|
9
|
-
- Grep
|
|
10
|
-
- AskUserQuestion
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
<objective>
|
|
14
|
-
Research implementation context for Claude Code before roadmap creation.
|
|
15
|
-
|
|
16
|
-
This is NOT research for human decision-making. This is context injection so Claude Code can implement correctly with current APIs, patterns, and best practices.
|
|
17
|
-
|
|
18
|
-
Spawns 2-3 subagents in parallel to research PROJECT.md-specific needs:
|
|
19
|
-
|
|
20
|
-
- **Stack** - What libraries/tools to use for THIS project's features
|
|
21
|
-
- **Implementation** - Current API patterns, code examples, correct syntax
|
|
22
|
-
- **Risks** - What Claude might get wrong, deprecated patterns to avoid
|
|
23
|
-
|
|
24
|
-
Each subagent writes directly to `.planning/research/` preserving main context.
|
|
25
|
-
</objective>
|
|
26
|
-
|
|
27
|
-
<execution_context>
|
|
28
|
-
@~/.claude/get-shit-done/workflows/research-project.md
|
|
29
|
-
@~/.claude/get-shit-done/templates/project-research.md
|
|
30
|
-
@~/.claude/get-shit-done/references/research-subagent-prompts.md
|
|
31
|
-
</execution_context>
|
|
32
|
-
|
|
33
|
-
<context>
|
|
34
|
-
@.planning/PROJECT.md
|
|
35
|
-
</context>
|
|
36
|
-
|
|
37
|
-
<process>
|
|
38
|
-
|
|
39
|
-
<step name="validate">
|
|
40
|
-
Check prerequisites:
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
# Verify .planning/ exists
|
|
44
|
-
[ -d .planning ] || { echo "No .planning/ directory. Run /gsd:new-project first."; exit 1; }
|
|
45
|
-
|
|
46
|
-
# Verify PROJECT.md exists
|
|
47
|
-
[ -f .planning/PROJECT.md ] || { echo "No PROJECT.md. Run /gsd:new-project first."; exit 1; }
|
|
48
|
-
|
|
49
|
-
# Check for existing research
|
|
50
|
-
[ -d .planning/research ] && echo "RESEARCH_EXISTS" || echo "NO_RESEARCH"
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
If RESEARCH_EXISTS:
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
Research already exists at .planning/research/
|
|
57
|
-
|
|
58
|
-
What would you like to do?
|
|
59
|
-
1. View existing research
|
|
60
|
-
2. Re-run research (overwrites existing)
|
|
61
|
-
3. Skip to create-roadmap
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
Wait for user decision.
|
|
65
|
-
</step>
|
|
66
|
-
|
|
67
|
-
<step name="parse_project">
|
|
68
|
-
Read PROJECT.md and extract research targets:
|
|
69
|
-
|
|
70
|
-
**From Scope (Building):**
|
|
71
|
-
- List each feature/capability that needs implementation
|
|
72
|
-
- These become specific research queries
|
|
73
|
-
|
|
74
|
-
**From Constraints:**
|
|
75
|
-
- Tech stack requirements (language, framework, platform)
|
|
76
|
-
- Performance requirements
|
|
77
|
-
- Compatibility requirements
|
|
78
|
-
|
|
79
|
-
**From Open Questions:**
|
|
80
|
-
- Questions that research should answer
|
|
81
|
-
- These are explicit research targets
|
|
82
|
-
|
|
83
|
-
**From Decisions Made:**
|
|
84
|
-
- Choices to validate ("any gotchas with X?")
|
|
85
|
-
|
|
86
|
-
Create a research manifest:
|
|
87
|
-
```
|
|
88
|
-
Features to implement:
|
|
89
|
-
- [feature 1]
|
|
90
|
-
- [feature 2]
|
|
91
|
-
- [feature 3]
|
|
92
|
-
|
|
93
|
-
Stack constraints:
|
|
94
|
-
- [constraint 1]
|
|
95
|
-
- [constraint 2]
|
|
96
|
-
|
|
97
|
-
Open questions to answer:
|
|
98
|
-
- [question 1]
|
|
99
|
-
- [question 2]
|
|
100
|
-
|
|
101
|
-
Decisions to validate:
|
|
102
|
-
- [decision 1]
|
|
103
|
-
```
|
|
104
|
-
|
|
105
|
-
If PROJECT.md is too vague for specific research targets, use AskUserQuestion:
|
|
106
|
-
- header: "Research scope"
|
|
107
|
-
- question: "What specific implementation questions should we research?"
|
|
108
|
-
- options based on detected domain
|
|
109
|
-
</step>
|
|
110
|
-
|
|
111
|
-
<step name="research">
|
|
112
|
-
Follow research-project.md workflow with PROJECT.md-driven research:
|
|
113
|
-
|
|
114
|
-
1. Create `.planning/research/` directory
|
|
115
|
-
2. Spawn subagents in parallel (all at once if ≤3):
|
|
116
|
-
- **stack.md** - Libraries/tools for each feature in Scope
|
|
117
|
-
- **implementation.md** - Current API patterns and code examples
|
|
118
|
-
- **risks.md** - What Claude might get wrong, deprecated patterns
|
|
119
|
-
3. Wait for completion
|
|
120
|
-
4. Verify all outputs exist and are high-quality
|
|
121
|
-
</step>
|
|
122
|
-
|
|
123
|
-
<step name="verify_quality">
|
|
124
|
-
After subagents complete, verify quality:
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
# Check files exist
|
|
128
|
-
for f in stack implementation risks; do
|
|
129
|
-
[ -s ".planning/research/${f}.md" ] && echo "✓ ${f}.md" || echo "✗ ${f}.md MISSING"
|
|
130
|
-
done
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
**Quality check (read each file):**
|
|
134
|
-
- Contains ONLY high-confidence information?
|
|
135
|
-
- Includes actual code examples with current syntax?
|
|
136
|
-
- Addresses specific features from PROJECT.md?
|
|
137
|
-
- No low-confidence padding or "might be useful" items?
|
|
138
|
-
|
|
139
|
-
If a file contains low-quality content, note it for summary.
|
|
140
|
-
</step>
|
|
141
|
-
|
|
142
|
-
<step name="summarize">
|
|
143
|
-
After verification:
|
|
144
|
-
|
|
145
|
-
```
|
|
146
|
-
Research complete:
|
|
147
|
-
- .planning/research/stack.md - [libraries/tools identified]
|
|
148
|
-
- .planning/research/implementation.md - [patterns documented]
|
|
149
|
-
- .planning/research/risks.md - [pitfalls to avoid]
|
|
150
|
-
|
|
151
|
-
Key implementation context:
|
|
152
|
-
- [Primary stack choice with rationale]
|
|
153
|
-
- [Most important API pattern to use]
|
|
154
|
-
- [Critical mistake Claude should avoid]
|
|
155
|
-
|
|
156
|
-
Open questions remaining:
|
|
157
|
-
- [Any questions research couldn't answer]
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
## ▶ Next Up
|
|
162
|
-
|
|
163
|
-
**Create Roadmap** — define phases based on research findings
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
/gsd:create-roadmap
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
<sub>`/clear` first → fresh context window</sub>
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
|
-
**Also available:**
|
|
174
|
-
- Review research files before continuing
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
```
|
|
178
|
-
</step>
|
|
179
|
-
|
|
180
|
-
</process>
|
|
181
|
-
|
|
182
|
-
<output>
|
|
183
|
-
- `.planning/research/stack.md` - Libraries and tools for each feature
|
|
184
|
-
- `.planning/research/implementation.md` - Current API patterns and code examples
|
|
185
|
-
- `.planning/research/risks.md` - Deprecated patterns and common mistakes
|
|
186
|
-
</output>
|
|
187
|
-
|
|
188
|
-
<success_criteria>
|
|
189
|
-
- [ ] PROJECT.md parsed for specific research targets
|
|
190
|
-
- [ ] Research addresses actual features from Scope
|
|
191
|
-
- [ ] Open Questions from PROJECT.md answered (or noted as unanswerable)
|
|
192
|
-
- [ ] All outputs are HIGH-CONFIDENCE only (no padding)
|
|
193
|
-
- [ ] Code examples use current API syntax
|
|
194
|
-
- [ ] User knows next steps (create-roadmap)
|
|
195
|
-
</success_criteria>
|