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,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grd:add-phase
|
|
3
|
+
description: Add phase to end of current milestone in roadmap
|
|
4
|
+
argument-hint: <description>
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<objective>
|
|
12
|
+
Add a new integer phase to the end of the current milestone in the roadmap.
|
|
13
|
+
|
|
14
|
+
This command appends sequential phases to the current milestone's phase list, automatically calculating the next phase number based on existing phases.
|
|
15
|
+
|
|
16
|
+
Purpose: Add planned work discovered during execution that belongs at the end of current milestone.
|
|
17
|
+
</objective>
|
|
18
|
+
|
|
19
|
+
<execution_context>
|
|
20
|
+
@.planning/ROADMAP.md
|
|
21
|
+
@.planning/STATE.md
|
|
22
|
+
</execution_context>
|
|
23
|
+
|
|
24
|
+
<process>
|
|
25
|
+
|
|
26
|
+
<step name="parse_arguments">
|
|
27
|
+
Parse the command arguments:
|
|
28
|
+
- All arguments become the phase description
|
|
29
|
+
- Example: `/grd:add-phase Add authentication` → description = "Add authentication"
|
|
30
|
+
- Example: `/grd:add-phase Fix critical performance issues` → description = "Fix critical performance issues"
|
|
31
|
+
|
|
32
|
+
If no arguments provided:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
ERROR: Phase description required
|
|
36
|
+
Usage: /grd:add-phase <description>
|
|
37
|
+
Example: /grd:add-phase Add authentication system
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
Exit.
|
|
41
|
+
</step>
|
|
42
|
+
|
|
43
|
+
<step name="load_roadmap">
|
|
44
|
+
Load the roadmap file:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
if [ -f .planning/ROADMAP.md ]; then
|
|
48
|
+
ROADMAP=".planning/ROADMAP.md"
|
|
49
|
+
else
|
|
50
|
+
echo "ERROR: No roadmap found (.planning/ROADMAP.md)"
|
|
51
|
+
exit 1
|
|
52
|
+
fi
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Read roadmap content for parsing.
|
|
56
|
+
</step>
|
|
57
|
+
|
|
58
|
+
<step name="find_current_milestone">
|
|
59
|
+
Parse the roadmap to find the current milestone section:
|
|
60
|
+
|
|
61
|
+
1. Locate the "## Current Milestone:" heading
|
|
62
|
+
2. Extract milestone name and version
|
|
63
|
+
3. Identify all phases under this milestone (before next "---" separator or next milestone heading)
|
|
64
|
+
4. Parse existing phase numbers (including decimals if present)
|
|
65
|
+
|
|
66
|
+
Example structure:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
## Current Milestone: v1.0 Foundation
|
|
70
|
+
|
|
71
|
+
### Phase 4: Focused Command System
|
|
72
|
+
### Phase 5: Path Routing & Validation
|
|
73
|
+
### Phase 6: Documentation & Distribution
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
</step>
|
|
77
|
+
|
|
78
|
+
<step name="calculate_next_phase">
|
|
79
|
+
Find the highest integer phase number in the current milestone:
|
|
80
|
+
|
|
81
|
+
1. Extract all phase numbers from phase headings (### Phase N:)
|
|
82
|
+
2. Filter to integer phases only (ignore decimals like 4.1, 4.2)
|
|
83
|
+
3. Find the maximum integer value
|
|
84
|
+
4. Add 1 to get the next phase number
|
|
85
|
+
|
|
86
|
+
Example: If phases are 4, 5, 5.1, 6 → next is 7
|
|
87
|
+
|
|
88
|
+
Format as two-digit: `printf "%02d" $next_phase`
|
|
89
|
+
</step>
|
|
90
|
+
|
|
91
|
+
<step name="generate_slug">
|
|
92
|
+
Convert the phase description to a kebab-case slug:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
# Example transformation:
|
|
96
|
+
# "Add authentication" → "add-authentication"
|
|
97
|
+
# "Fix critical performance issues" → "fix-critical-performance-issues"
|
|
98
|
+
|
|
99
|
+
slug=$(echo "$description" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Phase directory name: `{two-digit-phase}-{slug}`
|
|
103
|
+
Example: `07-add-authentication`
|
|
104
|
+
</step>
|
|
105
|
+
|
|
106
|
+
<step name="create_phase_directory">
|
|
107
|
+
Create the phase directory structure:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
phase_dir=".planning/phases/${phase_num}-${slug}"
|
|
111
|
+
mkdir -p "$phase_dir"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Confirm: "Created directory: $phase_dir"
|
|
115
|
+
</step>
|
|
116
|
+
|
|
117
|
+
<step name="update_roadmap">
|
|
118
|
+
Add the new phase entry to the roadmap:
|
|
119
|
+
|
|
120
|
+
1. Find the insertion point (after last phase in current milestone, before "---" separator)
|
|
121
|
+
2. Insert new phase heading:
|
|
122
|
+
|
|
123
|
+
```
|
|
124
|
+
### Phase {N}: {Description}
|
|
125
|
+
|
|
126
|
+
**Goal:** [To be planned]
|
|
127
|
+
**Depends on:** Phase {N-1}
|
|
128
|
+
**Plans:** 0 plans
|
|
129
|
+
|
|
130
|
+
Plans:
|
|
131
|
+
- [ ] TBD (run /grd:plan-phase {N} to break down)
|
|
132
|
+
|
|
133
|
+
**Details:**
|
|
134
|
+
[To be added during planning]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
3. Write updated roadmap back to file
|
|
138
|
+
|
|
139
|
+
Preserve all other content exactly (formatting, spacing, other phases).
|
|
140
|
+
</step>
|
|
141
|
+
|
|
142
|
+
<step name="update_project_state">
|
|
143
|
+
Update STATE.md to reflect the new phase:
|
|
144
|
+
|
|
145
|
+
1. Read `.planning/STATE.md`
|
|
146
|
+
2. Under "## Current Position" → "**Next Phase:**" add reference to new phase
|
|
147
|
+
3. Under "## Accumulated Context" → "### Roadmap Evolution" add entry:
|
|
148
|
+
```
|
|
149
|
+
- Phase {N} added: {description}
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
If "Roadmap Evolution" section doesn't exist, create it.
|
|
153
|
+
</step>
|
|
154
|
+
|
|
155
|
+
<step name="completion">
|
|
156
|
+
Present completion summary:
|
|
157
|
+
|
|
158
|
+
```
|
|
159
|
+
Phase {N} added to current milestone:
|
|
160
|
+
- Description: {description}
|
|
161
|
+
- Directory: .planning/phases/{phase-num}-{slug}/
|
|
162
|
+
- Status: Not planned yet
|
|
163
|
+
|
|
164
|
+
Roadmap updated: {roadmap-path}
|
|
165
|
+
Project state updated: .planning/STATE.md
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## ▶ Next Up
|
|
170
|
+
|
|
171
|
+
**Phase {N}: {description}**
|
|
172
|
+
|
|
173
|
+
`/grd:plan-phase {N}`
|
|
174
|
+
|
|
175
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
**Also available:**
|
|
180
|
+
- `/grd:add-phase <description>` — add another phase
|
|
181
|
+
- Review roadmap
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
```
|
|
185
|
+
</step>
|
|
186
|
+
|
|
187
|
+
</process>
|
|
188
|
+
|
|
189
|
+
<anti_patterns>
|
|
190
|
+
|
|
191
|
+
- Don't modify phases outside current milestone
|
|
192
|
+
- Don't renumber existing phases
|
|
193
|
+
- Don't use decimal numbering (that's /grd:insert-phase)
|
|
194
|
+
- Don't create plans yet (that's /grd:plan-phase)
|
|
195
|
+
- Don't commit changes (user decides when to commit)
|
|
196
|
+
</anti_patterns>
|
|
197
|
+
|
|
198
|
+
<success_criteria>
|
|
199
|
+
Phase addition is complete when:
|
|
200
|
+
|
|
201
|
+
- [ ] Phase directory created: `.planning/phases/{NN}-{slug}/`
|
|
202
|
+
- [ ] Roadmap updated with new phase entry
|
|
203
|
+
- [ ] STATE.md updated with roadmap evolution note
|
|
204
|
+
- [ ] New phase appears at end of current milestone
|
|
205
|
+
- [ ] Next phase number calculated correctly (ignoring decimals)
|
|
206
|
+
- [ ] User informed of next steps
|
|
207
|
+
</success_criteria>
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: grd:add-todo
|
|
3
|
+
description: Capture idea or task as todo from current conversation context
|
|
4
|
+
argument-hint: [optional description]
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Capture an idea, task, or issue that surfaces during a GSD session as a structured todo for later work.
|
|
14
|
+
|
|
15
|
+
Enables "thought → capture → continue" flow without losing context or derailing current work.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<context>
|
|
19
|
+
@.planning/STATE.md
|
|
20
|
+
</context>
|
|
21
|
+
|
|
22
|
+
<process>
|
|
23
|
+
|
|
24
|
+
<step name="ensure_directory">
|
|
25
|
+
```bash
|
|
26
|
+
mkdir -p .planning/todos/pending .planning/todos/done
|
|
27
|
+
```
|
|
28
|
+
</step>
|
|
29
|
+
|
|
30
|
+
<step name="check_existing_areas">
|
|
31
|
+
```bash
|
|
32
|
+
ls .planning/todos/pending/*.md 2>/dev/null | xargs -I {} grep "^area:" {} 2>/dev/null | cut -d' ' -f2 | sort -u
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Note existing areas for consistency in infer_area step.
|
|
36
|
+
</step>
|
|
37
|
+
|
|
38
|
+
<step name="extract_content">
|
|
39
|
+
**With arguments:** Use as the title/focus.
|
|
40
|
+
- `/grd:add-todo Add auth token refresh` → title = "Add auth token refresh"
|
|
41
|
+
|
|
42
|
+
**Without arguments:** Analyze recent conversation to extract:
|
|
43
|
+
- The specific problem, idea, or task discussed
|
|
44
|
+
- Relevant file paths mentioned
|
|
45
|
+
- Technical details (error messages, line numbers, constraints)
|
|
46
|
+
|
|
47
|
+
Formulate:
|
|
48
|
+
- `title`: 3-10 word descriptive title (action verb preferred)
|
|
49
|
+
- `problem`: What's wrong or why this is needed
|
|
50
|
+
- `solution`: Approach hints or "TBD" if just an idea
|
|
51
|
+
- `files`: Relevant paths with line numbers from conversation
|
|
52
|
+
</step>
|
|
53
|
+
|
|
54
|
+
<step name="infer_area">
|
|
55
|
+
Infer area from file paths:
|
|
56
|
+
|
|
57
|
+
| Path pattern | Area |
|
|
58
|
+
|--------------|------|
|
|
59
|
+
| `src/api/*`, `api/*` | `api` |
|
|
60
|
+
| `src/components/*`, `src/ui/*` | `ui` |
|
|
61
|
+
| `src/auth/*`, `auth/*` | `auth` |
|
|
62
|
+
| `src/db/*`, `database/*` | `database` |
|
|
63
|
+
| `tests/*`, `__tests__/*` | `testing` |
|
|
64
|
+
| `docs/*` | `docs` |
|
|
65
|
+
| `.planning/*` | `planning` |
|
|
66
|
+
| `scripts/*`, `bin/*` | `tooling` |
|
|
67
|
+
| No files or unclear | `general` |
|
|
68
|
+
|
|
69
|
+
Use existing area from step 2 if similar match exists.
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step name="check_duplicates">
|
|
73
|
+
```bash
|
|
74
|
+
grep -l -i "[key words from title]" .planning/todos/pending/*.md 2>/dev/null
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If potential duplicate found:
|
|
78
|
+
1. Read the existing todo
|
|
79
|
+
2. Compare scope
|
|
80
|
+
|
|
81
|
+
If overlapping, use AskUserQuestion:
|
|
82
|
+
- header: "Duplicate?"
|
|
83
|
+
- question: "Similar todo exists: [title]. What would you like to do?"
|
|
84
|
+
- options:
|
|
85
|
+
- "Skip" — keep existing todo
|
|
86
|
+
- "Replace" — update existing with new context
|
|
87
|
+
- "Add anyway" — create as separate todo
|
|
88
|
+
</step>
|
|
89
|
+
|
|
90
|
+
<step name="create_file">
|
|
91
|
+
```bash
|
|
92
|
+
timestamp=$(date "+%Y-%m-%dT%H:%M")
|
|
93
|
+
date_prefix=$(date "+%Y-%m-%d")
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Generate slug from title (lowercase, hyphens, no special chars).
|
|
97
|
+
|
|
98
|
+
Write to `.planning/todos/pending/${date_prefix}-${slug}.md`:
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
---
|
|
102
|
+
created: [timestamp]
|
|
103
|
+
title: [title]
|
|
104
|
+
area: [area]
|
|
105
|
+
files:
|
|
106
|
+
- [file:lines]
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## Problem
|
|
110
|
+
|
|
111
|
+
[problem description - enough context for future Claude to understand weeks later]
|
|
112
|
+
|
|
113
|
+
## Solution
|
|
114
|
+
|
|
115
|
+
[approach hints or "TBD"]
|
|
116
|
+
```
|
|
117
|
+
</step>
|
|
118
|
+
|
|
119
|
+
<step name="update_state">
|
|
120
|
+
If `.planning/STATE.md` exists:
|
|
121
|
+
|
|
122
|
+
1. Count todos: `ls .planning/todos/pending/*.md 2>/dev/null | wc -l`
|
|
123
|
+
2. Update "### Pending Todos" under "## Accumulated Context"
|
|
124
|
+
</step>
|
|
125
|
+
|
|
126
|
+
<step name="git_commit">
|
|
127
|
+
Commit the todo and any updated state:
|
|
128
|
+
|
|
129
|
+
**Check planning config:**
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
COMMIT_PLANNING_DOCS=$(cat .planning/config.json 2>/dev/null | grep -o '"commit_docs"[[:space:]]*:[[:space:]]*[^,}]*' | grep -o 'true\|false' || echo "true")
|
|
133
|
+
git check-ignore -q .planning 2>/dev/null && COMMIT_PLANNING_DOCS=false
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**If `COMMIT_PLANNING_DOCS=false`:** Skip git operations, log "Todo saved (not committed - commit_docs: false)"
|
|
137
|
+
|
|
138
|
+
**If `COMMIT_PLANNING_DOCS=true` (default):**
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
git add .planning/todos/pending/[filename]
|
|
142
|
+
[ -f .planning/STATE.md ] && git add .planning/STATE.md
|
|
143
|
+
git commit -m "$(cat <<'EOF'
|
|
144
|
+
docs: capture todo - [title]
|
|
145
|
+
|
|
146
|
+
Area: [area]
|
|
147
|
+
EOF
|
|
148
|
+
)"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Confirm: "Committed: docs: capture todo - [title]"
|
|
152
|
+
</step>
|
|
153
|
+
|
|
154
|
+
<step name="confirm">
|
|
155
|
+
```
|
|
156
|
+
Todo saved: .planning/todos/pending/[filename]
|
|
157
|
+
|
|
158
|
+
[title]
|
|
159
|
+
Area: [area]
|
|
160
|
+
Files: [count] referenced
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
Would you like to:
|
|
165
|
+
|
|
166
|
+
1. Continue with current work
|
|
167
|
+
2. Add another todo
|
|
168
|
+
3. View all todos (/grd:check-todos)
|
|
169
|
+
```
|
|
170
|
+
</step>
|
|
171
|
+
|
|
172
|
+
</process>
|
|
173
|
+
|
|
174
|
+
<output>
|
|
175
|
+
- `.planning/todos/pending/[date]-[slug].md`
|
|
176
|
+
- Updated `.planning/STATE.md` (if exists)
|
|
177
|
+
</output>
|
|
178
|
+
|
|
179
|
+
<anti_patterns>
|
|
180
|
+
- Don't create todos for work in current plan (that's deviation rule territory)
|
|
181
|
+
- Don't create elaborate solution sections — captures ideas, not plans
|
|
182
|
+
- Don't block on missing information — "TBD" is fine
|
|
183
|
+
</anti_patterns>
|
|
184
|
+
|
|
185
|
+
<success_criteria>
|
|
186
|
+
- [ ] Directory structure exists
|
|
187
|
+
- [ ] Todo file created with valid frontmatter
|
|
188
|
+
- [ ] Problem section has enough context for future Claude
|
|
189
|
+
- [ ] No duplicates (checked and resolved)
|
|
190
|
+
- [ ] Area consistent with existing todos
|
|
191
|
+
- [ ] STATE.md updated if exists
|
|
192
|
+
- [ ] Todo and state committed to git
|
|
193
|
+
</success_criteria>
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
# /grd:architect
|
|
2
|
+
|
|
3
|
+
**Synthesizes testable hypotheses from data insights with iterative refinement (Phase 3 command)**
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
name: grd:architect
|
|
7
|
+
description: Synthesize testable hypotheses from data insights with iterative refinement
|
|
8
|
+
allowed-tools:
|
|
9
|
+
- Read
|
|
10
|
+
- Bash
|
|
11
|
+
- Write
|
|
12
|
+
- Task
|
|
13
|
+
- AskUserQuestion
|
|
14
|
+
agent: grd-architect
|
|
15
|
+
phase: 3
|
|
16
|
+
requires: [DATA_REPORT.md (optional but recommended)]
|
|
17
|
+
produces: [OBJECTIVE.md]
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<objective>
|
|
21
|
+
|
|
22
|
+
Transform data insights into testable ML hypotheses through an interactive, advisor-like process.
|
|
23
|
+
|
|
24
|
+
This command enables conversational hypothesis synthesis—the Architect agent proposes hypotheses, explains reasoning, and refines based on user feedback. The agent acts as a research advisor, not a dictator: it suggests directions but accepts user override.
|
|
25
|
+
|
|
26
|
+
**Creates:**
|
|
27
|
+
- `.planning/OBJECTIVE.md` — testable hypothesis with success metrics, evaluation strategy, baselines, and falsification criteria
|
|
28
|
+
|
|
29
|
+
**Use cases:**
|
|
30
|
+
- After data exploration: Ground hypothesis in DATA_REPORT.md findings
|
|
31
|
+
- New research direction: Define what to test and how success is measured
|
|
32
|
+
- Experiment planning: Establish clear falsification criteria before implementation
|
|
33
|
+
- Iterative refinement: Collaborate with agent to improve hypothesis quality
|
|
34
|
+
|
|
35
|
+
**After this command:** Review OBJECTIVE.md for accuracy, then proceed with /grd:research (Phase 4) to implement experiments.
|
|
36
|
+
|
|
37
|
+
</objective>
|
|
38
|
+
|
|
39
|
+
<execution_context>
|
|
40
|
+
|
|
41
|
+
@~/.claude/get-research-done/templates/objective.md
|
|
42
|
+
|
|
43
|
+
</execution_context>
|
|
44
|
+
|
|
45
|
+
<process>
|
|
46
|
+
|
|
47
|
+
## Phase 1: Setup and Context Loading
|
|
48
|
+
|
|
49
|
+
**Check if project initialized:**
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
[ ! -f .planning/PROJECT.md ] && echo "ERROR: Project not initialized. Run /grd:new-project first." && exit 1
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Check for completed data reconnaissance (soft gate):**
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
ls .planning/DATA_REPORT.md 2>/dev/null
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**If DATA_REPORT.md exists:**
|
|
62
|
+
- Note: "Using data insights from DATA_REPORT.md"
|
|
63
|
+
- Read and extract key findings for hypothesis grounding:
|
|
64
|
+
- Leakage warnings to avoid in hypothesis
|
|
65
|
+
- Data quality issues that constrain approach
|
|
66
|
+
- Class balance requiring special handling
|
|
67
|
+
- Feature correlations suggesting relationships
|
|
68
|
+
- Pass findings to architect agent for context
|
|
69
|
+
|
|
70
|
+
**If DATA_REPORT.md does NOT exist:**
|
|
71
|
+
- Warn: "WARNING: No DATA_REPORT.md found. Data reconnaissance not completed."
|
|
72
|
+
- Suggest: "Run /grd:explore first to analyze your data before forming hypotheses."
|
|
73
|
+
- Ask: "Continue anyway? (yes/no)"
|
|
74
|
+
- If user says yes: Proceed without data context
|
|
75
|
+
- If user says no: Exit and suggest running /grd:explore
|
|
76
|
+
|
|
77
|
+
This is a SOFT GATE - warns but allows proceeding. User decides if data-first is needed for their workflow.
|
|
78
|
+
|
|
79
|
+
**Why this matters:**
|
|
80
|
+
- Hypotheses grounded in data characteristics are more likely to be testable
|
|
81
|
+
- Data quality issues may constrain what's scientifically valid to test
|
|
82
|
+
- Leakage patterns inform which features should be excluded from hypothesis tests
|
|
83
|
+
|
|
84
|
+
**Load project context:**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
cat .planning/PROJECT.md
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Extract:
|
|
91
|
+
- Project goals and domain context
|
|
92
|
+
- Any stated research questions
|
|
93
|
+
- Domain-specific constraints
|
|
94
|
+
|
|
95
|
+
## Phase 2: Hypothesis Mode Selection
|
|
96
|
+
|
|
97
|
+
**Check for optional [direction] argument:**
|
|
98
|
+
|
|
99
|
+
Parse command invocation for direction text after command name.
|
|
100
|
+
|
|
101
|
+
**If direction provided:**
|
|
102
|
+
- Use as starting point for hypothesis
|
|
103
|
+
- Mode: "user-directed"
|
|
104
|
+
- Pass direction to architect agent
|
|
105
|
+
|
|
106
|
+
**If no direction but DATA_REPORT.md exists:**
|
|
107
|
+
- Mode: "auto-propose"
|
|
108
|
+
- Architect will analyze DATA_REPORT.md findings and propose hypothesis
|
|
109
|
+
|
|
110
|
+
**If neither:**
|
|
111
|
+
- Use AskUserQuestion:
|
|
112
|
+
```
|
|
113
|
+
header: "Hypothesis Direction"
|
|
114
|
+
question: "What would you like to test? (Or press Enter to auto-propose from DATA_REPORT.md)"
|
|
115
|
+
options: null # Free text input
|
|
116
|
+
```
|
|
117
|
+
- If user provides text: Mode "user-directed"
|
|
118
|
+
- If empty and DATA_REPORT.md exists: Mode "auto-propose"
|
|
119
|
+
- If empty and no DATA_REPORT.md: Exit with error "No direction provided and no DATA_REPORT.md to auto-propose from"
|
|
120
|
+
|
|
121
|
+
**Check for flags:**
|
|
122
|
+
|
|
123
|
+
- `--skip-data-check`: Skip the DATA_REPORT.md soft gate warning
|
|
124
|
+
|
|
125
|
+
## Phase 3: Spawn Architect Agent
|
|
126
|
+
|
|
127
|
+
Display banner:
|
|
128
|
+
```
|
|
129
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
130
|
+
GRD ► SYNTHESIZING HYPOTHESIS
|
|
131
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
132
|
+
|
|
133
|
+
Mode: [auto-propose | user-directed]
|
|
134
|
+
Data context: [DATA_REPORT.md found | No data report]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Spawn grd-architect agent with context:
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
Task(prompt="
|
|
141
|
+
<mode>
|
|
142
|
+
[auto-propose | user-directed]
|
|
143
|
+
Direction: [user_direction_if_any]
|
|
144
|
+
</mode>
|
|
145
|
+
|
|
146
|
+
<data_context>
|
|
147
|
+
@.planning/DATA_REPORT.md (if exists)
|
|
148
|
+
|
|
149
|
+
Key findings to incorporate:
|
|
150
|
+
- Leakage warnings: [list]
|
|
151
|
+
- Data quality issues: [list]
|
|
152
|
+
- Class balance: [summary]
|
|
153
|
+
- Feature correlations: [relevant findings]
|
|
154
|
+
- Missing data patterns: [summary]
|
|
155
|
+
</data_context>
|
|
156
|
+
|
|
157
|
+
<project_context>
|
|
158
|
+
@.planning/PROJECT.md
|
|
159
|
+
|
|
160
|
+
Extract:
|
|
161
|
+
- Project goals
|
|
162
|
+
- Domain context
|
|
163
|
+
- Any stated research questions
|
|
164
|
+
</project_context>
|
|
165
|
+
|
|
166
|
+
<instructions>
|
|
167
|
+
Execute hypothesis synthesis workflow:
|
|
168
|
+
|
|
169
|
+
1. Propose hypothesis based on mode (auto from data OR user direction)
|
|
170
|
+
2. Explain reasoning and expected outcome
|
|
171
|
+
3. Suggest success metrics and evaluation methodology
|
|
172
|
+
4. Identify baseline options
|
|
173
|
+
5. Define falsification criteria
|
|
174
|
+
6. Await user feedback
|
|
175
|
+
7. Refine if requested, up to 15 iterations
|
|
176
|
+
8. When user approves, generate OBJECTIVE.md
|
|
177
|
+
|
|
178
|
+
Use template: @get-research-done/templates/objective.md
|
|
179
|
+
Write to: .planning/OBJECTIVE.md
|
|
180
|
+
</instructions>
|
|
181
|
+
", subagent_type="grd-architect", model="sonnet", description="Synthesize testable hypothesis")
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
## Phase 4: Present Results
|
|
185
|
+
|
|
186
|
+
After agent completes, read OBJECTIVE.md and present summary:
|
|
187
|
+
|
|
188
|
+
```
|
|
189
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
190
|
+
GRD ► HYPOTHESIS SYNTHESIZED ✓
|
|
191
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
192
|
+
|
|
193
|
+
## Hypothesis: [brief statement from OBJECTIVE.md "What" section]
|
|
194
|
+
|
|
195
|
+
**Metrics:** [list with weights]
|
|
196
|
+
**Evaluation:** [strategy]
|
|
197
|
+
**Baseline:** [defined | WARNING: not defined]
|
|
198
|
+
**Falsification:** [criteria count] criteria defined
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
**Full objective:** `.planning/OBJECTIVE.md`
|
|
203
|
+
|
|
204
|
+
**Next steps:**
|
|
205
|
+
- Review OBJECTIVE.md for accuracy
|
|
206
|
+
- Run /grd:research to implement experiment (Phase 4)
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
**If baseline not defined:**
|
|
210
|
+
Display warning: "⚠️ WARNING: No baseline defined. Cannot claim improvement without comparison. Consider adding baseline to OBJECTIVE.md before proceeding."
|
|
211
|
+
|
|
212
|
+
**If critical validation issues:**
|
|
213
|
+
Display any warnings from architect agent (e.g., metric weights don't sum to 1.0, no falsification criteria)
|
|
214
|
+
|
|
215
|
+
</process>
|
|
216
|
+
|
|
217
|
+
<arguments>
|
|
218
|
+
|
|
219
|
+
**[direction]** (optional)
|
|
220
|
+
- Text describing what you want to test
|
|
221
|
+
- Examples: "Does feature X improve prediction?", "Can we reduce RMSE below 0.5?"
|
|
222
|
+
- If omitted, Architect will auto-propose from DATA_REPORT.md findings
|
|
223
|
+
|
|
224
|
+
**Flags:**
|
|
225
|
+
|
|
226
|
+
`--skip-data-check`
|
|
227
|
+
- Skip the DATA_REPORT.md soft gate warning
|
|
228
|
+
- Use when intentionally working without data reconnaissance
|
|
229
|
+
|
|
230
|
+
</arguments>
|
|
231
|
+
|
|
232
|
+
<examples>
|
|
233
|
+
|
|
234
|
+
**Auto-propose from data:**
|
|
235
|
+
```
|
|
236
|
+
/grd:architect
|
|
237
|
+
# Architect analyzes DATA_REPORT.md and proposes hypothesis
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**User-directed hypothesis:**
|
|
241
|
+
```
|
|
242
|
+
/grd:architect "Can ensemble methods improve F1 over single models?"
|
|
243
|
+
# Architect starts from user's direction
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
**Skip data gate:**
|
|
247
|
+
```
|
|
248
|
+
/grd:architect --skip-data-check
|
|
249
|
+
# Proceed without DATA_REPORT.md warning
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
**Complex hypothesis:**
|
|
253
|
+
```
|
|
254
|
+
/grd:architect "Test if temporal features reduce false positives by 20% while maintaining recall above 0.85"
|
|
255
|
+
# Architect refines multi-metric hypothesis with user
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
</examples>
|
|
259
|
+
|
|
260
|
+
<output>
|
|
261
|
+
|
|
262
|
+
- `.planning/OBJECTIVE.md` — testable hypothesis with:
|
|
263
|
+
- Context (problem, motivation, data characteristics, constraints)
|
|
264
|
+
- Hypothesis (what, why, expected outcome)
|
|
265
|
+
- Success metrics (weighted, with thresholds)
|
|
266
|
+
- Evaluation methodology (strategy, parameters, statistical significance)
|
|
267
|
+
- Baselines (own implementation or literature citations)
|
|
268
|
+
- Falsification criteria (quantitative preferred)
|
|
269
|
+
- Constraints and non-goals
|
|
270
|
+
|
|
271
|
+
</output>
|
|
272
|
+
|
|
273
|
+
<success_criteria>
|
|
274
|
+
|
|
275
|
+
- [ ] DATA_REPORT.md soft gate executed (warn if missing)
|
|
276
|
+
- [ ] Mode determined (auto-propose or user-directed)
|
|
277
|
+
- [ ] Architect agent spawned with appropriate context
|
|
278
|
+
- [ ] User can provide direction or receive auto-proposal
|
|
279
|
+
- [ ] OBJECTIVE.md generated with all required sections
|
|
280
|
+
- [ ] Summary presented with next steps
|
|
281
|
+
- [ ] Baseline warning issued if applicable
|
|
282
|
+
|
|
283
|
+
</success_criteria>
|