@howlil/ez-agents 2.0.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 (183) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +845 -0
  3. package/README.zh-CN.md +702 -0
  4. package/agents/ez-codebase-mapper.md +770 -0
  5. package/agents/ez-debugger.md +1255 -0
  6. package/agents/ez-executor.md +487 -0
  7. package/agents/ez-integration-checker.md +443 -0
  8. package/agents/ez-nyquist-auditor.md +176 -0
  9. package/agents/ez-phase-researcher.md +553 -0
  10. package/agents/ez-plan-checker.md +706 -0
  11. package/agents/ez-planner.md +1307 -0
  12. package/agents/ez-project-researcher.md +629 -0
  13. package/agents/ez-research-synthesizer.md +247 -0
  14. package/agents/ez-roadmapper.md +650 -0
  15. package/agents/ez-ui-auditor.md +441 -0
  16. package/agents/ez-ui-checker.md +302 -0
  17. package/agents/ez-ui-researcher.md +355 -0
  18. package/agents/ez-verifier.md +579 -0
  19. package/bin/install.js +2862 -0
  20. package/bin/update.js +214 -0
  21. package/commands/ez/add-phase.md +43 -0
  22. package/commands/ez/add-tests.md +41 -0
  23. package/commands/ez/add-todo.md +47 -0
  24. package/commands/ez/audit-milestone.md +36 -0
  25. package/commands/ez/autonomous.md +41 -0
  26. package/commands/ez/check-todos.md +45 -0
  27. package/commands/ez/cleanup.md +18 -0
  28. package/commands/ez/complete-milestone.md +136 -0
  29. package/commands/ez/debug.md +168 -0
  30. package/commands/ez/discuss-phase.md +90 -0
  31. package/commands/ez/execute-phase.md +41 -0
  32. package/commands/ez/health.md +22 -0
  33. package/commands/ez/help.md +22 -0
  34. package/commands/ez/insert-phase.md +32 -0
  35. package/commands/ez/join-discord.md +18 -0
  36. package/commands/ez/list-phase-assumptions.md +46 -0
  37. package/commands/ez/map-codebase.md +71 -0
  38. package/commands/ez/new-milestone.md +44 -0
  39. package/commands/ez/new-project.md +42 -0
  40. package/commands/ez/pause-work.md +38 -0
  41. package/commands/ez/plan-milestone-gaps.md +34 -0
  42. package/commands/ez/plan-phase.md +45 -0
  43. package/commands/ez/progress.md +24 -0
  44. package/commands/ez/quick.md +45 -0
  45. package/commands/ez/reapply-patches.md +124 -0
  46. package/commands/ez/remove-phase.md +31 -0
  47. package/commands/ez/research-phase.md +190 -0
  48. package/commands/ez/resume-work.md +40 -0
  49. package/commands/ez/set-profile.md +34 -0
  50. package/commands/ez/settings.md +36 -0
  51. package/commands/ez/stats.md +18 -0
  52. package/commands/ez/ui-phase.md +34 -0
  53. package/commands/ez/ui-review.md +32 -0
  54. package/commands/ez/update.md +37 -0
  55. package/commands/ez/validate-phase.md +35 -0
  56. package/commands/ez/verify-work.md +38 -0
  57. package/get-shit-done/bin/ez-tools.cjs +598 -0
  58. package/get-shit-done/bin/lib/assistant-adapter.cjs +205 -0
  59. package/get-shit-done/bin/lib/audit-exec.cjs +150 -0
  60. package/get-shit-done/bin/lib/auth.cjs +175 -0
  61. package/get-shit-done/bin/lib/circuit-breaker.cjs +118 -0
  62. package/get-shit-done/bin/lib/commands.cjs +666 -0
  63. package/get-shit-done/bin/lib/config.cjs +183 -0
  64. package/get-shit-done/bin/lib/core.cjs +495 -0
  65. package/get-shit-done/bin/lib/file-lock.cjs +236 -0
  66. package/get-shit-done/bin/lib/frontmatter.cjs +299 -0
  67. package/get-shit-done/bin/lib/fs-utils.cjs +153 -0
  68. package/get-shit-done/bin/lib/git-utils.cjs +203 -0
  69. package/get-shit-done/bin/lib/health-check.cjs +163 -0
  70. package/get-shit-done/bin/lib/index.cjs +113 -0
  71. package/get-shit-done/bin/lib/init.cjs +710 -0
  72. package/get-shit-done/bin/lib/logger.cjs +117 -0
  73. package/get-shit-done/bin/lib/milestone.cjs +241 -0
  74. package/get-shit-done/bin/lib/model-provider.cjs +146 -0
  75. package/get-shit-done/bin/lib/phase.cjs +908 -0
  76. package/get-shit-done/bin/lib/retry.cjs +119 -0
  77. package/get-shit-done/bin/lib/roadmap.cjs +305 -0
  78. package/get-shit-done/bin/lib/safe-exec.cjs +128 -0
  79. package/get-shit-done/bin/lib/safe-path.cjs +130 -0
  80. package/get-shit-done/bin/lib/state.cjs +721 -0
  81. package/get-shit-done/bin/lib/temp-file.cjs +239 -0
  82. package/get-shit-done/bin/lib/template.cjs +222 -0
  83. package/get-shit-done/bin/lib/test-file-lock.cjs +112 -0
  84. package/get-shit-done/bin/lib/test-graceful.cjs +93 -0
  85. package/get-shit-done/bin/lib/test-logger.cjs +60 -0
  86. package/get-shit-done/bin/lib/test-safe-exec.cjs +38 -0
  87. package/get-shit-done/bin/lib/test-safe-path.cjs +33 -0
  88. package/get-shit-done/bin/lib/test-temp-file.cjs +125 -0
  89. package/get-shit-done/bin/lib/timeout-exec.cjs +62 -0
  90. package/get-shit-done/bin/lib/verify.cjs +820 -0
  91. package/get-shit-done/references/checkpoints.md +776 -0
  92. package/get-shit-done/references/continuation-format.md +249 -0
  93. package/get-shit-done/references/decimal-phase-calculation.md +65 -0
  94. package/get-shit-done/references/git-integration.md +248 -0
  95. package/get-shit-done/references/git-planning-commit.md +38 -0
  96. package/get-shit-done/references/model-profile-resolution.md +34 -0
  97. package/get-shit-done/references/model-profiles.md +93 -0
  98. package/get-shit-done/references/phase-argument-parsing.md +61 -0
  99. package/get-shit-done/references/planning-config.md +200 -0
  100. package/get-shit-done/references/questioning.md +162 -0
  101. package/get-shit-done/references/tdd.md +263 -0
  102. package/get-shit-done/references/ui-brand.md +160 -0
  103. package/get-shit-done/references/verification-patterns.md +612 -0
  104. package/get-shit-done/templates/DEBUG.md +164 -0
  105. package/get-shit-done/templates/UAT.md +247 -0
  106. package/get-shit-done/templates/UI-SPEC.md +100 -0
  107. package/get-shit-done/templates/VALIDATION.md +76 -0
  108. package/get-shit-done/templates/codebase/architecture.md +255 -0
  109. package/get-shit-done/templates/codebase/concerns.md +310 -0
  110. package/get-shit-done/templates/codebase/conventions.md +307 -0
  111. package/get-shit-done/templates/codebase/integrations.md +280 -0
  112. package/get-shit-done/templates/codebase/stack.md +186 -0
  113. package/get-shit-done/templates/codebase/structure.md +285 -0
  114. package/get-shit-done/templates/codebase/testing.md +480 -0
  115. package/get-shit-done/templates/config.json +37 -0
  116. package/get-shit-done/templates/context.md +352 -0
  117. package/get-shit-done/templates/continue-here.md +78 -0
  118. package/get-shit-done/templates/copilot-instructions.md +7 -0
  119. package/get-shit-done/templates/debug-subagent-prompt.md +91 -0
  120. package/get-shit-done/templates/discovery.md +146 -0
  121. package/get-shit-done/templates/milestone-archive.md +123 -0
  122. package/get-shit-done/templates/milestone.md +115 -0
  123. package/get-shit-done/templates/phase-prompt.md +610 -0
  124. package/get-shit-done/templates/planner-subagent-prompt.md +117 -0
  125. package/get-shit-done/templates/project.md +184 -0
  126. package/get-shit-done/templates/requirements.md +231 -0
  127. package/get-shit-done/templates/research-project/ARCHITECTURE.md +204 -0
  128. package/get-shit-done/templates/research-project/FEATURES.md +147 -0
  129. package/get-shit-done/templates/research-project/PITFALLS.md +200 -0
  130. package/get-shit-done/templates/research-project/STACK.md +120 -0
  131. package/get-shit-done/templates/research-project/SUMMARY.md +170 -0
  132. package/get-shit-done/templates/research.md +552 -0
  133. package/get-shit-done/templates/retrospective.md +54 -0
  134. package/get-shit-done/templates/roadmap.md +202 -0
  135. package/get-shit-done/templates/state.md +176 -0
  136. package/get-shit-done/templates/summary-complex.md +59 -0
  137. package/get-shit-done/templates/summary-minimal.md +41 -0
  138. package/get-shit-done/templates/summary-standard.md +48 -0
  139. package/get-shit-done/templates/summary.md +248 -0
  140. package/get-shit-done/templates/user-setup.md +311 -0
  141. package/get-shit-done/templates/verification-report.md +322 -0
  142. package/get-shit-done/workflows/add-phase.md +112 -0
  143. package/get-shit-done/workflows/add-tests.md +351 -0
  144. package/get-shit-done/workflows/add-todo.md +158 -0
  145. package/get-shit-done/workflows/audit-milestone.md +332 -0
  146. package/get-shit-done/workflows/autonomous.md +743 -0
  147. package/get-shit-done/workflows/check-todos.md +177 -0
  148. package/get-shit-done/workflows/cleanup.md +152 -0
  149. package/get-shit-done/workflows/complete-milestone.md +766 -0
  150. package/get-shit-done/workflows/diagnose-issues.md +219 -0
  151. package/get-shit-done/workflows/discovery-phase.md +289 -0
  152. package/get-shit-done/workflows/discuss-phase.md +762 -0
  153. package/get-shit-done/workflows/execute-phase.md +468 -0
  154. package/get-shit-done/workflows/execute-plan.md +483 -0
  155. package/get-shit-done/workflows/health.md +159 -0
  156. package/get-shit-done/workflows/help.md +492 -0
  157. package/get-shit-done/workflows/insert-phase.md +130 -0
  158. package/get-shit-done/workflows/list-phase-assumptions.md +178 -0
  159. package/get-shit-done/workflows/map-codebase.md +316 -0
  160. package/get-shit-done/workflows/new-milestone.md +384 -0
  161. package/get-shit-done/workflows/new-project.md +1111 -0
  162. package/get-shit-done/workflows/node-repair.md +92 -0
  163. package/get-shit-done/workflows/pause-work.md +122 -0
  164. package/get-shit-done/workflows/plan-milestone-gaps.md +274 -0
  165. package/get-shit-done/workflows/plan-phase.md +651 -0
  166. package/get-shit-done/workflows/progress.md +382 -0
  167. package/get-shit-done/workflows/quick.md +610 -0
  168. package/get-shit-done/workflows/remove-phase.md +155 -0
  169. package/get-shit-done/workflows/research-phase.md +74 -0
  170. package/get-shit-done/workflows/resume-project.md +307 -0
  171. package/get-shit-done/workflows/set-profile.md +81 -0
  172. package/get-shit-done/workflows/settings.md +242 -0
  173. package/get-shit-done/workflows/stats.md +57 -0
  174. package/get-shit-done/workflows/transition.md +544 -0
  175. package/get-shit-done/workflows/ui-phase.md +290 -0
  176. package/get-shit-done/workflows/ui-review.md +157 -0
  177. package/get-shit-done/workflows/update.md +320 -0
  178. package/get-shit-done/workflows/validate-phase.md +167 -0
  179. package/get-shit-done/workflows/verify-phase.md +243 -0
  180. package/get-shit-done/workflows/verify-work.md +584 -0
  181. package/package.json +55 -0
  182. package/scripts/build-hooks.js +43 -0
  183. package/scripts/run-tests.cjs +29 -0
