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,433 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Extract implementation decisions that downstream agents need. Analyze the phase to identify gray areas, let the user choose what to discuss, then deep-dive each selected area until satisfied.
|
|
3
|
+
|
|
4
|
+
You are a thinking partner, not an interviewer. The user is the visionary — you are the builder. Your job is to capture decisions that will guide research and planning, not to figure out implementation yourself.
|
|
5
|
+
</purpose>
|
|
6
|
+
|
|
7
|
+
<downstream_awareness>
|
|
8
|
+
**CONTEXT.md feeds into:**
|
|
9
|
+
|
|
10
|
+
1. **grd-phase-researcher** — Reads CONTEXT.md to know WHAT to research
|
|
11
|
+
- "User wants card-based layout" → researcher investigates card component patterns
|
|
12
|
+
- "Infinite scroll decided" → researcher looks into virtualization libraries
|
|
13
|
+
|
|
14
|
+
2. **grd-planner** — Reads CONTEXT.md to know WHAT decisions are locked
|
|
15
|
+
- "Pull-to-refresh on mobile" → planner includes that in task specs
|
|
16
|
+
- "Claude's Discretion: loading skeleton" → planner can decide approach
|
|
17
|
+
|
|
18
|
+
**Your job:** Capture decisions clearly enough that downstream agents can act on them without asking the user again.
|
|
19
|
+
|
|
20
|
+
**Not your job:** Figure out HOW to implement. That's what research and planning do with the decisions you capture.
|
|
21
|
+
</downstream_awareness>
|
|
22
|
+
|
|
23
|
+
<philosophy>
|
|
24
|
+
**User = founder/visionary. Claude = builder.**
|
|
25
|
+
|
|
26
|
+
The user knows:
|
|
27
|
+
- How they imagine it working
|
|
28
|
+
- What it should look/feel like
|
|
29
|
+
- What's essential vs nice-to-have
|
|
30
|
+
- Specific behaviors or references they have in mind
|
|
31
|
+
|
|
32
|
+
The user doesn't know (and shouldn't be asked):
|
|
33
|
+
- Codebase patterns (researcher reads the code)
|
|
34
|
+
- Technical risks (researcher identifies these)
|
|
35
|
+
- Implementation approach (planner figures this out)
|
|
36
|
+
- Success metrics (inferred from the work)
|
|
37
|
+
|
|
38
|
+
Ask about vision and implementation choices. Capture decisions for downstream agents.
|
|
39
|
+
</philosophy>
|
|
40
|
+
|
|
41
|
+
<scope_guardrail>
|
|
42
|
+
**CRITICAL: No scope creep.**
|
|
43
|
+
|
|
44
|
+
The phase boundary comes from ROADMAP.md and is FIXED. Discussion clarifies HOW to implement what's scoped, never WHETHER to add new capabilities.
|
|
45
|
+
|
|
46
|
+
**Allowed (clarifying ambiguity):**
|
|
47
|
+
- "How should posts be displayed?" (layout, density, info shown)
|
|
48
|
+
- "What happens on empty state?" (within the feature)
|
|
49
|
+
- "Pull to refresh or manual?" (behavior choice)
|
|
50
|
+
|
|
51
|
+
**Not allowed (scope creep):**
|
|
52
|
+
- "Should we also add comments?" (new capability)
|
|
53
|
+
- "What about search/filtering?" (new capability)
|
|
54
|
+
- "Maybe include bookmarking?" (new capability)
|
|
55
|
+
|
|
56
|
+
**The heuristic:** Does this clarify how we implement what's already in the phase, or does it add a new capability that could be its own phase?
|
|
57
|
+
|
|
58
|
+
**When user suggests scope creep:**
|
|
59
|
+
```
|
|
60
|
+
"[Feature X] would be a new capability — that's its own phase.
|
|
61
|
+
Want me to note it for the roadmap backlog?
|
|
62
|
+
|
|
63
|
+
For now, let's focus on [phase domain]."
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Capture the idea in a "Deferred Ideas" section. Don't lose it, don't act on it.
|
|
67
|
+
</scope_guardrail>
|
|
68
|
+
|
|
69
|
+
<gray_area_identification>
|
|
70
|
+
Gray areas are **implementation decisions the user cares about** — things that could go multiple ways and would change the result.
|
|
71
|
+
|
|
72
|
+
**How to identify gray areas:**
|
|
73
|
+
|
|
74
|
+
1. **Read the phase goal** from ROADMAP.md
|
|
75
|
+
2. **Understand the domain** — What kind of thing is being built?
|
|
76
|
+
- Something users SEE → visual presentation, interactions, states matter
|
|
77
|
+
- Something users CALL → interface contracts, responses, errors matter
|
|
78
|
+
- Something users RUN → invocation, output, behavior modes matter
|
|
79
|
+
- Something users READ → structure, tone, depth, flow matter
|
|
80
|
+
- Something being ORGANIZED → criteria, grouping, handling exceptions matter
|
|
81
|
+
3. **Generate phase-specific gray areas** — Not generic categories, but concrete decisions for THIS phase
|
|
82
|
+
|
|
83
|
+
**Don't use generic category labels** (UI, UX, Behavior). Generate specific gray areas:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Phase: "User authentication"
|
|
87
|
+
→ Session handling, Error responses, Multi-device policy, Recovery flow
|
|
88
|
+
|
|
89
|
+
Phase: "Organize photo library"
|
|
90
|
+
→ Grouping criteria, Duplicate handling, Naming convention, Folder structure
|
|
91
|
+
|
|
92
|
+
Phase: "CLI for database backups"
|
|
93
|
+
→ Output format, Flag design, Progress reporting, Error recovery
|
|
94
|
+
|
|
95
|
+
Phase: "API documentation"
|
|
96
|
+
→ Structure/navigation, Code examples depth, Versioning approach, Interactive elements
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**The key question:** What decisions would change the outcome that the user should weigh in on?
|
|
100
|
+
|
|
101
|
+
**Claude handles these (don't ask):**
|
|
102
|
+
- Technical implementation details
|
|
103
|
+
- Architecture patterns
|
|
104
|
+
- Performance optimization
|
|
105
|
+
- Scope (roadmap defines this)
|
|
106
|
+
</gray_area_identification>
|
|
107
|
+
|
|
108
|
+
<process>
|
|
109
|
+
|
|
110
|
+
<step name="validate_phase" priority="first">
|
|
111
|
+
Phase number from argument (required).
|
|
112
|
+
|
|
113
|
+
Load and validate:
|
|
114
|
+
- Read `.planning/ROADMAP.md`
|
|
115
|
+
- Find phase entry
|
|
116
|
+
- Extract: number, name, description, status
|
|
117
|
+
|
|
118
|
+
**If phase not found:**
|
|
119
|
+
```
|
|
120
|
+
Phase [X] not found in roadmap.
|
|
121
|
+
|
|
122
|
+
Use /grd:progress to see available phases.
|
|
123
|
+
```
|
|
124
|
+
Exit workflow.
|
|
125
|
+
|
|
126
|
+
**If phase found:** Continue to analyze_phase.
|
|
127
|
+
</step>
|
|
128
|
+
|
|
129
|
+
<step name="check_existing">
|
|
130
|
+
Check if CONTEXT.md already exists:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
# Match both zero-padded (05-*) and unpadded (5-*) folders
|
|
134
|
+
PADDED_PHASE=$(printf "%02d" ${PHASE})
|
|
135
|
+
ls .planning/phases/${PADDED_PHASE}-*/*-CONTEXT.md .planning/phases/${PHASE}-*/*-CONTEXT.md 2>/dev/null
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
**If exists:**
|
|
139
|
+
Use AskUserQuestion:
|
|
140
|
+
- header: "Existing context"
|
|
141
|
+
- question: "Phase [X] already has context. What do you want to do?"
|
|
142
|
+
- options:
|
|
143
|
+
- "Update it" — Review and revise existing context
|
|
144
|
+
- "View it" — Show me what's there
|
|
145
|
+
- "Skip" — Use existing context as-is
|
|
146
|
+
|
|
147
|
+
If "Update": Load existing, continue to analyze_phase
|
|
148
|
+
If "View": Display CONTEXT.md, then offer update/skip
|
|
149
|
+
If "Skip": Exit workflow
|
|
150
|
+
|
|
151
|
+
**If doesn't exist:** Continue to analyze_phase.
|
|
152
|
+
</step>
|
|
153
|
+
|
|
154
|
+
<step name="analyze_phase">
|
|
155
|
+
Analyze the phase to identify gray areas worth discussing.
|
|
156
|
+
|
|
157
|
+
**Read the phase description from ROADMAP.md and determine:**
|
|
158
|
+
|
|
159
|
+
1. **Domain boundary** — What capability is this phase delivering? State it clearly.
|
|
160
|
+
|
|
161
|
+
2. **Gray areas by category** — For each relevant category (UI, UX, Behavior, Empty States, Content), identify 1-2 specific ambiguities that would change implementation.
|
|
162
|
+
|
|
163
|
+
3. **Skip assessment** — If no meaningful gray areas exist (pure infrastructure, clear-cut implementation), the phase may not need discussion.
|
|
164
|
+
|
|
165
|
+
**Output your analysis internally, then present to user.**
|
|
166
|
+
|
|
167
|
+
Example analysis for "Post Feed" phase:
|
|
168
|
+
```
|
|
169
|
+
Domain: Displaying posts from followed users
|
|
170
|
+
Gray areas:
|
|
171
|
+
- UI: Layout style (cards vs timeline vs grid)
|
|
172
|
+
- UI: Information density (full posts vs previews)
|
|
173
|
+
- Behavior: Loading pattern (infinite scroll vs pagination)
|
|
174
|
+
- Empty State: What shows when no posts exist
|
|
175
|
+
- Content: What metadata displays (time, author, reactions count)
|
|
176
|
+
```
|
|
177
|
+
</step>
|
|
178
|
+
|
|
179
|
+
<step name="present_gray_areas">
|
|
180
|
+
Present the domain boundary and gray areas to user.
|
|
181
|
+
|
|
182
|
+
**First, state the boundary:**
|
|
183
|
+
```
|
|
184
|
+
Phase [X]: [Name]
|
|
185
|
+
Domain: [What this phase delivers — from your analysis]
|
|
186
|
+
|
|
187
|
+
We'll clarify HOW to implement this.
|
|
188
|
+
(New capabilities belong in other phases.)
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
**Then use AskUserQuestion (multiSelect: true):**
|
|
192
|
+
- header: "Discuss"
|
|
193
|
+
- question: "Which areas do you want to discuss for [phase name]?"
|
|
194
|
+
- options: Generate 3-4 phase-specific gray areas, each formatted as:
|
|
195
|
+
- "[Specific area]" (label) — concrete, not generic
|
|
196
|
+
- [1-2 questions this covers] (description)
|
|
197
|
+
|
|
198
|
+
**Do NOT include a "skip" or "you decide" option.** User ran this command to discuss — give them real choices.
|
|
199
|
+
|
|
200
|
+
**Examples by domain:**
|
|
201
|
+
|
|
202
|
+
For "Post Feed" (visual feature):
|
|
203
|
+
```
|
|
204
|
+
☐ Layout style — Cards vs list vs timeline? Information density?
|
|
205
|
+
☐ Loading behavior — Infinite scroll or pagination? Pull to refresh?
|
|
206
|
+
☐ Content ordering — Chronological, algorithmic, or user choice?
|
|
207
|
+
☐ Post metadata — What info per post? Timestamps, reactions, author?
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
For "Database backup CLI" (command-line tool):
|
|
211
|
+
```
|
|
212
|
+
☐ Output format — JSON, table, or plain text? Verbosity levels?
|
|
213
|
+
☐ Flag design — Short flags, long flags, or both? Required vs optional?
|
|
214
|
+
☐ Progress reporting — Silent, progress bar, or verbose logging?
|
|
215
|
+
☐ Error recovery — Fail fast, retry, or prompt for action?
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
For "Organize photo library" (organization task):
|
|
219
|
+
```
|
|
220
|
+
☐ Grouping criteria — By date, location, faces, or events?
|
|
221
|
+
☐ Duplicate handling — Keep best, keep all, or prompt each time?
|
|
222
|
+
☐ Naming convention — Original names, dates, or descriptive?
|
|
223
|
+
☐ Folder structure — Flat, nested by year, or by category?
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Continue to discuss_areas with selected areas.
|
|
227
|
+
</step>
|
|
228
|
+
|
|
229
|
+
<step name="discuss_areas">
|
|
230
|
+
For each selected area, conduct a focused discussion loop.
|
|
231
|
+
|
|
232
|
+
**Philosophy: 4 questions, then check.**
|
|
233
|
+
|
|
234
|
+
Ask 4 questions per area before offering to continue or move on. Each answer often reveals the next question.
|
|
235
|
+
|
|
236
|
+
**For each area:**
|
|
237
|
+
|
|
238
|
+
1. **Announce the area:**
|
|
239
|
+
```
|
|
240
|
+
Let's talk about [Area].
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
2. **Ask 4 questions using AskUserQuestion:**
|
|
244
|
+
- header: "[Area]"
|
|
245
|
+
- question: Specific decision for this area
|
|
246
|
+
- options: 2-3 concrete choices (AskUserQuestion adds "Other" automatically)
|
|
247
|
+
- Include "You decide" as an option when reasonable — captures Claude discretion
|
|
248
|
+
|
|
249
|
+
3. **After 4 questions, check:**
|
|
250
|
+
- header: "[Area]"
|
|
251
|
+
- question: "More questions about [area], or move to next?"
|
|
252
|
+
- options: "More questions" / "Next area"
|
|
253
|
+
|
|
254
|
+
If "More questions" → ask 4 more, then check again
|
|
255
|
+
If "Next area" → proceed to next selected area
|
|
256
|
+
|
|
257
|
+
4. **After all areas complete:**
|
|
258
|
+
- header: "Done"
|
|
259
|
+
- question: "That covers [list areas]. Ready to create context?"
|
|
260
|
+
- options: "Create context" / "Revisit an area"
|
|
261
|
+
|
|
262
|
+
**Question design:**
|
|
263
|
+
- Options should be concrete, not abstract ("Cards" not "Option A")
|
|
264
|
+
- Each answer should inform the next question
|
|
265
|
+
- If user picks "Other", receive their input, reflect it back, confirm
|
|
266
|
+
|
|
267
|
+
**Scope creep handling:**
|
|
268
|
+
If user mentions something outside the phase domain:
|
|
269
|
+
```
|
|
270
|
+
"[Feature] sounds like a new capability — that belongs in its own phase.
|
|
271
|
+
I'll note it as a deferred idea.
|
|
272
|
+
|
|
273
|
+
Back to [current area]: [return to current question]"
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Track deferred ideas internally.
|
|
277
|
+
</step>
|
|
278
|
+
|
|
279
|
+
<step name="write_context">
|
|
280
|
+
Create CONTEXT.md capturing decisions made.
|
|
281
|
+
|
|
282
|
+
**Find or create phase directory:**
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
# Match existing directory (padded or unpadded)
|
|
286
|
+
PADDED_PHASE=$(printf "%02d" ${PHASE})
|
|
287
|
+
PHASE_DIR=$(ls -d .planning/phases/${PADDED_PHASE}-* .planning/phases/${PHASE}-* 2>/dev/null | head -1)
|
|
288
|
+
if [ -z "$PHASE_DIR" ]; then
|
|
289
|
+
# Create from roadmap name (lowercase, hyphens)
|
|
290
|
+
PHASE_NAME=$(grep "Phase ${PHASE}:" .planning/ROADMAP.md | sed 's/.*Phase [0-9]*: //' | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
|
|
291
|
+
mkdir -p ".planning/phases/${PADDED_PHASE}-${PHASE_NAME}"
|
|
292
|
+
PHASE_DIR=".planning/phases/${PADDED_PHASE}-${PHASE_NAME}"
|
|
293
|
+
fi
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
**File location:** `${PHASE_DIR}/${PADDED_PHASE}-CONTEXT.md`
|
|
297
|
+
|
|
298
|
+
**Structure the content by what was discussed:**
|
|
299
|
+
|
|
300
|
+
```markdown
|
|
301
|
+
# Phase [X]: [Name] - Context
|
|
302
|
+
|
|
303
|
+
**Gathered:** [date]
|
|
304
|
+
**Status:** Ready for planning
|
|
305
|
+
|
|
306
|
+
<domain>
|
|
307
|
+
## Phase Boundary
|
|
308
|
+
|
|
309
|
+
[Clear statement of what this phase delivers — the scope anchor]
|
|
310
|
+
|
|
311
|
+
</domain>
|
|
312
|
+
|
|
313
|
+
<decisions>
|
|
314
|
+
## Implementation Decisions
|
|
315
|
+
|
|
316
|
+
### [Category 1 that was discussed]
|
|
317
|
+
- [Decision or preference captured]
|
|
318
|
+
- [Another decision if applicable]
|
|
319
|
+
|
|
320
|
+
### [Category 2 that was discussed]
|
|
321
|
+
- [Decision or preference captured]
|
|
322
|
+
|
|
323
|
+
### Claude's Discretion
|
|
324
|
+
[Areas where user said "you decide" — note that Claude has flexibility here]
|
|
325
|
+
|
|
326
|
+
</decisions>
|
|
327
|
+
|
|
328
|
+
<specifics>
|
|
329
|
+
## Specific Ideas
|
|
330
|
+
|
|
331
|
+
[Any particular references, examples, or "I want it like X" moments from discussion]
|
|
332
|
+
|
|
333
|
+
[If none: "No specific requirements — open to standard approaches"]
|
|
334
|
+
|
|
335
|
+
</specifics>
|
|
336
|
+
|
|
337
|
+
<deferred>
|
|
338
|
+
## Deferred Ideas
|
|
339
|
+
|
|
340
|
+
[Ideas that came up but belong in other phases. Don't lose them.]
|
|
341
|
+
|
|
342
|
+
[If none: "None — discussion stayed within phase scope"]
|
|
343
|
+
|
|
344
|
+
</deferred>
|
|
345
|
+
|
|
346
|
+
---
|
|
347
|
+
|
|
348
|
+
*Phase: XX-name*
|
|
349
|
+
*Context gathered: [date]*
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
Write file.
|
|
353
|
+
</step>
|
|
354
|
+
|
|
355
|
+
<step name="confirm_creation">
|
|
356
|
+
Present summary and next steps:
|
|
357
|
+
|
|
358
|
+
```
|
|
359
|
+
Created: .planning/phases/${PADDED_PHASE}-${SLUG}/${PADDED_PHASE}-CONTEXT.md
|
|
360
|
+
|
|
361
|
+
## Decisions Captured
|
|
362
|
+
|
|
363
|
+
### [Category]
|
|
364
|
+
- [Key decision]
|
|
365
|
+
|
|
366
|
+
### [Category]
|
|
367
|
+
- [Key decision]
|
|
368
|
+
|
|
369
|
+
[If deferred ideas exist:]
|
|
370
|
+
## Noted for Later
|
|
371
|
+
- [Deferred idea] — future phase
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## ▶ Next Up
|
|
376
|
+
|
|
377
|
+
**Phase ${PHASE}: [Name]** — [Goal from ROADMAP.md]
|
|
378
|
+
|
|
379
|
+
`/grd:plan-phase ${PHASE}`
|
|
380
|
+
|
|
381
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
**Also available:**
|
|
386
|
+
- `/grd:plan-phase ${PHASE} --skip-research` — plan without research
|
|
387
|
+
- Review/edit CONTEXT.md before continuing
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
```
|
|
391
|
+
</step>
|
|
392
|
+
|
|
393
|
+
<step name="git_commit">
|
|
394
|
+
Commit phase context:
|
|
395
|
+
|
|
396
|
+
**Check planning config:**
|
|
397
|
+
|
|
398
|
+
```bash
|
|
399
|
+
COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
|
|
400
|
+
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
**If `COMMIT_PLANNING_DOCS=false`:** Skip git operations
|
|
404
|
+
|
|
405
|
+
**If `COMMIT_PLANNING_DOCS=true` (default):**
|
|
406
|
+
|
|
407
|
+
```bash
|
|
408
|
+
git add "${PHASE_DIR}/${PADDED_PHASE}-CONTEXT.md"
|
|
409
|
+
git commit -m "$(cat <<'EOF'
|
|
410
|
+
docs(${PADDED_PHASE}): capture phase context
|
|
411
|
+
|
|
412
|
+
Phase ${PADDED_PHASE}: ${PHASE_NAME}
|
|
413
|
+
- Implementation decisions documented
|
|
414
|
+
- Phase boundary established
|
|
415
|
+
EOF
|
|
416
|
+
)"
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
Confirm: "Committed: docs(${PADDED_PHASE}): capture phase context"
|
|
420
|
+
</step>
|
|
421
|
+
|
|
422
|
+
</process>
|
|
423
|
+
|
|
424
|
+
<success_criteria>
|
|
425
|
+
- Phase validated against roadmap
|
|
426
|
+
- Gray areas identified through intelligent analysis (not generic questions)
|
|
427
|
+
- User selected which areas to discuss
|
|
428
|
+
- Each selected area explored until user satisfied
|
|
429
|
+
- Scope creep redirected to deferred ideas
|
|
430
|
+
- CONTEXT.md captures actual decisions, not vague vision
|
|
431
|
+
- Deferred ideas preserved for future phases
|
|
432
|
+
- User knows next steps
|
|
433
|
+
</success_criteria>
|