maxsimcli 4.8.0 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +180 -202
- package/dist/assets/CHANGELOG.md +61 -0
- package/dist/assets/hooks/maxsim-check-update.cjs +38 -0
- package/dist/assets/hooks/maxsim-check-update.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-statusline.cjs +116 -48
- package/dist/assets/hooks/maxsim-statusline.cjs.map +1 -1
- package/dist/assets/hooks/maxsim-sync-reminder.cjs +117 -0
- package/dist/assets/hooks/maxsim-sync-reminder.cjs.map +1 -0
- package/dist/assets/templates/agents/AGENTS.md +78 -106
- package/dist/assets/templates/agents/executor.md +101 -0
- package/dist/assets/templates/agents/planner.md +86 -0
- package/dist/assets/templates/agents/researcher.md +71 -0
- package/dist/assets/templates/agents/verifier.md +88 -0
- package/dist/assets/templates/commands/maxsim/debug.md +7 -7
- package/dist/assets/templates/commands/maxsim/execute.md +45 -0
- package/dist/assets/templates/commands/maxsim/go.md +29 -0
- package/dist/assets/templates/commands/maxsim/help.md +2 -2
- package/dist/assets/templates/commands/maxsim/init.md +52 -0
- package/dist/assets/templates/commands/maxsim/plan.md +50 -0
- package/dist/assets/templates/commands/maxsim/progress.md +4 -3
- package/dist/assets/templates/commands/maxsim/quick.md +6 -4
- package/dist/assets/templates/commands/maxsim/settings.md +4 -3
- package/dist/assets/templates/references/continuation-format.md +16 -16
- package/dist/assets/templates/references/model-profile-resolution.md +1 -1
- package/dist/assets/templates/references/model-profiles.md +12 -19
- package/dist/assets/templates/rules/conventions.md +51 -0
- package/dist/assets/templates/rules/verification-protocol.md +57 -0
- package/dist/assets/templates/skills/agent-system-map/SKILL.md +92 -0
- package/dist/assets/templates/skills/brainstorming/SKILL.md +48 -36
- package/dist/assets/templates/skills/code-review/SKILL.md +40 -61
- package/dist/assets/templates/skills/commit-conventions/SKILL.md +75 -0
- package/dist/assets/templates/skills/evidence-collection/SKILL.md +87 -0
- package/dist/assets/templates/skills/handoff-contract/SKILL.md +70 -0
- package/dist/assets/templates/skills/input-validation/SKILL.md +51 -0
- package/dist/assets/templates/skills/maxsim-batch/SKILL.md +41 -45
- package/dist/assets/templates/skills/maxsim-simplify/SKILL.md +37 -90
- package/dist/assets/templates/skills/memory-management/SKILL.md +32 -67
- package/dist/assets/templates/skills/research-methodology/SKILL.md +137 -0
- package/dist/assets/templates/skills/roadmap-writing/SKILL.md +40 -58
- package/dist/assets/templates/skills/sdd/SKILL.md +34 -69
- package/dist/assets/templates/skills/systematic-debugging/SKILL.md +20 -26
- package/dist/assets/templates/skills/tdd/SKILL.md +25 -33
- package/dist/assets/templates/skills/tool-priority-guide/SKILL.md +80 -0
- package/dist/assets/templates/skills/using-maxsim/SKILL.md +42 -73
- package/dist/assets/templates/skills/verification-before-completion/SKILL.md +12 -24
- package/dist/assets/templates/skills/verification-gates/SKILL.md +169 -0
- package/dist/assets/templates/templates/UAT.md +3 -3
- package/dist/assets/templates/templates/VALIDATION.md +1 -1
- package/dist/assets/templates/templates/context.md +4 -4
- package/dist/assets/templates/templates/debug-subagent-prompt.md +3 -3
- package/dist/assets/templates/templates/discovery.md +2 -2
- package/dist/assets/templates/templates/phase-prompt.md +2 -2
- package/dist/assets/templates/templates/planner-subagent-prompt.md +7 -7
- package/dist/assets/templates/templates/project.md +1 -1
- package/dist/assets/templates/templates/research.md +1 -1
- package/dist/assets/templates/templates/state.md +2 -2
- package/dist/assets/templates/templates/summary.md +41 -0
- package/dist/assets/templates/workflows/batch.md +5 -5
- package/dist/assets/templates/workflows/diagnose-issues.md +2 -2
- package/dist/assets/templates/workflows/discovery-phase.md +3 -3
- package/dist/assets/templates/workflows/discuss-phase.md +11 -11
- package/dist/assets/templates/workflows/execute-phase.md +205 -11
- package/dist/assets/templates/workflows/execute-plan.md +299 -34
- package/dist/assets/templates/workflows/execute.md +421 -0
- package/dist/assets/templates/workflows/go.md +250 -0
- package/dist/assets/templates/workflows/health.md +5 -5
- package/dist/assets/templates/workflows/help.md +165 -435
- package/dist/assets/templates/workflows/init-existing.md +23 -23
- package/dist/assets/templates/workflows/init.md +205 -0
- package/dist/assets/templates/workflows/new-milestone.md +9 -9
- package/dist/assets/templates/workflows/new-project.md +26 -26
- package/dist/assets/templates/workflows/plan-create.md +298 -0
- package/dist/assets/templates/workflows/plan-discuss.md +347 -0
- package/dist/assets/templates/workflows/plan-phase.md +29 -29
- package/dist/assets/templates/workflows/plan-research.md +177 -0
- package/dist/assets/templates/workflows/plan.md +231 -0
- package/dist/assets/templates/workflows/progress.md +46 -42
- package/dist/assets/templates/workflows/quick.md +195 -14
- package/dist/assets/templates/workflows/research-phase.md +5 -5
- package/dist/assets/templates/workflows/sdd.md +20 -12
- package/dist/assets/templates/workflows/settings.md +18 -14
- package/dist/assets/templates/workflows/verify-phase.md +1 -1
- package/dist/assets/templates/workflows/verify-work.md +16 -16
- package/dist/cli.cjs +4589 -229
- package/dist/cli.cjs.map +1 -1
- package/dist/core-D5zUr9cb.cjs.map +1 -1
- package/dist/install.cjs +234 -17
- package/dist/install.cjs.map +1 -1
- package/dist/mcp-server.cjs +298 -20
- package/dist/mcp-server.cjs.map +1 -1
- package/dist/skills-CjFWZIGM.cjs.map +1 -1
- package/package.json +1 -1
- package/dist/assets/hooks/maxsim-context-monitor.cjs +0 -121
- package/dist/assets/hooks/maxsim-context-monitor.cjs.map +0 -1
- package/dist/assets/templates/agents/maxsim-code-reviewer.md +0 -239
- package/dist/assets/templates/agents/maxsim-codebase-mapper.md +0 -214
- package/dist/assets/templates/agents/maxsim-debugger.md +0 -572
- package/dist/assets/templates/agents/maxsim-drift-checker.md +0 -522
- package/dist/assets/templates/agents/maxsim-executor.md +0 -504
- package/dist/assets/templates/agents/maxsim-integration-checker.md +0 -273
- package/dist/assets/templates/agents/maxsim-phase-researcher.md +0 -305
- package/dist/assets/templates/agents/maxsim-plan-checker.md +0 -343
- package/dist/assets/templates/agents/maxsim-planner.md +0 -610
- package/dist/assets/templates/agents/maxsim-project-researcher.md +0 -359
- package/dist/assets/templates/agents/maxsim-research-synthesizer.md +0 -263
- package/dist/assets/templates/agents/maxsim-roadmapper.md +0 -324
- package/dist/assets/templates/agents/maxsim-spec-reviewer.md +0 -245
- package/dist/assets/templates/agents/maxsim-verifier.md +0 -393
- package/dist/assets/templates/commands/maxsim/add-phase.md +0 -43
- package/dist/assets/templates/commands/maxsim/add-tests.md +0 -41
- package/dist/assets/templates/commands/maxsim/add-todo.md +0 -57
- package/dist/assets/templates/commands/maxsim/artefakte.md +0 -122
- package/dist/assets/templates/commands/maxsim/audit-milestone.md +0 -36
- package/dist/assets/templates/commands/maxsim/batch.md +0 -42
- package/dist/assets/templates/commands/maxsim/check-drift.md +0 -56
- package/dist/assets/templates/commands/maxsim/check-todos.md +0 -46
- package/dist/assets/templates/commands/maxsim/cleanup.md +0 -18
- package/dist/assets/templates/commands/maxsim/complete-milestone.md +0 -136
- package/dist/assets/templates/commands/maxsim/discuss-phase.md +0 -87
- package/dist/assets/templates/commands/maxsim/discuss.md +0 -70
- package/dist/assets/templates/commands/maxsim/execute-phase.md +0 -41
- package/dist/assets/templates/commands/maxsim/health.md +0 -22
- package/dist/assets/templates/commands/maxsim/init-existing.md +0 -46
- package/dist/assets/templates/commands/maxsim/insert-phase.md +0 -32
- package/dist/assets/templates/commands/maxsim/list-phase-assumptions.md +0 -46
- package/dist/assets/templates/commands/maxsim/map-codebase.md +0 -71
- package/dist/assets/templates/commands/maxsim/new-milestone.md +0 -44
- package/dist/assets/templates/commands/maxsim/new-project.md +0 -46
- package/dist/assets/templates/commands/maxsim/pause-work.md +0 -38
- package/dist/assets/templates/commands/maxsim/plan-milestone-gaps.md +0 -34
- package/dist/assets/templates/commands/maxsim/plan-phase.md +0 -44
- package/dist/assets/templates/commands/maxsim/realign.md +0 -39
- package/dist/assets/templates/commands/maxsim/reapply-patches.md +0 -110
- package/dist/assets/templates/commands/maxsim/remove-phase.md +0 -31
- package/dist/assets/templates/commands/maxsim/research-phase.md +0 -189
- package/dist/assets/templates/commands/maxsim/resume-work.md +0 -40
- package/dist/assets/templates/commands/maxsim/roadmap.md +0 -19
- package/dist/assets/templates/commands/maxsim/sdd.md +0 -39
- package/dist/assets/templates/commands/maxsim/set-profile.md +0 -34
- package/dist/assets/templates/commands/maxsim/update.md +0 -37
- package/dist/assets/templates/commands/maxsim/verify-work.md +0 -38
- package/dist/assets/templates/workflows/add-phase.md +0 -111
- package/dist/assets/templates/workflows/add-tests.md +0 -351
- package/dist/assets/templates/workflows/add-todo.md +0 -247
- package/dist/assets/templates/workflows/audit-milestone.md +0 -297
- package/dist/assets/templates/workflows/check-drift.md +0 -248
- package/dist/assets/templates/workflows/check-todos.md +0 -261
- package/dist/assets/templates/workflows/cleanup.md +0 -153
- package/dist/assets/templates/workflows/complete-milestone.md +0 -701
- package/dist/assets/templates/workflows/discuss.md +0 -343
- package/dist/assets/templates/workflows/insert-phase.md +0 -129
- package/dist/assets/templates/workflows/list-phase-assumptions.md +0 -178
- package/dist/assets/templates/workflows/map-codebase.md +0 -315
- package/dist/assets/templates/workflows/pause-work.md +0 -122
- package/dist/assets/templates/workflows/plan-milestone-gaps.md +0 -274
- package/dist/assets/templates/workflows/realign.md +0 -288
- package/dist/assets/templates/workflows/remove-phase.md +0 -154
- package/dist/assets/templates/workflows/resume-project.md +0 -306
- package/dist/assets/templates/workflows/roadmap.md +0 -130
- package/dist/assets/templates/workflows/set-profile.md +0 -81
- package/dist/assets/templates/workflows/transition.md +0 -544
- package/dist/assets/templates/workflows/update.md +0 -220
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Check project progress,
|
|
2
|
+
Check project progress, milestone status, and offer milestone completion when all phases are done. Shows GitHub Issues-based progress alongside local ROADMAP.md progress for cross-validation. Detects phase gaps and intelligently routes to the next action.
|
|
3
3
|
</purpose>
|
|
4
4
|
|
|
5
5
|
<required_reading>
|
|
@@ -22,18 +22,18 @@ If `project_exists` is false (no `.planning/` directory):
|
|
|
22
22
|
```
|
|
23
23
|
No planning structure found.
|
|
24
24
|
|
|
25
|
-
Run /maxsim:
|
|
25
|
+
Run /maxsim:init to start a new project.
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
Exit.
|
|
29
29
|
|
|
30
|
-
If missing STATE.md: suggest `/maxsim:
|
|
30
|
+
If missing STATE.md: suggest `/maxsim:init`.
|
|
31
31
|
|
|
32
32
|
**If ROADMAP.md missing but PROJECT.md exists:**
|
|
33
33
|
|
|
34
34
|
This means a milestone was completed and archived. Go to **Route F** (between milestones).
|
|
35
35
|
|
|
36
|
-
If missing both ROADMAP.md and PROJECT.md: suggest `/maxsim:
|
|
36
|
+
If missing both ROADMAP.md and PROJECT.md: suggest `/maxsim:init`.
|
|
37
37
|
</step>
|
|
38
38
|
|
|
39
39
|
<step name="load">
|
|
@@ -89,9 +89,12 @@ Use this instead of manually reading/parsing ROADMAP.md.
|
|
|
89
89
|
```bash
|
|
90
90
|
# Get formatted progress bar
|
|
91
91
|
PROGRESS_BAR=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs progress phase-bars --raw)
|
|
92
|
+
|
|
93
|
+
# Get GitHub Issues-based progress (best-effort, may fail if gh not authenticated)
|
|
94
|
+
GH_PROGRESS=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs mcp_get_all_progress 2>/dev/null || echo '{"error": "GitHub not available"}')
|
|
92
95
|
```
|
|
93
96
|
|
|
94
|
-
Present:
|
|
97
|
+
Present (include GitHub Issues progress if available for cross-validation):
|
|
95
98
|
|
|
96
99
|
```
|
|
97
100
|
# [Project Name]
|
|
@@ -116,8 +119,19 @@ CONTEXT: [✓ if has_context | - if not]
|
|
|
116
119
|
- [extract from $STATE.blockers[]]
|
|
117
120
|
- [e.g. jq -r '.blockers[].text' from state-snapshot]
|
|
118
121
|
|
|
122
|
+
## GitHub Issues Progress
|
|
123
|
+
(If GH_PROGRESS available and not error)
|
|
124
|
+
- Phase completion status from GitHub Issues
|
|
125
|
+
- Cross-validate with local ROADMAP.md progress
|
|
126
|
+
- Highlight any discrepancies between local and GitHub state
|
|
127
|
+
|
|
128
|
+
## Issues Detected
|
|
129
|
+
(Only show if gaps found during analysis)
|
|
130
|
+
- Phase [N]: [issue description, e.g., "Verification failed (2 truths unmet)"]
|
|
131
|
+
- Phase [M]: [issue description, e.g., "Plan exists but not executed"]
|
|
132
|
+
|
|
119
133
|
## Pending Todos
|
|
120
|
-
- [count] pending — /maxsim:
|
|
134
|
+
- [count] pending — /maxsim:quick --todo to review
|
|
121
135
|
|
|
122
136
|
## Active Debug Sessions
|
|
123
137
|
- [count] active — /maxsim:debug to continue
|
|
@@ -187,7 +201,7 @@ Read its `<objective>` section.
|
|
|
187
201
|
|
|
188
202
|
**{phase}-{plan}: [Plan Name]** — [objective summary from PLAN.md]
|
|
189
203
|
|
|
190
|
-
`/maxsim:execute
|
|
204
|
+
`/maxsim:execute {phase}`
|
|
191
205
|
|
|
192
206
|
<sub>`/clear` first → fresh context window</sub>
|
|
193
207
|
|
|
@@ -210,7 +224,7 @@ Check if `{phase_num}-CONTEXT.md` exists in phase directory.
|
|
|
210
224
|
**Phase {N}: {Name}** — {Goal from ROADMAP.md}
|
|
211
225
|
<sub>✓ Context gathered, ready to plan</sub>
|
|
212
226
|
|
|
213
|
-
`/maxsim:plan
|
|
227
|
+
`/maxsim:plan {phase-number}`
|
|
214
228
|
|
|
215
229
|
<sub>`/clear` first → fresh context window</sub>
|
|
216
230
|
|
|
@@ -225,17 +239,12 @@ Check if `{phase_num}-CONTEXT.md` exists in phase directory.
|
|
|
225
239
|
## ▶ Next Up
|
|
226
240
|
|
|
227
241
|
**Phase {N}: {Name}** — {Goal from ROADMAP.md}
|
|
242
|
+
<sub>No context yet — /maxsim:plan will start with discussion</sub>
|
|
228
243
|
|
|
229
|
-
`/maxsim:
|
|
244
|
+
`/maxsim:plan {phase}`
|
|
230
245
|
|
|
231
246
|
<sub>`/clear` first → fresh context window</sub>
|
|
232
247
|
|
|
233
|
-
---
|
|
234
|
-
|
|
235
|
-
**Also available:**
|
|
236
|
-
- `/maxsim:plan-phase {phase}` — skip discussion, plan directly
|
|
237
|
-
- `/maxsim:list-phase-assumptions {phase}` — see Claude's assumptions
|
|
238
|
-
|
|
239
248
|
---
|
|
240
249
|
```
|
|
241
250
|
|
|
@@ -252,15 +261,14 @@ UAT.md exists with gaps (diagnosed issues). User needs to plan fixes.
|
|
|
252
261
|
|
|
253
262
|
**{phase_num}-UAT.md** has {N} gaps requiring fixes.
|
|
254
263
|
|
|
255
|
-
`/maxsim:plan
|
|
264
|
+
`/maxsim:plan {phase} --gaps`
|
|
256
265
|
|
|
257
266
|
<sub>`/clear` first → fresh context window</sub>
|
|
258
267
|
|
|
259
268
|
---
|
|
260
269
|
|
|
261
270
|
**Also available:**
|
|
262
|
-
- `/maxsim:execute
|
|
263
|
-
- `/maxsim:verify-work {phase}` — run more UAT testing
|
|
271
|
+
- `/maxsim:execute {phase}` — execute phase plans (includes verification)
|
|
264
272
|
|
|
265
273
|
---
|
|
266
274
|
```
|
|
@@ -299,16 +307,10 @@ Read ROADMAP.md to get the next phase's name and goal.
|
|
|
299
307
|
|
|
300
308
|
**Phase {Z+1}: {Name}** — {Goal from ROADMAP.md}
|
|
301
309
|
|
|
302
|
-
`/maxsim:
|
|
310
|
+
`/maxsim:plan {Z+1}` — starts with discussion, then plans
|
|
303
311
|
|
|
304
312
|
<sub>`/clear` first → fresh context window</sub>
|
|
305
313
|
|
|
306
|
-
---
|
|
307
|
-
|
|
308
|
-
**Also available:**
|
|
309
|
-
- `/maxsim:plan-phase {Z+1}` — skip discussion, plan directly
|
|
310
|
-
- `/maxsim:verify-work {Z}` — user acceptance test before continuing
|
|
311
|
-
|
|
312
314
|
---
|
|
313
315
|
```
|
|
314
316
|
|
|
@@ -316,29 +318,27 @@ Read ROADMAP.md to get the next phase's name and goal.
|
|
|
316
318
|
|
|
317
319
|
**Route D: Milestone complete**
|
|
318
320
|
|
|
321
|
+
All phases are done. Offer milestone completion interactively:
|
|
322
|
+
|
|
319
323
|
```
|
|
320
324
|
---
|
|
321
325
|
|
|
322
|
-
##
|
|
323
|
-
|
|
324
|
-
All {N} phases finished!
|
|
325
|
-
|
|
326
|
-
## ▶ Next Up
|
|
326
|
+
## Milestone Complete!
|
|
327
327
|
|
|
328
|
-
|
|
328
|
+
All {N} phases are complete. Ready to wrap up?
|
|
329
329
|
|
|
330
|
-
`/maxsim:
|
|
330
|
+
1. Complete milestone (archive, create release notes) → `/maxsim:init` (detects milestone completion)
|
|
331
|
+
2. Start new milestone → `/maxsim:init` (starts new milestone flow)
|
|
332
|
+
3. Just show me the progress (stay on this screen)
|
|
331
333
|
|
|
332
334
|
<sub>`/clear` first → fresh context window</sub>
|
|
333
335
|
|
|
334
|
-
---
|
|
335
|
-
|
|
336
|
-
**Also available:**
|
|
337
|
-
- `/maxsim:verify-work` — user acceptance test before completing milestone
|
|
338
|
-
|
|
339
336
|
---
|
|
340
337
|
```
|
|
341
338
|
|
|
339
|
+
If user chooses option 1 or 2: route to `/maxsim:init` which handles milestone lifecycle interactively.
|
|
340
|
+
If user chooses option 3: display progress report only, no routing.
|
|
341
|
+
|
|
342
342
|
---
|
|
343
343
|
|
|
344
344
|
**Route F: Between milestones (ROADMAP.md missing, PROJECT.md exists)**
|
|
@@ -358,7 +358,7 @@ Ready to plan the next milestone.
|
|
|
358
358
|
|
|
359
359
|
**Start Next Milestone** — questioning → research → requirements → roadmap
|
|
360
360
|
|
|
361
|
-
`/maxsim:
|
|
361
|
+
`/maxsim:init`
|
|
362
362
|
|
|
363
363
|
<sub>`/clear` first → fresh context window</sub>
|
|
364
364
|
|
|
@@ -370,10 +370,11 @@ Ready to plan the next milestone.
|
|
|
370
370
|
<step name="edge_cases">
|
|
371
371
|
**Handle edge cases:**
|
|
372
372
|
|
|
373
|
-
- Phase complete but next phase not planned → offer `/maxsim:plan
|
|
374
|
-
- All work complete → offer milestone completion
|
|
373
|
+
- Phase complete but next phase not planned → offer `/maxsim:plan [next]`
|
|
374
|
+
- All work complete → offer milestone completion via `/maxsim:init`
|
|
375
375
|
- Blockers present → highlight before offering to continue
|
|
376
|
-
-
|
|
376
|
+
- Phase gaps detected → surface in Issues Detected section
|
|
377
|
+
- Handoff file exists → mention it, offer `/maxsim:go`
|
|
377
378
|
</step>
|
|
378
379
|
|
|
379
380
|
</process>
|
|
@@ -381,9 +382,12 @@ Ready to plan the next milestone.
|
|
|
381
382
|
<success_criteria>
|
|
382
383
|
|
|
383
384
|
- [ ] Rich context provided (recent work, decisions, issues)
|
|
385
|
+
- [ ] GitHub Issues progress shown (cross-validated with local ROADMAP)
|
|
386
|
+
- [ ] Phase gaps detected and surfaced in Issues Detected section
|
|
384
387
|
- [ ] Current position clear with visual progress
|
|
385
388
|
- [ ] What's next clearly explained
|
|
386
|
-
- [ ] Smart routing: /maxsim:execute
|
|
389
|
+
- [ ] Smart routing: /maxsim:execute if plans exist, /maxsim:plan if not
|
|
390
|
+
- [ ] Milestone completion offered when all phases done
|
|
387
391
|
- [ ] User confirms before any action
|
|
388
392
|
- [ ] Seamless handoff to appropriate maxsim command
|
|
389
393
|
</success_criteria>
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
<sanity_check>
|
|
2
2
|
Before executing any step in this workflow, verify:
|
|
3
|
-
1. The current directory contains a `.planning/` folder — if not, stop and tell the user to run `/maxsim:
|
|
3
|
+
1. The current directory contains a `.planning/` folder — if not, stop and tell the user to run `/maxsim:init` first.
|
|
4
4
|
2. `.planning/ROADMAP.md` exists — if not, stop and tell the user to initialize the project.
|
|
5
5
|
</sanity_check>
|
|
6
6
|
|
|
7
7
|
<purpose>
|
|
8
|
-
Execute small, ad-hoc tasks with MAXSIM guarantees (atomic commits, STATE.md tracking).
|
|
8
|
+
Execute small, ad-hoc tasks with MAXSIM guarantees (atomic commits, STATE.md tracking). Also supports "save for later" todo capture -- managing ideas as local todos with best-effort GitHub Issue creation.
|
|
9
|
+
|
|
10
|
+
Quick mode spawns planner (quick mode) + executor(s), tracks tasks in `.planning/quick/`, and updates STATE.md's "Quick Tasks Completed" table.
|
|
9
11
|
|
|
10
12
|
With `--full` flag: enables plan-checking (max 2 iterations) and post-execution verification for quality guarantees without full milestone ceremony.
|
|
13
|
+
|
|
14
|
+
With `--todo` flag (or trigger words): enters Todo Mode for listing, capturing, completing, and triaging todos.
|
|
11
15
|
</purpose>
|
|
12
16
|
|
|
13
17
|
<required_reading>
|
|
@@ -16,12 +20,21 @@ Read all files referenced by the invoking prompt's execution_context before star
|
|
|
16
20
|
</required_reading>
|
|
17
21
|
|
|
18
22
|
<process>
|
|
19
|
-
**Step 1: Parse arguments and
|
|
23
|
+
**Step 1: Parse arguments and detect mode**
|
|
20
24
|
|
|
21
25
|
Parse `$ARGUMENTS` for:
|
|
26
|
+
- `--todo` flag → store as `$TODO_MODE` (true/false)
|
|
22
27
|
- `--full` flag → store as `$FULL_MODE` (true/false)
|
|
23
28
|
- Remaining text → use as `$DESCRIPTION` if non-empty
|
|
24
29
|
|
|
30
|
+
**Mode detection:** Enter Todo Mode if ANY of these are true:
|
|
31
|
+
1. `--todo` flag is present
|
|
32
|
+
2. `$DESCRIPTION` starts with "todo", "save", "remember", "later" (case-insensitive)
|
|
33
|
+
|
|
34
|
+
**If Todo Mode → skip to Step T1 (Todo Mode section below)**
|
|
35
|
+
|
|
36
|
+
If not Todo Mode, continue with Quick Task Mode:
|
|
37
|
+
|
|
25
38
|
If `$DESCRIPTION` is empty after parsing, prompt user interactively:
|
|
26
39
|
|
|
27
40
|
```
|
|
@@ -55,7 +68,7 @@ INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init quick "$DESCRIPTION")
|
|
|
55
68
|
|
|
56
69
|
Parse JSON for: `planner_model`, `executor_model`, `checker_model`, `verifier_model`, `commit_docs`, `next_num`, `slug`, `date`, `timestamp`, `quick_dir`, `task_dir`, `roadmap_exists`, `planning_exists`.
|
|
57
70
|
|
|
58
|
-
**If `roadmap_exists` is false:** Error — Quick mode requires an active project with ROADMAP.md. Run `/maxsim:
|
|
71
|
+
**If `roadmap_exists` is false:** Error — Quick mode requires an active project with ROADMAP.md. Run `/maxsim:init` first.
|
|
59
72
|
|
|
60
73
|
Quick tasks can run mid-phase - validation only checks ROADMAP.md exists, not phase status.
|
|
61
74
|
|
|
@@ -126,7 +139,7 @@ Write plan to: ${QUICK_DIR}/${next_num}-PLAN.md
|
|
|
126
139
|
Return: ## PLANNING COMPLETE with plan path
|
|
127
140
|
</output>
|
|
128
141
|
",
|
|
129
|
-
subagent_type="
|
|
142
|
+
subagent_type="planner",
|
|
130
143
|
model="{planner_model}",
|
|
131
144
|
description="Quick plan: ${DESCRIPTION}"
|
|
132
145
|
)
|
|
@@ -186,8 +199,8 @@ Skip: context compliance (no CONTEXT.md), cross-plan deps (single plan), ROADMAP
|
|
|
186
199
|
|
|
187
200
|
```
|
|
188
201
|
Task(
|
|
189
|
-
prompt=checker_prompt,
|
|
190
|
-
subagent_type="
|
|
202
|
+
prompt="## Task: Verify plans achieve phase goal\n\n## Suggested Skills: verification-gates\n\n" + checker_prompt,
|
|
203
|
+
subagent_type="planner",
|
|
191
204
|
model="{checker_model}",
|
|
192
205
|
description="Check quick plan: ${DESCRIPTION}"
|
|
193
206
|
)
|
|
@@ -229,8 +242,8 @@ Return what changed.
|
|
|
229
242
|
|
|
230
243
|
```
|
|
231
244
|
Task(
|
|
232
|
-
prompt=
|
|
233
|
-
subagent_type="
|
|
245
|
+
prompt=revision_prompt,
|
|
246
|
+
subagent_type="planner",
|
|
234
247
|
model="{planner_model}",
|
|
235
248
|
description="Revise quick plan: ${DESCRIPTION}"
|
|
236
249
|
)
|
|
@@ -248,7 +261,7 @@ Offer: 1) Force proceed, 2) Abort
|
|
|
248
261
|
|
|
249
262
|
**Step 6: Spawn executor**
|
|
250
263
|
|
|
251
|
-
Spawn
|
|
264
|
+
Spawn executor with plan reference:
|
|
252
265
|
|
|
253
266
|
```
|
|
254
267
|
Task(
|
|
@@ -269,7 +282,7 @@ Execute quick task ${next_num}.
|
|
|
269
282
|
- Do NOT update ROADMAP.md (quick tasks are separate from planned phases)
|
|
270
283
|
</constraints>
|
|
271
284
|
",
|
|
272
|
-
subagent_type="
|
|
285
|
+
subagent_type="executor",
|
|
273
286
|
model="{executor_model}",
|
|
274
287
|
description="Execute: ${DESCRIPTION}"
|
|
275
288
|
)
|
|
@@ -310,6 +323,10 @@ Display banner:
|
|
|
310
323
|
```
|
|
311
324
|
Task(
|
|
312
325
|
prompt="
|
|
326
|
+
## Task: Review for spec compliance
|
|
327
|
+
|
|
328
|
+
## Suggested Skills: verification-gates, evidence-collection
|
|
329
|
+
|
|
313
330
|
<review_context>
|
|
314
331
|
**Plan:** quick-${next_num}
|
|
315
332
|
**Description:** ${DESCRIPTION}
|
|
@@ -327,7 +344,7 @@ Task(
|
|
|
327
344
|
</plan_frontmatter>
|
|
328
345
|
</review_context>
|
|
329
346
|
",
|
|
330
|
-
subagent_type="
|
|
347
|
+
subagent_type="verifier",
|
|
331
348
|
model="{executor_model}",
|
|
332
349
|
description="Spec review: ${DESCRIPTION}"
|
|
333
350
|
)
|
|
@@ -359,6 +376,10 @@ STOP and wait for user decision.
|
|
|
359
376
|
```
|
|
360
377
|
Task(
|
|
361
378
|
prompt="
|
|
379
|
+
## Task: Review for code quality
|
|
380
|
+
|
|
381
|
+
## Suggested Skills: code-review
|
|
382
|
+
|
|
362
383
|
<review_context>
|
|
363
384
|
**Plan:** quick-${next_num}
|
|
364
385
|
|
|
@@ -375,7 +396,7 @@ Task(
|
|
|
375
396
|
</test_results>
|
|
376
397
|
</review_context>
|
|
377
398
|
",
|
|
378
|
-
subagent_type="
|
|
399
|
+
subagent_type="verifier",
|
|
379
400
|
model="{executor_model}",
|
|
380
401
|
description="Code review: ${DESCRIPTION}"
|
|
381
402
|
)
|
|
@@ -422,7 +443,7 @@ Task goal: ${DESCRIPTION}
|
|
|
422
443
|
</files_to_read>
|
|
423
444
|
|
|
424
445
|
Check must_haves against actual codebase. Create VERIFICATION.md at ${QUICK_DIR}/${next_num}-VERIFICATION.md.",
|
|
425
|
-
subagent_type="
|
|
446
|
+
subagent_type="verifier",
|
|
426
447
|
model="{verifier_model}",
|
|
427
448
|
description="Verify: ${DESCRIPTION}"
|
|
428
449
|
)
|
|
@@ -552,9 +573,161 @@ Commit: ${commit_hash}
|
|
|
552
573
|
Ready for next task: /maxsim:quick
|
|
553
574
|
```
|
|
554
575
|
|
|
576
|
+
---
|
|
577
|
+
|
|
578
|
+
## Todo Mode
|
|
579
|
+
|
|
580
|
+
**Entered when `--todo` flag is set or description starts with "todo", "save", "remember", "later".**
|
|
581
|
+
|
|
582
|
+
```
|
|
583
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
584
|
+
MAXSIM ► TODO MODE
|
|
585
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
**Step T1: Initialize todo context**
|
|
589
|
+
|
|
590
|
+
```bash
|
|
591
|
+
INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init todos)
|
|
592
|
+
mkdir -p .planning/todos/pending .planning/todos/done
|
|
593
|
+
```
|
|
594
|
+
|
|
595
|
+
Extract from init JSON: `todo_count`, `todos`, `pending_dir`, `date`, `timestamp`.
|
|
596
|
+
|
|
597
|
+
---
|
|
598
|
+
|
|
599
|
+
**Step T2: Determine todo action**
|
|
600
|
+
|
|
601
|
+
Parse `$DESCRIPTION` (text after `--todo` flag or trigger word) for intent:
|
|
602
|
+
|
|
603
|
+
| Intent | Trigger | Action |
|
|
604
|
+
|--------|---------|--------|
|
|
605
|
+
| List | No description, or "list", "show" | Go to **T3: List** |
|
|
606
|
+
| Capture | Has a description (not a trigger word) | Go to **T4: Capture** |
|
|
607
|
+
| Complete | "done", "complete", "finish" + identifier | Go to **T5: Complete** |
|
|
608
|
+
| Triage | "triage", "what next", "what should I work on" | Go to **T6: Triage** |
|
|
609
|
+
|
|
610
|
+
If intent is ambiguous, default to **T3: List** (shows todos, then offers options).
|
|
611
|
+
|
|
612
|
+
---
|
|
613
|
+
|
|
614
|
+
**Step T3: List Existing Todos**
|
|
615
|
+
|
|
616
|
+
```bash
|
|
617
|
+
node ~/.claude/maxsim/bin/maxsim-tools.cjs todos list
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
Display current todos in a clean table:
|
|
621
|
+
|
|
622
|
+
```
|
|
623
|
+
Pending Todos:
|
|
624
|
+
|
|
625
|
+
| # | Title | Area | Priority | Age |
|
|
626
|
+
|---|-------|------|----------|-----|
|
|
627
|
+
| 1 | [title] | [area] | [priority] | [relative time] |
|
|
628
|
+
|
|
629
|
+
---
|
|
630
|
+
|
|
631
|
+
Options:
|
|
632
|
+
1. Add a new todo: /maxsim:quick --todo [description]
|
|
633
|
+
2. Complete a todo: /maxsim:quick --todo done [number]
|
|
634
|
+
3. Triage: /maxsim:quick --todo triage
|
|
635
|
+
4. Back to quick tasks: /maxsim:quick [description]
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
If no pending todos: "No pending todos. Use `/maxsim:quick --todo [description]` to capture one."
|
|
639
|
+
|
|
640
|
+
Exit after display.
|
|
641
|
+
|
|
642
|
+
---
|
|
643
|
+
|
|
644
|
+
**Step T4: Capture New Todo**
|
|
645
|
+
|
|
646
|
+
If user provided a description:
|
|
647
|
+
|
|
648
|
+
1. Parse priority from description (look for HIGH/MEDIUM/LOW keywords, default MEDIUM)
|
|
649
|
+
2. Infer area from file paths mentioned or conversation context (default "general")
|
|
650
|
+
3. Generate slug: `slug=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs generate-slug "$TITLE" --raw)`
|
|
651
|
+
4. Create todo file at `.planning/todos/pending/${date}-${slug}.md`:
|
|
652
|
+
|
|
653
|
+
```markdown
|
|
654
|
+
---
|
|
655
|
+
created: [timestamp]
|
|
656
|
+
title: [title]
|
|
657
|
+
area: [area]
|
|
658
|
+
priority: [HIGH/MEDIUM/LOW]
|
|
659
|
+
mode: quick
|
|
660
|
+
files: []
|
|
661
|
+
---
|
|
662
|
+
|
|
663
|
+
## Problem
|
|
664
|
+
|
|
665
|
+
[description - enough context for future Claude to understand]
|
|
666
|
+
|
|
667
|
+
## Solution
|
|
668
|
+
|
|
669
|
+
TBD
|
|
670
|
+
```
|
|
671
|
+
|
|
672
|
+
5. Best-effort GitHub Issue with 'todo' label: `node ~/.claude/maxsim/bin/maxsim-tools.cjs todos add "$TITLE" "$PRIORITY" 2>/dev/null || true`
|
|
673
|
+
6. Commit: `node ~/.claude/maxsim/bin/maxsim-tools.cjs commit "docs: capture todo - ${TITLE}" --files .planning/todos/pending/${date}-${slug}.md`
|
|
674
|
+
7. Confirm: "Saved: ${TITLE} (priority: ${PRIORITY})"
|
|
675
|
+
|
|
676
|
+
Exit after confirm.
|
|
677
|
+
|
|
678
|
+
---
|
|
679
|
+
|
|
680
|
+
**Step T5: Complete Todo**
|
|
681
|
+
|
|
682
|
+
If user references an existing todo to complete:
|
|
683
|
+
|
|
684
|
+
1. Parse identifier (number from list, or title fragment)
|
|
685
|
+
2. Find matching todo in `.planning/todos/pending/`
|
|
686
|
+
3. Move to done: `mv ".planning/todos/pending/[filename]" ".planning/todos/done/"`
|
|
687
|
+
4. Best-effort: close corresponding GitHub Issue
|
|
688
|
+
5. Commit: `node ~/.claude/maxsim/bin/maxsim-tools.cjs commit "docs: complete todo - ${TITLE}" --files .planning/todos/done/${filename}`
|
|
689
|
+
6. Confirm: "Completed: ${TITLE}"
|
|
690
|
+
|
|
691
|
+
Exit after confirm.
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
**Step T6: Triage**
|
|
696
|
+
|
|
697
|
+
Help user decide what to work on next:
|
|
698
|
+
|
|
699
|
+
1. List all pending todos sorted by priority (HIGH first)
|
|
700
|
+
2. Check if any todos relate to the current phase (cross-reference with ROADMAP.md):
|
|
701
|
+
|
|
702
|
+
```bash
|
|
703
|
+
ROADMAP=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs roadmap analyze)
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
3. Present prioritized view:
|
|
707
|
+
|
|
708
|
+
```
|
|
709
|
+
What should I work on?
|
|
710
|
+
|
|
711
|
+
## Phase-Related Todos
|
|
712
|
+
- [todo title] -- relates to Phase [N]: [phase name]
|
|
713
|
+
|
|
714
|
+
## Standalone Todos
|
|
715
|
+
- [HIGH] [todo title] (created [age] ago)
|
|
716
|
+
- [MEDIUM] [todo title] (created [age] ago)
|
|
717
|
+
|
|
718
|
+
---
|
|
719
|
+
|
|
720
|
+
Pick a todo to work on, or:
|
|
721
|
+
- /maxsim:quick [description] -- start a new task
|
|
722
|
+
- /maxsim:quick --todo [description] -- save something for later
|
|
723
|
+
```
|
|
724
|
+
|
|
725
|
+
Exit after display.
|
|
726
|
+
|
|
555
727
|
</process>
|
|
556
728
|
|
|
557
729
|
<success_criteria>
|
|
730
|
+
**Quick Task Mode:**
|
|
558
731
|
- [ ] ROADMAP.md validation passes
|
|
559
732
|
- [ ] User provides task description
|
|
560
733
|
- [ ] `--full` flag parsed from arguments when present
|
|
@@ -567,4 +740,12 @@ Ready for next task: /maxsim:quick
|
|
|
567
740
|
- [ ] (--full) `${next_num}-VERIFICATION.md` created by verifier
|
|
568
741
|
- [ ] STATE.md updated with quick task row (Status column when --full)
|
|
569
742
|
- [ ] Artifacts committed
|
|
743
|
+
|
|
744
|
+
**Todo Mode:**
|
|
745
|
+
- [ ] `--todo` flag or trigger words detected
|
|
746
|
+
- [ ] Todo action determined (list/capture/complete/triage)
|
|
747
|
+
- [ ] (capture) Todo file created with valid frontmatter
|
|
748
|
+
- [ ] (capture) Best-effort GitHub Issue creation attempted
|
|
749
|
+
- [ ] (complete) Todo moved from pending to done
|
|
750
|
+
- [ ] (triage) Prioritized view with phase context shown
|
|
570
751
|
</success_criteria>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<purpose>
|
|
2
|
-
Research how to implement a phase. Spawns
|
|
2
|
+
Research how to implement a phase. Spawns researcher with phase context.
|
|
3
3
|
|
|
4
|
-
Standalone research command. For most workflows, use `/maxsim:plan
|
|
4
|
+
Standalone research command. For most workflows, use `/maxsim:plan` which integrates research automatically.
|
|
5
5
|
</purpose>
|
|
6
6
|
|
|
7
7
|
<process>
|
|
@@ -11,7 +11,7 @@ Standalone research command. For most workflows, use `/maxsim:plan-phase` which
|
|
|
11
11
|
@./references/model-profile-resolution.md
|
|
12
12
|
|
|
13
13
|
Resolve model for:
|
|
14
|
-
- `
|
|
14
|
+
- `researcher`
|
|
15
15
|
|
|
16
16
|
## Step 1: Normalize and Validate Phase
|
|
17
17
|
|
|
@@ -47,7 +47,7 @@ Research implementation approach for Phase {phase}: {name}
|
|
|
47
47
|
</objective>
|
|
48
48
|
|
|
49
49
|
<files_to_read>
|
|
50
|
-
- {context_path} (USER DECISIONS from /maxsim:
|
|
50
|
+
- {context_path} (USER DECISIONS from /maxsim:plan discussion stage)
|
|
51
51
|
- {requirements_path} (Project requirements)
|
|
52
52
|
- {state_path} (Project decisions and history)
|
|
53
53
|
</files_to_read>
|
|
@@ -59,7 +59,7 @@ Phase description: {description}
|
|
|
59
59
|
<output>
|
|
60
60
|
Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
|
|
61
61
|
</output>",
|
|
62
|
-
subagent_type="
|
|
62
|
+
subagent_type="researcher",
|
|
63
63
|
model="{researcher_model}"
|
|
64
64
|
)
|
|
65
65
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<sanity_check>
|
|
2
2
|
Before executing any step in this workflow, verify:
|
|
3
|
-
1. The current directory contains a `.planning/` folder — if not, stop and tell the user to run `/maxsim:
|
|
3
|
+
1. The current directory contains a `.planning/` folder — if not, stop and tell the user to run `/maxsim:init` first.
|
|
4
4
|
2. `.planning/ROADMAP.md` exists — if not, stop and tell the user to initialize the project.
|
|
5
5
|
</sanity_check>
|
|
6
6
|
|
|
@@ -102,11 +102,11 @@ Context table (SDD principle):
|
|
|
102
102
|
|
|
103
103
|
**4b — Spawn Executor**
|
|
104
104
|
|
|
105
|
-
Fresh
|
|
105
|
+
Fresh executor agent with minimal context:
|
|
106
106
|
|
|
107
107
|
```
|
|
108
108
|
Task(
|
|
109
|
-
subagent_type="
|
|
109
|
+
subagent_type="executor",
|
|
110
110
|
model="{executor_model}",
|
|
111
111
|
prompt="
|
|
112
112
|
<objective>
|
|
@@ -155,13 +155,17 @@ Record the commit hash from the executor's output.
|
|
|
155
155
|
|
|
156
156
|
**4c — Review Stage 1: Spec Compliance**
|
|
157
157
|
|
|
158
|
-
Spawn
|
|
158
|
+
Spawn verifier to check implementation matches task spec:
|
|
159
159
|
|
|
160
160
|
```
|
|
161
161
|
Task(
|
|
162
|
-
subagent_type="
|
|
162
|
+
subagent_type="verifier",
|
|
163
163
|
model="{executor_model}",
|
|
164
164
|
prompt="
|
|
165
|
+
## Task: Review for spec compliance
|
|
166
|
+
|
|
167
|
+
## Suggested Skills: verification-gates, evidence-collection
|
|
168
|
+
|
|
165
169
|
<objective>
|
|
166
170
|
Review task {task_number} of plan {plan_id} for spec compliance.
|
|
167
171
|
</objective>
|
|
@@ -192,13 +196,17 @@ Task(
|
|
|
192
196
|
|
|
193
197
|
**4d — Review Stage 2: Code Quality**
|
|
194
198
|
|
|
195
|
-
Spawn
|
|
199
|
+
Spawn verifier to check for bugs, edge cases, and conventions:
|
|
196
200
|
|
|
197
201
|
```
|
|
198
202
|
Task(
|
|
199
|
-
subagent_type="
|
|
203
|
+
subagent_type="verifier",
|
|
200
204
|
model="{executor_model}",
|
|
201
205
|
prompt="
|
|
206
|
+
## Task: Review for code quality
|
|
207
|
+
|
|
208
|
+
## Suggested Skills: code-review
|
|
209
|
+
|
|
202
210
|
<objective>
|
|
203
211
|
Review task {task_number} of plan {plan_id} for code quality.
|
|
204
212
|
Spec compliance already verified.
|
|
@@ -232,7 +240,7 @@ If EITHER review stage returns FAIL:
|
|
|
232
240
|
|
|
233
241
|
```
|
|
234
242
|
Task(
|
|
235
|
-
subagent_type="
|
|
243
|
+
subagent_type="executor",
|
|
236
244
|
model="{executor_model}",
|
|
237
245
|
prompt="
|
|
238
246
|
<objective>
|
|
@@ -404,9 +412,9 @@ ls -1 .planning/phases/${PHASE_DIR_NAME}/*-SUMMARY.md 2>/dev/null | wc -l
|
|
|
404
412
|
|
|
405
413
|
| Condition | Route | Action |
|
|
406
414
|
|-----------|-------|--------|
|
|
407
|
-
| summaries < plans | **A: More plans** | Find next incomplete plan. Show next plan, suggest `/maxsim:
|
|
408
|
-
| summaries = plans, more phases exist | **B: Phase done** | Show completion, suggest `/maxsim:
|
|
409
|
-
| summaries = plans, last phase | **C: Milestone done** | Show banner, suggest `/maxsim:
|
|
415
|
+
| summaries < plans | **A: More plans** | Find next incomplete plan. Show next plan, suggest `/maxsim:execute {phase}` (SDD mode) to continue. |
|
|
416
|
+
| summaries = plans, more phases exist | **B: Phase done** | Show completion, suggest `/maxsim:execute {phase}` (verification) then `/maxsim:plan {next}`. |
|
|
417
|
+
| summaries = plans, last phase | **C: Milestone done** | Show banner, suggest `/maxsim:progress` (milestone completion) + `/maxsim:execute` (verification). |
|
|
410
418
|
|
|
411
419
|
All routes: recommend `/clear` first for fresh context.
|
|
412
420
|
</step>
|
|
@@ -422,5 +430,5 @@ All routes: recommend `/clear` first for fresh context.
|
|
|
422
430
|
</failure_handling>
|
|
423
431
|
|
|
424
432
|
<resumption>
|
|
425
|
-
Re-run `/maxsim:
|
|
433
|
+
Re-run `/maxsim:execute {phase}` (SDD mode) — discover_plans finds completed SUMMARYs, skips them, resumes from first incomplete plan. Within a plan, completed tasks (those with commits matching the plan pattern) can be detected and skipped.
|
|
426
434
|
</resumption>
|