get-research-done 1.1.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/LICENSE +21 -0
- package/README.md +560 -0
- package/agents/grd-architect.md +789 -0
- package/agents/grd-codebase-mapper.md +738 -0
- package/agents/grd-critic.md +1065 -0
- package/agents/grd-debugger.md +1203 -0
- package/agents/grd-evaluator.md +948 -0
- package/agents/grd-executor.md +784 -0
- package/agents/grd-explorer.md +2063 -0
- package/agents/grd-graduator.md +484 -0
- package/agents/grd-integration-checker.md +423 -0
- package/agents/grd-phase-researcher.md +641 -0
- package/agents/grd-plan-checker.md +745 -0
- package/agents/grd-planner.md +1386 -0
- package/agents/grd-project-researcher.md +865 -0
- package/agents/grd-research-synthesizer.md +256 -0
- package/agents/grd-researcher.md +2361 -0
- package/agents/grd-roadmapper.md +605 -0
- package/agents/grd-verifier.md +778 -0
- package/bin/install.js +1294 -0
- package/commands/grd/add-phase.md +207 -0
- package/commands/grd/add-todo.md +193 -0
- package/commands/grd/architect.md +283 -0
- package/commands/grd/audit-milestone.md +277 -0
- package/commands/grd/check-todos.md +228 -0
- package/commands/grd/complete-milestone.md +136 -0
- package/commands/grd/debug.md +169 -0
- package/commands/grd/discuss-phase.md +86 -0
- package/commands/grd/evaluate.md +1095 -0
- package/commands/grd/execute-phase.md +339 -0
- package/commands/grd/explore.md +258 -0
- package/commands/grd/graduate.md +323 -0
- package/commands/grd/help.md +482 -0
- package/commands/grd/insert-phase.md +227 -0
- package/commands/grd/insights.md +231 -0
- package/commands/grd/join-discord.md +18 -0
- package/commands/grd/list-phase-assumptions.md +50 -0
- package/commands/grd/map-codebase.md +71 -0
- package/commands/grd/new-milestone.md +721 -0
- package/commands/grd/new-project.md +1008 -0
- package/commands/grd/pause-work.md +134 -0
- package/commands/grd/plan-milestone-gaps.md +295 -0
- package/commands/grd/plan-phase.md +525 -0
- package/commands/grd/progress.md +364 -0
- package/commands/grd/quick-explore.md +236 -0
- package/commands/grd/quick.md +309 -0
- package/commands/grd/remove-phase.md +349 -0
- package/commands/grd/research-phase.md +200 -0
- package/commands/grd/research.md +681 -0
- package/commands/grd/resume-work.md +40 -0
- package/commands/grd/set-profile.md +106 -0
- package/commands/grd/settings.md +136 -0
- package/commands/grd/update.md +172 -0
- package/commands/grd/verify-work.md +219 -0
- package/get-research-done/config/default.json +15 -0
- package/get-research-done/references/checkpoints.md +1078 -0
- package/get-research-done/references/continuation-format.md +249 -0
- package/get-research-done/references/git-integration.md +254 -0
- package/get-research-done/references/model-profiles.md +73 -0
- package/get-research-done/references/planning-config.md +94 -0
- package/get-research-done/references/questioning.md +141 -0
- package/get-research-done/references/tdd.md +263 -0
- package/get-research-done/references/ui-brand.md +160 -0
- package/get-research-done/references/verification-patterns.md +612 -0
- package/get-research-done/templates/DEBUG.md +159 -0
- package/get-research-done/templates/UAT.md +247 -0
- package/get-research-done/templates/archive-reason.md +195 -0
- package/get-research-done/templates/codebase/architecture.md +255 -0
- package/get-research-done/templates/codebase/concerns.md +310 -0
- package/get-research-done/templates/codebase/conventions.md +307 -0
- package/get-research-done/templates/codebase/integrations.md +280 -0
- package/get-research-done/templates/codebase/stack.md +186 -0
- package/get-research-done/templates/codebase/structure.md +285 -0
- package/get-research-done/templates/codebase/testing.md +480 -0
- package/get-research-done/templates/config.json +35 -0
- package/get-research-done/templates/context.md +283 -0
- package/get-research-done/templates/continue-here.md +78 -0
- package/get-research-done/templates/critic-log.md +288 -0
- package/get-research-done/templates/data-report.md +173 -0
- package/get-research-done/templates/debug-subagent-prompt.md +91 -0
- package/get-research-done/templates/decision-log.md +58 -0
- package/get-research-done/templates/decision.md +138 -0
- package/get-research-done/templates/discovery.md +146 -0
- package/get-research-done/templates/experiment-readme.md +104 -0
- package/get-research-done/templates/graduated-script.md +180 -0
- package/get-research-done/templates/iteration-summary.md +234 -0
- package/get-research-done/templates/milestone-archive.md +123 -0
- package/get-research-done/templates/milestone.md +115 -0
- package/get-research-done/templates/objective.md +271 -0
- package/get-research-done/templates/phase-prompt.md +567 -0
- package/get-research-done/templates/planner-subagent-prompt.md +117 -0
- package/get-research-done/templates/project.md +184 -0
- package/get-research-done/templates/requirements.md +231 -0
- package/get-research-done/templates/research-project/ARCHITECTURE.md +204 -0
- package/get-research-done/templates/research-project/FEATURES.md +147 -0
- package/get-research-done/templates/research-project/PITFALLS.md +200 -0
- package/get-research-done/templates/research-project/STACK.md +120 -0
- package/get-research-done/templates/research-project/SUMMARY.md +170 -0
- package/get-research-done/templates/research.md +529 -0
- package/get-research-done/templates/roadmap.md +202 -0
- package/get-research-done/templates/scorecard.json +113 -0
- package/get-research-done/templates/state.md +287 -0
- package/get-research-done/templates/summary.md +246 -0
- package/get-research-done/templates/user-setup.md +311 -0
- package/get-research-done/templates/verification-report.md +322 -0
- package/get-research-done/workflows/complete-milestone.md +756 -0
- package/get-research-done/workflows/diagnose-issues.md +231 -0
- package/get-research-done/workflows/discovery-phase.md +289 -0
- package/get-research-done/workflows/discuss-phase.md +433 -0
- package/get-research-done/workflows/execute-phase.md +657 -0
- package/get-research-done/workflows/execute-plan.md +1844 -0
- package/get-research-done/workflows/list-phase-assumptions.md +178 -0
- package/get-research-done/workflows/map-codebase.md +322 -0
- package/get-research-done/workflows/resume-project.md +307 -0
- package/get-research-done/workflows/transition.md +556 -0
- package/get-research-done/workflows/verify-phase.md +628 -0
- package/get-research-done/workflows/verify-work.md +596 -0
- package/hooks/dist/grd-check-update.js +61 -0
- package/hooks/dist/grd-statusline.js +84 -0
- package/package.json +47 -0
- package/scripts/audit-help-commands.sh +115 -0
- package/scripts/build-hooks.js +42 -0
- package/scripts/verify-all-commands.sh +246 -0
- package/scripts/verify-architect-warning.sh +35 -0
- package/scripts/verify-insights-mode.sh +40 -0
- package/scripts/verify-quick-mode.sh +20 -0
- package/scripts/verify-revise-data-routing.sh +139 -0
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grd:new-project
|
|
3
|
+
description: Initialize a new project with deep context gathering and PROJECT.md
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
- Task
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
|
|
14
|
+
Initialize a new project through unified flow: questioning → research (optional) → requirements → roadmap.
|
|
15
|
+
|
|
16
|
+
This is the most leveraged moment in any project. Deep questioning here means better plans, better execution, better outcomes. One command takes you from idea to ready-for-planning.
|
|
17
|
+
|
|
18
|
+
**Creates:**
|
|
19
|
+
- `.planning/PROJECT.md` — project context
|
|
20
|
+
- `.planning/config.json` — workflow preferences
|
|
21
|
+
- `.planning/research/` — domain research (optional)
|
|
22
|
+
- `.planning/REQUIREMENTS.md` — scoped requirements
|
|
23
|
+
- `.planning/ROADMAP.md` — phase structure
|
|
24
|
+
- `.planning/STATE.md` — project memory
|
|
25
|
+
|
|
26
|
+
**After this command:** Run `/grd:plan-phase 1` to start execution.
|
|
27
|
+
|
|
28
|
+
</objective>
|
|
29
|
+
|
|
30
|
+
<execution_context>
|
|
31
|
+
|
|
32
|
+
@~/.claude/get-research-done/references/questioning.md
|
|
33
|
+
@~/.claude/get-research-done/references/ui-brand.md
|
|
34
|
+
@~/.claude/get-research-done/templates/project.md
|
|
35
|
+
@~/.claude/get-research-done/templates/requirements.md
|
|
36
|
+
|
|
37
|
+
</execution_context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
|
|
41
|
+
## Phase 1: Setup
|
|
42
|
+
|
|
43
|
+
**MANDATORY FIRST STEP — Execute these checks before ANY user interaction:**
|
|
44
|
+
|
|
45
|
+
1. **Abort if project exists:**
|
|
46
|
+
```bash
|
|
47
|
+
[ -f .planning/PROJECT.md ] && echo "ERROR: Project already initialized. Use /grd:progress" && exit 1
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
2. **Initialize git repo in THIS directory** (required even if inside a parent repo):
|
|
51
|
+
```bash
|
|
52
|
+
if [ -d .git ] || [ -f .git ]; then
|
|
53
|
+
echo "Git repo exists in current directory"
|
|
54
|
+
else
|
|
55
|
+
git init
|
|
56
|
+
echo "Initialized new git repo"
|
|
57
|
+
fi
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
3. **Detect existing code (brownfield detection):**
|
|
61
|
+
```bash
|
|
62
|
+
CODE_FILES=$(find . -name "*.ts" -o -name "*.js" -o -name "*.py" -o -name "*.go" -o -name "*.rs" -o -name "*.swift" -o -name "*.java" 2>/dev/null | grep -v node_modules | grep -v .git | head -20)
|
|
63
|
+
HAS_PACKAGE=$([ -f package.json ] || [ -f requirements.txt ] || [ -f Cargo.toml ] || [ -f go.mod ] || [ -f Package.swift ] && echo "yes")
|
|
64
|
+
HAS_CODEBASE_MAP=$([ -d .planning/codebase ] && echo "yes")
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
**You MUST run all bash commands above using the Bash tool before proceeding.**
|
|
68
|
+
|
|
69
|
+
## Phase 2: Brownfield Offer
|
|
70
|
+
|
|
71
|
+
**If existing code detected and .planning/codebase/ doesn't exist:**
|
|
72
|
+
|
|
73
|
+
Check the results from setup step:
|
|
74
|
+
- If `CODE_FILES` is non-empty OR `HAS_PACKAGE` is "yes"
|
|
75
|
+
- AND `HAS_CODEBASE_MAP` is NOT "yes"
|
|
76
|
+
|
|
77
|
+
Use AskUserQuestion:
|
|
78
|
+
- header: "Existing Code"
|
|
79
|
+
- question: "I detected existing code in this directory. Would you like to map the codebase first?"
|
|
80
|
+
- options:
|
|
81
|
+
- "Map codebase first" — Run /grd:map-codebase to understand existing architecture (Recommended)
|
|
82
|
+
- "Skip mapping" — Proceed with project initialization
|
|
83
|
+
|
|
84
|
+
**If "Map codebase first":**
|
|
85
|
+
```
|
|
86
|
+
Run `/grd:map-codebase` first, then return to `/grd:new-project`
|
|
87
|
+
```
|
|
88
|
+
Exit command.
|
|
89
|
+
|
|
90
|
+
**If "Skip mapping":** Continue to Phase 3.
|
|
91
|
+
|
|
92
|
+
**If no existing code detected OR codebase already mapped:** Continue to Phase 3.
|
|
93
|
+
|
|
94
|
+
## Phase 3: Deep Questioning
|
|
95
|
+
|
|
96
|
+
**Display stage banner:**
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
100
|
+
GRD ► QUESTIONING
|
|
101
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
**Open the conversation:**
|
|
105
|
+
|
|
106
|
+
Ask inline (freeform, NOT AskUserQuestion):
|
|
107
|
+
|
|
108
|
+
"What do you want to build?"
|
|
109
|
+
|
|
110
|
+
Wait for their response. This gives you the context needed to ask intelligent follow-up questions.
|
|
111
|
+
|
|
112
|
+
**Follow the thread:**
|
|
113
|
+
|
|
114
|
+
Based on what they said, ask follow-up questions that dig into their response. Use AskUserQuestion with options that probe what they mentioned — interpretations, clarifications, concrete examples.
|
|
115
|
+
|
|
116
|
+
Keep following threads. Each answer opens new threads to explore. Ask about:
|
|
117
|
+
- What excited them
|
|
118
|
+
- What problem sparked this
|
|
119
|
+
- What they mean by vague terms
|
|
120
|
+
- What it would actually look like
|
|
121
|
+
- What's already decided
|
|
122
|
+
|
|
123
|
+
Consult `questioning.md` for techniques:
|
|
124
|
+
- Challenge vagueness
|
|
125
|
+
- Make abstract concrete
|
|
126
|
+
- Surface assumptions
|
|
127
|
+
- Find edges
|
|
128
|
+
- Reveal motivation
|
|
129
|
+
|
|
130
|
+
**Check context (background, not out loud):**
|
|
131
|
+
|
|
132
|
+
As you go, mentally check the context checklist from `questioning.md`. If gaps remain, weave questions naturally. Don't suddenly switch to checklist mode.
|
|
133
|
+
|
|
134
|
+
**Decision gate:**
|
|
135
|
+
|
|
136
|
+
When you could write a clear PROJECT.md, use AskUserQuestion:
|
|
137
|
+
|
|
138
|
+
- header: "Ready?"
|
|
139
|
+
- question: "I think I understand what you're after. Ready to create PROJECT.md?"
|
|
140
|
+
- options:
|
|
141
|
+
- "Create PROJECT.md" — Let's move forward
|
|
142
|
+
- "Keep exploring" — I want to share more / ask me more
|
|
143
|
+
|
|
144
|
+
If "Keep exploring" — ask what they want to add, or identify gaps and probe naturally.
|
|
145
|
+
|
|
146
|
+
Loop until "Create PROJECT.md" selected.
|
|
147
|
+
|
|
148
|
+
## Phase 4: Write PROJECT.md
|
|
149
|
+
|
|
150
|
+
Synthesize all context into `.planning/PROJECT.md` using the template from `templates/project.md`.
|
|
151
|
+
|
|
152
|
+
**For greenfield projects:**
|
|
153
|
+
|
|
154
|
+
Initialize requirements as hypotheses:
|
|
155
|
+
|
|
156
|
+
```markdown
|
|
157
|
+
## Requirements
|
|
158
|
+
|
|
159
|
+
### Validated
|
|
160
|
+
|
|
161
|
+
(None yet — ship to validate)
|
|
162
|
+
|
|
163
|
+
### Active
|
|
164
|
+
|
|
165
|
+
- [ ] [Requirement 1]
|
|
166
|
+
- [ ] [Requirement 2]
|
|
167
|
+
- [ ] [Requirement 3]
|
|
168
|
+
|
|
169
|
+
### Out of Scope
|
|
170
|
+
|
|
171
|
+
- [Exclusion 1] — [why]
|
|
172
|
+
- [Exclusion 2] — [why]
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
All Active requirements are hypotheses until shipped and validated.
|
|
176
|
+
|
|
177
|
+
**For brownfield projects (codebase map exists):**
|
|
178
|
+
|
|
179
|
+
Infer Validated requirements from existing code:
|
|
180
|
+
|
|
181
|
+
1. Read `.planning/codebase/ARCHITECTURE.md` and `STACK.md`
|
|
182
|
+
2. Identify what the codebase already does
|
|
183
|
+
3. These become the initial Validated set
|
|
184
|
+
|
|
185
|
+
```markdown
|
|
186
|
+
## Requirements
|
|
187
|
+
|
|
188
|
+
### Validated
|
|
189
|
+
|
|
190
|
+
- ✓ [Existing capability 1] — existing
|
|
191
|
+
- ✓ [Existing capability 2] — existing
|
|
192
|
+
- ✓ [Existing capability 3] — existing
|
|
193
|
+
|
|
194
|
+
### Active
|
|
195
|
+
|
|
196
|
+
- [ ] [New requirement 1]
|
|
197
|
+
- [ ] [New requirement 2]
|
|
198
|
+
|
|
199
|
+
### Out of Scope
|
|
200
|
+
|
|
201
|
+
- [Exclusion 1] — [why]
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Key Decisions:**
|
|
205
|
+
|
|
206
|
+
Initialize with any decisions made during questioning:
|
|
207
|
+
|
|
208
|
+
```markdown
|
|
209
|
+
## Key Decisions
|
|
210
|
+
|
|
211
|
+
| Decision | Rationale | Outcome |
|
|
212
|
+
|----------|-----------|---------|
|
|
213
|
+
| [Choice from questioning] | [Why] | — Pending |
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
**Last updated footer:**
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
---
|
|
220
|
+
*Last updated: [date] after initialization*
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
Do not compress. Capture everything gathered.
|
|
224
|
+
|
|
225
|
+
**Commit PROJECT.md:**
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
mkdir -p .planning
|
|
229
|
+
git add .planning/PROJECT.md
|
|
230
|
+
git commit -m "$(cat <<'EOF'
|
|
231
|
+
docs: initialize project
|
|
232
|
+
|
|
233
|
+
[One-liner from PROJECT.md What This Is section]
|
|
234
|
+
EOF
|
|
235
|
+
)"
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
## Phase 5: Workflow Preferences
|
|
239
|
+
|
|
240
|
+
**Round 1 — Core workflow settings (4 questions):**
|
|
241
|
+
|
|
242
|
+
```
|
|
243
|
+
questions: [
|
|
244
|
+
{
|
|
245
|
+
header: "Mode",
|
|
246
|
+
question: "How do you want to work?",
|
|
247
|
+
multiSelect: false,
|
|
248
|
+
options: [
|
|
249
|
+
{ label: "YOLO (Recommended)", description: "Auto-approve, just execute" },
|
|
250
|
+
{ label: "Interactive", description: "Confirm at each step" }
|
|
251
|
+
]
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
header: "Depth",
|
|
255
|
+
question: "How thorough should planning be?",
|
|
256
|
+
multiSelect: false,
|
|
257
|
+
options: [
|
|
258
|
+
{ label: "Quick", description: "Ship fast (3-5 phases, 1-3 plans each)" },
|
|
259
|
+
{ label: "Standard", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
|
|
260
|
+
{ label: "Comprehensive", description: "Thorough coverage (8-12 phases, 5-10 plans each)" }
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
header: "Execution",
|
|
265
|
+
question: "Run plans in parallel?",
|
|
266
|
+
multiSelect: false,
|
|
267
|
+
options: [
|
|
268
|
+
{ label: "Parallel (Recommended)", description: "Independent plans run simultaneously" },
|
|
269
|
+
{ label: "Sequential", description: "One plan at a time" }
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
header: "Git Tracking",
|
|
274
|
+
question: "Commit planning docs to git?",
|
|
275
|
+
multiSelect: false,
|
|
276
|
+
options: [
|
|
277
|
+
{ label: "Yes (Recommended)", description: "Planning docs tracked in version control" },
|
|
278
|
+
{ label: "No", description: "Keep .planning/ local-only (add to .gitignore)" }
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
]
|
|
282
|
+
```
|
|
283
|
+
|
|
284
|
+
**Round 2 — Workflow agents:**
|
|
285
|
+
|
|
286
|
+
These spawn additional agents during planning/execution. They add tokens and time but improve quality.
|
|
287
|
+
|
|
288
|
+
| Agent | When it runs | What it does |
|
|
289
|
+
|-------|--------------|--------------|
|
|
290
|
+
| **Researcher** | Before planning each phase | Investigates domain, finds patterns, surfaces gotchas |
|
|
291
|
+
| **Plan Checker** | After plan is created | Verifies plan actually achieves the phase goal |
|
|
292
|
+
| **Verifier** | After phase execution | Confirms must-haves were delivered |
|
|
293
|
+
|
|
294
|
+
All recommended for important projects. Skip for quick experiments.
|
|
295
|
+
|
|
296
|
+
```
|
|
297
|
+
questions: [
|
|
298
|
+
{
|
|
299
|
+
header: "Research",
|
|
300
|
+
question: "Research before planning each phase? (adds tokens/time)",
|
|
301
|
+
multiSelect: false,
|
|
302
|
+
options: [
|
|
303
|
+
{ label: "Yes (Recommended)", description: "Investigate domain, find patterns, surface gotchas" },
|
|
304
|
+
{ label: "No", description: "Plan directly from requirements" }
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
header: "Plan Check",
|
|
309
|
+
question: "Verify plans will achieve their goals? (adds tokens/time)",
|
|
310
|
+
multiSelect: false,
|
|
311
|
+
options: [
|
|
312
|
+
{ label: "Yes (Recommended)", description: "Catch gaps before execution starts" },
|
|
313
|
+
{ label: "No", description: "Execute plans without verification" }
|
|
314
|
+
]
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
header: "Verifier",
|
|
318
|
+
question: "Verify work satisfies requirements after each phase? (adds tokens/time)",
|
|
319
|
+
multiSelect: false,
|
|
320
|
+
options: [
|
|
321
|
+
{ label: "Yes (Recommended)", description: "Confirm deliverables match phase goals" },
|
|
322
|
+
{ label: "No", description: "Trust execution, skip verification" }
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
header: "Model Profile",
|
|
327
|
+
question: "Which AI models for planning agents?",
|
|
328
|
+
multiSelect: false,
|
|
329
|
+
options: [
|
|
330
|
+
{ label: "Balanced (Recommended)", description: "Sonnet for most agents — good quality/cost ratio" },
|
|
331
|
+
{ label: "Quality", description: "Opus for research/roadmap — higher cost, deeper analysis" },
|
|
332
|
+
{ label: "Budget", description: "Haiku where possible — fastest, lowest cost" }
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
Create `.planning/config.json` with all settings:
|
|
339
|
+
|
|
340
|
+
```json
|
|
341
|
+
{
|
|
342
|
+
"mode": "yolo|interactive",
|
|
343
|
+
"depth": "quick|standard|comprehensive",
|
|
344
|
+
"parallelization": true|false,
|
|
345
|
+
"commit_docs": true|false,
|
|
346
|
+
"model_profile": "quality|balanced|budget",
|
|
347
|
+
"workflow": {
|
|
348
|
+
"research": true|false,
|
|
349
|
+
"plan_check": true|false,
|
|
350
|
+
"verifier": true|false
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
**If commit_docs = No:**
|
|
356
|
+
- Set `commit_docs: false` in config.json
|
|
357
|
+
- Add `.planning/` to `.gitignore` (create if needed)
|
|
358
|
+
|
|
359
|
+
**If commit_docs = Yes:**
|
|
360
|
+
- No additional gitignore entries needed
|
|
361
|
+
|
|
362
|
+
**Commit config.json:**
|
|
363
|
+
|
|
364
|
+
```bash
|
|
365
|
+
git add .planning/config.json
|
|
366
|
+
git commit -m "$(cat <<'EOF'
|
|
367
|
+
chore: add project config
|
|
368
|
+
|
|
369
|
+
Mode: [chosen mode]
|
|
370
|
+
Depth: [chosen depth]
|
|
371
|
+
Parallelization: [enabled/disabled]
|
|
372
|
+
Workflow agents: research=[on/off], plan_check=[on/off], verifier=[on/off]
|
|
373
|
+
EOF
|
|
374
|
+
)"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
**Note:** Run `/grd:settings` anytime to update these preferences.
|
|
378
|
+
|
|
379
|
+
## Phase 5.5: Resolve Model Profile
|
|
380
|
+
|
|
381
|
+
Read model profile for agent spawning:
|
|
382
|
+
|
|
383
|
+
```bash
|
|
384
|
+
MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
Default to "balanced" if not set.
|
|
388
|
+
|
|
389
|
+
**Model lookup table:**
|
|
390
|
+
|
|
391
|
+
| Agent | quality | balanced | budget |
|
|
392
|
+
|-------|---------|----------|--------|
|
|
393
|
+
| grd-project-researcher | opus | sonnet | haiku |
|
|
394
|
+
| grd-research-synthesizer | sonnet | sonnet | haiku |
|
|
395
|
+
| grd-roadmapper | opus | sonnet | sonnet |
|
|
396
|
+
|
|
397
|
+
Store resolved models for use in Task calls below.
|
|
398
|
+
|
|
399
|
+
## Phase 6: Research Decision
|
|
400
|
+
|
|
401
|
+
Use AskUserQuestion:
|
|
402
|
+
- header: "Research"
|
|
403
|
+
- question: "Research the domain ecosystem before defining requirements?"
|
|
404
|
+
- options:
|
|
405
|
+
- "Research first (Recommended)" — Discover standard stacks, expected features, architecture patterns
|
|
406
|
+
- "Skip research" — I know this domain well, go straight to requirements
|
|
407
|
+
|
|
408
|
+
**If "Research first":**
|
|
409
|
+
|
|
410
|
+
Display stage banner:
|
|
411
|
+
```
|
|
412
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
413
|
+
GRD ► RESEARCHING
|
|
414
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
415
|
+
|
|
416
|
+
Researching [domain] ecosystem...
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
Create research directory:
|
|
420
|
+
```bash
|
|
421
|
+
mkdir -p .planning/research
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
**Determine milestone context:**
|
|
425
|
+
|
|
426
|
+
Check if this is greenfield or subsequent milestone:
|
|
427
|
+
- If no "Validated" requirements in PROJECT.md → Greenfield (building from scratch)
|
|
428
|
+
- If "Validated" requirements exist → Subsequent milestone (adding to existing app)
|
|
429
|
+
|
|
430
|
+
Display spawning indicator:
|
|
431
|
+
```
|
|
432
|
+
◆ Spawning 4 researchers in parallel...
|
|
433
|
+
→ Stack research
|
|
434
|
+
→ Features research
|
|
435
|
+
→ Architecture research
|
|
436
|
+
→ Pitfalls research
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
Spawn 4 parallel grd-project-researcher agents with rich context:
|
|
440
|
+
|
|
441
|
+
```
|
|
442
|
+
Task(prompt="First, read ~/.claude/agents/grd-project-researcher.md for your role and instructions.
|
|
443
|
+
|
|
444
|
+
<research_type>
|
|
445
|
+
Project Research — Stack dimension for [domain].
|
|
446
|
+
</research_type>
|
|
447
|
+
|
|
448
|
+
<milestone_context>
|
|
449
|
+
[greenfield OR subsequent]
|
|
450
|
+
|
|
451
|
+
Greenfield: Research the standard stack for building [domain] from scratch.
|
|
452
|
+
Subsequent: Research what's needed to add [target features] to an existing [domain] app. Don't re-research the existing system.
|
|
453
|
+
</milestone_context>
|
|
454
|
+
|
|
455
|
+
<question>
|
|
456
|
+
What's the standard 2025 stack for [domain]?
|
|
457
|
+
</question>
|
|
458
|
+
|
|
459
|
+
<project_context>
|
|
460
|
+
[PROJECT.md summary - core value, constraints, what they're building]
|
|
461
|
+
</project_context>
|
|
462
|
+
|
|
463
|
+
<downstream_consumer>
|
|
464
|
+
Your STACK.md feeds into roadmap creation. Be prescriptive:
|
|
465
|
+
- Specific libraries with versions
|
|
466
|
+
- Clear rationale for each choice
|
|
467
|
+
- What NOT to use and why
|
|
468
|
+
</downstream_consumer>
|
|
469
|
+
|
|
470
|
+
<quality_gate>
|
|
471
|
+
- [ ] Versions are current (verify with Context7/official docs, not training data)
|
|
472
|
+
- [ ] Rationale explains WHY, not just WHAT
|
|
473
|
+
- [ ] Confidence levels assigned to each recommendation
|
|
474
|
+
</quality_gate>
|
|
475
|
+
|
|
476
|
+
<output>
|
|
477
|
+
Write to: .planning/research/STACK.md
|
|
478
|
+
Use template: ~/.claude/get-research-done/templates/research-project/STACK.md
|
|
479
|
+
</output>
|
|
480
|
+
", subagent_type="general-purpose", model="{researcher_model}", description="Stack research")
|
|
481
|
+
|
|
482
|
+
Task(prompt="First, read ~/.claude/agents/grd-project-researcher.md for your role and instructions.
|
|
483
|
+
|
|
484
|
+
<research_type>
|
|
485
|
+
Project Research — Features dimension for [domain].
|
|
486
|
+
</research_type>
|
|
487
|
+
|
|
488
|
+
<milestone_context>
|
|
489
|
+
[greenfield OR subsequent]
|
|
490
|
+
|
|
491
|
+
Greenfield: What features do [domain] products have? What's table stakes vs differentiating?
|
|
492
|
+
Subsequent: How do [target features] typically work? What's expected behavior?
|
|
493
|
+
</milestone_context>
|
|
494
|
+
|
|
495
|
+
<question>
|
|
496
|
+
What features do [domain] products have? What's table stakes vs differentiating?
|
|
497
|
+
</question>
|
|
498
|
+
|
|
499
|
+
<project_context>
|
|
500
|
+
[PROJECT.md summary]
|
|
501
|
+
</project_context>
|
|
502
|
+
|
|
503
|
+
<downstream_consumer>
|
|
504
|
+
Your FEATURES.md feeds into requirements definition. Categorize clearly:
|
|
505
|
+
- Table stakes (must have or users leave)
|
|
506
|
+
- Differentiators (competitive advantage)
|
|
507
|
+
- Anti-features (things to deliberately NOT build)
|
|
508
|
+
</downstream_consumer>
|
|
509
|
+
|
|
510
|
+
<quality_gate>
|
|
511
|
+
- [ ] Categories are clear (table stakes vs differentiators vs anti-features)
|
|
512
|
+
- [ ] Complexity noted for each feature
|
|
513
|
+
- [ ] Dependencies between features identified
|
|
514
|
+
</quality_gate>
|
|
515
|
+
|
|
516
|
+
<output>
|
|
517
|
+
Write to: .planning/research/FEATURES.md
|
|
518
|
+
Use template: ~/.claude/get-research-done/templates/research-project/FEATURES.md
|
|
519
|
+
</output>
|
|
520
|
+
", subagent_type="general-purpose", model="{researcher_model}", description="Features research")
|
|
521
|
+
|
|
522
|
+
Task(prompt="First, read ~/.claude/agents/grd-project-researcher.md for your role and instructions.
|
|
523
|
+
|
|
524
|
+
<research_type>
|
|
525
|
+
Project Research — Architecture dimension for [domain].
|
|
526
|
+
</research_type>
|
|
527
|
+
|
|
528
|
+
<milestone_context>
|
|
529
|
+
[greenfield OR subsequent]
|
|
530
|
+
|
|
531
|
+
Greenfield: How are [domain] systems typically structured? What are major components?
|
|
532
|
+
Subsequent: How do [target features] integrate with existing [domain] architecture?
|
|
533
|
+
</milestone_context>
|
|
534
|
+
|
|
535
|
+
<question>
|
|
536
|
+
How are [domain] systems typically structured? What are major components?
|
|
537
|
+
</question>
|
|
538
|
+
|
|
539
|
+
<project_context>
|
|
540
|
+
[PROJECT.md summary]
|
|
541
|
+
</project_context>
|
|
542
|
+
|
|
543
|
+
<downstream_consumer>
|
|
544
|
+
Your ARCHITECTURE.md informs phase structure in roadmap. Include:
|
|
545
|
+
- Component boundaries (what talks to what)
|
|
546
|
+
- Data flow (how information moves)
|
|
547
|
+
- Suggested build order (dependencies between components)
|
|
548
|
+
</downstream_consumer>
|
|
549
|
+
|
|
550
|
+
<quality_gate>
|
|
551
|
+
- [ ] Components clearly defined with boundaries
|
|
552
|
+
- [ ] Data flow direction explicit
|
|
553
|
+
- [ ] Build order implications noted
|
|
554
|
+
</quality_gate>
|
|
555
|
+
|
|
556
|
+
<output>
|
|
557
|
+
Write to: .planning/research/ARCHITECTURE.md
|
|
558
|
+
Use template: ~/.claude/get-research-done/templates/research-project/ARCHITECTURE.md
|
|
559
|
+
</output>
|
|
560
|
+
", subagent_type="general-purpose", model="{researcher_model}", description="Architecture research")
|
|
561
|
+
|
|
562
|
+
Task(prompt="First, read ~/.claude/agents/grd-project-researcher.md for your role and instructions.
|
|
563
|
+
|
|
564
|
+
<research_type>
|
|
565
|
+
Project Research — Pitfalls dimension for [domain].
|
|
566
|
+
</research_type>
|
|
567
|
+
|
|
568
|
+
<milestone_context>
|
|
569
|
+
[greenfield OR subsequent]
|
|
570
|
+
|
|
571
|
+
Greenfield: What do [domain] projects commonly get wrong? Critical mistakes?
|
|
572
|
+
Subsequent: What are common mistakes when adding [target features] to [domain]?
|
|
573
|
+
</milestone_context>
|
|
574
|
+
|
|
575
|
+
<question>
|
|
576
|
+
What do [domain] projects commonly get wrong? Critical mistakes?
|
|
577
|
+
</question>
|
|
578
|
+
|
|
579
|
+
<project_context>
|
|
580
|
+
[PROJECT.md summary]
|
|
581
|
+
</project_context>
|
|
582
|
+
|
|
583
|
+
<downstream_consumer>
|
|
584
|
+
Your PITFALLS.md prevents mistakes in roadmap/planning. For each pitfall:
|
|
585
|
+
- Warning signs (how to detect early)
|
|
586
|
+
- Prevention strategy (how to avoid)
|
|
587
|
+
- Which phase should address it
|
|
588
|
+
</downstream_consumer>
|
|
589
|
+
|
|
590
|
+
<quality_gate>
|
|
591
|
+
- [ ] Pitfalls are specific to this domain (not generic advice)
|
|
592
|
+
- [ ] Prevention strategies are actionable
|
|
593
|
+
- [ ] Phase mapping included where relevant
|
|
594
|
+
</quality_gate>
|
|
595
|
+
|
|
596
|
+
<output>
|
|
597
|
+
Write to: .planning/research/PITFALLS.md
|
|
598
|
+
Use template: ~/.claude/get-research-done/templates/research-project/PITFALLS.md
|
|
599
|
+
</output>
|
|
600
|
+
", subagent_type="general-purpose", model="{researcher_model}", description="Pitfalls research")
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
After all 4 agents complete, spawn synthesizer to create SUMMARY.md:
|
|
604
|
+
|
|
605
|
+
```
|
|
606
|
+
Task(prompt="
|
|
607
|
+
<task>
|
|
608
|
+
Synthesize research outputs into SUMMARY.md.
|
|
609
|
+
</task>
|
|
610
|
+
|
|
611
|
+
<research_files>
|
|
612
|
+
Read these files:
|
|
613
|
+
- .planning/research/STACK.md
|
|
614
|
+
- .planning/research/FEATURES.md
|
|
615
|
+
- .planning/research/ARCHITECTURE.md
|
|
616
|
+
- .planning/research/PITFALLS.md
|
|
617
|
+
</research_files>
|
|
618
|
+
|
|
619
|
+
<output>
|
|
620
|
+
Write to: .planning/research/SUMMARY.md
|
|
621
|
+
Use template: ~/.claude/get-research-done/templates/research-project/SUMMARY.md
|
|
622
|
+
Commit after writing.
|
|
623
|
+
</output>
|
|
624
|
+
", subagent_type="grd-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
Display research complete banner and key findings:
|
|
628
|
+
```
|
|
629
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
630
|
+
GRD ► RESEARCH COMPLETE ✓
|
|
631
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
632
|
+
|
|
633
|
+
## Key Findings
|
|
634
|
+
|
|
635
|
+
**Stack:** [from SUMMARY.md]
|
|
636
|
+
**Table Stakes:** [from SUMMARY.md]
|
|
637
|
+
**Watch Out For:** [from SUMMARY.md]
|
|
638
|
+
|
|
639
|
+
Files: `.planning/research/`
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
**If "Skip research":** Continue to Phase 7.
|
|
643
|
+
|
|
644
|
+
## Phase 7: Define Requirements
|
|
645
|
+
|
|
646
|
+
Display stage banner:
|
|
647
|
+
```
|
|
648
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
649
|
+
GRD ► DEFINING REQUIREMENTS
|
|
650
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
651
|
+
```
|
|
652
|
+
|
|
653
|
+
**Load context:**
|
|
654
|
+
|
|
655
|
+
Read PROJECT.md and extract:
|
|
656
|
+
- Core value (the ONE thing that must work)
|
|
657
|
+
- Stated constraints (budget, timeline, tech limitations)
|
|
658
|
+
- Any explicit scope boundaries
|
|
659
|
+
|
|
660
|
+
**If research exists:** Read research/FEATURES.md and extract feature categories.
|
|
661
|
+
|
|
662
|
+
**Present features by category:**
|
|
663
|
+
|
|
664
|
+
```
|
|
665
|
+
Here are the features for [domain]:
|
|
666
|
+
|
|
667
|
+
## Authentication
|
|
668
|
+
**Table stakes:**
|
|
669
|
+
- Sign up with email/password
|
|
670
|
+
- Email verification
|
|
671
|
+
- Password reset
|
|
672
|
+
- Session management
|
|
673
|
+
|
|
674
|
+
**Differentiators:**
|
|
675
|
+
- Magic link login
|
|
676
|
+
- OAuth (Google, GitHub)
|
|
677
|
+
- 2FA
|
|
678
|
+
|
|
679
|
+
**Research notes:** [any relevant notes]
|
|
680
|
+
|
|
681
|
+
---
|
|
682
|
+
|
|
683
|
+
## [Next Category]
|
|
684
|
+
...
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
**If no research:** Gather requirements through conversation instead.
|
|
688
|
+
|
|
689
|
+
Ask: "What are the main things users need to be able to do?"
|
|
690
|
+
|
|
691
|
+
For each capability mentioned:
|
|
692
|
+
- Ask clarifying questions to make it specific
|
|
693
|
+
- Probe for related capabilities
|
|
694
|
+
- Group into categories
|
|
695
|
+
|
|
696
|
+
**Scope each category:**
|
|
697
|
+
|
|
698
|
+
For each category, use AskUserQuestion:
|
|
699
|
+
|
|
700
|
+
- header: "[Category name]"
|
|
701
|
+
- question: "Which [category] features are in v1?"
|
|
702
|
+
- multiSelect: true
|
|
703
|
+
- options:
|
|
704
|
+
- "[Feature 1]" — [brief description]
|
|
705
|
+
- "[Feature 2]" — [brief description]
|
|
706
|
+
- "[Feature 3]" — [brief description]
|
|
707
|
+
- "None for v1" — Defer entire category
|
|
708
|
+
|
|
709
|
+
Track responses:
|
|
710
|
+
- Selected features → v1 requirements
|
|
711
|
+
- Unselected table stakes → v2 (users expect these)
|
|
712
|
+
- Unselected differentiators → out of scope
|
|
713
|
+
|
|
714
|
+
**Identify gaps:**
|
|
715
|
+
|
|
716
|
+
Use AskUserQuestion:
|
|
717
|
+
- header: "Additions"
|
|
718
|
+
- question: "Any requirements research missed? (Features specific to your vision)"
|
|
719
|
+
- options:
|
|
720
|
+
- "No, research covered it" — Proceed
|
|
721
|
+
- "Yes, let me add some" — Capture additions
|
|
722
|
+
|
|
723
|
+
**Validate core value:**
|
|
724
|
+
|
|
725
|
+
Cross-check requirements against Core Value from PROJECT.md. If gaps detected, surface them.
|
|
726
|
+
|
|
727
|
+
**Generate REQUIREMENTS.md:**
|
|
728
|
+
|
|
729
|
+
Create `.planning/REQUIREMENTS.md` with:
|
|
730
|
+
- v1 Requirements grouped by category (checkboxes, REQ-IDs)
|
|
731
|
+
- v2 Requirements (deferred)
|
|
732
|
+
- Out of Scope (explicit exclusions with reasoning)
|
|
733
|
+
- Traceability section (empty, filled by roadmap)
|
|
734
|
+
|
|
735
|
+
**REQ-ID format:** `[CATEGORY]-[NUMBER]` (AUTH-01, CONTENT-02)
|
|
736
|
+
|
|
737
|
+
**Requirement quality criteria:**
|
|
738
|
+
|
|
739
|
+
Good requirements are:
|
|
740
|
+
- **Specific and testable:** "User can reset password via email link" (not "Handle password reset")
|
|
741
|
+
- **User-centric:** "User can X" (not "System does Y")
|
|
742
|
+
- **Atomic:** One capability per requirement (not "User can login and manage profile")
|
|
743
|
+
- **Independent:** Minimal dependencies on other requirements
|
|
744
|
+
|
|
745
|
+
Reject vague requirements. Push for specificity:
|
|
746
|
+
- "Handle authentication" → "User can log in with email/password and stay logged in across sessions"
|
|
747
|
+
- "Support sharing" → "User can share post via link that opens in recipient's browser"
|
|
748
|
+
|
|
749
|
+
**Present full requirements list:**
|
|
750
|
+
|
|
751
|
+
Show every requirement (not counts) for user confirmation:
|
|
752
|
+
|
|
753
|
+
```
|
|
754
|
+
## v1 Requirements
|
|
755
|
+
|
|
756
|
+
### Authentication
|
|
757
|
+
- [ ] **AUTH-01**: User can create account with email/password
|
|
758
|
+
- [ ] **AUTH-02**: User can log in and stay logged in across sessions
|
|
759
|
+
- [ ] **AUTH-03**: User can log out from any page
|
|
760
|
+
|
|
761
|
+
### Content
|
|
762
|
+
- [ ] **CONT-01**: User can create posts with text
|
|
763
|
+
- [ ] **CONT-02**: User can edit their own posts
|
|
764
|
+
|
|
765
|
+
[... full list ...]
|
|
766
|
+
|
|
767
|
+
---
|
|
768
|
+
|
|
769
|
+
Does this capture what you're building? (yes / adjust)
|
|
770
|
+
```
|
|
771
|
+
|
|
772
|
+
If "adjust": Return to scoping.
|
|
773
|
+
|
|
774
|
+
**Commit requirements:**
|
|
775
|
+
|
|
776
|
+
```bash
|
|
777
|
+
git add .planning/REQUIREMENTS.md
|
|
778
|
+
git commit -m "$(cat <<'EOF'
|
|
779
|
+
docs: define v1 requirements
|
|
780
|
+
|
|
781
|
+
[X] requirements across [N] categories
|
|
782
|
+
[Y] requirements deferred to v2
|
|
783
|
+
EOF
|
|
784
|
+
)"
|
|
785
|
+
```
|
|
786
|
+
|
|
787
|
+
## Phase 8: Create Roadmap
|
|
788
|
+
|
|
789
|
+
Display stage banner:
|
|
790
|
+
```
|
|
791
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
792
|
+
GRD ► CREATING ROADMAP
|
|
793
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
794
|
+
|
|
795
|
+
◆ Spawning roadmapper...
|
|
796
|
+
```
|
|
797
|
+
|
|
798
|
+
Spawn grd-roadmapper agent with context:
|
|
799
|
+
|
|
800
|
+
```
|
|
801
|
+
Task(prompt="
|
|
802
|
+
<planning_context>
|
|
803
|
+
|
|
804
|
+
**Project:**
|
|
805
|
+
@.planning/PROJECT.md
|
|
806
|
+
|
|
807
|
+
**Requirements:**
|
|
808
|
+
@.planning/REQUIREMENTS.md
|
|
809
|
+
|
|
810
|
+
**Research (if exists):**
|
|
811
|
+
@.planning/research/SUMMARY.md
|
|
812
|
+
|
|
813
|
+
**Config:**
|
|
814
|
+
@.planning/config.json
|
|
815
|
+
|
|
816
|
+
</planning_context>
|
|
817
|
+
|
|
818
|
+
<instructions>
|
|
819
|
+
Create roadmap:
|
|
820
|
+
1. Derive phases from requirements (don't impose structure)
|
|
821
|
+
2. Map every v1 requirement to exactly one phase
|
|
822
|
+
3. Derive 2-5 success criteria per phase (observable user behaviors)
|
|
823
|
+
4. Validate 100% coverage
|
|
824
|
+
5. Write files immediately (ROADMAP.md, STATE.md, update REQUIREMENTS.md traceability)
|
|
825
|
+
6. Return ROADMAP CREATED with summary
|
|
826
|
+
|
|
827
|
+
Write files first, then return. This ensures artifacts persist even if context is lost.
|
|
828
|
+
</instructions>
|
|
829
|
+
", subagent_type="grd-roadmapper", model="{roadmapper_model}", description="Create roadmap")
|
|
830
|
+
```
|
|
831
|
+
|
|
832
|
+
**Handle roadmapper return:**
|
|
833
|
+
|
|
834
|
+
**If `## ROADMAP BLOCKED`:**
|
|
835
|
+
- Present blocker information
|
|
836
|
+
- Work with user to resolve
|
|
837
|
+
- Re-spawn when resolved
|
|
838
|
+
|
|
839
|
+
**If `## ROADMAP CREATED`:**
|
|
840
|
+
|
|
841
|
+
Read the created ROADMAP.md and present it nicely inline:
|
|
842
|
+
|
|
843
|
+
```
|
|
844
|
+
---
|
|
845
|
+
|
|
846
|
+
## Proposed Roadmap
|
|
847
|
+
|
|
848
|
+
**[N] phases** | **[X] requirements mapped** | All v1 requirements covered ✓
|
|
849
|
+
|
|
850
|
+
| # | Phase | Goal | Requirements | Success Criteria |
|
|
851
|
+
|---|-------|------|--------------|------------------|
|
|
852
|
+
| 1 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
853
|
+
| 2 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
854
|
+
| 3 | [Name] | [Goal] | [REQ-IDs] | [count] |
|
|
855
|
+
...
|
|
856
|
+
|
|
857
|
+
### Phase Details
|
|
858
|
+
|
|
859
|
+
**Phase 1: [Name]**
|
|
860
|
+
Goal: [goal]
|
|
861
|
+
Requirements: [REQ-IDs]
|
|
862
|
+
Success criteria:
|
|
863
|
+
1. [criterion]
|
|
864
|
+
2. [criterion]
|
|
865
|
+
3. [criterion]
|
|
866
|
+
|
|
867
|
+
**Phase 2: [Name]**
|
|
868
|
+
Goal: [goal]
|
|
869
|
+
Requirements: [REQ-IDs]
|
|
870
|
+
Success criteria:
|
|
871
|
+
1. [criterion]
|
|
872
|
+
2. [criterion]
|
|
873
|
+
|
|
874
|
+
[... continue for all phases ...]
|
|
875
|
+
|
|
876
|
+
---
|
|
877
|
+
```
|
|
878
|
+
|
|
879
|
+
**CRITICAL: Ask for approval before committing:**
|
|
880
|
+
|
|
881
|
+
Use AskUserQuestion:
|
|
882
|
+
- header: "Roadmap"
|
|
883
|
+
- question: "Does this roadmap structure work for you?"
|
|
884
|
+
- options:
|
|
885
|
+
- "Approve" — Commit and continue
|
|
886
|
+
- "Adjust phases" — Tell me what to change
|
|
887
|
+
- "Review full file" — Show raw ROADMAP.md
|
|
888
|
+
|
|
889
|
+
**If "Approve":** Continue to commit.
|
|
890
|
+
|
|
891
|
+
**If "Adjust phases":**
|
|
892
|
+
- Get user's adjustment notes
|
|
893
|
+
- Re-spawn roadmapper with revision context:
|
|
894
|
+
```
|
|
895
|
+
Task(prompt="
|
|
896
|
+
<revision>
|
|
897
|
+
User feedback on roadmap:
|
|
898
|
+
[user's notes]
|
|
899
|
+
|
|
900
|
+
Current ROADMAP.md: @.planning/ROADMAP.md
|
|
901
|
+
|
|
902
|
+
Update the roadmap based on feedback. Edit files in place.
|
|
903
|
+
Return ROADMAP REVISED with changes made.
|
|
904
|
+
</revision>
|
|
905
|
+
", subagent_type="grd-roadmapper", model="{roadmapper_model}", description="Revise roadmap")
|
|
906
|
+
```
|
|
907
|
+
- Present revised roadmap
|
|
908
|
+
- Loop until user approves
|
|
909
|
+
|
|
910
|
+
**If "Review full file":** Display raw `cat .planning/ROADMAP.md`, then re-ask.
|
|
911
|
+
|
|
912
|
+
**Commit roadmap (after approval):**
|
|
913
|
+
|
|
914
|
+
```bash
|
|
915
|
+
git add .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md
|
|
916
|
+
git commit -m "$(cat <<'EOF'
|
|
917
|
+
docs: create roadmap ([N] phases)
|
|
918
|
+
|
|
919
|
+
Phases:
|
|
920
|
+
1. [phase-name]: [requirements covered]
|
|
921
|
+
2. [phase-name]: [requirements covered]
|
|
922
|
+
...
|
|
923
|
+
|
|
924
|
+
All v1 requirements mapped to phases.
|
|
925
|
+
EOF
|
|
926
|
+
)"
|
|
927
|
+
```
|
|
928
|
+
|
|
929
|
+
## Phase 10: Done
|
|
930
|
+
|
|
931
|
+
Present completion with next steps:
|
|
932
|
+
|
|
933
|
+
```
|
|
934
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
935
|
+
GRD ► PROJECT INITIALIZED ✓
|
|
936
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
937
|
+
|
|
938
|
+
**[Project Name]**
|
|
939
|
+
|
|
940
|
+
| Artifact | Location |
|
|
941
|
+
|----------------|-----------------------------|
|
|
942
|
+
| Project | `.planning/PROJECT.md` |
|
|
943
|
+
| Config | `.planning/config.json` |
|
|
944
|
+
| Research | `.planning/research/` |
|
|
945
|
+
| Requirements | `.planning/REQUIREMENTS.md` |
|
|
946
|
+
| Roadmap | `.planning/ROADMAP.md` |
|
|
947
|
+
|
|
948
|
+
**[N] phases** | **[X] requirements** | Ready to build ✓
|
|
949
|
+
|
|
950
|
+
───────────────────────────────────────────────────────────────
|
|
951
|
+
|
|
952
|
+
## ▶ Next Up
|
|
953
|
+
|
|
954
|
+
**Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
|
|
955
|
+
|
|
956
|
+
/grd:discuss-phase 1 — gather context and clarify approach
|
|
957
|
+
|
|
958
|
+
<sub>/clear first → fresh context window</sub>
|
|
959
|
+
|
|
960
|
+
---
|
|
961
|
+
|
|
962
|
+
**Also available:**
|
|
963
|
+
- /grd:plan-phase 1 — skip discussion, plan directly
|
|
964
|
+
|
|
965
|
+
───────────────────────────────────────────────────────────────
|
|
966
|
+
```
|
|
967
|
+
|
|
968
|
+
</process>
|
|
969
|
+
|
|
970
|
+
<output>
|
|
971
|
+
|
|
972
|
+
- `.planning/PROJECT.md`
|
|
973
|
+
- `.planning/config.json`
|
|
974
|
+
- `.planning/research/` (if research selected)
|
|
975
|
+
- `STACK.md`
|
|
976
|
+
- `FEATURES.md`
|
|
977
|
+
- `ARCHITECTURE.md`
|
|
978
|
+
- `PITFALLS.md`
|
|
979
|
+
- `SUMMARY.md`
|
|
980
|
+
- `.planning/REQUIREMENTS.md`
|
|
981
|
+
- `.planning/ROADMAP.md`
|
|
982
|
+
- `.planning/STATE.md`
|
|
983
|
+
|
|
984
|
+
</output>
|
|
985
|
+
|
|
986
|
+
<success_criteria>
|
|
987
|
+
|
|
988
|
+
- [ ] .planning/ directory created
|
|
989
|
+
- [ ] Git repo initialized
|
|
990
|
+
- [ ] Brownfield detection completed
|
|
991
|
+
- [ ] Deep questioning completed (threads followed, not rushed)
|
|
992
|
+
- [ ] PROJECT.md captures full context → **committed**
|
|
993
|
+
- [ ] config.json has workflow mode, depth, parallelization → **committed**
|
|
994
|
+
- [ ] Research completed (if selected) — 4 parallel agents spawned → **committed**
|
|
995
|
+
- [ ] Requirements gathered (from research or conversation)
|
|
996
|
+
- [ ] User scoped each category (v1/v2/out of scope)
|
|
997
|
+
- [ ] REQUIREMENTS.md created with REQ-IDs → **committed**
|
|
998
|
+
- [ ] grd-roadmapper spawned with context
|
|
999
|
+
- [ ] Roadmap files written immediately (not draft)
|
|
1000
|
+
- [ ] User feedback incorporated (if any)
|
|
1001
|
+
- [ ] ROADMAP.md created with phases, requirement mappings, success criteria
|
|
1002
|
+
- [ ] STATE.md initialized
|
|
1003
|
+
- [ ] REQUIREMENTS.md traceability updated
|
|
1004
|
+
- [ ] User knows next step is `/grd:discuss-phase 1`
|
|
1005
|
+
|
|
1006
|
+
**Atomic commits:** Each phase commits its artifacts immediately. If context is lost, artifacts persist.
|
|
1007
|
+
|
|
1008
|
+
</success_criteria>
|