maxsimcli 4.8.0 → 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.
- package/dist/assets/CHANGELOG.md +13 -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 +496 -91
- 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 +21 -2
- 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,42 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:batch
|
|
3
|
-
description: Decompose a large task into independent units and execute each in an isolated git worktree with its own PR
|
|
4
|
-
argument-hint: "<task description>"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Bash
|
|
12
|
-
- Task
|
|
13
|
-
- AskUserQuestion
|
|
14
|
-
---
|
|
15
|
-
<objective>
|
|
16
|
-
Decompose a large task into independent units, execute each in an isolated git worktree, and produce one PR per unit.
|
|
17
|
-
|
|
18
|
-
Batch mode uses the full MAXSIM system with worktree isolation:
|
|
19
|
-
- Spawns maxsim-planner (batch mode) to decompose the task into independent units
|
|
20
|
-
- Validates file independence across all units (no overlap allowed)
|
|
21
|
-
- Spawns one worktree agent per unit, each with its own branch and PR
|
|
22
|
-
- Tracks progress and handles failures with automatic retries
|
|
23
|
-
- Records batch metadata in `.planning/batch/`
|
|
24
|
-
|
|
25
|
-
**Use when:** Task has 3+ independent units that can be implemented in parallel.
|
|
26
|
-
**Do not use when:** Fewer than 3 units (use `/maxsim:quick` instead) or units have sequential dependencies.
|
|
27
|
-
</objective>
|
|
28
|
-
|
|
29
|
-
<execution_context>
|
|
30
|
-
@./workflows/batch.md
|
|
31
|
-
</execution_context>
|
|
32
|
-
|
|
33
|
-
<context>
|
|
34
|
-
$ARGUMENTS
|
|
35
|
-
|
|
36
|
-
Context files are resolved inside the workflow (`init quick`) and delegated via `<files_to_read>` blocks.
|
|
37
|
-
</context>
|
|
38
|
-
|
|
39
|
-
<process>
|
|
40
|
-
Execute the batch workflow from @./workflows/batch.md end-to-end.
|
|
41
|
-
Preserve all workflow gates (validation, decomposition, independence check, agent spawning, tracking, state updates).
|
|
42
|
-
</process>
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:check-drift
|
|
3
|
-
description: Compare .planning/ spec against codebase to detect drift and produce DRIFT-REPORT.md
|
|
4
|
-
argument-hint: "[optional: phase number to check, e.g., '4']"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Glob
|
|
9
|
-
- Grep
|
|
10
|
-
- Write
|
|
11
|
-
- Task
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<objective>
|
|
15
|
-
Compare the `.planning/` specification against the actual codebase using a drift-checker agent to produce a structured DRIFT-REPORT.md with severity-tiered findings.
|
|
16
|
-
|
|
17
|
-
The drift checker performs a fresh codebase scan every run, comparing all requirements, no-gos, conventions, and phase summaries against actual implementation. It reports both directions: spec ahead of code (missing implementations) and code ahead of spec (undocumented features).
|
|
18
|
-
|
|
19
|
-
Output: `.planning/DRIFT-REPORT.md` with YAML frontmatter, full inventory of findings, evidence per mismatch, and fix recommendations.
|
|
20
|
-
</objective>
|
|
21
|
-
|
|
22
|
-
<execution_context>
|
|
23
|
-
@./workflows/check-drift.md
|
|
24
|
-
</execution_context>
|
|
25
|
-
|
|
26
|
-
<context>
|
|
27
|
-
Phase filter: $ARGUMENTS (optional)
|
|
28
|
-
- If provided: Focus analysis on specific phase (e.g., "4")
|
|
29
|
-
- If not provided: Full .planning/ sweep across all phases and milestones
|
|
30
|
-
|
|
31
|
-
**Requirements:**
|
|
32
|
-
- `.planning/` directory must exist
|
|
33
|
-
- At least REQUIREMENTS.md or ROADMAP.md must be present
|
|
34
|
-
- If partial spec (some files missing), analysis runs on what exists with a warning
|
|
35
|
-
</context>
|
|
36
|
-
|
|
37
|
-
<process>
|
|
38
|
-
Execute the check-drift workflow from @./workflows/check-drift.md end-to-end.
|
|
39
|
-
|
|
40
|
-
After the workflow completes and DRIFT-REPORT.md is generated:
|
|
41
|
-
|
|
42
|
-
**If drift detected:** Offer realignment options:
|
|
43
|
-
- `/maxsim:realign to-code` -- Update `.planning/` to match codebase
|
|
44
|
-
- `/maxsim:realign to-spec` -- Create new phases to close implementation gaps
|
|
45
|
-
- Done -- No action needed, drift acknowledged
|
|
46
|
-
|
|
47
|
-
**If aligned:** Confirm alignment and offer next steps.
|
|
48
|
-
</process>
|
|
49
|
-
|
|
50
|
-
<success_criteria>
|
|
51
|
-
- [ ] .planning/DRIFT-REPORT.md created with YAML frontmatter
|
|
52
|
-
- [ ] Report includes severity-tiered findings (critical/warning/info)
|
|
53
|
-
- [ ] Report includes evidence per mismatch (spec line + code location)
|
|
54
|
-
- [ ] Report covers both directions (spec ahead of code + code ahead of spec)
|
|
55
|
-
- [ ] User presented with realignment options if drift detected
|
|
56
|
-
</success_criteria>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:check-todos
|
|
3
|
-
description: List pending todos and select one to work on
|
|
4
|
-
argument-hint: [area filter]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<objective>
|
|
13
|
-
List all pending todos, allow selection, load full context for the selected todo, and route to appropriate action.
|
|
14
|
-
|
|
15
|
-
Routes to the check-todos workflow which handles:
|
|
16
|
-
- Todo counting and listing with area filtering
|
|
17
|
-
- Interactive selection with full context loading
|
|
18
|
-
- Roadmap correlation checking
|
|
19
|
-
- Action routing (work now, add to phase, brainstorm, create phase)
|
|
20
|
-
- STATE.md updates and git commits
|
|
21
|
-
</objective>
|
|
22
|
-
|
|
23
|
-
<execution_context>
|
|
24
|
-
@./workflows/check-todos.md
|
|
25
|
-
@./references/thinking-partner.md
|
|
26
|
-
</execution_context>
|
|
27
|
-
|
|
28
|
-
<context>
|
|
29
|
-
Arguments: $ARGUMENTS (optional area filter)
|
|
30
|
-
|
|
31
|
-
Todo state and roadmap correlation are loaded in-workflow using `init todos` and targeted reads.
|
|
32
|
-
</context>
|
|
33
|
-
|
|
34
|
-
<process>
|
|
35
|
-
**Follow the check-todos workflow** from `@./workflows/check-todos.md`.
|
|
36
|
-
|
|
37
|
-
The workflow handles all logic including:
|
|
38
|
-
1. Todo existence checking
|
|
39
|
-
2. Area filtering
|
|
40
|
-
3. Interactive listing and selection
|
|
41
|
-
4. Full context loading with file summaries
|
|
42
|
-
5. Roadmap correlation checking
|
|
43
|
-
6. Action offering and execution
|
|
44
|
-
7. STATE.md updates
|
|
45
|
-
8. Git commits
|
|
46
|
-
</process>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:cleanup
|
|
3
|
-
description: Archive accumulated phase directories from completed milestones
|
|
4
|
-
---
|
|
5
|
-
<objective>
|
|
6
|
-
Archive phase directories from completed milestones into `.planning/milestones/v{X.Y}-phases/`.
|
|
7
|
-
|
|
8
|
-
Use when `.planning/phases/` has accumulated directories from past milestones.
|
|
9
|
-
</objective>
|
|
10
|
-
|
|
11
|
-
<execution_context>
|
|
12
|
-
@./workflows/cleanup.md
|
|
13
|
-
</execution_context>
|
|
14
|
-
|
|
15
|
-
<process>
|
|
16
|
-
Follow the cleanup workflow at @./workflows/cleanup.md.
|
|
17
|
-
Identify completed milestones, show a dry-run summary, and archive on confirmation.
|
|
18
|
-
</process>
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: prompt
|
|
3
|
-
name: maxsim:complete-milestone
|
|
4
|
-
description: Archive completed milestone and prepare for next version
|
|
5
|
-
argument-hint: <version>
|
|
6
|
-
allowed-tools:
|
|
7
|
-
- Read
|
|
8
|
-
- Write
|
|
9
|
-
- Bash
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<objective>
|
|
13
|
-
Mark milestone {{version}} complete, archive to milestones/, and update ROADMAP.md and REQUIREMENTS.md.
|
|
14
|
-
|
|
15
|
-
Purpose: Create historical record of shipped version, archive milestone artifacts (roadmap + requirements), and prepare for next milestone.
|
|
16
|
-
Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tagged.
|
|
17
|
-
</objective>
|
|
18
|
-
|
|
19
|
-
<execution_context>
|
|
20
|
-
**Load these files NOW (before proceeding):**
|
|
21
|
-
|
|
22
|
-
- @./workflows/complete-milestone.md (main workflow)
|
|
23
|
-
- @./templates/milestone-archive.md (archive template)
|
|
24
|
-
</execution_context>
|
|
25
|
-
|
|
26
|
-
<context>
|
|
27
|
-
**Project files:**
|
|
28
|
-
- `.planning/ROADMAP.md`
|
|
29
|
-
- `.planning/REQUIREMENTS.md`
|
|
30
|
-
- `.planning/STATE.md`
|
|
31
|
-
- `.planning/PROJECT.md`
|
|
32
|
-
|
|
33
|
-
**User input:**
|
|
34
|
-
|
|
35
|
-
- Version: {{version}} (e.g., "1.0", "1.1", "2.0")
|
|
36
|
-
</context>
|
|
37
|
-
|
|
38
|
-
<process>
|
|
39
|
-
|
|
40
|
-
**Follow complete-milestone.md workflow:**
|
|
41
|
-
|
|
42
|
-
0. **Check for audit:**
|
|
43
|
-
|
|
44
|
-
- Look for `.planning/v{{version}}-MILESTONE-AUDIT.md`
|
|
45
|
-
- If missing or stale: recommend `/maxsim:audit-milestone` first
|
|
46
|
-
- If audit status is `gaps_found`: recommend `/maxsim:plan-milestone-gaps` first
|
|
47
|
-
- If audit status is `passed`: proceed to step 1
|
|
48
|
-
|
|
49
|
-
```markdown
|
|
50
|
-
## Pre-flight Check
|
|
51
|
-
|
|
52
|
-
{If no v{{version}}-MILESTONE-AUDIT.md:}
|
|
53
|
-
⚠ No milestone audit found. Run `/maxsim:audit-milestone` first to verify
|
|
54
|
-
requirements coverage, cross-phase integration, and E2E flows.
|
|
55
|
-
|
|
56
|
-
{If audit has gaps:}
|
|
57
|
-
⚠ Milestone audit found gaps. Run `/maxsim:plan-milestone-gaps` to create
|
|
58
|
-
phases that close the gaps, or proceed anyway to accept as tech debt.
|
|
59
|
-
|
|
60
|
-
{If audit passed:}
|
|
61
|
-
✓ Milestone audit passed. Proceeding with completion.
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
1. **Verify readiness:**
|
|
65
|
-
|
|
66
|
-
- Check all phases in milestone have completed plans (SUMMARY.md exists)
|
|
67
|
-
- Present milestone scope and stats
|
|
68
|
-
- Wait for confirmation
|
|
69
|
-
|
|
70
|
-
2. **Gather stats:**
|
|
71
|
-
|
|
72
|
-
- Count phases, plans, tasks
|
|
73
|
-
- Calculate git range, file changes, LOC
|
|
74
|
-
- Extract timeline from git log
|
|
75
|
-
- Present summary, confirm
|
|
76
|
-
|
|
77
|
-
3. **Extract accomplishments:**
|
|
78
|
-
|
|
79
|
-
- Read all phase SUMMARY.md files in milestone range
|
|
80
|
-
- Extract 4-6 key accomplishments
|
|
81
|
-
- Present for approval
|
|
82
|
-
|
|
83
|
-
4. **Archive milestone:**
|
|
84
|
-
|
|
85
|
-
- Create `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
86
|
-
- Extract full phase details from ROADMAP.md
|
|
87
|
-
- Fill milestone-archive.md template
|
|
88
|
-
- Update ROADMAP.md to one-line summary with link
|
|
89
|
-
|
|
90
|
-
5. **Archive requirements:**
|
|
91
|
-
|
|
92
|
-
- Create `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
93
|
-
- Mark all v1 requirements as complete (checkboxes checked)
|
|
94
|
-
- Note requirement outcomes (validated, adjusted, dropped)
|
|
95
|
-
- Delete `.planning/REQUIREMENTS.md` (fresh one created for next milestone)
|
|
96
|
-
|
|
97
|
-
6. **Update PROJECT.md:**
|
|
98
|
-
|
|
99
|
-
- Add "Current State" section with shipped version
|
|
100
|
-
- Add "Next Milestone Goals" section
|
|
101
|
-
- Archive previous content in `<details>` (if v1.1+)
|
|
102
|
-
|
|
103
|
-
7. **Commit and tag:**
|
|
104
|
-
|
|
105
|
-
- Stage: MILESTONES.md, PROJECT.md, ROADMAP.md, STATE.md, archive files
|
|
106
|
-
- Commit: `chore: archive v{{version}} milestone`
|
|
107
|
-
- Tag: `git tag -a v{{version}} -m "[milestone summary]"`
|
|
108
|
-
- Ask about pushing tag
|
|
109
|
-
|
|
110
|
-
8. **Offer next steps:**
|
|
111
|
-
- `/maxsim:new-milestone` — start next milestone (questioning → research → requirements → roadmap)
|
|
112
|
-
|
|
113
|
-
</process>
|
|
114
|
-
|
|
115
|
-
<success_criteria>
|
|
116
|
-
|
|
117
|
-
- Milestone archived to `.planning/milestones/v{{version}}-ROADMAP.md`
|
|
118
|
-
- Requirements archived to `.planning/milestones/v{{version}}-REQUIREMENTS.md`
|
|
119
|
-
- `.planning/REQUIREMENTS.md` deleted (fresh for next milestone)
|
|
120
|
-
- ROADMAP.md collapsed to one-line entry
|
|
121
|
-
- PROJECT.md updated with current state
|
|
122
|
-
- Git tag v{{version}} created
|
|
123
|
-
- Commit successful
|
|
124
|
-
- User knows next steps (including need for fresh requirements)
|
|
125
|
-
</success_criteria>
|
|
126
|
-
|
|
127
|
-
<critical_rules>
|
|
128
|
-
|
|
129
|
-
- **Load workflow first:** Read complete-milestone.md before executing
|
|
130
|
-
- **Verify completion:** All phases must have SUMMARY.md files
|
|
131
|
-
- **User confirmation:** Wait for approval at verification gates
|
|
132
|
-
- **Archive before deleting:** Always create archive files before updating/deleting originals
|
|
133
|
-
- **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
|
|
134
|
-
- **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
|
|
135
|
-
- **Fresh requirements:** Next milestone starts with `/maxsim:new-milestone` which includes requirements definition
|
|
136
|
-
</critical_rules>
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:discuss-phase
|
|
3
|
-
description: Gather phase context through adaptive questioning before planning
|
|
4
|
-
argument-hint: "<phase> [--auto]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- AskUserQuestion
|
|
12
|
-
- Task
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
<objective>
|
|
16
|
-
Extract implementation decisions that downstream agents need — researcher and planner will use CONTEXT.md to know what to investigate and what choices are locked.
|
|
17
|
-
|
|
18
|
-
**How it works:**
|
|
19
|
-
1. Analyze the phase to identify gray areas (UI, UX, behavior, etc.)
|
|
20
|
-
2. Present gray areas — user selects which to discuss
|
|
21
|
-
3. Deep-dive each selected area until satisfied
|
|
22
|
-
4. Create CONTEXT.md with decisions that guide research and planning
|
|
23
|
-
|
|
24
|
-
**Output:** `{phase_num}-CONTEXT.md` — decisions clear enough that downstream agents can act without asking the user again
|
|
25
|
-
|
|
26
|
-
**CRITICAL — AskUserQuestion tool mandate:**
|
|
27
|
-
Every single question to the user MUST use the `AskUserQuestion` tool. NEVER ask questions as plain text in your response. This includes gray area selection, deep-dive questions, continuation prompts, and any other user interaction. If you need the user's input, use `AskUserQuestion`. No exceptions.
|
|
28
|
-
</objective>
|
|
29
|
-
|
|
30
|
-
<execution_context>
|
|
31
|
-
@./workflows/discuss-phase.md
|
|
32
|
-
@./references/thinking-partner.md
|
|
33
|
-
@./templates/context.md
|
|
34
|
-
</execution_context>
|
|
35
|
-
|
|
36
|
-
<context>
|
|
37
|
-
Phase number: $ARGUMENTS (required)
|
|
38
|
-
|
|
39
|
-
Context files are resolved in-workflow using `init phase-op` and roadmap/state tool calls.
|
|
40
|
-
</context>
|
|
41
|
-
|
|
42
|
-
<process>
|
|
43
|
-
1. Validate phase number (error if missing or not in roadmap)
|
|
44
|
-
2. Check if CONTEXT.md exists (offer update/view/skip if yes)
|
|
45
|
-
3. **Analyze phase** — Identify domain and generate phase-specific gray areas
|
|
46
|
-
4. **Present gray areas** — Multi-select: which to discuss? (NO skip option)
|
|
47
|
-
5. **Deep-dive each area** — 4 questions per area, then offer more/next
|
|
48
|
-
6. **Write CONTEXT.md** — Sections match areas discussed
|
|
49
|
-
7. Offer next steps (research or plan)
|
|
50
|
-
|
|
51
|
-
**CRITICAL: Scope guardrail**
|
|
52
|
-
- Phase boundary from ROADMAP.md is FIXED
|
|
53
|
-
- Discussion clarifies HOW to implement, not WHETHER to add more
|
|
54
|
-
- If user suggests new capabilities: "That's its own phase. I'll note it for later."
|
|
55
|
-
- Capture deferred ideas — don't lose them, don't act on them
|
|
56
|
-
|
|
57
|
-
**Domain-aware gray areas:**
|
|
58
|
-
Gray areas depend on what's being built. Analyze the phase goal:
|
|
59
|
-
- Something users SEE → layout, density, interactions, states
|
|
60
|
-
- Something users CALL → responses, errors, auth, versioning
|
|
61
|
-
- Something users RUN → output format, flags, modes, error handling
|
|
62
|
-
- Something users READ → structure, tone, depth, flow
|
|
63
|
-
- Something being ORGANIZED → criteria, grouping, naming, exceptions
|
|
64
|
-
|
|
65
|
-
Generate 3-4 **phase-specific** gray areas, not generic categories.
|
|
66
|
-
|
|
67
|
-
**Probing depth:**
|
|
68
|
-
- Ask 4 questions per area before checking
|
|
69
|
-
- "More questions about [area], or move to next?"
|
|
70
|
-
- If more → ask 4 more, check again
|
|
71
|
-
- After all areas → "Ready to create context?"
|
|
72
|
-
|
|
73
|
-
**Do NOT ask about (Claude handles these):**
|
|
74
|
-
- Technical implementation
|
|
75
|
-
- Architecture choices
|
|
76
|
-
- Performance concerns
|
|
77
|
-
- Scope expansion
|
|
78
|
-
</process>
|
|
79
|
-
|
|
80
|
-
<success_criteria>
|
|
81
|
-
- Gray areas identified through intelligent analysis
|
|
82
|
-
- User chose which areas to discuss
|
|
83
|
-
- Each selected area explored until satisfied
|
|
84
|
-
- Scope creep redirected to deferred ideas
|
|
85
|
-
- CONTEXT.md captures decisions, not vague vision
|
|
86
|
-
- User knows next steps
|
|
87
|
-
</success_criteria>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:discuss
|
|
3
|
-
description: Triage a problem, idea, or bug into the right size -- todo, quick task, or phase
|
|
4
|
-
argument-hint: "[description or todo reference]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- AskUserQuestion
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
<objective>
|
|
15
|
-
Triage an unknown problem, idea, or bug into the right size -- quick todo, quick task, or new phase -- through collaborative discussion.
|
|
16
|
-
|
|
17
|
-
**How it works:**
|
|
18
|
-
1. User describes a problem, idea, or bug (or references an existing todo)
|
|
19
|
-
2. System asks 2-3 adaptive clarifying questions to understand scope
|
|
20
|
-
3. System proposes routing (todo vs phase) with explanation -- user confirms via AskUserQuestion before any filing
|
|
21
|
-
4. System files the item (todo or phase) using existing tools
|
|
22
|
-
5. System offers next action choices (work now, save for later, plan phase)
|
|
23
|
-
|
|
24
|
-
**Modes:**
|
|
25
|
-
- **No-arg mode:** User describes the problem interactively after invocation
|
|
26
|
-
- **With-arg mode:** User provides a description or existing todo reference inline (e.g., `/maxsim:discuss auth tokens expire too fast` or `/maxsim:discuss fix-login-redirect`)
|
|
27
|
-
|
|
28
|
-
**Key distinction from `/maxsim:discuss-phase`:**
|
|
29
|
-
- `/maxsim:discuss` triages an UNKNOWN problem into the right size. It answers: "Is this a todo or a phase?"
|
|
30
|
-
- `/maxsim:discuss-phase` gathers implementation decisions for a KNOWN phase. It answers: "How should we build this phase?"
|
|
31
|
-
- These are complementary, not overlapping. After `/maxsim:discuss` creates a phase, the natural next step is `/maxsim:discuss-phase` to gather context for it.
|
|
32
|
-
|
|
33
|
-
**CRITICAL -- AskUserQuestion tool mandate:**
|
|
34
|
-
Every single question to the user MUST use the `AskUserQuestion` tool. NEVER ask questions as plain text in your response. This includes clarifying questions, triage proposals, confirmation prompts, and next-action offers. If you need the user's input, use `AskUserQuestion`. No exceptions.
|
|
35
|
-
|
|
36
|
-
**Thinking-partner behaviors:**
|
|
37
|
-
Apply collaborative discussion behaviors -- challenge vague descriptions, surface unstated assumptions, propose alternatives with trade-offs. The user should feel like they are working through a problem with a collaborator, not filling out a form.
|
|
38
|
-
</objective>
|
|
39
|
-
|
|
40
|
-
<execution_context>
|
|
41
|
-
@./workflows/discuss.md
|
|
42
|
-
@./references/thinking-partner.md
|
|
43
|
-
</execution_context>
|
|
44
|
-
|
|
45
|
-
<context>
|
|
46
|
-
Arguments: $ARGUMENTS (optional description or todo reference)
|
|
47
|
-
|
|
48
|
-
State is resolved in-workflow via `init todos` and targeted reads.
|
|
49
|
-
</context>
|
|
50
|
-
|
|
51
|
-
<process>
|
|
52
|
-
**Follow the discuss workflow** from `@./workflows/discuss.md`.
|
|
53
|
-
|
|
54
|
-
The workflow handles all logic including:
|
|
55
|
-
1. Project state loading and todo initialization
|
|
56
|
-
2. Existing todo detection (if argument matches a pending todo)
|
|
57
|
-
3. Adaptive clarifying questions (2-3 minimum, more if complex)
|
|
58
|
-
4. Size classification triage with user confirmation
|
|
59
|
-
5. Filing as todo (using existing maxsim-tools.cjs commands) or phase (using phase add)
|
|
60
|
-
6. Post-filing next action offer
|
|
61
|
-
7. Git commits
|
|
62
|
-
</process>
|
|
63
|
-
|
|
64
|
-
<success_criteria>
|
|
65
|
-
- User's problem/idea/bug is understood through collaborative discussion
|
|
66
|
-
- Routing decision confirmed by user before any filing
|
|
67
|
-
- Item filed as todo or phase using existing tools
|
|
68
|
-
- Next action offered after filing
|
|
69
|
-
- Git commit created for the filed item
|
|
70
|
-
</success_criteria>
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:execute-phase
|
|
3
|
-
description: Execute all plans in a phase with wave-based parallelization
|
|
4
|
-
argument-hint: "<phase-number> [--gaps-only]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Edit
|
|
9
|
-
- Glob
|
|
10
|
-
- Grep
|
|
11
|
-
- Bash
|
|
12
|
-
- Task
|
|
13
|
-
- TodoWrite
|
|
14
|
-
- AskUserQuestion
|
|
15
|
-
---
|
|
16
|
-
<objective>
|
|
17
|
-
Execute all plans in a phase using wave-based parallel execution.
|
|
18
|
-
|
|
19
|
-
Orchestrator stays lean: discover plans, analyze dependencies, group into waves, spawn subagents, collect results. Each subagent loads the full execute-plan context and handles its own plan.
|
|
20
|
-
|
|
21
|
-
Context budget: ~15% orchestrator, 100% fresh per subagent.
|
|
22
|
-
</objective>
|
|
23
|
-
|
|
24
|
-
<execution_context>
|
|
25
|
-
@./workflows/execute-phase.md
|
|
26
|
-
@./references/ui-brand.md
|
|
27
|
-
</execution_context>
|
|
28
|
-
|
|
29
|
-
<context>
|
|
30
|
-
Phase: $ARGUMENTS
|
|
31
|
-
|
|
32
|
-
**Flags:**
|
|
33
|
-
- `--gaps-only` — Execute only gap closure plans (plans with `gap_closure: true` in frontmatter). Use after verify-work creates fix plans.
|
|
34
|
-
|
|
35
|
-
Context files are resolved inside the workflow via `maxsim-tools init execute-phase` and per-subagent `<files_to_read>` blocks.
|
|
36
|
-
</context>
|
|
37
|
-
|
|
38
|
-
<process>
|
|
39
|
-
Execute the execute-phase workflow from @./workflows/execute-phase.md end-to-end.
|
|
40
|
-
Preserve all workflow gates (wave execution, checkpoint handling, verification, state updates, routing).
|
|
41
|
-
</process>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:health
|
|
3
|
-
description: Diagnose planning directory health and optionally repair issues
|
|
4
|
-
argument-hint: [--repair]
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Write
|
|
9
|
-
- AskUserQuestion
|
|
10
|
-
---
|
|
11
|
-
<objective>
|
|
12
|
-
Validate `.planning/` directory integrity and report actionable issues. Checks for missing files, invalid configurations, inconsistent state, and orphaned plans.
|
|
13
|
-
</objective>
|
|
14
|
-
|
|
15
|
-
<execution_context>
|
|
16
|
-
@./workflows/health.md
|
|
17
|
-
</execution_context>
|
|
18
|
-
|
|
19
|
-
<process>
|
|
20
|
-
Execute the health workflow from @./workflows/health.md end-to-end.
|
|
21
|
-
Parse --repair flag from arguments and pass to workflow.
|
|
22
|
-
</process>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:init-existing
|
|
3
|
-
description: Initialize MAXSIM in an existing project with codebase scanning and smart defaults
|
|
4
|
-
argument-hint: "[--auto]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Write
|
|
9
|
-
- Task
|
|
10
|
-
- AskUserQuestion
|
|
11
|
-
---
|
|
12
|
-
<context>
|
|
13
|
-
**Flags:**
|
|
14
|
-
- `--auto` — Automatic mode. Runs full codebase scan, infers everything from code, creates all docs without interaction. Review recommended after auto mode.
|
|
15
|
-
</context>
|
|
16
|
-
|
|
17
|
-
<objective>
|
|
18
|
-
Initialize MAXSIM in an existing codebase through scan-first flow: codebase analysis, conflict resolution, scan-informed questioning, stage-aware document generation.
|
|
19
|
-
|
|
20
|
-
**Creates:**
|
|
21
|
-
- `.planning/codebase/` — full codebase analysis (4 mapper agents)
|
|
22
|
-
- `.planning/PROJECT.md` — project context with current state summary
|
|
23
|
-
- `.planning/config.json` — workflow preferences
|
|
24
|
-
- `.planning/REQUIREMENTS.md` — stage-aware requirements
|
|
25
|
-
- `.planning/ROADMAP.md` — milestone + suggested phases
|
|
26
|
-
- `.planning/STATE.md` — pre-populated project memory
|
|
27
|
-
- `.planning/DECISIONS.md` — key decisions with rationale (artefakte)
|
|
28
|
-
- `.planning/ACCEPTANCE-CRITERIA.md` — measurable success criteria (artefakte)
|
|
29
|
-
- `.planning/NO-GOS.md` — explicit exclusions and anti-patterns (artefakte)
|
|
30
|
-
|
|
31
|
-
**After this command:** Run `/maxsim:plan-phase 1` to start execution.
|
|
32
|
-
</objective>
|
|
33
|
-
|
|
34
|
-
<execution_context>
|
|
35
|
-
@./workflows/init-existing.md
|
|
36
|
-
@./references/questioning.md
|
|
37
|
-
@./references/thinking-partner.md
|
|
38
|
-
@./references/ui-brand.md
|
|
39
|
-
@./templates/project.md
|
|
40
|
-
@./templates/requirements.md
|
|
41
|
-
</execution_context>
|
|
42
|
-
|
|
43
|
-
<process>
|
|
44
|
-
Execute the init-existing workflow from @./workflows/init-existing.md end-to-end.
|
|
45
|
-
Preserve all workflow gates (conflict resolution, scan completion, validation, approvals, commits).
|
|
46
|
-
</process>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:insert-phase
|
|
3
|
-
description: Insert urgent work as decimal phase (e.g., 72.1) between existing phases
|
|
4
|
-
argument-hint: <after> <description>
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Write
|
|
8
|
-
- Bash
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
<objective>
|
|
12
|
-
Insert a decimal phase for urgent work discovered mid-milestone that must be completed between existing integer phases.
|
|
13
|
-
|
|
14
|
-
Uses decimal numbering (72.1, 72.2, etc.) to preserve the logical sequence of planned phases while accommodating urgent insertions.
|
|
15
|
-
|
|
16
|
-
Purpose: Handle urgent work discovered during execution without renumbering entire roadmap.
|
|
17
|
-
</objective>
|
|
18
|
-
|
|
19
|
-
<execution_context>
|
|
20
|
-
@./workflows/insert-phase.md
|
|
21
|
-
</execution_context>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
Arguments: $ARGUMENTS (format: <after-phase-number> <description>)
|
|
25
|
-
|
|
26
|
-
Roadmap and state are resolved in-workflow via `init phase-op` and targeted tool calls.
|
|
27
|
-
</context>
|
|
28
|
-
|
|
29
|
-
<process>
|
|
30
|
-
Execute the insert-phase workflow from @./workflows/insert-phase.md end-to-end.
|
|
31
|
-
Preserve all validation gates (argument parsing, phase verification, decimal calculation, roadmap updates).
|
|
32
|
-
</process>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: maxsim:list-phase-assumptions
|
|
3
|
-
description: Surface Claude's assumptions about a phase approach before planning
|
|
4
|
-
argument-hint: "[phase]"
|
|
5
|
-
allowed-tools:
|
|
6
|
-
- Read
|
|
7
|
-
- Bash
|
|
8
|
-
- Grep
|
|
9
|
-
- Glob
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
<objective>
|
|
13
|
-
Analyze a phase and present Claude's assumptions about technical approach, implementation order, scope boundaries, risk areas, and dependencies.
|
|
14
|
-
|
|
15
|
-
Purpose: Help users see what Claude thinks BEFORE planning begins - enabling course correction early when assumptions are wrong.
|
|
16
|
-
Output: Conversational output only (no file creation) - ends with "What do you think?" prompt
|
|
17
|
-
</objective>
|
|
18
|
-
|
|
19
|
-
<execution_context>
|
|
20
|
-
@./workflows/list-phase-assumptions.md
|
|
21
|
-
</execution_context>
|
|
22
|
-
|
|
23
|
-
<context>
|
|
24
|
-
Phase number: $ARGUMENTS (required)
|
|
25
|
-
|
|
26
|
-
Project state and roadmap are loaded in-workflow using targeted reads.
|
|
27
|
-
</context>
|
|
28
|
-
|
|
29
|
-
<process>
|
|
30
|
-
1. Validate phase number argument (error if missing or invalid)
|
|
31
|
-
2. Check if phase exists in roadmap
|
|
32
|
-
3. Follow list-phase-assumptions.md workflow:
|
|
33
|
-
- Analyze roadmap description
|
|
34
|
-
- Surface assumptions about: technical approach, implementation order, scope, risks, dependencies
|
|
35
|
-
- Present assumptions clearly
|
|
36
|
-
- Prompt "What do you think?"
|
|
37
|
-
4. Gather feedback and offer next steps
|
|
38
|
-
</process>
|
|
39
|
-
|
|
40
|
-
<success_criteria>
|
|
41
|
-
|
|
42
|
-
- Phase validated against roadmap
|
|
43
|
-
- Assumptions surfaced across five areas
|
|
44
|
-
- User prompted for feedback
|
|
45
|
-
- User knows next steps (discuss context, plan phase, or correct assumptions)
|
|
46
|
-
</success_criteria>
|