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.
Files changed (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +560 -0
  3. package/agents/grd-architect.md +789 -0
  4. package/agents/grd-codebase-mapper.md +738 -0
  5. package/agents/grd-critic.md +1065 -0
  6. package/agents/grd-debugger.md +1203 -0
  7. package/agents/grd-evaluator.md +948 -0
  8. package/agents/grd-executor.md +784 -0
  9. package/agents/grd-explorer.md +2063 -0
  10. package/agents/grd-graduator.md +484 -0
  11. package/agents/grd-integration-checker.md +423 -0
  12. package/agents/grd-phase-researcher.md +641 -0
  13. package/agents/grd-plan-checker.md +745 -0
  14. package/agents/grd-planner.md +1386 -0
  15. package/agents/grd-project-researcher.md +865 -0
  16. package/agents/grd-research-synthesizer.md +256 -0
  17. package/agents/grd-researcher.md +2361 -0
  18. package/agents/grd-roadmapper.md +605 -0
  19. package/agents/grd-verifier.md +778 -0
  20. package/bin/install.js +1294 -0
  21. package/commands/grd/add-phase.md +207 -0
  22. package/commands/grd/add-todo.md +193 -0
  23. package/commands/grd/architect.md +283 -0
  24. package/commands/grd/audit-milestone.md +277 -0
  25. package/commands/grd/check-todos.md +228 -0
  26. package/commands/grd/complete-milestone.md +136 -0
  27. package/commands/grd/debug.md +169 -0
  28. package/commands/grd/discuss-phase.md +86 -0
  29. package/commands/grd/evaluate.md +1095 -0
  30. package/commands/grd/execute-phase.md +339 -0
  31. package/commands/grd/explore.md +258 -0
  32. package/commands/grd/graduate.md +323 -0
  33. package/commands/grd/help.md +482 -0
  34. package/commands/grd/insert-phase.md +227 -0
  35. package/commands/grd/insights.md +231 -0
  36. package/commands/grd/join-discord.md +18 -0
  37. package/commands/grd/list-phase-assumptions.md +50 -0
  38. package/commands/grd/map-codebase.md +71 -0
  39. package/commands/grd/new-milestone.md +721 -0
  40. package/commands/grd/new-project.md +1008 -0
  41. package/commands/grd/pause-work.md +134 -0
  42. package/commands/grd/plan-milestone-gaps.md +295 -0
  43. package/commands/grd/plan-phase.md +525 -0
  44. package/commands/grd/progress.md +364 -0
  45. package/commands/grd/quick-explore.md +236 -0
  46. package/commands/grd/quick.md +309 -0
  47. package/commands/grd/remove-phase.md +349 -0
  48. package/commands/grd/research-phase.md +200 -0
  49. package/commands/grd/research.md +681 -0
  50. package/commands/grd/resume-work.md +40 -0
  51. package/commands/grd/set-profile.md +106 -0
  52. package/commands/grd/settings.md +136 -0
  53. package/commands/grd/update.md +172 -0
  54. package/commands/grd/verify-work.md +219 -0
  55. package/get-research-done/config/default.json +15 -0
  56. package/get-research-done/references/checkpoints.md +1078 -0
  57. package/get-research-done/references/continuation-format.md +249 -0
  58. package/get-research-done/references/git-integration.md +254 -0
  59. package/get-research-done/references/model-profiles.md +73 -0
  60. package/get-research-done/references/planning-config.md +94 -0
  61. package/get-research-done/references/questioning.md +141 -0
  62. package/get-research-done/references/tdd.md +263 -0
  63. package/get-research-done/references/ui-brand.md +160 -0
  64. package/get-research-done/references/verification-patterns.md +612 -0
  65. package/get-research-done/templates/DEBUG.md +159 -0
  66. package/get-research-done/templates/UAT.md +247 -0
  67. package/get-research-done/templates/archive-reason.md +195 -0
  68. package/get-research-done/templates/codebase/architecture.md +255 -0
  69. package/get-research-done/templates/codebase/concerns.md +310 -0
  70. package/get-research-done/templates/codebase/conventions.md +307 -0
  71. package/get-research-done/templates/codebase/integrations.md +280 -0
  72. package/get-research-done/templates/codebase/stack.md +186 -0
  73. package/get-research-done/templates/codebase/structure.md +285 -0
  74. package/get-research-done/templates/codebase/testing.md +480 -0
  75. package/get-research-done/templates/config.json +35 -0
  76. package/get-research-done/templates/context.md +283 -0
  77. package/get-research-done/templates/continue-here.md +78 -0
  78. package/get-research-done/templates/critic-log.md +288 -0
  79. package/get-research-done/templates/data-report.md +173 -0
  80. package/get-research-done/templates/debug-subagent-prompt.md +91 -0
  81. package/get-research-done/templates/decision-log.md +58 -0
  82. package/get-research-done/templates/decision.md +138 -0
  83. package/get-research-done/templates/discovery.md +146 -0
  84. package/get-research-done/templates/experiment-readme.md +104 -0
  85. package/get-research-done/templates/graduated-script.md +180 -0
  86. package/get-research-done/templates/iteration-summary.md +234 -0
  87. package/get-research-done/templates/milestone-archive.md +123 -0
  88. package/get-research-done/templates/milestone.md +115 -0
  89. package/get-research-done/templates/objective.md +271 -0
  90. package/get-research-done/templates/phase-prompt.md +567 -0
  91. package/get-research-done/templates/planner-subagent-prompt.md +117 -0
  92. package/get-research-done/templates/project.md +184 -0
  93. package/get-research-done/templates/requirements.md +231 -0
  94. package/get-research-done/templates/research-project/ARCHITECTURE.md +204 -0
  95. package/get-research-done/templates/research-project/FEATURES.md +147 -0
  96. package/get-research-done/templates/research-project/PITFALLS.md +200 -0
  97. package/get-research-done/templates/research-project/STACK.md +120 -0
  98. package/get-research-done/templates/research-project/SUMMARY.md +170 -0
  99. package/get-research-done/templates/research.md +529 -0
  100. package/get-research-done/templates/roadmap.md +202 -0
  101. package/get-research-done/templates/scorecard.json +113 -0
  102. package/get-research-done/templates/state.md +287 -0
  103. package/get-research-done/templates/summary.md +246 -0
  104. package/get-research-done/templates/user-setup.md +311 -0
  105. package/get-research-done/templates/verification-report.md +322 -0
  106. package/get-research-done/workflows/complete-milestone.md +756 -0
  107. package/get-research-done/workflows/diagnose-issues.md +231 -0
  108. package/get-research-done/workflows/discovery-phase.md +289 -0
  109. package/get-research-done/workflows/discuss-phase.md +433 -0
  110. package/get-research-done/workflows/execute-phase.md +657 -0
  111. package/get-research-done/workflows/execute-plan.md +1844 -0
  112. package/get-research-done/workflows/list-phase-assumptions.md +178 -0
  113. package/get-research-done/workflows/map-codebase.md +322 -0
  114. package/get-research-done/workflows/resume-project.md +307 -0
  115. package/get-research-done/workflows/transition.md +556 -0
  116. package/get-research-done/workflows/verify-phase.md +628 -0
  117. package/get-research-done/workflows/verify-work.md +596 -0
  118. package/hooks/dist/grd-check-update.js +61 -0
  119. package/hooks/dist/grd-statusline.js +84 -0
  120. package/package.json +47 -0
  121. package/scripts/audit-help-commands.sh +115 -0
  122. package/scripts/build-hooks.js +42 -0
  123. package/scripts/verify-all-commands.sh +246 -0
  124. package/scripts/verify-architect-warning.sh +35 -0
  125. package/scripts/verify-insights-mode.sh +40 -0
  126. package/scripts/verify-quick-mode.sh +20 -0
  127. package/scripts/verify-revise-data-routing.sh +139 -0
@@ -0,0 +1,134 @@
1
+ ---
2
+ name: grd:pause-work
3
+ description: Create context handoff when pausing work mid-phase
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - Bash
8
+ ---
9
+
10
+ <objective>
11
+ Create `.continue-here.md` handoff file to preserve complete work state across sessions.
12
+
13
+ Enables seamless resumption in fresh session with full context restoration.
14
+ </objective>
15
+
16
+ <context>
17
+ @.planning/STATE.md
18
+ </context>
19
+
20
+ <process>
21
+
22
+ <step name="detect">
23
+ Find current phase directory from most recently modified files.
24
+ </step>
25
+
26
+ <step name="gather">
27
+ **Collect complete state for handoff:**
28
+
29
+ 1. **Current position**: Which phase, which plan, which task
30
+ 2. **Work completed**: What got done this session
31
+ 3. **Work remaining**: What's left in current plan/phase
32
+ 4. **Decisions made**: Key decisions and rationale
33
+ 5. **Blockers/issues**: Anything stuck
34
+ 6. **Mental context**: The approach, next steps, "vibe"
35
+ 7. **Files modified**: What's changed but not committed
36
+
37
+ Ask user for clarifications if needed.
38
+ </step>
39
+
40
+ <step name="write">
41
+ **Write handoff to `.planning/phases/XX-name/.continue-here.md`:**
42
+
43
+ ```markdown
44
+ ---
45
+ phase: XX-name
46
+ task: 3
47
+ total_tasks: 7
48
+ status: in_progress
49
+ last_updated: [timestamp]
50
+ ---
51
+
52
+ <current_state>
53
+ [Where exactly are we? Immediate context]
54
+ </current_state>
55
+
56
+ <completed_work>
57
+
58
+ - Task 1: [name] - Done
59
+ - Task 2: [name] - Done
60
+ - Task 3: [name] - In progress, [what's done]
61
+ </completed_work>
62
+
63
+ <remaining_work>
64
+
65
+ - Task 3: [what's left]
66
+ - Task 4: Not started
67
+ - Task 5: Not started
68
+ </remaining_work>
69
+
70
+ <decisions_made>
71
+
72
+ - Decided to use [X] because [reason]
73
+ - Chose [approach] over [alternative] because [reason]
74
+ </decisions_made>
75
+
76
+ <blockers>
77
+ - [Blocker 1]: [status/workaround]
78
+ </blockers>
79
+
80
+ <context>
81
+ [Mental state, what were you thinking, the plan]
82
+ </context>
83
+
84
+ <next_action>
85
+ Start with: [specific first action when resuming]
86
+ </next_action>
87
+ ```
88
+
89
+ Be specific enough for a fresh Claude to understand immediately.
90
+ </step>
91
+
92
+ <step name="commit">
93
+ **Check planning config:**
94
+
95
+ ```bash
96
+ COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
97
+ git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
98
+ ```
99
+
100
+ **If `COMMIT_PLANNING_DOCS=false`:** Skip git operations
101
+
102
+ **If `COMMIT_PLANNING_DOCS=true` (default):**
103
+
104
+ ```bash
105
+ git add .planning/phases/*/.continue-here.md
106
+ git commit -m "wip: [phase-name] paused at task [X]/[Y]"
107
+ ```
108
+ </step>
109
+
110
+ <step name="confirm">
111
+ ```
112
+ ✓ Handoff created: .planning/phases/[XX-name]/.continue-here.md
113
+
114
+ Current state:
115
+
116
+ - Phase: [XX-name]
117
+ - Task: [X] of [Y]
118
+ - Status: [in_progress/blocked]
119
+ - Committed as WIP
120
+
121
+ To resume: /grd:resume-work
122
+
123
+ ```
124
+ </step>
125
+
126
+ </process>
127
+
128
+ <success_criteria>
129
+ - [ ] .continue-here.md created in correct phase directory
130
+ - [ ] All sections filled with specific content
131
+ - [ ] Committed as WIP
132
+ - [ ] User knows location and how to resume
133
+ </success_criteria>
134
+ ```
@@ -0,0 +1,295 @@
1
+ ---
2
+ name: grd:plan-milestone-gaps
3
+ description: Create phases to close all gaps identified by milestone audit
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - Bash
8
+ - Glob
9
+ - Grep
10
+ - AskUserQuestion
11
+ ---
12
+
13
+ <objective>
14
+ Create all phases necessary to close gaps identified by `/grd:audit-milestone`.
15
+
16
+ Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
17
+
18
+ One command creates all fix phases — no manual `/grd:add-phase` per gap.
19
+ </objective>
20
+
21
+ <execution_context>
22
+ <!-- Spawns grd-planner agent which has all planning expertise baked in -->
23
+ </execution_context>
24
+
25
+ <context>
26
+ **Audit results:**
27
+ Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
28
+
29
+ **Original intent (for prioritization):**
30
+ @.planning/PROJECT.md
31
+ @.planning/REQUIREMENTS.md
32
+
33
+ **Current state:**
34
+ @.planning/ROADMAP.md
35
+ @.planning/STATE.md
36
+ </context>
37
+
38
+ <process>
39
+
40
+ ## 1. Load Audit Results
41
+
42
+ ```bash
43
+ # Find the most recent audit file
44
+ ls -t .planning/v*-MILESTONE-AUDIT.md 2>/dev/null | head -1
45
+ ```
46
+
47
+ Parse YAML frontmatter to extract structured gaps:
48
+ - `gaps.requirements` — unsatisfied requirements
49
+ - `gaps.integration` — missing cross-phase connections
50
+ - `gaps.flows` — broken E2E flows
51
+
52
+ If no audit file exists or has no gaps, error:
53
+ ```
54
+ No audit gaps found. Run `/grd:audit-milestone` first.
55
+ ```
56
+
57
+ ## 2. Prioritize Gaps
58
+
59
+ Group gaps by priority from REQUIREMENTS.md:
60
+
61
+ | Priority | Action |
62
+ |----------|--------|
63
+ | `must` | Create phase, blocks milestone |
64
+ | `should` | Create phase, recommended |
65
+ | `nice` | Ask user: include or defer? |
66
+
67
+ For integration/flow gaps, infer priority from affected requirements.
68
+
69
+ ## 3. Group Gaps into Phases
70
+
71
+ Cluster related gaps into logical phases:
72
+
73
+ **Grouping rules:**
74
+ - Same affected phase → combine into one fix phase
75
+ - Same subsystem (auth, API, UI) → combine
76
+ - Dependency order (fix stubs before wiring)
77
+ - Keep phases focused: 2-4 tasks each
78
+
79
+ **Example grouping:**
80
+ ```
81
+ Gap: DASH-01 unsatisfied (Dashboard doesn't fetch)
82
+ Gap: Integration Phase 1→3 (Auth not passed to API calls)
83
+ Gap: Flow "View dashboard" broken at data fetch
84
+
85
+ → Phase 6: "Wire Dashboard to API"
86
+ - Add fetch to Dashboard.tsx
87
+ - Include auth header in fetch
88
+ - Handle response, update state
89
+ - Render user data
90
+ ```
91
+
92
+ ## 4. Determine Phase Numbers
93
+
94
+ Find highest existing phase:
95
+ ```bash
96
+ ls -d .planning/phases/*/ | sort -V | tail -1
97
+ ```
98
+
99
+ New phases continue from there:
100
+ - If Phase 5 is highest, gaps become Phase 6, 7, 8...
101
+
102
+ ## 5. Present Gap Closure Plan
103
+
104
+ ```markdown
105
+ ## Gap Closure Plan
106
+
107
+ **Milestone:** {version}
108
+ **Gaps to close:** {N} requirements, {M} integration, {K} flows
109
+
110
+ ### Proposed Phases
111
+
112
+ **Phase {N}: {Name}**
113
+ Closes:
114
+ - {REQ-ID}: {description}
115
+ - Integration: {from} → {to}
116
+ Tasks: {count}
117
+
118
+ **Phase {N+1}: {Name}**
119
+ Closes:
120
+ - {REQ-ID}: {description}
121
+ - Flow: {flow name}
122
+ Tasks: {count}
123
+
124
+ {If nice-to-have gaps exist:}
125
+
126
+ ### Deferred (nice-to-have)
127
+
128
+ These gaps are optional. Include them?
129
+ - {gap description}
130
+ - {gap description}
131
+
132
+ ---
133
+
134
+ Create these {X} phases? (yes / adjust / defer all optional)
135
+ ```
136
+
137
+ Wait for user confirmation.
138
+
139
+ ## 6. Update ROADMAP.md
140
+
141
+ Add new phases to current milestone:
142
+
143
+ ```markdown
144
+ ### Phase {N}: {Name}
145
+ **Goal:** {derived from gaps being closed}
146
+ **Requirements:** {REQ-IDs being satisfied}
147
+ **Gap Closure:** Closes gaps from audit
148
+
149
+ ### Phase {N+1}: {Name}
150
+ ...
151
+ ```
152
+
153
+ ## 7. Create Phase Directories
154
+
155
+ ```bash
156
+ mkdir -p ".planning/phases/{NN}-{name}"
157
+ ```
158
+
159
+ ## 8. Commit Roadmap Update
160
+
161
+ **Check planning config:**
162
+
163
+ ```bash
164
+ COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
165
+ git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
166
+ ```
167
+
168
+ **If `COMMIT_PLANNING_DOCS=false`:** Skip git operations
169
+
170
+ **If `COMMIT_PLANNING_DOCS=true` (default):**
171
+
172
+ ```bash
173
+ git add .planning/ROADMAP.md
174
+ git commit -m "docs(roadmap): add gap closure phases {N}-{M}"
175
+ ```
176
+
177
+ ## 9. Offer Next Steps
178
+
179
+ ```markdown
180
+ ## ✓ Gap Closure Phases Created
181
+
182
+ **Phases added:** {N} - {M}
183
+ **Gaps addressed:** {count} requirements, {count} integration, {count} flows
184
+
185
+ ---
186
+
187
+ ## ▶ Next Up
188
+
189
+ **Plan first gap closure phase**
190
+
191
+ `/grd:plan-phase {N}`
192
+
193
+ <sub>`/clear` first → fresh context window</sub>
194
+
195
+ ---
196
+
197
+ **Also available:**
198
+ - `/grd:execute-phase {N}` — if plans already exist
199
+ - `cat .planning/ROADMAP.md` — see updated roadmap
200
+
201
+ ---
202
+
203
+ **After all gap phases complete:**
204
+
205
+ `/grd:audit-milestone` — re-audit to verify gaps closed
206
+ `/grd:complete-milestone {version}` — archive when audit passes
207
+ ```
208
+
209
+ </process>
210
+
211
+ <gap_to_phase_mapping>
212
+
213
+ ## How Gaps Become Tasks
214
+
215
+ **Requirement gap → Tasks:**
216
+ ```yaml
217
+ gap:
218
+ id: DASH-01
219
+ description: "User sees their data"
220
+ reason: "Dashboard exists but doesn't fetch from API"
221
+ missing:
222
+ - "useEffect with fetch to /api/user/data"
223
+ - "State for user data"
224
+ - "Render user data in JSX"
225
+
226
+ becomes:
227
+
228
+ phase: "Wire Dashboard Data"
229
+ tasks:
230
+ - name: "Add data fetching"
231
+ files: [src/components/Dashboard.tsx]
232
+ action: "Add useEffect that fetches /api/user/data on mount"
233
+
234
+ - name: "Add state management"
235
+ files: [src/components/Dashboard.tsx]
236
+ action: "Add useState for userData, loading, error states"
237
+
238
+ - name: "Render user data"
239
+ files: [src/components/Dashboard.tsx]
240
+ action: "Replace placeholder with userData.map rendering"
241
+ ```
242
+
243
+ **Integration gap → Tasks:**
244
+ ```yaml
245
+ gap:
246
+ from_phase: 1
247
+ to_phase: 3
248
+ connection: "Auth token → API calls"
249
+ reason: "Dashboard API calls don't include auth header"
250
+ missing:
251
+ - "Auth header in fetch calls"
252
+ - "Token refresh on 401"
253
+
254
+ becomes:
255
+
256
+ phase: "Add Auth to Dashboard API Calls"
257
+ tasks:
258
+ - name: "Add auth header to fetches"
259
+ files: [src/components/Dashboard.tsx, src/lib/api.ts]
260
+ action: "Include Authorization header with token in all API calls"
261
+
262
+ - name: "Handle 401 responses"
263
+ files: [src/lib/api.ts]
264
+ action: "Add interceptor to refresh token or redirect to login on 401"
265
+ ```
266
+
267
+ **Flow gap → Tasks:**
268
+ ```yaml
269
+ gap:
270
+ name: "User views dashboard after login"
271
+ broken_at: "Dashboard data load"
272
+ reason: "No fetch call"
273
+ missing:
274
+ - "Fetch user data on mount"
275
+ - "Display loading state"
276
+ - "Render user data"
277
+
278
+ becomes:
279
+
280
+ # Usually same phase as requirement/integration gap
281
+ # Flow gaps often overlap with other gap types
282
+ ```
283
+
284
+ </gap_to_phase_mapping>
285
+
286
+ <success_criteria>
287
+ - [ ] MILESTONE-AUDIT.md loaded and gaps parsed
288
+ - [ ] Gaps prioritized (must/should/nice)
289
+ - [ ] Gaps grouped into logical phases
290
+ - [ ] User confirmed phase plan
291
+ - [ ] ROADMAP.md updated with new phases
292
+ - [ ] Phase directories created
293
+ - [ ] Changes committed
294
+ - [ ] User knows to run `/grd:plan-phase` next
295
+ </success_criteria>