@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,766 @@
1
+ <purpose>
2
+
3
+ Mark a shipped version (v1.0, v1.1, v2.0) as complete. Creates historical record in MILESTONES.md, performs full PROJECT.md evolution review, reorganizes ROADMAP.md with milestone groupings, and tags the release in git.
4
+
5
+ </purpose>
6
+
7
+ <required_reading>
8
+
9
+ 1. templates/milestone.md
10
+ 2. templates/milestone-archive.md
11
+ 3. `.planning/ROADMAP.md`
12
+ 4. `.planning/REQUIREMENTS.md`
13
+ 5. `.planning/PROJECT.md`
14
+
15
+ </required_reading>
16
+
17
+ <archival_behavior>
18
+
19
+ When a milestone completes:
20
+
21
+ 1. Extract full milestone details to `.planning/milestones/v[X.Y]-ROADMAP.md`
22
+ 2. Archive requirements to `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
23
+ 3. Update ROADMAP.md — replace milestone details with one-line summary
24
+ 4. Delete REQUIREMENTS.md (fresh one for next milestone)
25
+ 5. Perform full PROJECT.md evolution review
26
+ 6. Offer to create next milestone inline
27
+ 7. Archive UI artifacts (`*-UI-SPEC.md`, `*-UI-REVIEW.md`) alongside other phase documents
28
+ 8. Clean up `.planning/ui-reviews/` screenshot files (binary assets, never archived)
29
+
30
+ **Context Efficiency:** Archives keep ROADMAP.md constant-size and REQUIREMENTS.md milestone-scoped.
31
+
32
+ **ROADMAP archive** uses `templates/milestone-archive.md` — includes milestone header (status, phases, date), full phase details, milestone summary (decisions, issues, tech debt).
33
+
34
+ **REQUIREMENTS archive** contains all requirements marked complete with outcomes, traceability table with final status, notes on changed requirements.
35
+
36
+ </archival_behavior>
37
+
38
+ <process>
39
+
40
+ <step name="verify_readiness">
41
+
42
+ **Use `roadmap analyze` for comprehensive readiness check:**
43
+
44
+ ```bash
45
+ ROADMAP=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" roadmap analyze)
46
+ ```
47
+
48
+ This returns all phases with plan/summary counts and disk status. Use this to verify:
49
+ - Which phases belong to this milestone?
50
+ - All phases complete (all plans have summaries)? Check `disk_status === 'complete'` for each.
51
+ - `progress_percent` should be 100%.
52
+
53
+ **Requirements completion check (REQUIRED before presenting):**
54
+
55
+ Parse REQUIREMENTS.md traceability table:
56
+ - Count total v1 requirements vs checked-off (`[x]`) requirements
57
+ - Identify any non-Complete rows in the traceability table
58
+
59
+ Present:
60
+
61
+ ```
62
+ Milestone: [Name, e.g., "v1.0 MVP"]
63
+
64
+ Includes:
65
+ - Phase 1: Foundation (2/2 plans complete)
66
+ - Phase 2: Authentication (2/2 plans complete)
67
+ - Phase 3: Core Features (3/3 plans complete)
68
+ - Phase 4: Polish (1/1 plan complete)
69
+
70
+ Total: {phase_count} phases, {total_plans} plans, all complete
71
+ Requirements: {N}/{M} v1 requirements checked off
72
+ ```
73
+
74
+ **If requirements incomplete** (N < M):
75
+
76
+ ```
77
+ ⚠ Unchecked Requirements:
78
+
79
+ - [ ] {REQ-ID}: {description} (Phase {X})
80
+ - [ ] {REQ-ID}: {description} (Phase {Y})
81
+ ```
82
+
83
+ MUST present 3 options:
84
+ 1. **Proceed anyway** — mark milestone complete with known gaps
85
+ 2. **Run audit first** — `/ez:audit-milestone` to assess gap severity
86
+ 3. **Abort** — return to development
87
+
88
+ If user selects "Proceed anyway": note incomplete requirements in MILESTONES.md under `### Known Gaps` with REQ-IDs and descriptions.
89
+
90
+ <config-check>
91
+
92
+ ```bash
93
+ cat .planning/config.json 2>/dev/null
94
+ ```
95
+
96
+ </config-check>
97
+
98
+ <if mode="yolo">
99
+
100
+ ```
101
+ ⚡ Auto-approved: Milestone scope verification
102
+ [Show breakdown summary without prompting]
103
+ Proceeding to stats gathering...
104
+ ```
105
+
106
+ Proceed to gather_stats.
107
+
108
+ </if>
109
+
110
+ <if mode="interactive" OR="custom with gates.confirm_milestone_scope true">
111
+
112
+ ```
113
+ Ready to mark this milestone as shipped?
114
+ (yes / wait / adjust scope)
115
+ ```
116
+
117
+ Wait for confirmation.
118
+ - "adjust scope": Ask which phases to include.
119
+ - "wait": Stop, user returns when ready.
120
+
121
+ </if>
122
+
123
+ </step>
124
+
125
+ <step name="gather_stats">
126
+
127
+ Calculate milestone statistics:
128
+
129
+ ```bash
130
+ git log --oneline --grep="feat(" | head -20
131
+ git diff --stat FIRST_COMMIT..LAST_COMMIT | tail -1
132
+ find . -name "*.swift" -o -name "*.ts" -o -name "*.py" | xargs wc -l 2>/dev/null
133
+ git log --format="%ai" FIRST_COMMIT | tail -1
134
+ git log --format="%ai" LAST_COMMIT | head -1
135
+ ```
136
+
137
+ Present:
138
+
139
+ ```
140
+ Milestone Stats:
141
+ - Phases: [X-Y]
142
+ - Plans: [Z] total
143
+ - Tasks: [N] total (from phase summaries)
144
+ - Files modified: [M]
145
+ - Lines of code: [LOC] [language]
146
+ - Timeline: [Days] days ([Start] → [End])
147
+ - Git range: feat(XX-XX) → feat(YY-YY)
148
+ ```
149
+
150
+ </step>
151
+
152
+ <step name="extract_accomplishments">
153
+
154
+ Extract one-liners from SUMMARY.md files using summary-extract:
155
+
156
+ ```bash
157
+ # For each phase in milestone, extract one-liner
158
+ for summary in .planning/phases/*-*/*-SUMMARY.md; do
159
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" summary-extract "$summary" --fields one_liner | jq -r '.one_liner'
160
+ done
161
+ ```
162
+
163
+ Extract 4-6 key accomplishments. Present:
164
+
165
+ ```
166
+ Key accomplishments for this milestone:
167
+ 1. [Achievement from phase 1]
168
+ 2. [Achievement from phase 2]
169
+ 3. [Achievement from phase 3]
170
+ 4. [Achievement from phase 4]
171
+ 5. [Achievement from phase 5]
172
+ ```
173
+
174
+ </step>
175
+
176
+ <step name="create_milestone_entry">
177
+
178
+ **Note:** MILESTONES.md entry is now created automatically by `gsd-tools milestone complete` in the archive_milestone step. The entry includes version, date, phase/plan/task counts, and accomplishments extracted from SUMMARY.md files.
179
+
180
+ If additional details are needed (e.g., user-provided "Delivered" summary, git range, LOC stats), add them manually after the CLI creates the base entry.
181
+
182
+ </step>
183
+
184
+ <step name="evolve_project_full_review">
185
+
186
+ Full PROJECT.md evolution review at milestone completion.
187
+
188
+ Read all phase summaries:
189
+
190
+ ```bash
191
+ cat .planning/phases/*-*/*-SUMMARY.md
192
+ ```
193
+
194
+ **Full review checklist:**
195
+
196
+ 1. **"What This Is" accuracy:**
197
+ - Compare current description to what was built
198
+ - Update if product has meaningfully changed
199
+
200
+ 2. **Core Value check:**
201
+ - Still the right priority? Did shipping reveal a different core value?
202
+ - Update if the ONE thing has shifted
203
+
204
+ 3. **Requirements audit:**
205
+
206
+ **Validated section:**
207
+ - All Active requirements shipped this milestone → Move to Validated
208
+ - Format: `- ✓ [Requirement] — v[X.Y]`
209
+
210
+ **Active section:**
211
+ - Remove requirements moved to Validated
212
+ - Add new requirements for next milestone
213
+ - Keep unaddressed requirements
214
+
215
+ **Out of Scope audit:**
216
+ - Review each item — reasoning still valid?
217
+ - Remove irrelevant items
218
+ - Add requirements invalidated during milestone
219
+
220
+ 4. **Context update:**
221
+ - Current codebase state (LOC, tech stack)
222
+ - User feedback themes (if any)
223
+ - Known issues or technical debt
224
+
225
+ 5. **Key Decisions audit:**
226
+ - Extract all decisions from milestone phase summaries
227
+ - Add to Key Decisions table with outcomes
228
+ - Mark ✓ Good, ⚠️ Revisit, or — Pending
229
+
230
+ 6. **Constraints check:**
231
+ - Any constraints changed during development? Update as needed
232
+
233
+ Update PROJECT.md inline. Update "Last updated" footer:
234
+
235
+ ```markdown
236
+ ---
237
+ *Last updated: [date] after v[X.Y] milestone*
238
+ ```
239
+
240
+ **Example full evolution (v1.0 → v1.1 prep):**
241
+
242
+ Before:
243
+
244
+ ```markdown
245
+ ## What This Is
246
+
247
+ A real-time collaborative whiteboard for remote teams.
248
+
249
+ ## Core Value
250
+
251
+ Real-time sync that feels instant.
252
+
253
+ ## Requirements
254
+
255
+ ### Validated
256
+
257
+ (None yet — ship to validate)
258
+
259
+ ### Active
260
+
261
+ - [ ] Canvas drawing tools
262
+ - [ ] Real-time sync < 500ms
263
+ - [ ] User authentication
264
+ - [ ] Export to PNG
265
+
266
+ ### Out of Scope
267
+
268
+ - Mobile app — web-first approach
269
+ - Video chat — use external tools
270
+ ```
271
+
272
+ After v1.0:
273
+
274
+ ```markdown
275
+ ## What This Is
276
+
277
+ A real-time collaborative whiteboard for remote teams with instant sync and drawing tools.
278
+
279
+ ## Core Value
280
+
281
+ Real-time sync that feels instant.
282
+
283
+ ## Requirements
284
+
285
+ ### Validated
286
+
287
+ - ✓ Canvas drawing tools — v1.0
288
+ - ✓ Real-time sync < 500ms — v1.0 (achieved 200ms avg)
289
+ - ✓ User authentication — v1.0
290
+
291
+ ### Active
292
+
293
+ - [ ] Export to PNG
294
+ - [ ] Undo/redo history
295
+ - [ ] Shape tools (rectangles, circles)
296
+
297
+ ### Out of Scope
298
+
299
+ - Mobile app — web-first approach, PWA works well
300
+ - Video chat — use external tools
301
+ - Offline mode — real-time is core value
302
+
303
+ ## Context
304
+
305
+ Shipped v1.0 with 2,400 LOC TypeScript.
306
+ Tech stack: Next.js, Supabase, Canvas API.
307
+ Initial user testing showed demand for shape tools.
308
+ ```
309
+
310
+ **Step complete when:**
311
+
312
+ - [ ] "What This Is" reviewed and updated if needed
313
+ - [ ] Core Value verified as still correct
314
+ - [ ] All shipped requirements moved to Validated
315
+ - [ ] New requirements added to Active for next milestone
316
+ - [ ] Out of Scope reasoning audited
317
+ - [ ] Context updated with current state
318
+ - [ ] All milestone decisions added to Key Decisions
319
+ - [ ] "Last updated" footer reflects milestone completion
320
+
321
+ </step>
322
+
323
+ <step name="reorganize_roadmap">
324
+
325
+ Update `.planning/ROADMAP.md` — group completed milestone phases:
326
+
327
+ ```markdown
328
+ # Roadmap: [Project Name]
329
+
330
+ ## Milestones
331
+
332
+ - ✅ **v1.0 MVP** — Phases 1-4 (shipped YYYY-MM-DD)
333
+ - 🚧 **v1.1 Security** — Phases 5-6 (in progress)
334
+ - 📋 **v2.0 Redesign** — Phases 7-10 (planned)
335
+
336
+ ## Phases
337
+
338
+ <details>
339
+ <summary>✅ v1.0 MVP (Phases 1-4) — SHIPPED YYYY-MM-DD</summary>
340
+
341
+ - [x] Phase 1: Foundation (2/2 plans) — completed YYYY-MM-DD
342
+ - [x] Phase 2: Authentication (2/2 plans) — completed YYYY-MM-DD
343
+ - [x] Phase 3: Core Features (3/3 plans) — completed YYYY-MM-DD
344
+ - [x] Phase 4: Polish (1/1 plan) — completed YYYY-MM-DD
345
+
346
+ </details>
347
+
348
+ ### 🚧 v[Next] [Name] (In Progress / Planned)
349
+
350
+ - [ ] Phase 5: [Name] ([N] plans)
351
+ - [ ] Phase 6: [Name] ([N] plans)
352
+
353
+ ## Progress
354
+
355
+ | Phase | Milestone | Plans Complete | Status | Completed |
356
+ | ----------------- | --------- | -------------- | ----------- | ---------- |
357
+ | 1. Foundation | v1.0 | 2/2 | Complete | YYYY-MM-DD |
358
+ | 2. Authentication | v1.0 | 2/2 | Complete | YYYY-MM-DD |
359
+ | 3. Core Features | v1.0 | 3/3 | Complete | YYYY-MM-DD |
360
+ | 4. Polish | v1.0 | 1/1 | Complete | YYYY-MM-DD |
361
+ | 5. Security Audit | v1.1 | 0/1 | Not started | - |
362
+ | 6. Hardening | v1.1 | 0/2 | Not started | - |
363
+ ```
364
+
365
+ </step>
366
+
367
+ <step name="archive_milestone">
368
+
369
+ **Delegate archival to gsd-tools:**
370
+
371
+ ```bash
372
+ ARCHIVE=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" milestone complete "v[X.Y]" --name "[Milestone Name]")
373
+ ```
374
+
375
+ The CLI handles:
376
+ - Creating `.planning/milestones/` directory
377
+ - Archiving ROADMAP.md to `milestones/v[X.Y]-ROADMAP.md`
378
+ - Archiving REQUIREMENTS.md to `milestones/v[X.Y]-REQUIREMENTS.md` with archive header
379
+ - Moving audit file to milestones if it exists
380
+ - Creating/appending MILESTONES.md entry with accomplishments from SUMMARY.md files
381
+ - Updating STATE.md (status, last activity)
382
+
383
+ Extract from result: `version`, `date`, `phases`, `plans`, `tasks`, `accomplishments`, `archived`.
384
+
385
+ Verify: `✅ Milestone archived to .planning/milestones/`
386
+
387
+ **Phase archival (optional):** After archival completes, ask the user:
388
+
389
+ AskUserQuestion(header="Archive Phases", question="Archive phase directories to milestones/?", options: "Yes — move to milestones/v[X.Y]-phases/" | "Skip — keep phases in place")
390
+
391
+ If "Yes": move phase directories to the milestone archive:
392
+ ```bash
393
+ mkdir -p .planning/milestones/v[X.Y]-phases
394
+ # For each phase directory in .planning/phases/:
395
+ mv .planning/phases/{phase-dir} .planning/milestones/v[X.Y]-phases/
396
+ ```
397
+ Verify: `✅ Phase directories archived to .planning/milestones/v[X.Y]-phases/`
398
+
399
+ If "Skip": Phase directories remain in `.planning/phases/` as raw execution history. Use `/ez:cleanup` later to archive retroactively.
400
+
401
+ After archival, the AI still handles:
402
+ - Reorganizing ROADMAP.md with milestone grouping (requires judgment)
403
+ - Full PROJECT.md evolution review (requires understanding)
404
+ - Deleting original ROADMAP.md and REQUIREMENTS.md
405
+ - These are NOT fully delegated because they require AI interpretation of content
406
+
407
+ </step>
408
+
409
+ <step name="reorganize_roadmap_and_delete_originals">
410
+
411
+ After `milestone complete` has archived, reorganize ROADMAP.md with milestone groupings, then delete originals:
412
+
413
+ **Reorganize ROADMAP.md** — group completed milestone phases:
414
+
415
+ ```markdown
416
+ # Roadmap: [Project Name]
417
+
418
+ ## Milestones
419
+
420
+ - ✅ **v1.0 MVP** — Phases 1-4 (shipped YYYY-MM-DD)
421
+ - 🚧 **v1.1 Security** — Phases 5-6 (in progress)
422
+
423
+ ## Phases
424
+
425
+ <details>
426
+ <summary>✅ v1.0 MVP (Phases 1-4) — SHIPPED YYYY-MM-DD</summary>
427
+
428
+ - [x] Phase 1: Foundation (2/2 plans) — completed YYYY-MM-DD
429
+ - [x] Phase 2: Authentication (2/2 plans) — completed YYYY-MM-DD
430
+
431
+ </details>
432
+ ```
433
+
434
+ **Then delete originals:**
435
+
436
+ ```bash
437
+ rm .planning/ROADMAP.md
438
+ rm .planning/REQUIREMENTS.md
439
+ ```
440
+
441
+ </step>
442
+
443
+ <step name="write_retrospective">
444
+
445
+ **Append to living retrospective:**
446
+
447
+ Check for existing retrospective:
448
+ ```bash
449
+ ls .planning/RETROSPECTIVE.md 2>/dev/null
450
+ ```
451
+
452
+ **If exists:** Read the file, append new milestone section before the "## Cross-Milestone Trends" section.
453
+
454
+ **If doesn't exist:** Create from template at `~/.claude/get-shit-done/templates/retrospective.md`.
455
+
456
+ **Gather retrospective data:**
457
+
458
+ 1. From SUMMARY.md files: Extract key deliverables, one-liners, tech decisions
459
+ 2. From VERIFICATION.md files: Extract verification scores, gaps found
460
+ 3. From UAT.md files: Extract test results, issues found
461
+ 4. From git log: Count commits, calculate timeline
462
+ 5. From the milestone work: Reflect on what worked and what didn't
463
+
464
+ **Write the milestone section:**
465
+
466
+ ```markdown
467
+ ## Milestone: v{version} — {name}
468
+
469
+ **Shipped:** {date}
470
+ **Phases:** {phase_count} | **Plans:** {plan_count}
471
+
472
+ ### What Was Built
473
+ {Extract from SUMMARY.md one-liners}
474
+
475
+ ### What Worked
476
+ {Patterns that led to smooth execution}
477
+
478
+ ### What Was Inefficient
479
+ {Missed opportunities, rework, bottlenecks}
480
+
481
+ ### Patterns Established
482
+ {New conventions discovered during this milestone}
483
+
484
+ ### Key Lessons
485
+ {Specific, actionable takeaways}
486
+
487
+ ### Cost Observations
488
+ - Model mix: {X}% opus, {Y}% sonnet, {Z}% haiku
489
+ - Sessions: {count}
490
+ - Notable: {efficiency observation}
491
+ ```
492
+
493
+ **Update cross-milestone trends:**
494
+
495
+ If the "## Cross-Milestone Trends" section exists, update the tables with new data from this milestone.
496
+
497
+ **Commit:**
498
+ ```bash
499
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "docs: update retrospective for v${VERSION}" --files .planning/RETROSPECTIVE.md
500
+ ```
501
+
502
+ </step>
503
+
504
+ <step name="update_state">
505
+
506
+ Most STATE.md updates were handled by `milestone complete`, but verify and update remaining fields:
507
+
508
+ **Project Reference:**
509
+
510
+ ```markdown
511
+ ## Project Reference
512
+
513
+ See: .planning/PROJECT.md (updated [today])
514
+
515
+ **Core value:** [Current core value from PROJECT.md]
516
+ **Current focus:** [Next milestone or "Planning next milestone"]
517
+ ```
518
+
519
+ **Accumulated Context:**
520
+ - Clear decisions summary (full log in PROJECT.md)
521
+ - Clear resolved blockers
522
+ - Keep open blockers for next milestone
523
+
524
+ </step>
525
+
526
+ <step name="handle_branches">
527
+
528
+ Check branching strategy and offer merge options.
529
+
530
+ Use `init milestone-op` for context, or load config directly:
531
+
532
+ ```bash
533
+ INIT=$(node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" init execute-phase "1")
534
+ if [[ "$INIT" == @file:* ]]; then INIT=$(cat "${INIT#@file:}"); fi
535
+ ```
536
+
537
+ Extract `branching_strategy`, `phase_branch_template`, `milestone_branch_template`, and `commit_docs` from init JSON.
538
+
539
+ **If "none":** Skip to git_tag.
540
+
541
+ **For "phase" strategy:**
542
+
543
+ ```bash
544
+ BRANCH_PREFIX=$(echo "$PHASE_BRANCH_TEMPLATE" | sed 's/{.*//')
545
+ PHASE_BRANCHES=$(git branch --list "${BRANCH_PREFIX}*" 2>/dev/null | sed 's/^\*//' | tr -d ' ')
546
+ ```
547
+
548
+ **For "milestone" strategy:**
549
+
550
+ ```bash
551
+ BRANCH_PREFIX=$(echo "$MILESTONE_BRANCH_TEMPLATE" | sed 's/{.*//')
552
+ MILESTONE_BRANCH=$(git branch --list "${BRANCH_PREFIX}*" 2>/dev/null | sed 's/^\*//' | tr -d ' ' | head -1)
553
+ ```
554
+
555
+ **If no branches found:** Skip to git_tag.
556
+
557
+ **If branches exist:**
558
+
559
+ ```
560
+ ## Git Branches Detected
561
+
562
+ Branching strategy: {phase/milestone}
563
+ Branches: {list}
564
+
565
+ Options:
566
+ 1. **Merge to main** — Merge branch(es) to main
567
+ 2. **Delete without merging** — Already merged or not needed
568
+ 3. **Keep branches** — Leave for manual handling
569
+ ```
570
+
571
+ AskUserQuestion with options: Squash merge (Recommended), Merge with history, Delete without merging, Keep branches.
572
+
573
+ **Squash merge:**
574
+
575
+ ```bash
576
+ CURRENT_BRANCH=$(git branch --show-current)
577
+ git checkout main
578
+
579
+ if [ "$BRANCHING_STRATEGY" = "phase" ]; then
580
+ for branch in $PHASE_BRANCHES; do
581
+ git merge --squash "$branch"
582
+ # Strip .planning/ from staging if commit_docs is false
583
+ if [ "$COMMIT_DOCS" = "false" ]; then
584
+ git reset HEAD .planning/ 2>/dev/null || true
585
+ fi
586
+ git commit -m "feat: $branch for v[X.Y]"
587
+ done
588
+ fi
589
+
590
+ if [ "$BRANCHING_STRATEGY" = "milestone" ]; then
591
+ git merge --squash "$MILESTONE_BRANCH"
592
+ # Strip .planning/ from staging if commit_docs is false
593
+ if [ "$COMMIT_DOCS" = "false" ]; then
594
+ git reset HEAD .planning/ 2>/dev/null || true
595
+ fi
596
+ git commit -m "feat: $MILESTONE_BRANCH for v[X.Y]"
597
+ fi
598
+
599
+ git checkout "$CURRENT_BRANCH"
600
+ ```
601
+
602
+ **Merge with history:**
603
+
604
+ ```bash
605
+ CURRENT_BRANCH=$(git branch --show-current)
606
+ git checkout main
607
+
608
+ if [ "$BRANCHING_STRATEGY" = "phase" ]; then
609
+ for branch in $PHASE_BRANCHES; do
610
+ git merge --no-ff --no-commit "$branch"
611
+ # Strip .planning/ from staging if commit_docs is false
612
+ if [ "$COMMIT_DOCS" = "false" ]; then
613
+ git reset HEAD .planning/ 2>/dev/null || true
614
+ fi
615
+ git commit -m "Merge branch '$branch' for v[X.Y]"
616
+ done
617
+ fi
618
+
619
+ if [ "$BRANCHING_STRATEGY" = "milestone" ]; then
620
+ git merge --no-ff --no-commit "$MILESTONE_BRANCH"
621
+ # Strip .planning/ from staging if commit_docs is false
622
+ if [ "$COMMIT_DOCS" = "false" ]; then
623
+ git reset HEAD .planning/ 2>/dev/null || true
624
+ fi
625
+ git commit -m "Merge branch '$MILESTONE_BRANCH' for v[X.Y]"
626
+ fi
627
+
628
+ git checkout "$CURRENT_BRANCH"
629
+ ```
630
+
631
+ **Delete without merging:**
632
+
633
+ ```bash
634
+ if [ "$BRANCHING_STRATEGY" = "phase" ]; then
635
+ for branch in $PHASE_BRANCHES; do
636
+ git branch -d "$branch" 2>/dev/null || git branch -D "$branch"
637
+ done
638
+ fi
639
+
640
+ if [ "$BRANCHING_STRATEGY" = "milestone" ]; then
641
+ git branch -d "$MILESTONE_BRANCH" 2>/dev/null || git branch -D "$MILESTONE_BRANCH"
642
+ fi
643
+ ```
644
+
645
+ **Keep branches:** Report "Branches preserved for manual handling"
646
+
647
+ </step>
648
+
649
+ <step name="git_tag">
650
+
651
+ Create git tag:
652
+
653
+ ```bash
654
+ git tag -a v[X.Y] -m "v[X.Y] [Name]
655
+
656
+ Delivered: [One sentence]
657
+
658
+ Key accomplishments:
659
+ - [Item 1]
660
+ - [Item 2]
661
+ - [Item 3]
662
+
663
+ See .planning/MILESTONES.md for full details."
664
+ ```
665
+
666
+ Confirm: "Tagged: v[X.Y]"
667
+
668
+ Ask: "Push tag to remote? (y/n)"
669
+
670
+ If yes:
671
+ ```bash
672
+ git push origin v[X.Y]
673
+ ```
674
+
675
+ </step>
676
+
677
+ <step name="git_commit_milestone">
678
+
679
+ Commit milestone completion.
680
+
681
+ ```bash
682
+ node "$HOME/.claude/ez-agents/bin/ez-tools.cjs" commit "chore: complete v[X.Y] milestone" --files .planning/milestones/v[X.Y]-ROADMAP.md .planning/milestones/v[X.Y]-REQUIREMENTS.md .planning/milestones/v[X.Y]-MILESTONE-AUDIT.md .planning/MILESTONES.md .planning/PROJECT.md .planning/STATE.md
683
+ ```
684
+ ```
685
+
686
+ Confirm: "Committed: chore: complete v[X.Y] milestone"
687
+
688
+ </step>
689
+
690
+ <step name="offer_next">
691
+
692
+ ```
693
+ ✅ Milestone v[X.Y] [Name] complete
694
+
695
+ Shipped:
696
+ - [N] phases ([M] plans, [P] tasks)
697
+ - [One sentence of what shipped]
698
+
699
+ Archived:
700
+ - milestones/v[X.Y]-ROADMAP.md
701
+ - milestones/v[X.Y]-REQUIREMENTS.md
702
+
703
+ Summary: .planning/MILESTONES.md
704
+ Tag: v[X.Y]
705
+
706
+ ---
707
+
708
+ ## ▶ Next Up
709
+
710
+ **Start Next Milestone** — questioning → research → requirements → roadmap
711
+
712
+ `/ez:new-milestone`
713
+
714
+ <sub>`/clear` first → fresh context window</sub>
715
+
716
+ ---
717
+ ```
718
+
719
+ </step>
720
+
721
+ </process>
722
+
723
+ <milestone_naming>
724
+
725
+ **Version conventions:**
726
+ - **v1.0** — Initial MVP
727
+ - **v1.1, v1.2** — Minor updates, new features, fixes
728
+ - **v2.0, v3.0** — Major rewrites, breaking changes, new direction
729
+
730
+ **Names:** Short 1-2 words (v1.0 MVP, v1.1 Security, v1.2 Performance, v2.0 Redesign).
731
+
732
+ </milestone_naming>
733
+
734
+ <what_qualifies>
735
+
736
+ **Create milestones for:** Initial release, public releases, major feature sets shipped, before archiving planning.
737
+
738
+ **Don't create milestones for:** Every phase completion (too granular), work in progress, internal dev iterations (unless truly shipped).
739
+
740
+ Heuristic: "Is this deployed/usable/shipped?" If yes → milestone. If no → keep working.
741
+
742
+ </what_qualifies>
743
+
744
+ <success_criteria>
745
+
746
+ Milestone completion is successful when:
747
+
748
+ - [ ] MILESTONES.md entry created with stats and accomplishments
749
+ - [ ] PROJECT.md full evolution review completed
750
+ - [ ] All shipped requirements moved to Validated in PROJECT.md
751
+ - [ ] Key Decisions updated with outcomes
752
+ - [ ] ROADMAP.md reorganized with milestone grouping
753
+ - [ ] Roadmap archive created (milestones/v[X.Y]-ROADMAP.md)
754
+ - [ ] Requirements archive created (milestones/v[X.Y]-REQUIREMENTS.md)
755
+ - [ ] REQUIREMENTS.md deleted (fresh for next milestone)
756
+ - [ ] STATE.md updated with fresh project reference
757
+ - [ ] Git tag created (v[X.Y])
758
+ - [ ] Milestone commit made (includes archive files and deletion)
759
+ - [ ] Requirements completion checked against REQUIREMENTS.md traceability table
760
+ - [ ] Incomplete requirements surfaced with proceed/audit/abort options
761
+ - [ ] Known gaps recorded in MILESTONES.md if user proceeded with incomplete requirements
762
+ - [ ] RETROSPECTIVE.md updated with milestone section
763
+ - [ ] Cross-milestone trends updated
764
+ - [ ] User knows next step (/ez:new-milestone)
765
+
766
+ </success_criteria>