@@ -0,0 +1,1111 @@
1
+ <purpose>
2
+ Initialize a new project through unified flow: questioning, research (optional), requirements, roadmap. This is the most leveraged moment in any project — deep questioning here means better plans, better execution, better outcomes. One workflow takes you from idea to ready-for-planning.
3
+ </purpose>
4
+
5
+ <required_reading>
6
+ Read all files referenced by the invoking prompt's execution_context before starting.
7
+ </required_reading>
8
+
9
+ <auto_mode>
10
+ ## Auto Mode Detection
11
+
12
+ Check if `--auto` flag is present in $ARGUMENTS.
13
+
14
+ **If auto mode:**
15
+ - Skip brownfield mapping offer (assume greenfield)
16
+ - Skip deep questioning (extract context from provided document)
17
+ - Config: YOLO mode is implicit (skip that question), but ask granularity/git/agents FIRST (Step 2a)
18
+ - After config: run Steps 6-9 automatically with smart defaults:
19
+ - Research: Always yes
20
+ - Requirements: Include all table stakes + features from provided document
21
+ - Requirements approval: Auto-approve
22
+ - Roadmap approval: Auto-approve
23
+
24
+ **Document requirement:**
25
+ Auto mode requires an idea document — either:
26
+ - File reference: `/ez:new-project --auto @prd.md`
27
+ - Pasted/written text in the prompt
28
+
29
+ If no document content provided, error:
30
+
31
+ ```
32
+ Error: --auto requires an idea document.
33
+
34
+ Usage:
35
+ /ez:new-project --auto @your-idea.md
36
+ /ez:new-project --auto [paste or write your idea here]
37
+
38
+ The document should describe what you want to build.
39
+ ```
40
+ </auto_mode>
41
+
42
+ <process>
43
+
44
+ ## 1. Setup
45
+
46
+ **MANDATORY FIRST STEP — Execute these checks before ANY user interaction:**
47
+
48
+ ```bash
49
+ INIT=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init new-project)
50
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
51
+ ```
52
+
53
+ Parse JSON for: `researcher_model`, `synthesizer_model`, `roadmapper_model`, `commit_docs`, `project_exists`, `has_codebase_map`, `planning_exists`, `has_existing_code`, `has_package_file`, `is_brownfield`, `needs_codebase_map`, `has_git`, `project_path`.
54
+
55
+ **If `project_exists` is true:** Error — project already initialized. Use `/ez:progress`.
56
+
57
+ **If `has_git` is false:** Initialize git:
58
+ ```bash
59
+ git init
60
+ ```
61
+
62
+ ## 2. Brownfield Offer
63
+
64
+ **If auto mode:** Skip to Step 4 (assume greenfield, synthesize PROJECT.md from provided document).
65
+
66
+ **If `needs_codebase_map` is true** (from init — existing code detected but no codebase map):
67
+
68
+ Use AskUserQuestion:
69
+ - header: "Codebase"
70
+ - question: "I detected existing code in this directory. Would you like to map the codebase first?"
71
+ - options:
72
+ - "Map codebase first" — Run /ez:map-codebase to understand existing architecture (Recommended)
73
+ - "Skip mapping" — Proceed with project initialization
74
+
75
+ **If "Map codebase first":**
76
+ ```
77
+ Run `/ez:map-codebase` first, then return to `/ez:new-project`
78
+ ```
79
+ Exit command.
80
+
81
+ **If "Skip mapping" OR `needs_codebase_map` is false:** Continue to Step 3.
82
+
83
+ ## 2a. Auto Mode Config (auto mode only)
84
+
85
+ **If auto mode:** Collect config settings upfront before processing the idea document.
86
+
87
+ YOLO mode is implicit (auto = YOLO). Ask remaining config questions:
88
+
89
+ **Round 1 — Core settings (3 questions, no Mode question):**
90
+
91
+ ```
92
+ AskUserQuestion([
93
+ {
94
+ header: "Granularity",
95
+ question: "How finely should scope be sliced into phases?",
96
+ multiSelect: false,
97
+ options: [
98
+ { label: "Coarse (Recommended)", description: "Fewer, broader phases (3-5 phases, 1-3 plans each)" },
99
+ { label: "Standard", description: "Balanced phase size (5-8 phases, 3-5 plans each)" },
100
+ { label: "Fine", description: "Many focused phases (8-12 phases, 5-10 plans each)" }
101
+ ]
102
+ },
103
+ {
104
+ header: "Execution",
105
+ question: "Run plans in parallel?",
106
+ multiSelect: false,
107
+ options: [
108
+ { label: "Parallel (Recommended)", description: "Independent plans run simultaneously" },
109
+ { label: "Sequential", description: "One plan at a time" }
110
+ ]
111
+ },
112
+ {
113
+ header: "Git Tracking",
114
+ question: "Commit planning docs to git?",
115
+ multiSelect: false,
116
+ options: [
117
+ { label: "Yes (Recommended)", description: "Planning docs tracked in version control" },
118
+ { label: "No", description: "Keep .planning/ local-only (add to .gitignore)" }
119
+ ]
120
+ }
121
+ ])
122
+ ```
123
+
124
+ **Round 2 — Workflow agents (same as Step 5):**
125
+
126
+ ```
127
+ AskUserQuestion([
128
+ {
129
+ header: "Research",
130
+ question: "Research before planning each phase? (adds tokens/time)",
131
+ multiSelect: false,
132
+ options: [
133
+ { label: "Yes (Recommended)", description: "Investigate domain, find patterns, surface gotchas" },
134
+ { label: "No", description: "Plan directly from requirements" }
135
+ ]
136
+ },
137
+ {
138
+ header: "Plan Check",
139
+ question: "Verify plans will achieve their goals? (adds tokens/time)",
140
+ multiSelect: false,
141
+ options: [
142
+ { label: "Yes (Recommended)", description: "Catch gaps before execution starts" },
143
+ { label: "No", description: "Execute plans without verification" }
144
+ ]
145
+ },
146
+ {
147
+ header: "Verifier",
148
+ question: "Verify work satisfies requirements after each phase? (adds tokens/time)",
149
+ multiSelect: false,
150
+ options: [
151
+ { label: "Yes (Recommended)", description: "Confirm deliverables match phase goals" },
152
+ { label: "No", description: "Trust execution, skip verification" }
153
+ ]
154
+ },
155
+ {
156
+ header: "AI Models",
157
+ question: "Which AI models for planning agents?",
158
+ multiSelect: false,
159
+ options: [
160
+ { label: "Balanced (Recommended)", description: "Sonnet for most agents — good quality/cost ratio" },
161
+ { label: "Quality", description: "Opus for research/roadmap — higher cost, deeper analysis" },
162
+ { label: "Budget", description: "Haiku where possible — fastest, lowest cost" }
163
+ ]
164
+ }
165
+ ])
166
+ ```
167
+
168
+ Create `.planning/config.json` with mode set to "yolo":
169
+
170
+ ```json
171
+ {
172
+ "mode": "yolo",
173
+ "granularity": "[selected]",
174
+ "parallelization": true|false,
175
+ "commit_docs": true|false,
176
+ "model_profile": "quality|balanced|budget",
177
+ "workflow": {
178
+ "research": true|false,
179
+ "plan_check": true|false,
180
+ "verifier": true|false,
181
+ "nyquist_validation": depth !== "quick",
182
+ "auto_advance": true
183
+ }
184
+ }
185
+ ```
186
+
187
+ **If commit_docs = No:** Add `.planning/` to `.gitignore`.
188
+
189
+ **Commit config.json:**
190
+
191
+ ```bash
192
+ mkdir -p .planning
193
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "chore: add project config" --files .planning/config.json
194
+ ```
195
+
196
+ **Persist auto-advance chain flag to config (survives context compaction):**
197
+
198
+ ```bash
199
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" config-set workflow._auto_chain_active true
200
+ ```
201
+
202
+ Proceed to Step 4 (skip Steps 3 and 5).
203
+
204
+ ## 3. Deep Questioning
205
+
206
+ **If auto mode:** Skip (already handled in Step 2a). Extract project context from provided document instead and proceed to Step 4.
207
+
208
+ **Display stage banner:**
209
+
210
+ ```
211
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
212
+ GSD ► QUESTIONING
213
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
214
+ ```
215
+
216
+ **Open the conversation:**
217
+
218
+ Ask inline (freeform, NOT AskUserQuestion):
219
+
220
+ "What do you want to build?"
221
+
222
+ Wait for their response. This gives you the context needed to ask intelligent follow-up questions.
223
+
224
+ **Follow the thread:**
225
+
226
+ Based on what they said, ask follow-up questions that dig into their response. Use AskUserQuestion with options that probe what they mentioned — interpretations, clarifications, concrete examples.
227
+
228
+ Keep following threads. Each answer opens new threads to explore. Ask about:
229
+ - What excited them
230
+ - What problem sparked this
231
+ - What they mean by vague terms
232
+ - What it would actually look like
233
+ - What's already decided
234
+
235
+ Consult `questioning.md` for techniques:
236
+ - Challenge vagueness
237
+ - Make abstract concrete
238
+ - Surface assumptions
239
+ - Find edges
240
+ - Reveal motivation
241
+
242
+ **Check context (background, not out loud):**
243
+
244
+ As you go, mentally check the context checklist from `questioning.md`. If gaps remain, weave questions naturally. Don't suddenly switch to checklist mode.
245
+
246
+ **Decision gate:**
247
+
248
+ When you could write a clear PROJECT.md, use AskUserQuestion:
249
+
250
+ - header: "Ready?"
251
+ - question: "I think I understand what you're after. Ready to create PROJECT.md?"
252
+ - options:
253
+ - "Create PROJECT.md" — Let's move forward
254
+ - "Keep exploring" — I want to share more / ask me more
255
+
256
+ If "Keep exploring" — ask what they want to add, or identify gaps and probe naturally.
257
+
258
+ Loop until "Create PROJECT.md" selected.
259
+
260
+ ## 4. Write PROJECT.md
261
+
262
+ **If auto mode:** Synthesize from provided document. No "Ready?" gate was shown — proceed directly to commit.
263
+
264
+ Synthesize all context into `.planning/PROJECT.md` using the template from `templates/project.md`.
265
+
266
+ **For greenfield projects:**
267
+
268
+ Initialize requirements as hypotheses:
269
+
270
+ ```markdown
271
+ ## Requirements
272
+
273
+ ### Validated
274
+
275
+ (None yet — ship to validate)
276
+
277
+ ### Active
278
+
279
+ - [ ] [Requirement 1]
280
+ - [ ] [Requirement 2]
281
+ - [ ] [Requirement 3]
282
+
283
+ ### Out of Scope
284
+
285
+ - [Exclusion 1] — [why]
286
+ - [Exclusion 2] — [why]
287
+ ```
288
+
289
+ All Active requirements are hypotheses until shipped and validated.
290
+
291
+ **For brownfield projects (codebase map exists):**
292
+
293
+ Infer Validated requirements from existing code:
294
+
295
+ 1. Read `.planning/codebase/ARCHITECTURE.md` and `STACK.md`
296
+ 2. Identify what the codebase already does
297
+ 3. These become the initial Validated set
298
+
299
+ ```markdown
300
+ ## Requirements
301
+
302
+ ### Validated
303
+
304
+ - ✓ [Existing capability 1] — existing
305
+ - ✓ [Existing capability 2] — existing
306
+ - ✓ [Existing capability 3] — existing
307
+
308
+ ### Active
309
+
310
+ - [ ] [New requirement 1]
311
+ - [ ] [New requirement 2]
312
+
313
+ ### Out of Scope
314
+
315
+ - [Exclusion 1] — [why]
316
+ ```
317
+
318
+ **Key Decisions:**
319
+
320
+ Initialize with any decisions made during questioning:
321
+
322
+ ```markdown
323
+ ## Key Decisions
324
+
325
+ | Decision | Rationale | Outcome |
326
+ |----------|-----------|---------|
327
+ | [Choice from questioning] | [Why] | — Pending |
328
+ ```
329
+
330
+ **Last updated footer:**
331
+
332
+ ```markdown
333
+ ---
334
+ *Last updated: [date] after initialization*
335
+ ```
336
+
337
+ Do not compress. Capture everything gathered.
338
+
339
+ **Commit PROJECT.md:**
340
+
341
+ ```bash
342
+ mkdir -p .planning
343
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs: initialize project" --files .planning/PROJECT.md
344
+ ```
345
+
346
+ ## 5. Workflow Preferences
347
+
348
+ **If auto mode:** Skip — config was collected in Step 2a. Proceed to Step 5.5.
349
+
350
+ **Check for global defaults** at `~/.gsd/defaults.json`. If the file exists, offer to use saved defaults:
351
+
352
+ ```
353
+ AskUserQuestion([
354
+ {
355
+ question: "Use your saved default settings? (from ~/.gsd/defaults.json)",
356
+ header: "Defaults",
357
+ multiSelect: false,
358
+ options: [
359
+ { label: "Yes (Recommended)", description: "Use saved defaults, skip settings questions" },
360
+ { label: "No", description: "Configure settings manually" }
361
+ ]
362
+ }
363
+ ])
364
+ ```
365
+
366
+ If "Yes": read `~/.gsd/defaults.json`, use those values for config.json, and skip directly to **Commit config.json** below.
367
+
368
+ If "No" or `~/.gsd/defaults.json` doesn't exist: proceed with the questions below.
369
+
370
+ **Round 1 — Core workflow settings (4 questions):**
371
+
372
+ ```
373
+ questions: [
374
+ {
375
+ header: "Mode",
376
+ question: "How do you want to work?",
377
+ multiSelect: false,
378
+ options: [
379
+ { label: "YOLO (Recommended)", description: "Auto-approve, just execute" },
380
+ { label: "Interactive", description: "Confirm at each step" }
381
+ ]
382
+ },
383
+ {
384
+ header: "Granularity",
385
+ question: "How finely should scope be sliced into phases?",
386
+ multiSelect: false,
387
+ options: [
388
+ { label: "Coarse", description: "Fewer, broader phases (3-5 phases, 1-3 plans each)" },
389
+ { label: "Standard", description: "Balanced phase size (5-8 phases, 3-5 plans each)" },
390
+ { label: "Fine", description: "Many focused phases (8-12 phases, 5-10 plans each)" }
391
+ ]
392
+ },
393
+ {
394
+ header: "Execution",
395
+ question: "Run plans in parallel?",
396
+ multiSelect: false,
397
+ options: [
398
+ { label: "Parallel (Recommended)", description: "Independent plans run simultaneously" },
399
+ { label: "Sequential", description: "One plan at a time" }
400
+ ]
401
+ },
402
+ {
403
+ header: "Git Tracking",
404
+ question: "Commit planning docs to git?",
405
+ multiSelect: false,
406
+ options: [
407
+ { label: "Yes (Recommended)", description: "Planning docs tracked in version control" },
408
+ { label: "No", description: "Keep .planning/ local-only (add to .gitignore)" }
409
+ ]
410
+ }
411
+ ]
412
+ ```
413
+
414
+ **Round 2 — Workflow agents:**
415
+
416
+ These spawn additional agents during planning/execution. They add tokens and time but improve quality.
417
+
418
+ | Agent | When it runs | What it does |
419
+ |-------|--------------|--------------|
420
+ | **Researcher** | Before planning each phase | Investigates domain, finds patterns, surfaces gotchas |
421
+ | **Plan Checker** | After plan is created | Verifies plan actually achieves the phase goal |
422
+ | **Verifier** | After phase execution | Confirms must-haves were delivered |
423
+
424
+ All recommended for important projects. Skip for quick experiments.
425
+
426
+ ```
427
+ questions: [
428
+ {
429
+ header: "Research",
430
+ question: "Research before planning each phase? (adds tokens/time)",
431
+ multiSelect: false,
432
+ options: [
433
+ { label: "Yes (Recommended)", description: "Investigate domain, find patterns, surface gotchas" },
434
+ { label: "No", description: "Plan directly from requirements" }
435
+ ]
436
+ },
437
+ {
438
+ header: "Plan Check",
439
+ question: "Verify plans will achieve their goals? (adds tokens/time)",
440
+ multiSelect: false,
441
+ options: [
442
+ { label: "Yes (Recommended)", description: "Catch gaps before execution starts" },
443
+ { label: "No", description: "Execute plans without verification" }
444
+ ]
445
+ },
446
+ {
447
+ header: "Verifier",
448
+ question: "Verify work satisfies requirements after each phase? (adds tokens/time)",
449
+ multiSelect: false,
450
+ options: [
451
+ { label: "Yes (Recommended)", description: "Confirm deliverables match phase goals" },
452
+ { label: "No", description: "Trust execution, skip verification" }
453
+ ]
454
+ },
455
+ {
456
+ header: "AI Models",
457
+ question: "Which AI models for planning agents?",
458
+ multiSelect: false,
459
+ options: [
460
+ { label: "Balanced (Recommended)", description: "Sonnet for most agents — good quality/cost ratio" },
461
+ { label: "Quality", description: "Opus for research/roadmap — higher cost, deeper analysis" },
462
+ { label: "Budget", description: "Haiku where possible — fastest, lowest cost" }
463
+ ]
464
+ }
465
+ ]
466
+ ```
467
+
468
+ Create `.planning/config.json` with all settings:
469
+
470
+ ```json
471
+ {
472
+ "mode": "yolo|interactive",
473
+ "granularity": "coarse|standard|fine",
474
+ "parallelization": true|false,
475
+ "commit_docs": true|false,
476
+ "model_profile": "quality|balanced|budget",
477
+ "workflow": {
478
+ "research": true|false,
479
+ "plan_check": true|false,
480
+ "verifier": true|false,
481
+ "nyquist_validation": depth !== "quick"
482
+ }
483
+ }
484
+ ```
485
+
486
+ **If commit_docs = No:**
487
+ - Set `commit_docs: false` in config.json
488
+ - Add `.planning/` to `.gitignore` (create if needed)
489
+
490
+ **If commit_docs = Yes:**
491
+ - No additional gitignore entries needed
492
+
493
+ **Commit config.json:**
494
+
495
+ ```bash
496
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "chore: add project config" --files .planning/config.json
497
+ ```
498
+
499
+ **Note:** Run `/ez:settings` anytime to update these preferences.
500
+
501
+ ## 5.5. Resolve Model Profile
502
+
503
+ Use models from init: `researcher_model`, `synthesizer_model`, `roadmapper_model`.
504
+
505
+ ## 6. Research Decision
506
+
507
+ **If auto mode:** Default to "Research first" without asking.
508
+
509
+ Use AskUserQuestion:
510
+ - header: "Research"
511
+ - question: "Research the domain ecosystem before defining requirements?"
512
+ - options:
513
+ - "Research first (Recommended)" — Discover standard stacks, expected features, architecture patterns
514
+ - "Skip research" — I know this domain well, go straight to requirements
515
+
516
+ **If "Research first":**
517
+
518
+ Display stage banner:
519
+ ```
520
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
521
+ GSD ► RESEARCHING
522
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
523
+
524
+ Researching [domain] ecosystem...
525
+ ```
526
+
527
+ Create research directory:
528
+ ```bash
529
+ mkdir -p .planning/research
530
+ ```
531
+
532
+ **Determine milestone context:**
533
+
534
+ Check if this is greenfield or subsequent milestone:
535
+ - If no "Validated" requirements in PROJECT.md → Greenfield (building from scratch)
536
+ - If "Validated" requirements exist → Subsequent milestone (adding to existing app)
537
+
538
+ Display spawning indicator:
539
+ ```
540
+ ◆ Spawning 4 researchers in parallel...
541
+ → Stack research
542
+ → Features research
543
+ → Architecture research
544
+ → Pitfalls research
545
+ ```
546
+
547
+ Spawn 4 parallel gsd-project-researcher agents with path references:
548
+
549
+ ```
550
+ Task(prompt="<research_type>
551
+ Project Research — Stack dimension for [domain].
552
+ </research_type>
553
+
554
+ <milestone_context>
555
+ [greenfield OR subsequent]
556
+
557
+ Greenfield: Research the standard stack for building [domain] from scratch.
558
+ Subsequent: Research what's needed to add [target features] to an existing [domain] app. Don't re-research the existing system.
559
+ </milestone_context>
560
+
561
+ <question>
562
+ What's the standard 2025 stack for [domain]?
563
+ </question>
564
+
565
+ <files_to_read>
566
+ - {project_path} (Project context and goals)
567
+ </files_to_read>
568
+
569
+ <downstream_consumer>
570
+ Your STACK.md feeds into roadmap creation. Be prescriptive:
571
+ - Specific libraries with versions
572
+ - Clear rationale for each choice
573
+ - What NOT to use and why
574
+ </downstream_consumer>
575
+
576
+ <quality_gate>
577
+ - [ ] Versions are current (verify with Context7/official docs, not training data)
578
+ - [ ] Rationale explains WHY, not just WHAT
579
+ - [ ] Confidence levels assigned to each recommendation
580
+ </quality_gate>
581
+
582
+ <output>
583
+ Write to: .planning/research/STACK.md
584
+ Use template: ~/.claude/get-shit-done/templates/research-project/STACK.md
585
+ </output>
586
+ ", subagent_type="ez-project-researcher", model="{researcher_model}", description="Stack research")
587
+
588
+ Task(prompt="<research_type>
589
+ Project Research — Features dimension for [domain].
590
+ </research_type>
591
+
592
+ <milestone_context>
593
+ [greenfield OR subsequent]
594
+
595
+ Greenfield: What features do [domain] products have? What's table stakes vs differentiating?
596
+ Subsequent: How do [target features] typically work? What's expected behavior?
597
+ </milestone_context>
598
+
599
+ <question>
600
+ What features do [domain] products have? What's table stakes vs differentiating?
601
+ </question>
602
+
603
+ <files_to_read>
604
+ - {project_path} (Project context)
605
+ </files_to_read>
606
+
607
+ <downstream_consumer>
608
+ Your FEATURES.md feeds into requirements definition. Categorize clearly:
609
+ - Table stakes (must have or users leave)
610
+ - Differentiators (competitive advantage)
611
+ - Anti-features (things to deliberately NOT build)
612
+ </downstream_consumer>
613
+
614
+ <quality_gate>
615
+ - [ ] Categories are clear (table stakes vs differentiators vs anti-features)
616
+ - [ ] Complexity noted for each feature
617
+ - [ ] Dependencies between features identified
618
+ </quality_gate>
619
+
620
+ <output>
621
+ Write to: .planning/research/FEATURES.md
622
+ Use template: ~/.claude/get-shit-done/templates/research-project/FEATURES.md
623
+ </output>
624
+ ", subagent_type="ez-project-researcher", model="{researcher_model}", description="Features research")
625
+
626
+ Task(prompt="<research_type>
627
+ Project Research — Architecture dimension for [domain].
628
+ </research_type>
629
+
630
+ <milestone_context>
631
+ [greenfield OR subsequent]
632
+
633
+ Greenfield: How are [domain] systems typically structured? What are major components?
634
+ Subsequent: How do [target features] integrate with existing [domain] architecture?
635
+ </milestone_context>
636
+
637
+ <question>
638
+ How are [domain] systems typically structured? What are major components?
639
+ </question>
640
+
641
+ <files_to_read>
642
+ - {project_path} (Project context)
643
+ </files_to_read>
644
+
645
+ <downstream_consumer>
646
+ Your ARCHITECTURE.md informs phase structure in roadmap. Include:
647
+ - Component boundaries (what talks to what)
648
+ - Data flow (how information moves)
649
+ - Suggested build order (dependencies between components)
650
+ </downstream_consumer>
651
+
652
+ <quality_gate>
653
+ - [ ] Components clearly defined with boundaries
654
+ - [ ] Data flow direction explicit
655
+ - [ ] Build order implications noted
656
+ </quality_gate>
657
+
658
+ <output>
659
+ Write to: .planning/research/ARCHITECTURE.md
660
+ Use template: ~/.claude/get-shit-done/templates/research-project/ARCHITECTURE.md
661
+ </output>
662
+ ", subagent_type="ez-project-researcher", model="{researcher_model}", description="Architecture research")
663
+
664
+ Task(prompt="<research_type>
665
+ Project Research — Pitfalls dimension for [domain].
666
+ </research_type>
667
+
668
+ <milestone_context>
669
+ [greenfield OR subsequent]
670
+
671
+ Greenfield: What do [domain] projects commonly get wrong? Critical mistakes?
672
+ Subsequent: What are common mistakes when adding [target features] to [domain]?
673
+ </milestone_context>
674
+
675
+ <question>
676
+ What do [domain] projects commonly get wrong? Critical mistakes?
677
+ </question>
678
+
679
+ <files_to_read>
680
+ - {project_path} (Project context)
681
+ </files_to_read>
682
+
683
+ <downstream_consumer>
684
+ Your PITFALLS.md prevents mistakes in roadmap/planning. For each pitfall:
685
+ - Warning signs (how to detect early)
686
+ - Prevention strategy (how to avoid)
687
+ - Which phase should address it
688
+ </downstream_consumer>
689
+
690
+ <quality_gate>
691
+ - [ ] Pitfalls are specific to this domain (not generic advice)
692
+ - [ ] Prevention strategies are actionable
693
+ - [ ] Phase mapping included where relevant
694
+ </quality_gate>
695
+
696
+ <output>
697
+ Write to: .planning/research/PITFALLS.md
698
+ Use template: ~/.claude/get-shit-done/templates/research-project/PITFALLS.md
699
+ </output>
700
+ ", subagent_type="ez-project-researcher", model="{researcher_model}", description="Pitfalls research")
701
+ ```
702
+
703
+ After all 4 agents complete, spawn synthesizer to create SUMMARY.md:
704
+
705
+ ```
706
+ Task(prompt="
707
+ <task>
708
+ Synthesize research outputs into SUMMARY.md.
709
+ </task>
710
+
711
+ <files_to_read>
712
+ - .planning/research/STACK.md
713
+ - .planning/research/FEATURES.md
714
+ - .planning/research/ARCHITECTURE.md
715
+ - .planning/research/PITFALLS.md
716
+ </files_to_read>
717
+
718
+ <output>
719
+ Write to: .planning/research/SUMMARY.md
720
+ Use template: ~/.claude/get-shit-done/templates/research-project/SUMMARY.md
721
+ Commit after writing.
722
+ </output>
723
+ ", subagent_type="ez-research-synthesizer", model="{synthesizer_model}", description="Synthesize research")
724
+ ```
725
+
726
+ Display research complete banner and key findings:
727
+ ```
728
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
729
+ GSD ► RESEARCH COMPLETE ✓
730
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
731
+
732
+ ## Key Findings
733
+
734
+ **Stack:** [from SUMMARY.md]
735
+ **Table Stakes:** [from SUMMARY.md]
736
+ **Watch Out For:** [from SUMMARY.md]
737
+
738
+ Files: `.planning/research/`
739
+ ```
740
+
741
+ **If "Skip research":** Continue to Step 7.
742
+
743
+ ## 7. Define Requirements
744
+
745
+ Display stage banner:
746
+ ```
747
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
748
+ GSD ► DEFINING REQUIREMENTS
749
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
750
+ ```
751
+
752
+ **Load context:**
753
+
754
+ Read PROJECT.md and extract:
755
+ - Core value (the ONE thing that must work)
756
+ - Stated constraints (budget, timeline, tech limitations)
757
+ - Any explicit scope boundaries
758
+
759
+ **If research exists:** Read research/FEATURES.md and extract feature categories.
760
+
761
+ **If auto mode:**
762
+ - Auto-include all table stakes features (users expect these)
763
+ - Include features explicitly mentioned in provided document
764
+ - Auto-defer differentiators not mentioned in document
765
+ - Skip per-category AskUserQuestion loops
766
+ - Skip "Any additions?" question
767
+ - Skip requirements approval gate
768
+ - Generate REQUIREMENTS.md and commit directly
769
+
770
+ **Present features by category (interactive mode only):**
771
+
772
+ ```
773
+ Here are the features for [domain]:
774
+
775
+ ## Authentication
776
+ **Table stakes:**
777
+ - Sign up with email/password
778
+ - Email verification
779
+ - Password reset
780
+ - Session management
781
+
782
+ **Differentiators:**
783
+ - Magic link login
784
+ - OAuth (Google, GitHub)
785
+ - 2FA
786
+
787
+ **Research notes:** [any relevant notes]
788
+
789
+ ---
790
+
791
+ ## [Next Category]
792
+ ...
793
+ ```
794
+
795
+ **If no research:** Gather requirements through conversation instead.
796
+
797
+ Ask: "What are the main things users need to be able to do?"
798
+
799
+ For each capability mentioned:
800
+ - Ask clarifying questions to make it specific
801
+ - Probe for related capabilities
802
+ - Group into categories
803
+
804
+ **Scope each category:**
805
+
806
+ For each category, use AskUserQuestion:
807
+
808
+ - header: "[Category]" (max 12 chars)
809
+ - question: "Which [category] features are in v1?"
810
+ - multiSelect: true
811
+ - options:
812
+ - "[Feature 1]" — [brief description]
813
+ - "[Feature 2]" — [brief description]
814
+ - "[Feature 3]" — [brief description]
815
+ - "None for v1" — Defer entire category
816
+
817
+ Track responses:
818
+ - Selected features → v1 requirements
819
+ - Unselected table stakes → v2 (users expect these)
820
+ - Unselected differentiators → out of scope
821
+
822
+ **Identify gaps:**
823
+
824
+ Use AskUserQuestion:
825
+ - header: "Additions"
826
+ - question: "Any requirements research missed? (Features specific to your vision)"
827
+ - options:
828
+ - "No, research covered it" — Proceed
829
+ - "Yes, let me add some" — Capture additions
830
+
831
+ **Validate core value:**
832
+
833
+ Cross-check requirements against Core Value from PROJECT.md. If gaps detected, surface them.
834
+
835
+ **Generate REQUIREMENTS.md:**
836
+
837
+ Create `.planning/REQUIREMENTS.md` with:
838
+ - v1 Requirements grouped by category (checkboxes, REQ-IDs)
839
+ - v2 Requirements (deferred)
840
+ - Out of Scope (explicit exclusions with reasoning)
841
+ - Traceability section (empty, filled by roadmap)
842
+
843
+ **REQ-ID format:** `[CATEGORY]-[NUMBER]` (AUTH-01, CONTENT-02)
844
+
845
+ **Requirement quality criteria:**
846
+
847
+ Good requirements are:
848
+ - **Specific and testable:** "User can reset password via email link" (not "Handle password reset")
849
+ - **User-centric:** "User can X" (not "System does Y")
850
+ - **Atomic:** One capability per requirement (not "User can login and manage profile")
851
+ - **Independent:** Minimal dependencies on other requirements
852
+
853
+ Reject vague requirements. Push for specificity:
854
+ - "Handle authentication" → "User can log in with email/password and stay logged in across sessions"
855
+ - "Support sharing" → "User can share post via link that opens in recipient's browser"
856
+
857
+ **Present full requirements list (interactive mode only):**
858
+
859
+ Show every requirement (not counts) for user confirmation:
860
+
861
+ ```
862
+ ## v1 Requirements
863
+
864
+ ### Authentication
865
+ - [ ] **AUTH-01**: User can create account with email/password
866
+ - [ ] **AUTH-02**: User can log in and stay logged in across sessions
867
+ - [ ] **AUTH-03**: User can log out from any page
868
+
869
+ ### Content
870
+ - [ ] **CONT-01**: User can create posts with text
871
+ - [ ] **CONT-02**: User can edit their own posts
872
+
873
+ [... full list ...]
874
+
875
+ ---
876
+
877
+ Does this capture what you're building? (yes / adjust)
878
+ ```
879
+
880
+ If "adjust": Return to scoping.
881
+
882
+ **Commit requirements:**
883
+
884
+ ```bash
885
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs: define v1 requirements" --files .planning/REQUIREMENTS.md
886
+ ```
887
+
888
+ ## 8. Create Roadmap
889
+
890
+ Display stage banner:
891
+ ```
892
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
893
+ GSD ► CREATING ROADMAP
894
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
895
+
896
+ ◆ Spawning roadmapper...
897
+ ```
898
+
899
+ Spawn gsd-roadmapper agent with path references:
900
+
901
+ ```
902
+ Task(prompt="
903
+ <planning_context>
904
+
905
+ <files_to_read>
906
+ - .planning/PROJECT.md (Project context)
907
+ - .planning/REQUIREMENTS.md (v1 Requirements)
908
+ - .planning/research/SUMMARY.md (Research findings - if exists)
909
+ - .planning/config.json (Granularity and mode settings)
910
+ </files_to_read>
911
+
912
+ </planning_context>
913
+
914
+ <instructions>
915
+ Create roadmap:
916
+ 1. Derive phases from requirements (don't impose structure)
917
+ 2. Map every v1 requirement to exactly one phase
918
+ 3. Derive 2-5 success criteria per phase (observable user behaviors)
919
+ 4. Validate 100% coverage
920
+ 5. Write files immediately (ROADMAP.md, STATE.md, update REQUIREMENTS.md traceability)
921
+ 6. Return ROADMAP CREATED with summary
922
+
923
+ Write files first, then return. This ensures artifacts persist even if context is lost.
924
+ </instructions>
925
+ ", subagent_type="ez-roadmapper", model="{roadmapper_model}", description="Create roadmap")
926
+ ```
927
+
928
+ **Handle roadmapper return:**
929
+
930
+ **If `## ROADMAP BLOCKED`:**
931
+ - Present blocker information
932
+ - Work with user to resolve
933
+ - Re-spawn when resolved
934
+
935
+ **If `## ROADMAP CREATED`:**
936
+
937
+ Read the created ROADMAP.md and present it nicely inline:
938
+
939
+ ```
940
+ ---
941
+
942
+ ## Proposed Roadmap
943
+
944
+ **[N] phases** | **[X] requirements mapped** | All v1 requirements covered ✓
945
+
946
+ | # | Phase | Goal | Requirements | Success Criteria |
947
+ |---|-------|------|--------------|------------------|
948
+ | 1 | [Name] | [Goal] | [REQ-IDs] | [count] |
949
+ | 2 | [Name] | [Goal] | [REQ-IDs] | [count] |
950
+ | 3 | [Name] | [Goal] | [REQ-IDs] | [count] |
951
+ ...
952
+
953
+ ### Phase Details
954
+
955
+ **Phase 1: [Name]**
956
+ Goal: [goal]
957
+ Requirements: [REQ-IDs]
958
+ Success criteria:
959
+ 1. [criterion]
960
+ 2. [criterion]
961
+ 3. [criterion]
962
+
963
+ **Phase 2: [Name]**
964
+ Goal: [goal]
965
+ Requirements: [REQ-IDs]
966
+ Success criteria:
967
+ 1. [criterion]
968
+ 2. [criterion]
969
+
970
+ [... continue for all phases ...]
971
+
972
+ ---
973
+ ```
974
+
975
+ **If auto mode:** Skip approval gate — auto-approve and commit directly.
976
+
977
+ **CRITICAL: Ask for approval before committing (interactive mode only):**
978
+
979
+ Use AskUserQuestion:
980
+ - header: "Roadmap"
981
+ - question: "Does this roadmap structure work for you?"
982
+ - options:
983
+ - "Approve" — Commit and continue
984
+ - "Adjust phases" — Tell me what to change
985
+ - "Review full file" — Show raw ROADMAP.md
986
+
987
+ **If "Approve":** Continue to commit.
988
+
989
+ **If "Adjust phases":**
990
+ - Get user's adjustment notes
991
+ - Re-spawn roadmapper with revision context:
992
+ ```
993
+ Task(prompt="
994
+ <revision>
995
+ User feedback on roadmap:
996
+ [user's notes]
997
+
998
+ <files_to_read>
999
+ - .planning/ROADMAP.md (Current roadmap to revise)
1000
+ </files_to_read>
1001
+
1002
+ Update the roadmap based on feedback. Edit files in place.
1003
+ Return ROADMAP REVISED with changes made.
1004
+ </revision>
1005
+ ", subagent_type="ez-roadmapper", model="{roadmapper_model}", description="Revise roadmap")
1006
+ ```
1007
+ - Present revised roadmap
1008
+ - Loop until user approves
1009
+
1010
+ **If "Review full file":** Display raw `cat .planning/ROADMAP.md`, then re-ask.
1011
+
1012
+ **Commit roadmap (after approval or auto mode):**
1013
+
1014
+ ```bash
1015
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs: create roadmap ([N] phases)" --files .planning/ROADMAP.md .planning/STATE.md .planning/REQUIREMENTS.md
1016
+ ```
1017
+
1018
+ ## 9. Done
1019
+
1020
+ Present completion summary:
1021
+
1022
+ ```
1023
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1024
+ GSD ► PROJECT INITIALIZED ✓
1025
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1026
+
1027
+ **[Project Name]**
1028
+
1029
+ | Artifact | Location |
1030
+ |----------------|-----------------------------|
1031
+ | Project | `.planning/PROJECT.md` |
1032
+ | Config | `.planning/config.json` |
1033
+ | Research | `.planning/research/` |
1034
+ | Requirements | `.planning/REQUIREMENTS.md` |
1035
+ | Roadmap | `.planning/ROADMAP.md` |
1036
+
1037
+ **[N] phases** | **[X] requirements** | Ready to build ✓
1038
+ ```
1039
+
1040
+ **If auto mode:**
1041
+
1042
+ ```
1043
+ ╔══════════════════════════════════════════╗
1044
+ ║ AUTO-ADVANCING → DISCUSS PHASE 1 ║
1045
+ ╚══════════════════════════════════════════╝
1046
+ ```
1047
+
1048
+ Exit skill and invoke SlashCommand("/ez:discuss-phase 1 --auto")
1049
+
1050
+ **If interactive mode:**
1051
+
1052
+ ```
1053
+ ───────────────────────────────────────────────────────────────
1054
+
1055
+ ## ▶ Next Up
1056
+
1057
+ **Phase 1: [Phase Name]** — [Goal from ROADMAP.md]
1058
+
1059
+ /ez:discuss-phase 1 — gather context and clarify approach
1060
+
1061
+ <sub>/clear first → fresh context window</sub>
1062
+
1063
+ ---
1064
+
1065
+ **Also available:**
1066
+ - /ez:plan-phase 1 — skip discussion, plan directly
1067
+
1068
+ ───────────────────────────────────────────────────────────────
1069
+ ```
1070
+
1071
+ </process>
1072
+
1073
+ <output>
1074
+
1075
+ - `.planning/PROJECT.md`
1076
+ - `.planning/config.json`
1077
+ - `.planning/research/` (if research selected)
1078
+ - `STACK.md`
1079
+ - `FEATURES.md`
1080
+ - `ARCHITECTURE.md`
1081
+ - `PITFALLS.md`
1082
+ - `SUMMARY.md`
1083
+ - `.planning/REQUIREMENTS.md`
1084
+ - `.planning/ROADMAP.md`
1085
+ - `.planning/STATE.md`
1086
+
1087
+ </output>
1088
+
1089
+ <success_criteria>
1090
+
1091
+ - [ ] .planning/ directory created
1092
+ - [ ] Git repo initialized
1093
+ - [ ] Brownfield detection completed
1094
+ - [ ] Deep questioning completed (threads followed, not rushed)
1095
+ - [ ] PROJECT.md captures full context → **committed**
1096
+ - [ ] config.json has workflow mode, granularity, parallelization → **committed**
1097
+ - [ ] Research completed (if selected) — 4 parallel agents spawned → **committed**
1098
+ - [ ] Requirements gathered (from research or conversation)
1099
+ - [ ] User scoped each category (v1/v2/out of scope)
1100
+ - [ ] REQUIREMENTS.md created with REQ-IDs → **committed**
1101
+ - [ ] gsd-roadmapper spawned with context
1102
+ - [ ] Roadmap files written immediately (not draft)
1103
+ - [ ] User feedback incorporated (if any)
1104
+ - [ ] ROADMAP.md created with phases, requirement mappings, success criteria
1105
+ - [ ] STATE.md initialized
1106
+ - [ ] REQUIREMENTS.md traceability updated
1107
+ - [ ] User knows next step is `/ez:discuss-phase 1`
1108
+
1109
+ **Atomic commits:** Each phase commits its artifacts immediately. If context is lost, artifacts persist.
1110
+
1111
+ </success_criteria>