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.
Files changed (161) hide show
  1. package/dist/assets/CHANGELOG.md +13 -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 +234 -17
  87. package/dist/install.cjs.map +1 -1
  88. package/dist/mcp-server.cjs +21 -2
  89. package/dist/mcp-server.cjs.map +1 -1
  90. package/dist/skills-CjFWZIGM.cjs.map +1 -1
  91. package/package.json +1 -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,71 +0,0 @@
1
- ---
2
- name: maxsim:map-codebase
3
- description: Analyze codebase with parallel mapper agents to produce .planning/codebase/ documents
4
- argument-hint: "[optional: specific area to map, e.g., 'api' or 'auth']"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Glob
9
- - Grep
10
- - Write
11
- - Task
12
- ---
13
-
14
- <objective>
15
- Analyze existing codebase using parallel maxsim-codebase-mapper agents to produce structured codebase documents.
16
-
17
- Each mapper agent explores a focus area and **writes documents directly** to `.planning/codebase/`. The orchestrator only receives confirmations, keeping context usage minimal.
18
-
19
- Output: .planning/codebase/ folder with 7 structured documents about the codebase state.
20
- </objective>
21
-
22
- <execution_context>
23
- @./workflows/map-codebase.md
24
- </execution_context>
25
-
26
- <context>
27
- Focus area: $ARGUMENTS (optional - if provided, tells agents to focus on specific subsystem)
28
-
29
- **Load project state if exists:**
30
- Check for .planning/STATE.md - loads context if project already initialized
31
-
32
- **This command can run:**
33
- - Before /maxsim:new-project (brownfield codebases) - creates codebase map first
34
- - After /maxsim:new-project (greenfield codebases) - updates codebase map as code evolves
35
- - Anytime to refresh codebase understanding
36
- </context>
37
-
38
- <when_to_use>
39
- **Use map-codebase for:**
40
- - Brownfield projects before initialization (understand existing code first)
41
- - Refreshing codebase map after significant changes
42
- - Onboarding to an unfamiliar codebase
43
- - Before major refactoring (understand current state)
44
- - When STATE.md references outdated codebase info
45
-
46
- **Skip map-codebase for:**
47
- - Greenfield projects with no code yet (nothing to map)
48
- - Trivial codebases (<5 files)
49
- </when_to_use>
50
-
51
- <process>
52
- 1. Check if .planning/codebase/ already exists (offer to refresh or skip)
53
- 2. Create .planning/codebase/ directory structure
54
- 3. Spawn 4 parallel maxsim-codebase-mapper agents:
55
- - Agent 1: tech focus → writes STACK.md, INTEGRATIONS.md
56
- - Agent 2: arch focus → writes ARCHITECTURE.md, STRUCTURE.md
57
- - Agent 3: quality focus → writes CONVENTIONS.md, TESTING.md
58
- - Agent 4: concerns focus → writes CONCERNS.md
59
- 4. Wait for agents to complete, collect confirmations (NOT document contents)
60
- 5. Verify all 7 documents exist with line counts
61
- 6. Commit codebase map
62
- 7. Offer next steps (typically: /maxsim:new-project or /maxsim:plan-phase)
63
- </process>
64
-
65
- <success_criteria>
66
- - [ ] .planning/codebase/ directory created
67
- - [ ] All 7 codebase documents written by mapper agents
68
- - [ ] Documents follow template structure
69
- - [ ] Parallel agents completed without errors
70
- - [ ] User knows next steps
71
- </success_criteria>
@@ -1,44 +0,0 @@
1
- ---
2
- name: maxsim:new-milestone
3
- description: Start a new milestone cycle — update PROJECT.md and route to requirements
4
- argument-hint: "[milestone name, e.g., 'v1.1 Notifications']"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Task
10
- - AskUserQuestion
11
- ---
12
- <objective>
13
- Start a new milestone: questioning → research (optional) → requirements → roadmap.
14
-
15
- Brownfield equivalent of new-project. Project exists, PROJECT.md has history. Gathers "what's next", updates PROJECT.md, then runs requirements → roadmap cycle.
16
-
17
- **Creates/Updates:**
18
- - `.planning/PROJECT.md` — updated with new milestone goals
19
- - `.planning/research/` — domain research (optional, NEW features only)
20
- - `.planning/REQUIREMENTS.md` — scoped requirements for this milestone
21
- - `.planning/ROADMAP.md` — phase structure (continues numbering)
22
- - `.planning/STATE.md` — reset for new milestone
23
-
24
- **After:** `/maxsim:plan-phase [N]` to start execution.
25
- </objective>
26
-
27
- <execution_context>
28
- @./workflows/new-milestone.md
29
- @./references/questioning.md
30
- @./references/ui-brand.md
31
- @./templates/project.md
32
- @./templates/requirements.md
33
- </execution_context>
34
-
35
- <context>
36
- Milestone name: $ARGUMENTS (optional - will prompt if not provided)
37
-
38
- Project and milestone context files are resolved inside the workflow (`init new-milestone`) and delegated via `<files_to_read>` blocks where subagents are used.
39
- </context>
40
-
41
- <process>
42
- Execute the new-milestone workflow from @./workflows/new-milestone.md end-to-end.
43
- Preserve all workflow gates (validation, questioning, research, requirements, roadmap approval, commits).
44
- </process>
@@ -1,46 +0,0 @@
1
- ---
2
- name: maxsim:new-project
3
- description: Initialize a new project with deep context gathering and PROJECT.md
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. After config questions, runs research → requirements → roadmap without further interaction. Expects idea document via @ reference.
15
- </context>
16
-
17
- <objective>
18
- Initialize a new project through unified flow: questioning → research (optional) → requirements → roadmap.
19
-
20
- **Creates:**
21
- - `.planning/PROJECT.md` — project context
22
- - `.planning/config.json` — workflow preferences
23
- - `.planning/research/` — domain research (optional)
24
- - `.planning/REQUIREMENTS.md` — scoped requirements
25
- - `.planning/ROADMAP.md` — phase structure
26
- - `.planning/STATE.md` — 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/new-project.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 new-project workflow from @./workflows/new-project.md end-to-end.
45
- Preserve all workflow gates (validation, approvals, commits, routing).
46
- </process>
@@ -1,38 +0,0 @@
1
- ---
2
- name: maxsim:pause-work
3
- description: Create context handoff when pausing work mid-phase
4
- allowed-tools:
5
- - Read
6
- - Write
7
- - Bash
8
- ---
9
-
10
- <objective>
11
- Create `.continue-here.md` handoff file to preserve complete work state across sessions.
12
-
13
- Routes to the pause-work workflow which handles:
14
- - Current phase detection from recent files
15
- - Complete state gathering (position, completed work, remaining work, decisions, blockers)
16
- - Handoff file creation with all context sections
17
- - Git commit as WIP
18
- - Resume instructions
19
- </objective>
20
-
21
- <execution_context>
22
- @./workflows/pause-work.md
23
- </execution_context>
24
-
25
- <context>
26
- State and phase progress are gathered in-workflow with targeted reads.
27
- </context>
28
-
29
- <process>
30
- **Follow the pause-work workflow** from `@./workflows/pause-work.md`.
31
-
32
- The workflow handles all logic including:
33
- 1. Phase directory detection
34
- 2. State gathering with user clarifications
35
- 3. Handoff file writing with timestamp
36
- 4. Git commit
37
- 5. Confirmation with resume instructions
38
- </process>
@@ -1,34 +0,0 @@
1
- ---
2
- name: maxsim:plan-milestone-gaps
3
- description: Create phases to close all gaps identified by milestone audit
4
- allowed-tools:
5
- - Read
6
- - Write
7
- - Bash
8
- - Glob
9
- - Grep
10
- - AskUserQuestion
11
- ---
12
- <objective>
13
- Create all phases necessary to close gaps identified by `/maxsim:audit-milestone`.
14
-
15
- Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
16
-
17
- One command creates all fix phases — no manual `/maxsim:add-phase` per gap.
18
- </objective>
19
-
20
- <execution_context>
21
- @./workflows/plan-milestone-gaps.md
22
- </execution_context>
23
-
24
- <context>
25
- **Audit results:**
26
- Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
27
-
28
- Original intent and current planning state are loaded on demand inside the workflow.
29
- </context>
30
-
31
- <process>
32
- Execute the plan-milestone-gaps workflow from @./workflows/plan-milestone-gaps.md end-to-end.
33
- Preserve all workflow gates (audit loading, prioritization, phase grouping, user confirmation, roadmap updates).
34
- </process>
@@ -1,44 +0,0 @@
1
- ---
2
- name: maxsim:plan-phase
3
- description: Create detailed phase plan (PLAN.md) with verification loop
4
- argument-hint: "[phase] [--auto] [--research] [--skip-research] [--gaps] [--skip-verify]"
5
- agent: maxsim-planner
6
- allowed-tools:
7
- - Read
8
- - Write
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Task
13
- - WebFetch
14
- - mcp__context7__*
15
- ---
16
- <objective>
17
- Create executable phase prompts (PLAN.md files) for a roadmap phase with integrated research and verification.
18
-
19
- **Default flow:** Research (if needed) → Plan → Verify → Done
20
-
21
- **Orchestrator role:** Parse arguments, validate phase, research domain (unless skipped), spawn maxsim-planner, verify with maxsim-plan-checker, iterate until pass or max iterations, present results.
22
- </objective>
23
-
24
- <execution_context>
25
- @./workflows/plan-phase.md
26
- @./references/ui-brand.md
27
- </execution_context>
28
-
29
- <context>
30
- Phase number: $ARGUMENTS (optional — auto-detects next unplanned phase if omitted)
31
-
32
- **Flags:**
33
- - `--research` — Force re-research even if RESEARCH.md exists
34
- - `--skip-research` — Skip research, go straight to planning
35
- - `--gaps` — Gap closure mode (reads VERIFICATION.md, skips research)
36
- - `--skip-verify` — Skip verification loop
37
-
38
- Normalize phase input in step 2 before any directory lookups.
39
- </context>
40
-
41
- <process>
42
- Execute the plan-phase workflow from @./workflows/plan-phase.md end-to-end.
43
- Preserve all workflow gates (validation, research, planning, verification loop, routing).
44
- </process>
@@ -1,39 +0,0 @@
1
- ---
2
- name: maxsim:realign
3
- description: Correct spec-code divergence by updating spec to match code, or generating fix phases to match spec
4
- argument-hint: "[to-code | to-spec]"
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Edit
9
- - Bash
10
- - Glob
11
- - Grep
12
- - Task
13
- - AskUserQuestion
14
- ---
15
- <objective>
16
- Correct spec-code divergence detected by `/maxsim:check-drift`. Updates `.planning/` to match code (realign-to-code), or generates fix phases to make code match spec (realign-to-spec).
17
-
18
- Purpose: After a drift report is generated, this command acts on the findings -- either accepting code reality into the spec or creating phases to close implementation gaps.
19
-
20
- Pre-requisite: A DRIFT-REPORT.md must exist in `.planning/`. Run `/maxsim:check-drift` first if none exists.
21
- </objective>
22
-
23
- <execution_context>
24
- @./workflows/realign.md
25
- </execution_context>
26
-
27
- <context>
28
- Direction: $ARGUMENTS
29
- - `to-code` -- Update `.planning/` to match current codebase (spec follows code)
30
- - `to-spec` -- Generate fix phases to make code match spec (code follows spec)
31
- - If not provided: workflow will ask which direction
32
-
33
- Reads the latest `.planning/DRIFT-REPORT.md` produced by `/maxsim:check-drift`.
34
- </context>
35
-
36
- <process>
37
- Execute the realign workflow from @./workflows/realign.md end-to-end.
38
- Pass $ARGUMENTS as the direction parameter.
39
- </process>
@@ -1,110 +0,0 @@
1
- ---
2
- description: Reapply local modifications after a MAXSIM update
3
- allowed-tools: Read, Write, Edit, Bash, Glob, Grep, AskUserQuestion
4
- ---
5
-
6
- <purpose>
7
- After a MAXSIM update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.
8
- </purpose>
9
-
10
- <process>
11
-
12
- ## Step 1: Detect backed-up patches
13
-
14
- Check for local patches directory:
15
-
16
- ```bash
17
- # Global install (path templated at install time)
18
- PATCHES_DIR=~/.claude/maxsim-local-patches
19
- # Local install fallback
20
- if [ ! -d "$PATCHES_DIR" ]; then
21
- PATCHES_DIR=./.claude/maxsim-local-patches
22
- fi
23
- ```
24
-
25
- Read `backup-meta.json` from the patches directory.
26
-
27
- **If no patches found:**
28
- ```
29
- No local patches found. Nothing to reapply.
30
-
31
- Local patches are automatically saved when you run /maxsim:update
32
- after modifying any MAXSIM workflow, command, or agent files.
33
- ```
34
- Exit.
35
-
36
- ## Step 2: Show patch summary
37
-
38
- ```
39
- ## Local Patches to Reapply
40
-
41
- **Backed up from:** v{from_version}
42
- **Current version:** {read VERSION file}
43
- **Files modified:** {count}
44
-
45
- | # | File | Status |
46
- |---|------|--------|
47
- | 1 | {file_path} | Pending |
48
- | 2 | {file_path} | Pending |
49
- ```
50
-
51
- ## Step 3: Merge each file
52
-
53
- For each file in `backup-meta.json`:
54
-
55
- 1. **Read the backed-up version** (user's modified copy from `maxsim-local-patches/`)
56
- 2. **Read the newly installed version** (current file after update)
57
- 3. **Compare and merge:**
58
-
59
- - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)
60
- - If the new file differs: identify the user's modifications and apply them to the new version
61
-
62
- **Merge strategy:**
63
- - Read both versions fully
64
- - Identify sections the user added or modified (look for additions, not just differences from path replacement)
65
- - Apply user's additions/modifications to the new version
66
- - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep
67
-
68
- 4. **Write merged result** to the installed location
69
- 5. **Report status:**
70
- - `Merged` — user modifications applied cleanly
71
- - `Skipped` — modification already in upstream
72
- - `Conflict` — user chose resolution
73
-
74
- ## Step 4: Update manifest
75
-
76
- After reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:
77
-
78
- ```bash
79
- # The manifest will be regenerated on next /maxsim:update
80
- # For now, just note which files were modified
81
- ```
82
-
83
- ## Step 5: Cleanup option
84
-
85
- Ask user:
86
- - "Keep patch backups for reference?" → preserve `maxsim-local-patches/`
87
- - "Clean up patch backups?" → remove `maxsim-local-patches/` directory
88
-
89
- ## Step 6: Report
90
-
91
- ```
92
- ## Patches Reapplied
93
-
94
- | # | File | Status |
95
- |---|------|--------|
96
- | 1 | {file_path} | ✓ Merged |
97
- | 2 | {file_path} | ○ Skipped (already upstream) |
98
- | 3 | {file_path} | ⚠ Conflict resolved |
99
-
100
- {count} file(s) updated. Your local modifications are active again.
101
- ```
102
-
103
- </process>
104
-
105
- <success_criteria>
106
- - [ ] All backed-up patches processed
107
- - [ ] User modifications merged into new version
108
- - [ ] Conflicts resolved with user input
109
- - [ ] Status reported for each file
110
- </success_criteria>
@@ -1,31 +0,0 @@
1
- ---
2
- name: maxsim:remove-phase
3
- description: Remove a future phase from roadmap and renumber subsequent phases
4
- argument-hint: <phase-number>
5
- allowed-tools:
6
- - Read
7
- - Write
8
- - Bash
9
- - Glob
10
- ---
11
- <objective>
12
- Remove an unstarted future phase from the roadmap and renumber all subsequent phases to maintain a clean, linear sequence.
13
-
14
- Purpose: Clean removal of work you've decided not to do, without polluting context with cancelled/deferred markers.
15
- Output: Phase deleted, all subsequent phases renumbered, git commit as historical record.
16
- </objective>
17
-
18
- <execution_context>
19
- @./workflows/remove-phase.md
20
- </execution_context>
21
-
22
- <context>
23
- Phase: $ARGUMENTS
24
-
25
- Roadmap and state are resolved in-workflow via `init phase-op` and targeted reads.
26
- </context>
27
-
28
- <process>
29
- Execute the remove-phase workflow from @./workflows/remove-phase.md end-to-end.
30
- Preserve all validation gates (future phase check, work check), renumbering logic, and commit.
31
- </process>
@@ -1,189 +0,0 @@
1
- ---
2
- name: maxsim:research-phase
3
- description: Research how to implement a phase (standalone - usually use /maxsim:plan-phase instead)
4
- argument-hint: "[phase]"
5
- allowed-tools:
6
- - Read
7
- - Bash
8
- - Task
9
- ---
10
-
11
- <objective>
12
- Research how to implement a phase. Spawns maxsim-phase-researcher agent with phase context.
13
-
14
- **Note:** This is a standalone research command. For most workflows, use `/maxsim:plan-phase` which integrates research automatically.
15
-
16
- **Use this command when:**
17
- - You want to research without planning yet
18
- - You want to re-research after planning is complete
19
- - You need to investigate before deciding if a phase is feasible
20
-
21
- **Orchestrator role:** Parse phase, validate against roadmap, check existing research, gather context, spawn researcher agent, present results.
22
-
23
- **Why subagent:** Research burns context fast (WebSearch, Context7 queries, source verification). Fresh 200k context for investigation. Main context stays lean for user interaction.
24
- </objective>
25
-
26
- <context>
27
- Phase number: $ARGUMENTS (required)
28
-
29
- Normalize phase input in step 1 before any directory lookups.
30
- </context>
31
-
32
- <process>
33
-
34
- ## 0. Initialize Context
35
-
36
- ```bash
37
- INIT=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs init phase-op "$ARGUMENTS")
38
- ```
39
-
40
- Extract from init JSON: `phase_dir`, `phase_number`, `phase_name`, `phase_found`, `commit_docs`, `has_research`, `state_path`, `requirements_path`, `context_path`, `research_path`.
41
-
42
- Resolve researcher model:
43
- ```bash
44
- RESEARCHER_MODEL=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs resolve-model maxsim-phase-researcher --raw)
45
- ```
46
-
47
- ## 1. Validate Phase
48
-
49
- ```bash
50
- PHASE_INFO=$(node ~/.claude/maxsim/bin/maxsim-tools.cjs roadmap get-phase "${phase_number}")
51
- ```
52
-
53
- **If `found` is false:** Error and exit. **If `found` is true:** Extract `phase_number`, `phase_name`, `goal` from JSON.
54
-
55
- ## 2. Check Existing Research
56
-
57
- ```bash
58
- ls .planning/phases/${PHASE}-*/RESEARCH.md 2>/dev/null
59
- ```
60
-
61
- **If exists:** Offer: 1) Update research, 2) View existing, 3) Skip. Wait for response.
62
-
63
- **If doesn't exist:** Continue.
64
-
65
- ## 3. Gather Phase Context
66
-
67
- Use paths from INIT (do not inline file contents in orchestrator context):
68
- - `requirements_path`
69
- - `context_path`
70
- - `state_path`
71
-
72
- Present summary with phase description and what files the researcher will load.
73
-
74
- ## 4. Spawn maxsim-phase-researcher Agent
75
-
76
- Research modes: ecosystem (default), feasibility, implementation, comparison.
77
-
78
- ```markdown
79
- <research_type>
80
- Phase Research — investigating HOW to implement a specific phase well.
81
- </research_type>
82
-
83
- <key_insight>
84
- The question is NOT "which library should I use?"
85
-
86
- The question is: "What do I not know that I don't know?"
87
-
88
- For this phase, discover:
89
- - What's the established architecture pattern?
90
- - What libraries form the standard stack?
91
- - What problems do people commonly hit?
92
- - What's SOTA vs what Claude's training thinks is SOTA?
93
- - What should NOT be hand-rolled?
94
- </key_insight>
95
-
96
- <objective>
97
- Research implementation approach for Phase {phase_number}: {phase_name}
98
- Mode: ecosystem
99
- </objective>
100
-
101
- <files_to_read>
102
- - {requirements_path} (Requirements)
103
- - {context_path} (Phase context from discuss-phase, if exists)
104
- - {state_path} (Prior project decisions and blockers)
105
- </files_to_read>
106
-
107
- <additional_context>
108
- **Phase description:** {phase_description}
109
- </additional_context>
110
-
111
- <downstream_consumer>
112
- Your RESEARCH.md will be loaded by `/maxsim:plan-phase` which uses specific sections:
113
- - `## Standard Stack` → Plans use these libraries
114
- - `## Architecture Patterns` → Task structure follows these
115
- - `## Don't Hand-Roll` → Tasks NEVER build custom solutions for listed problems
116
- - `## Common Pitfalls` → Verification steps check for these
117
- - `## Code Examples` → Task actions reference these patterns
118
-
119
- Be prescriptive, not exploratory. "Use X" not "Consider X or Y."
120
- </downstream_consumer>
121
-
122
- <quality_gate>
123
- Before declaring complete, verify:
124
- - [ ] All domains investigated (not just some)
125
- - [ ] Negative claims verified with official docs
126
- - [ ] Multiple sources for critical claims
127
- - [ ] Confidence levels assigned honestly
128
- - [ ] Section names match what plan-phase expects
129
- </quality_gate>
130
-
131
- <output>
132
- Write to: .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md
133
- </output>
134
- ```
135
-
136
- ```
137
- Task(
138
- prompt="First, read ~/.claude/agents/maxsim-phase-researcher.md for your role and instructions.\n\n" + filled_prompt,
139
- subagent_type="general-purpose",
140
- model="{researcher_model}",
141
- description="Research Phase {phase}"
142
- )
143
- ```
144
-
145
- ## 5. Handle Agent Return
146
-
147
- **`## RESEARCH COMPLETE`:** Display summary, offer: Plan phase, Dig deeper, Review full, Done.
148
-
149
- **`## CHECKPOINT REACHED`:** Present to user, get response, spawn continuation.
150
-
151
- **`## RESEARCH INCONCLUSIVE`:** Show what was attempted, offer: Add context, Try different mode, Manual.
152
-
153
- ## 6. Spawn Continuation Agent
154
-
155
- ```markdown
156
- <objective>
157
- Continue research for Phase {phase_number}: {phase_name}
158
- </objective>
159
-
160
- <prior_state>
161
- <files_to_read>
162
- - .planning/phases/${PHASE}-{slug}/${PHASE}-RESEARCH.md (Existing research)
163
- </files_to_read>
164
- </prior_state>
165
-
166
- <checkpoint_response>
167
- **Type:** {checkpoint_type}
168
- **Response:** {user_response}
169
- </checkpoint_response>
170
- ```
171
-
172
- ```
173
- Task(
174
- prompt="First, read ~/.claude/agents/maxsim-phase-researcher.md for your role and instructions.\n\n" + continuation_prompt,
175
- subagent_type="general-purpose",
176
- model="{researcher_model}",
177
- description="Continue research Phase {phase}"
178
- )
179
- ```
180
-
181
- </process>
182
-
183
- <success_criteria>
184
- - [ ] Phase validated against roadmap
185
- - [ ] Existing research checked
186
- - [ ] maxsim-phase-researcher spawned with context
187
- - [ ] Checkpoints handled correctly
188
- - [ ] User knows next steps
189
- </success_criteria>
@@ -1,40 +0,0 @@
1
- ---
2
- name: maxsim:resume-work
3
- description: Resume work from previous session with full context restoration
4
- allowed-tools:
5
- - Read
6
- - Bash
7
- - Write
8
- - AskUserQuestion
9
- - SlashCommand
10
- ---
11
-
12
- <objective>
13
- Restore complete project context and resume work seamlessly from previous session.
14
-
15
- Routes to the resume-project workflow which handles:
16
-
17
- - STATE.md loading (or reconstruction if missing)
18
- - Checkpoint detection (.continue-here files)
19
- - Incomplete work detection (PLAN without SUMMARY)
20
- - Status presentation
21
- - Context-aware next action routing
22
- </objective>
23
-
24
- <execution_context>
25
- @./workflows/resume-project.md
26
- </execution_context>
27
-
28
- <process>
29
- **Follow the resume-project workflow** from `@./workflows/resume-project.md`.
30
-
31
- The workflow handles all resumption logic including:
32
-
33
- 1. Project existence verification
34
- 2. STATE.md loading or reconstruction
35
- 3. Checkpoint and incomplete work detection
36
- 4. Visual status presentation
37
- 5. Context-aware option offering (checks CONTEXT.md before suggesting plan vs discuss)
38
- 6. Routing to appropriate next command
39
- 7. Session continuity updates
40
- </process>