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,277 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grd:audit-milestone
|
|
3
|
+
description: Audit milestone completion against original intent before archiving
|
|
4
|
+
argument-hint: "[version]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Glob
|
|
8
|
+
- Grep
|
|
9
|
+
- Bash
|
|
10
|
+
- Task
|
|
11
|
+
- Write
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
<objective>
|
|
15
|
+
Verify milestone achieved its definition of done. Check requirements coverage, cross-phase integration, and end-to-end flows.
|
|
16
|
+
|
|
17
|
+
**This command IS the orchestrator.** Reads existing VERIFICATION.md files (phases already verified during execute-phase), aggregates tech debt and deferred gaps, then spawns integration checker for cross-phase wiring.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
<!-- Spawns grd-integration-checker agent which has all audit expertise baked in -->
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<context>
|
|
25
|
+
Version: $ARGUMENTS (optional — defaults to current milestone)
|
|
26
|
+
|
|
27
|
+
**Original Intent:**
|
|
28
|
+
@.planning/PROJECT.md
|
|
29
|
+
@.planning/REQUIREMENTS.md
|
|
30
|
+
|
|
31
|
+
**Planned Work:**
|
|
32
|
+
@.planning/ROADMAP.md
|
|
33
|
+
@.planning/config.json (if exists)
|
|
34
|
+
|
|
35
|
+
**Completed Work:**
|
|
36
|
+
Glob: .planning/phases/*/*-SUMMARY.md
|
|
37
|
+
Glob: .planning/phases/*/*-VERIFICATION.md
|
|
38
|
+
</context>
|
|
39
|
+
|
|
40
|
+
<process>
|
|
41
|
+
|
|
42
|
+
## 0. Resolve Model Profile
|
|
43
|
+
|
|
44
|
+
Read model profile for agent spawning:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Default to "balanced" if not set.
|
|
51
|
+
|
|
52
|
+
**Model lookup table:**
|
|
53
|
+
|
|
54
|
+
| Agent | quality | balanced | budget |
|
|
55
|
+
|-------|---------|----------|--------|
|
|
56
|
+
| grd-integration-checker | sonnet | sonnet | haiku |
|
|
57
|
+
|
|
58
|
+
Store resolved model for use in Task call below.
|
|
59
|
+
|
|
60
|
+
## 1. Determine Milestone Scope
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Get phases in milestone
|
|
64
|
+
ls -d .planning/phases/*/ | sort -V
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
- Parse version from arguments or detect current from ROADMAP.md
|
|
68
|
+
- Identify all phase directories in scope
|
|
69
|
+
- Extract milestone definition of done from ROADMAP.md
|
|
70
|
+
- Extract requirements mapped to this milestone from REQUIREMENTS.md
|
|
71
|
+
|
|
72
|
+
## 2. Read All Phase Verifications
|
|
73
|
+
|
|
74
|
+
For each phase directory, read the VERIFICATION.md:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
cat .planning/phases/01-*/*-VERIFICATION.md
|
|
78
|
+
cat .planning/phases/02-*/*-VERIFICATION.md
|
|
79
|
+
# etc.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
From each VERIFICATION.md, extract:
|
|
83
|
+
- **Status:** passed | gaps_found
|
|
84
|
+
- **Critical gaps:** (if any — these are blockers)
|
|
85
|
+
- **Non-critical gaps:** tech debt, deferred items, warnings
|
|
86
|
+
- **Anti-patterns found:** TODOs, stubs, placeholders
|
|
87
|
+
- **Requirements coverage:** which requirements satisfied/blocked
|
|
88
|
+
|
|
89
|
+
If a phase is missing VERIFICATION.md, flag it as "unverified phase" — this is a blocker.
|
|
90
|
+
|
|
91
|
+
## 3. Spawn Integration Checker
|
|
92
|
+
|
|
93
|
+
With phase context collected:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
Task(
|
|
97
|
+
prompt="Check cross-phase integration and E2E flows.
|
|
98
|
+
|
|
99
|
+
Phases: {phase_dirs}
|
|
100
|
+
Phase exports: {from SUMMARYs}
|
|
101
|
+
API routes: {routes created}
|
|
102
|
+
|
|
103
|
+
Verify cross-phase wiring and E2E user flows.",
|
|
104
|
+
subagent_type="grd-integration-checker",
|
|
105
|
+
model="{integration_checker_model}"
|
|
106
|
+
)
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## 4. Collect Results
|
|
110
|
+
|
|
111
|
+
Combine:
|
|
112
|
+
- Phase-level gaps and tech debt (from step 2)
|
|
113
|
+
- Integration checker's report (wiring gaps, broken flows)
|
|
114
|
+
|
|
115
|
+
## 5. Check Requirements Coverage
|
|
116
|
+
|
|
117
|
+
For each requirement in REQUIREMENTS.md mapped to this milestone:
|
|
118
|
+
- Find owning phase
|
|
119
|
+
- Check phase verification status
|
|
120
|
+
- Determine: satisfied | partial | unsatisfied
|
|
121
|
+
|
|
122
|
+
## 6. Aggregate into v{version}-MILESTONE-AUDIT.md
|
|
123
|
+
|
|
124
|
+
Create `.planning/v{version}-v{version}-MILESTONE-AUDIT.md` with:
|
|
125
|
+
|
|
126
|
+
```yaml
|
|
127
|
+
---
|
|
128
|
+
milestone: {version}
|
|
129
|
+
audited: {timestamp}
|
|
130
|
+
status: passed | gaps_found | tech_debt
|
|
131
|
+
scores:
|
|
132
|
+
requirements: N/M
|
|
133
|
+
phases: N/M
|
|
134
|
+
integration: N/M
|
|
135
|
+
flows: N/M
|
|
136
|
+
gaps: # Critical blockers
|
|
137
|
+
requirements: [...]
|
|
138
|
+
integration: [...]
|
|
139
|
+
flows: [...]
|
|
140
|
+
tech_debt: # Non-critical, deferred
|
|
141
|
+
- phase: 01-auth
|
|
142
|
+
items:
|
|
143
|
+
- "TODO: add rate limiting"
|
|
144
|
+
- "Warning: no password strength validation"
|
|
145
|
+
- phase: 03-dashboard
|
|
146
|
+
items:
|
|
147
|
+
- "Deferred: mobile responsive layout"
|
|
148
|
+
---
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Plus full markdown report with tables for requirements, phases, integration, tech debt.
|
|
152
|
+
|
|
153
|
+
**Status values:**
|
|
154
|
+
- `passed` — all requirements met, no critical gaps, minimal tech debt
|
|
155
|
+
- `gaps_found` — critical blockers exist
|
|
156
|
+
- `tech_debt` — no blockers but accumulated deferred items need review
|
|
157
|
+
|
|
158
|
+
## 7. Present Results
|
|
159
|
+
|
|
160
|
+
Route by status (see `<offer_next>`).
|
|
161
|
+
|
|
162
|
+
</process>
|
|
163
|
+
|
|
164
|
+
<offer_next>
|
|
165
|
+
Output this markdown directly (not as a code block). Route based on status:
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
**If passed:**
|
|
170
|
+
|
|
171
|
+
## ✓ Milestone {version} — Audit Passed
|
|
172
|
+
|
|
173
|
+
**Score:** {N}/{M} requirements satisfied
|
|
174
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
175
|
+
|
|
176
|
+
All requirements covered. Cross-phase integration verified. E2E flows complete.
|
|
177
|
+
|
|
178
|
+
───────────────────────────────────────────────────────────────
|
|
179
|
+
|
|
180
|
+
## ▶ Next Up
|
|
181
|
+
|
|
182
|
+
**Complete milestone** — archive and tag
|
|
183
|
+
|
|
184
|
+
/grd:complete-milestone {version}
|
|
185
|
+
|
|
186
|
+
<sub>/clear first → fresh context window</sub>
|
|
187
|
+
|
|
188
|
+
───────────────────────────────────────────────────────────────
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
|
|
192
|
+
**If gaps_found:**
|
|
193
|
+
|
|
194
|
+
## ⚠ Milestone {version} — Gaps Found
|
|
195
|
+
|
|
196
|
+
**Score:** {N}/{M} requirements satisfied
|
|
197
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
198
|
+
|
|
199
|
+
### Unsatisfied Requirements
|
|
200
|
+
|
|
201
|
+
{For each unsatisfied requirement:}
|
|
202
|
+
- **{REQ-ID}: {description}** (Phase {X})
|
|
203
|
+
- {reason}
|
|
204
|
+
|
|
205
|
+
### Cross-Phase Issues
|
|
206
|
+
|
|
207
|
+
{For each integration gap:}
|
|
208
|
+
- **{from} → {to}:** {issue}
|
|
209
|
+
|
|
210
|
+
### Broken Flows
|
|
211
|
+
|
|
212
|
+
{For each flow gap:}
|
|
213
|
+
- **{flow name}:** breaks at {step}
|
|
214
|
+
|
|
215
|
+
───────────────────────────────────────────────────────────────
|
|
216
|
+
|
|
217
|
+
## ▶ Next Up
|
|
218
|
+
|
|
219
|
+
**Plan gap closure** — create phases to complete milestone
|
|
220
|
+
|
|
221
|
+
/grd:plan-milestone-gaps
|
|
222
|
+
|
|
223
|
+
<sub>/clear first → fresh context window</sub>
|
|
224
|
+
|
|
225
|
+
───────────────────────────────────────────────────────────────
|
|
226
|
+
|
|
227
|
+
**Also available:**
|
|
228
|
+
- cat .planning/v{version}-MILESTONE-AUDIT.md — see full report
|
|
229
|
+
- /grd:complete-milestone {version} — proceed anyway (accept tech debt)
|
|
230
|
+
|
|
231
|
+
───────────────────────────────────────────────────────────────
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
**If tech_debt (no blockers but accumulated debt):**
|
|
236
|
+
|
|
237
|
+
## ⚡ Milestone {version} — Tech Debt Review
|
|
238
|
+
|
|
239
|
+
**Score:** {N}/{M} requirements satisfied
|
|
240
|
+
**Report:** .planning/v{version}-MILESTONE-AUDIT.md
|
|
241
|
+
|
|
242
|
+
All requirements met. No critical blockers. Accumulated tech debt needs review.
|
|
243
|
+
|
|
244
|
+
### Tech Debt by Phase
|
|
245
|
+
|
|
246
|
+
{For each phase with debt:}
|
|
247
|
+
**Phase {X}: {name}**
|
|
248
|
+
- {item 1}
|
|
249
|
+
- {item 2}
|
|
250
|
+
|
|
251
|
+
### Total: {N} items across {M} phases
|
|
252
|
+
|
|
253
|
+
───────────────────────────────────────────────────────────────
|
|
254
|
+
|
|
255
|
+
## ▶ Options
|
|
256
|
+
|
|
257
|
+
**A. Complete milestone** — accept debt, track in backlog
|
|
258
|
+
|
|
259
|
+
/grd:complete-milestone {version}
|
|
260
|
+
|
|
261
|
+
**B. Plan cleanup phase** — address debt before completing
|
|
262
|
+
|
|
263
|
+
/grd:plan-milestone-gaps
|
|
264
|
+
|
|
265
|
+
<sub>/clear first → fresh context window</sub>
|
|
266
|
+
|
|
267
|
+
───────────────────────────────────────────────────────────────
|
|
268
|
+
</offer_next>
|
|
269
|
+
|
|
270
|
+
<success_criteria>
|
|
271
|
+
- [ ] Milestone scope identified
|
|
272
|
+
- [ ] All phase VERIFICATION.md files read
|
|
273
|
+
- [ ] Tech debt and deferred gaps aggregated
|
|
274
|
+
- [ ] Integration checker spawned for cross-phase wiring
|
|
275
|
+
- [ ] v{version}-MILESTONE-AUDIT.md created
|
|
276
|
+
- [ ] Results presented with actionable next steps
|
|
277
|
+
</success_criteria>
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grd:check-todos
|
|
3
|
+
description: List pending todos and select one to work on
|
|
4
|
+
argument-hint: [area filter]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
15
|
+
|
|
16
|
+
Enables reviewing captured ideas and deciding what to work on next.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<context>
|
|
20
|
+
@.planning/STATE.md
|
|
21
|
+
@.planning/ROADMAP.md
|
|
22
|
+
</context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
|
|
26
|
+
<step name="check_exist">
|
|
27
|
+
```bash
|
|
28
|
+
TODO_COUNT=$(ls .planning/todos/pending/*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
29
|
+
echo "Pending todos: $TODO_COUNT"
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
If count is 0:
|
|
33
|
+
```
|
|
34
|
+
No pending todos.
|
|
35
|
+
|
|
36
|
+
Todos are captured during work sessions with /grd:add-todo.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
Would you like to:
|
|
41
|
+
|
|
42
|
+
1. Continue with current phase (/grd:progress)
|
|
43
|
+
2. Add a todo now (/grd:add-todo)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Exit.
|
|
47
|
+
</step>
|
|
48
|
+
|
|
49
|
+
<step name="parse_filter">
|
|
50
|
+
Check for area filter in arguments:
|
|
51
|
+
- `/grd:check-todos` → show all
|
|
52
|
+
- `/grd:check-todos api` → filter to area:api only
|
|
53
|
+
</step>
|
|
54
|
+
|
|
55
|
+
<step name="list_todos">
|
|
56
|
+
```bash
|
|
57
|
+
for file in .planning/todos/pending/*.md; do
|
|
58
|
+
created=$(grep "^created:" "$file" | cut -d' ' -f2)
|
|
59
|
+
title=$(grep "^title:" "$file" | cut -d':' -f2- | xargs)
|
|
60
|
+
area=$(grep "^area:" "$file" | cut -d' ' -f2)
|
|
61
|
+
echo "$created|$title|$area|$file"
|
|
62
|
+
done | sort
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Apply area filter if specified. Display as numbered list:
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Pending Todos:
|
|
69
|
+
|
|
70
|
+
1. Add auth token refresh (api, 2d ago)
|
|
71
|
+
2. Fix modal z-index issue (ui, 1d ago)
|
|
72
|
+
3. Refactor database connection pool (database, 5h ago)
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
Reply with a number to view details, or:
|
|
77
|
+
- `/grd:check-todos [area]` to filter by area
|
|
78
|
+
- `q` to exit
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Format age as relative time.
|
|
82
|
+
</step>
|
|
83
|
+
|
|
84
|
+
<step name="handle_selection">
|
|
85
|
+
Wait for user to reply with a number.
|
|
86
|
+
|
|
87
|
+
If valid: load selected todo, proceed.
|
|
88
|
+
If invalid: "Invalid selection. Reply with a number (1-[N]) or `q` to exit."
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="load_context">
|
|
92
|
+
Read the todo file completely. Display:
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
## [title]
|
|
96
|
+
|
|
97
|
+
**Area:** [area]
|
|
98
|
+
**Created:** [date] ([relative time] ago)
|
|
99
|
+
**Files:** [list or "None"]
|
|
100
|
+
|
|
101
|
+
### Problem
|
|
102
|
+
[problem section content]
|
|
103
|
+
|
|
104
|
+
### Solution
|
|
105
|
+
[solution section content]
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
If `files` field has entries, read and briefly summarize each.
|
|
109
|
+
</step>
|
|
110
|
+
|
|
111
|
+
<step name="check_roadmap">
|
|
112
|
+
```bash
|
|
113
|
+
ls .planning/ROADMAP.md 2>/dev/null && echo "Roadmap exists"
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
If roadmap exists:
|
|
117
|
+
1. Check if todo's area matches an upcoming phase
|
|
118
|
+
2. Check if todo's files overlap with a phase's scope
|
|
119
|
+
3. Note any match for action options
|
|
120
|
+
</step>
|
|
121
|
+
|
|
122
|
+
<step name="offer_actions">
|
|
123
|
+
**If todo maps to a roadmap phase:**
|
|
124
|
+
|
|
125
|
+
Use AskUserQuestion:
|
|
126
|
+
- header: "Action"
|
|
127
|
+
- question: "This todo relates to Phase [N]: [name]. What would you like to do?"
|
|
128
|
+
- options:
|
|
129
|
+
- "Work on it now" — move to done, start working
|
|
130
|
+
- "Add to phase plan" — include when planning Phase [N]
|
|
131
|
+
- "Brainstorm approach" — think through before deciding
|
|
132
|
+
- "Put it back" — return to list
|
|
133
|
+
|
|
134
|
+
**If no roadmap match:**
|
|
135
|
+
|
|
136
|
+
Use AskUserQuestion:
|
|
137
|
+
- header: "Action"
|
|
138
|
+
- question: "What would you like to do with this todo?"
|
|
139
|
+
- options:
|
|
140
|
+
- "Work on it now" — move to done, start working
|
|
141
|
+
- "Create a phase" — /grd:add-phase with this scope
|
|
142
|
+
- "Brainstorm approach" — think through before deciding
|
|
143
|
+
- "Put it back" — return to list
|
|
144
|
+
</step>
|
|
145
|
+
|
|
146
|
+
<step name="execute_action">
|
|
147
|
+
**Work on it now:**
|
|
148
|
+
```bash
|
|
149
|
+
mv ".planning/todos/pending/[filename]" ".planning/todos/done/"
|
|
150
|
+
```
|
|
151
|
+
Update STATE.md todo count. Present problem/solution context. Begin work or ask how to proceed.
|
|
152
|
+
|
|
153
|
+
**Add to phase plan:**
|
|
154
|
+
Note todo reference in phase planning notes. Keep in pending. Return to list or exit.
|
|
155
|
+
|
|
156
|
+
**Create a phase:**
|
|
157
|
+
Display: `/grd:add-phase [description from todo]`
|
|
158
|
+
Keep in pending. User runs command in fresh context.
|
|
159
|
+
|
|
160
|
+
**Brainstorm approach:**
|
|
161
|
+
Keep in pending. Start discussion about problem and approaches.
|
|
162
|
+
|
|
163
|
+
**Put it back:**
|
|
164
|
+
Return to list_todos step.
|
|
165
|
+
</step>
|
|
166
|
+
|
|
167
|
+
<step name="update_state">
|
|
168
|
+
After any action that changes todo count:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
ls .planning/todos/pending/*.md 2>/dev/null | wc -l
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Update STATE.md "### Pending Todos" section if exists.
|
|
175
|
+
</step>
|
|
176
|
+
|
|
177
|
+
<step name="git_commit">
|
|
178
|
+
If todo was moved to done/, commit the change:
|
|
179
|
+
|
|
180
|
+
**Check planning config:**
|
|
181
|
+
|
|
182
|
+
```bash
|
|
183
|
+
COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
|
|
184
|
+
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**If `COMMIT_PLANNING_DOCS=false`:** Skip git operations, log "Todo moved (not committed - commit_docs: false)"
|
|
188
|
+
|
|
189
|
+
**If `COMMIT_PLANNING_DOCS=true` (default):**
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
git add .planning/todos/done/[filename]
|
|
193
|
+
git rm --cached .planning/todos/pending/[filename] 2>/dev/null || true
|
|
194
|
+
[ -f .planning/STATE.md ] && git add .planning/STATE.md
|
|
195
|
+
git commit -m "$(cat <<'EOF'
|
|
196
|
+
docs: start work on todo - [title]
|
|
197
|
+
|
|
198
|
+
Moved to done/, beginning implementation.
|
|
199
|
+
EOF
|
|
200
|
+
)"
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
Confirm: "Committed: docs: start work on todo - [title]"
|
|
204
|
+
</step>
|
|
205
|
+
|
|
206
|
+
</process>
|
|
207
|
+
|
|
208
|
+
<output>
|
|
209
|
+
- Moved todo to `.planning/todos/done/` (if "Work on it now")
|
|
210
|
+
- Updated `.planning/STATE.md` (if todo count changed)
|
|
211
|
+
</output>
|
|
212
|
+
|
|
213
|
+
<anti_patterns>
|
|
214
|
+
- Don't delete todos — move to done/ when work begins
|
|
215
|
+
- Don't start work without moving to done/ first
|
|
216
|
+
- Don't create plans from this command — route to /grd:plan-phase or /grd:add-phase
|
|
217
|
+
</anti_patterns>
|
|
218
|
+
|
|
219
|
+
<success_criteria>
|
|
220
|
+
- [ ] All pending todos listed with title, area, age
|
|
221
|
+
- [ ] Area filter applied if specified
|
|
222
|
+
- [ ] Selected todo's full context loaded
|
|
223
|
+
- [ ] Roadmap context checked for phase match
|
|
224
|
+
- [ ] Appropriate actions offered
|
|
225
|
+
- [ ] Selected action executed
|
|
226
|
+
- [ ] STATE.md updated if todo count changed
|
|
227
|
+
- [ ] Changes committed to git (if todo moved to done/)
|
|
228
|
+
</success_criteria>
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: prompt
|
|
3
|
+
name: grd:complete-milestone
|
|
4
|
+
description: Archive completed milestone and prepare for next version
|
|
5
|
+
argument-hint: <version>
|
|
6
|
+
allowed-tools:
|
|
7
|
+
- Read
|
|
8
|
+
- Write
|
|
9
|
+
- Bash
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
|
|
14
|
+
|
|
15
|
+
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
|
|
16
|
+
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
**Load these files NOW (before proceeding):**
|
|
21
|
+
|
|
22
|
+
- @~/.claude/get-research-done/workflows/complete-milestone.md (main workflow)
|
|
23
|
+
- @~/.claude/get-research-done/templates/milestone-archive.md (archive template)
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
**Project files:**
|
|
28
|
+
- `.planning/ROADMAP.md`
|
|
29
|
+
- `.planning/REQUIREMENTS.md`
|
|
30
|
+
- `.planning/STATE.md`
|
|
31
|
+
- `.planning/PROJECT.md`
|
|
32
|
+
|
|
33
|
+
**User input:**
|
|
34
|
+
|
|
35
|
+
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
|
|
36
|
+
</context>
|
|
37
|
+
|
|
38
|
+
<process>
|
|
39
|
+
|
|
40
|
+
**Follow complete-milestone.md workflow:**
|
|
41
|
+
|
|
42
|
+
0. **Check for audit:**
|
|
43
|
+
|
|
44
|
+
- Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
|
|
45
|
+
- If missing or stale: recommend `/grd:audit-milestone` first
|
|
46
|
+
- If audit status is `gaps_found`: recommend `/grd:plan-milestone-gaps` first
|
|
47
|
+
- If audit status is `passed`: proceed to step 1
|
|
48
|
+
|
|
49
|
+
```markdown
|
|
50
|
+
## Pre-flight Check
|
|
51
|
+
|
|
52
|
+
{If no v{{version}}-MILESTONE-AUDIT.md:}
|
|
53
|
+
⚠ No milestone audit found. Run `/grd:audit-milestone` first to verify
|
|
54
|
+
requirements coverage, cross-phase integration, and E2E flows.
|
|
55
|
+
|
|
56
|
+
{If audit has gaps:}
|
|
57
|
+
⚠ Milestone audit found gaps. Run `/grd:plan-milestone-gaps` to create
|
|
58
|
+
phases that close the gaps, or proceed anyway to accept as tech debt.
|
|
59
|
+
|
|
60
|
+
{If audit passed:}
|
|
61
|
+
✓ Milestone audit passed. Proceeding with completion.
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
1. **Verify readiness:**
|
|
65
|
+
|
|
66
|
+
- Check all phases in milestone have completed plans (SUMMARY.md exists)
|
|
67
|
+
- Present milestone scope and stats
|
|
68
|
+
- Wait for confirmation
|
|
69
|
+
|
|
70
|
+
2. **Gather stats:**
|
|
71
|
+
|
|
72
|
+
- Count phases, plans, tasks
|
|
73
|
+
- Calculate git range, file changes, LOC
|
|
74
|
+
- Extract timeline from git log
|
|
75
|
+
- Present summary, confirm
|
|
76
|
+
|
|
77
|
+
3. **Extract accomplishments:**
|
|
78
|
+
|
|
79
|
+
- Read all phase SUMMARY.md files in milestone range
|
|
80
|
+
- Extract 4-6 key accomplishments
|
|
81
|
+
- Present for approval
|
|
82
|
+
|
|
83
|
+
4. **Archive milestone:**
|
|
84
|
+
|
|
85
|
+
- Create `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
86
|
+
- Extract full phase details from ROADMAP.md
|
|
87
|
+
- Fill milestone-archive.md template
|
|
88
|
+
- Update ROADMAP.md to one-line summary with link
|
|
89
|
+
|
|
90
|
+
5. **Archive requirements:**
|
|
91
|
+
|
|
92
|
+
- Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
93
|
+
- Mark all v1 requirements as complete (checkboxes checked)
|
|
94
|
+
- Note requirement outcomes (validated, adjusted, dropped)
|
|
95
|
+
- Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
|
|
96
|
+
|
|
97
|
+
6. **Update PROJECT.md:**
|
|
98
|
+
|
|
99
|
+
- Add "Current State" section with shipped version
|
|
100
|
+
- Add "Next Milestone Goals" section
|
|
101
|
+
- Archive previous content in `<details>` (if v1.1+)
|
|
102
|
+
|
|
103
|
+
7. **Commit and tag:**
|
|
104
|
+
|
|
105
|
+
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
|
|
106
|
+
- Commit: `chore: archive v{{version}} milestone`
|
|
107
|
+
- Tag: `git tag -a v{{version}} -m "[milestone summary]"`
|
|
108
|
+
- Ask about pushing tag
|
|
109
|
+
|
|
110
|
+
8. **Offer next steps:**
|
|
111
|
+
- `/grd:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
|
|
112
|
+
|
|
113
|
+
</process>
|
|
114
|
+
|
|
115
|
+
<success_criteria>
|
|
116
|
+
|
|
117
|
+
- Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
118
|
+
- Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
119
|
+
- `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
|
|
120
|
+
- ROADMAP.md collapsed to one-line entry
|
|
121
|
+
- PROJECT.md updated with current state
|
|
122
|
+
- Git tag v{{version}} created
|
|
123
|
+
- Commit successful
|
|
124
|
+
- User knows next steps (including need for fresh requirements)
|
|
125
|
+
</success_criteria>
|
|
126
|
+
|
|
127
|
+
<critical_rules>
|
|
128
|
+
|
|
129
|
+
- **Load workflow first:** Read complete-milestone.md before executing
|
|
130
|
+
- **Verify completion:** All phases must have SUMMARY.md files
|
|
131
|
+
- **User confirmation:** Wait for approval at verification gates
|
|
132
|
+
- **Archive before deleting:** Always create archive files before updating/deleting originals
|
|
133
|
+
- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
|
|
134
|
+
- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
|
|
135
|
+
- **Fresh requirements:** Next milestone starts with `/grd:new-milestone` which includes requirements definition
|
|
136
|
+
</critical_rules>
|