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