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,169 @@
1
+ ---
2
+ name: grd:debug
3
+ description: Systematic debugging with persistent state across context resets
4
+ argument-hint: [issue description]
5
+ allowed-tools:
6
+ - Read
7
+ - Bash
8
+ - Task
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <objective>
13
+ Debug issues using scientific method with subagent isolation.
14
+
15
+ **Orchestrator role:** Gather symptoms, spawn grd-debugger agent, handle checkpoints, spawn continuations.
16
+
17
+ **Why subagent:** Investigation burns context fast (reading files, forming hypotheses, testing). Fresh 200k context per investigation. Main context stays lean for user interaction.
18
+ </objective>
19
+
20
+ <context>
21
+ User's issue: $ARGUMENTS
22
+
23
+ Check for active sessions:
24
+ ```bash
25
+ ls .planning/debug/*.md 2>/dev/null | grep -v resolved | head -5
26
+ ```
27
+ </context>
28
+
29
+ <process>
30
+
31
+ ## 0. Resolve Model Profile
32
+
33
+ Read model profile for agent spawning:
34
+
35
+ ```bash
36
+ MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
37
+ ```
38
+
39
+ Default to "balanced" if not set.
40
+
41
+ **Model lookup table:**
42
+
43
+ | Agent | quality | balanced | budget |
44
+ |-------|---------|----------|--------|
45
+ | grd-debugger | opus | sonnet | sonnet |
46
+
47
+ Store resolved model for use in Task calls below.
48
+
49
+ ## 1. Check Active Sessions
50
+
51
+ If active sessions exist AND no $ARGUMENTS:
52
+ - List sessions with status, hypothesis, next action
53
+ - User picks number to resume OR describes new issue
54
+
55
+ If $ARGUMENTS provided OR user describes new issue:
56
+ - Continue to symptom gathering
57
+
58
+ ## 2. Gather Symptoms (if new issue)
59
+
60
+ Use AskUserQuestion for each:
61
+
62
+ 1. **Expected behavior** - What should happen?
63
+ 2. **Actual behavior** - What happens instead?
64
+ 3. **Error messages** - Any errors? (paste or describe)
65
+ 4. **Timeline** - When did this start? Ever worked?
66
+ 5. **Reproduction** - How do you trigger it?
67
+
68
+ After all gathered, confirm ready to investigate.
69
+
70
+ ## 3. Spawn grd-debugger Agent
71
+
72
+ Fill prompt and spawn:
73
+
74
+ ```markdown
75
+ <objective>
76
+ Investigate issue: {slug}
77
+
78
+ **Summary:** {trigger}
79
+ </objective>
80
+
81
+ <symptoms>
82
+ expected: {expected}
83
+ actual: {actual}
84
+ errors: {errors}
85
+ reproduction: {reproduction}
86
+ timeline: {timeline}
87
+ </symptoms>
88
+
89
+ <mode>
90
+ symptoms_prefilled: true
91
+ goal: find_and_fix
92
+ </mode>
93
+
94
+ <debug_file>
95
+ Create: .planning/debug/{slug}.md
96
+ </debug_file>
97
+ ```
98
+
99
+ ```
100
+ Task(
101
+ prompt=filled_prompt,
102
+ subagent_type="grd-debugger",
103
+ model="{debugger_model}",
104
+ description="Debug {slug}"
105
+ )
106
+ ```
107
+
108
+ ## 4. Handle Agent Return
109
+
110
+ **If `## ROOT CAUSE FOUND`:**
111
+ - Display root cause and evidence summary
112
+ - Offer options:
113
+ - "Fix now" - spawn fix subagent
114
+ - "Plan fix" - suggest /grd:plan-phase --gaps
115
+ - "Manual fix" - done
116
+
117
+ **If `## CHECKPOINT REACHED`:**
118
+ - Present checkpoint details to user
119
+ - Get user response
120
+ - Spawn continuation agent (see step 5)
121
+
122
+ **If `## INVESTIGATION INCONCLUSIVE`:**
123
+ - Show what was checked and eliminated
124
+ - Offer options:
125
+ - "Continue investigating" - spawn new agent with additional context
126
+ - "Manual investigation" - done
127
+ - "Add more context" - gather more symptoms, spawn again
128
+
129
+ ## 5. Spawn Continuation Agent (After Checkpoint)
130
+
131
+ When user responds to checkpoint, spawn fresh agent:
132
+
133
+ ```markdown
134
+ <objective>
135
+ Continue debugging {slug}. Evidence is in the debug file.
136
+ </objective>
137
+
138
+ <prior_state>
139
+ Debug file: @.planning/debug/{slug}.md
140
+ </prior_state>
141
+
142
+ <checkpoint_response>
143
+ **Type:** {checkpoint_type}
144
+ **Response:** {user_response}
145
+ </checkpoint_response>
146
+
147
+ <mode>
148
+ goal: find_and_fix
149
+ </mode>
150
+ ```
151
+
152
+ ```
153
+ Task(
154
+ prompt=continuation_prompt,
155
+ subagent_type="grd-debugger",
156
+ model="{debugger_model}",
157
+ description="Continue debug {slug}"
158
+ )
159
+ ```
160
+
161
+ </process>
162
+
163
+ <success_criteria>
164
+ - [ ] Active sessions checked
165
+ - [ ] Symptoms gathered (if new)
166
+ - [ ] grd-debugger spawned with context
167
+ - [ ] Checkpoints handled correctly
168
+ - [ ] Root cause confirmed before fixing
169
+ </success_criteria>
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: grd:discuss-phase
3
+ description: Gather phase context through adaptive questioning before planning
4
+ argument-hint: "<phase>"
5
+ allowed-tools:
6
+ - Read
7
+ - Write
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - AskUserQuestion
12
+ ---
13
+
14
+ <objective>
15
+ Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
16
+
17
+ **How it works:**
18
+ 1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
19
+ 2. Present gray areas — user selects which to discuss
20
+ 3. Deep-dive each selected area until satisfied
21
+ 4. Create CONTEXT.md with decisions that guide research and planning
22
+
23
+ **Output:** `{phase}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
24
+ </objective>
25
+
26
+ <execution_context>
27
+ @~/.claude/get-research-done/workflows/discuss-phase.md
28
+ @~/.claude/get-research-done/templates/context.md
29
+ </execution_context>
30
+
31
+ <context>
32
+ Phase number: $ARGUMENTS (required)
33
+
34
+ **Load project state:**
35
+ @.planning/STATE.md
36
+
37
+ **Load roadmap:**
38
+ @.planning/ROADMAP.md
39
+ </context>
40
+
41
+ <process>
42
+ 1. Validate phase number (error if missing or not in roadmap)
43
+ 2. Check if CONTEXT.md exists (offer update/view/skip if yes)
44
+ 3. **Analyze phase** — Identify domain and generate phase-specific gray areas
45
+ 4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
46
+ 5. **Deep-dive each area** — 4 questions per area, then offer more/next
47
+ 6. **Write CONTEXT.md** — Sections match areas discussed
48
+ 7. Offer next steps (research or plan)
49
+
50
+ **CRITICAL: Scope guardrail**
51
+ - Phase boundary from ROADMAP.md is FIXED
52
+ - Discussion clarifies HOW to implement, not WHETHER to add more
53
+ - If user suggests new capabilities: "That's its own phase. I'll note it for later."
54
+ - Capture deferred ideas — don't lose them, don't act on them
55
+
56
+ **Domain-aware gray areas:**
57
+ Gray areas depend on what's being built. Analyze the phase goal:
58
+ - Something users SEE → layout, density, interactions, states
59
+ - Something users CALL → responses, errors, auth, versioning
60
+ - Something users RUN → output format, flags, modes, error handling
61
+ - Something users READ → structure, tone, depth, flow
62
+ - Something being ORGANIZED → criteria, grouping, naming, exceptions
63
+
64
+ Generate 3-4 **phase-specific** gray areas, not generic categories.
65
+
66
+ **Probing depth:**
67
+ - Ask 4 questions per area before checking
68
+ - "More questions about [area], or move to next?"
69
+ - If more → ask 4 more, check again
70
+ - After all areas → "Ready to create context?"
71
+
72
+ **Do NOT ask about (Claude handles these):**
73
+ - Technical implementation
74
+ - Architecture choices
75
+ - Performance concerns
76
+ - Scope expansion
77
+ </process>
78
+
79
+ <success_criteria>
80
+ - Gray areas identified through intelligent analysis
81
+ - User chose which areas to discuss
82
+ - Each selected area explored until satisfied
83
+ - Scope creep redirected to deferred ideas
84
+ - CONTEXT.md captures decisions, not vague vision
85
+ - User knows next steps
86
+ </success_criteria>