mindsystem-cc 3.22.1 → 4.0.1
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 +210 -222
- package/agents/ms-adhoc-planner.md +133 -0
- package/agents/ms-code-reviewer.md +186 -0
- package/agents/ms-compounder.md +144 -0
- package/agents/ms-roadmapper.md +4 -0
- package/commands/ms/add-todo.md +46 -131
- package/commands/ms/adhoc.md +42 -57
- package/commands/ms/audit-milestone.md +66 -89
- package/commands/ms/complete-milestone.md +6 -4
- package/commands/ms/compound.md +64 -0
- package/commands/ms/config.md +66 -49
- package/commands/ms/create-roadmap.md +8 -7
- package/commands/ms/doctor.md +29 -4
- package/commands/ms/help.md +53 -64
- package/commands/ms/new-milestone.md +4 -3
- package/commands/ms/progress.md +23 -3
- package/commands/ms/update.md +102 -0
- package/mindsystem/references/linear-cli.md +71 -0
- package/mindsystem/references/plan-format.md +1 -1
- package/mindsystem/references/plan-risk-assessment.md +1 -1
- package/mindsystem/references/routing/audit-result-routing.md +9 -4
- package/mindsystem/references/todo-file.md +63 -0
- package/mindsystem/templates/adhoc-summary.md +4 -5
- package/mindsystem/templates/knowledge.md +1 -1
- package/mindsystem/templates/project.md +15 -4
- package/mindsystem/templates/state.md +3 -14
- package/mindsystem/templates/tech-debt.md +2 -2
- package/mindsystem/workflows/adhoc.md +128 -316
- package/mindsystem/workflows/complete-milestone.md +20 -0
- package/mindsystem/workflows/compound.md +121 -0
- package/mindsystem/workflows/doctor-fixes.md +1 -1
- package/mindsystem/workflows/plan-phase.md +1 -1
- package/package.json +1 -1
- package/scripts/__pycache__/ms-tools.cpython-314.pyc +0 -0
- package/scripts/__pycache__/test_ms_tools.cpython-314-pytest-9.0.2.pyc +0 -0
- package/scripts/fixtures/scan-context/.planning/adhoc/20260225-refactor-api/adhoc-01-SUMMARY.md +39 -0
- package/scripts/fixtures/scan-context/.planning/todos/{pending/add-logout.md → add-logout.md} +2 -2
- package/scripts/fixtures/scan-context/.planning/todos/done/setup-db.md +2 -2
- package/scripts/fixtures/scan-context/expected-output.json +21 -7
- package/scripts/ms-tools.py +42 -23
- package/scripts/test_ms_tools.py +84 -5
- package/skills/senior-review/SKILL.md +0 -3
- package/commands/ms/check-phase.md +0 -134
- package/commands/ms/check-todos.md +0 -240
- package/commands/ms/plan-milestone-gaps.md +0 -288
- package/skills/senior-review/AGENTS.md +0 -531
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ms:compound
|
|
3
|
+
description: Compound code changes into knowledge files
|
|
4
|
+
argument-hint: "[commit, file path, or description]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Write
|
|
8
|
+
- Bash
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- Task
|
|
12
|
+
- AskUserQuestion
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<objective>
|
|
16
|
+
Compound code changes into the knowledge system. Use when work was done outside the Mindsystem pipeline and knowledge files need updating.
|
|
17
|
+
|
|
18
|
+
Input modes:
|
|
19
|
+
- **Git reference:** SHA, range (`HEAD~3..HEAD`), or any git ref
|
|
20
|
+
- **File path:** Path to a changed file
|
|
21
|
+
- **Description:** Free-text description of changes
|
|
22
|
+
- **No args:** Infer from current conversation context
|
|
23
|
+
</objective>
|
|
24
|
+
|
|
25
|
+
<execution_context>
|
|
26
|
+
@~/.claude/mindsystem/workflows/compound.md
|
|
27
|
+
</execution_context>
|
|
28
|
+
|
|
29
|
+
<process>
|
|
30
|
+
|
|
31
|
+
<step name="parse_input">
|
|
32
|
+
Determine input mode from $ARGUMENTS: git ref, file path, description, or no-args (conversation context).
|
|
33
|
+
Validate active project: check `.planning/config.json` exists.
|
|
34
|
+
</step>
|
|
35
|
+
|
|
36
|
+
<step name="resolve_change_context">
|
|
37
|
+
Gather lightweight change context. Git mode: diff stats. File mode: recent git log. Description mode: spawn Explore agents to find relevant changes.
|
|
38
|
+
</step>
|
|
39
|
+
|
|
40
|
+
<step name="determine_subsystems">
|
|
41
|
+
Read config.json subsystems, match changes against subsystem names. Detect potential new subsystems.
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="confirm_with_user">
|
|
45
|
+
Present affected subsystems and change summary. AskUserQuestion to confirm, adjust, or cancel.
|
|
46
|
+
</step>
|
|
47
|
+
|
|
48
|
+
<step name="spawn_compounder">
|
|
49
|
+
Spawn ms-compounder with input mode, change reference, confirmed subsystems, and subsystem vocabulary.
|
|
50
|
+
</step>
|
|
51
|
+
|
|
52
|
+
<step name="finalize">
|
|
53
|
+
Update config.json if new subsystems confirmed. Commit knowledge file changes. Set last command.
|
|
54
|
+
</step>
|
|
55
|
+
|
|
56
|
+
</process>
|
|
57
|
+
|
|
58
|
+
<success_criteria>
|
|
59
|
+
- [ ] No knowledge files or full diffs read in main context
|
|
60
|
+
- [ ] User confirmed subsystem routing before compounder spawned
|
|
61
|
+
- [ ] config.json updated if new subsystems detected and confirmed
|
|
62
|
+
- [ ] Changes committed
|
|
63
|
+
- [ ] Knowledge files updated for confirmed subsystems
|
|
64
|
+
</success_criteria>
|
package/commands/ms/config.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ms:config
|
|
3
|
-
description: Configure Mindsystem preferences — code reviewers, mockups, gitignore, git remote
|
|
3
|
+
description: Configure Mindsystem preferences — code reviewers, mockups, gitignore, git remote, task tracker
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- Read
|
|
6
6
|
- Write
|
|
@@ -12,7 +12,7 @@ allowed-tools:
|
|
|
12
12
|
|
|
13
13
|
Configure Mindsystem preferences for the current project.
|
|
14
14
|
|
|
15
|
-
Manages code reviewer agents, mockup preferences, .gitignore patterns for `.planning/` artifacts,
|
|
15
|
+
Manages code reviewer agents, mockup preferences, .gitignore patterns for `.planning/` artifacts, git remote setup, and task tracker integration. Run anytime to reconfigure — idempotent.
|
|
16
16
|
|
|
17
17
|
</objective>
|
|
18
18
|
|
|
@@ -29,15 +29,10 @@ Manages code reviewer agents, mockup preferences, .gitignore patterns for `.plan
|
|
|
29
29
|
# Check for PROJECT.md (tech stack detection)
|
|
30
30
|
[ -f .planning/PROJECT.md ] && echo "HAS_PROJECT" || echo "NO_PROJECT"
|
|
31
31
|
|
|
32
|
-
# Check for STACK.md (precise tech detection)
|
|
33
|
-
[ -f .planning/codebase/STACK.md ] && echo "HAS_STACK" || echo "NO_STACK"
|
|
34
|
-
|
|
35
32
|
# Check git remote
|
|
36
33
|
git remote -v 2>/dev/null || echo "NO_REMOTE"
|
|
37
34
|
```
|
|
38
35
|
|
|
39
|
-
**Run this before proceeding.**
|
|
40
|
-
|
|
41
36
|
</step>
|
|
42
37
|
|
|
43
38
|
<step name="git_remote">
|
|
@@ -67,21 +62,27 @@ If "Create with gh CLI":
|
|
|
67
62
|
|
|
68
63
|
Show current code_review values from config.json (if loaded).
|
|
69
64
|
|
|
70
|
-
**Default reviewers:** adhoc=`ms-code-simplifier`, phase=`ms-code-simplifier`, milestone
|
|
65
|
+
**Default reviewers:** adhoc=`ms-code-simplifier`, phase=`ms-code-simplifier`, milestone=`ms-code-reviewer`
|
|
71
66
|
|
|
72
67
|
Use AskUserQuestion:
|
|
73
68
|
- header: "Code review"
|
|
74
69
|
- question: "Which code reviewer configuration do you want?"
|
|
75
70
|
- options:
|
|
76
|
-
- "Default
|
|
71
|
+
- "Default" — ms-code-simplifier for adhoc/phase, ms-code-reviewer for milestone (Recommended)
|
|
77
72
|
- "Skip code review" — Disable review for all tiers
|
|
78
73
|
- "Custom" — I'll specify reviewers manually
|
|
79
74
|
|
|
80
|
-
If "Custom":
|
|
75
|
+
If "Custom": use AskUserQuestion for each tier (adhoc, phase, milestone) individually, offering available reviewer agents as options.
|
|
81
76
|
|
|
82
77
|
If "Skip code review": set all three values to `"skip"`.
|
|
83
78
|
|
|
84
|
-
Update config.json with selected values
|
|
79
|
+
Update config.json with selected values via jq:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
jq '.code_review = {"adhoc": $a, "phase": $p, "milestone": $m}' \
|
|
83
|
+
--arg a "$ADHOC" --arg p "$PHASE" --arg m "$MILESTONE" \
|
|
84
|
+
.planning/config.json > .planning/config.tmp && mv .planning/config.tmp .planning/config.json
|
|
85
|
+
```
|
|
85
86
|
|
|
86
87
|
</step>
|
|
87
88
|
|
|
@@ -102,7 +103,12 @@ Use AskUserQuestion (multiSelect):
|
|
|
102
103
|
- "Phase patch files (`.planning/phases/**/*.patch`)" — Large binary diffs, regeneratable
|
|
103
104
|
- "Design mockups (`.planning/phases/**/*.html`)" — Generated HTML mockups from design-phase
|
|
104
105
|
|
|
105
|
-
Apply selected patterns to `.gitignore`. Create the file if needed
|
|
106
|
+
Apply selected patterns to `.gitignore`. Create the file if needed:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
echo '.planning/phases/**/*.patch' >> .gitignore # if selected
|
|
110
|
+
echo '.planning/phases/**/*.html' >> .gitignore # if selected
|
|
111
|
+
```
|
|
106
112
|
|
|
107
113
|
If no selections: skip gitignore changes.
|
|
108
114
|
|
|
@@ -138,6 +144,48 @@ jq --arg v "$VALUE" '.open_mockups = $v' .planning/config.json > .planning/confi
|
|
|
138
144
|
|
|
139
145
|
</step>
|
|
140
146
|
|
|
147
|
+
<step name="task_tracker">
|
|
148
|
+
|
|
149
|
+
Read current value:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
CURRENT=$(cat .planning/config.json 2>/dev/null | jq -r '.task_tracker.type // "not configured"')
|
|
153
|
+
echo "Current task_tracker: $CURRENT"
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Use AskUserQuestion:
|
|
157
|
+
- header: "Task tracker"
|
|
158
|
+
- question: "Do you use a task tracker for this project?"
|
|
159
|
+
- options:
|
|
160
|
+
- "Linear" — Integrate with Linear for ticket-driven adhoc work
|
|
161
|
+
- "None / not yet" — Skip task tracker integration
|
|
162
|
+
|
|
163
|
+
If "Linear":
|
|
164
|
+
|
|
165
|
+
Use AskUserQuestion:
|
|
166
|
+
- header: "Linear CLI"
|
|
167
|
+
- question: "Path to Linear CLI script?"
|
|
168
|
+
- options:
|
|
169
|
+
- "Default (`uv run ~/.claude/skills/linear/scripts/linear.py`) (Recommended)" — Standard Mindsystem Linear skill location
|
|
170
|
+
- "Custom path" — I'll provide the CLI path
|
|
171
|
+
|
|
172
|
+
If "Default": set `cli` to `uv run ~/.claude/skills/linear/scripts/linear.py`
|
|
173
|
+
If "Custom path": ask user for path via AskUserQuestion.
|
|
174
|
+
|
|
175
|
+
Write to config.json:
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
jq '.task_tracker = {"type": "linear", "cli": $cli}' --arg cli "$CLI_PATH" .planning/config.json > .planning/config.tmp && mv .planning/config.tmp .planning/config.json
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
If "None / not yet":
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
jq '.task_tracker = null' .planning/config.json > .planning/config.tmp && mv .planning/config.tmp .planning/config.json
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
</step>
|
|
188
|
+
|
|
141
189
|
<step name="validation_summary">
|
|
142
190
|
|
|
143
191
|
Show final config state:
|
|
@@ -149,6 +197,7 @@ Configuration updated:
|
|
|
149
197
|
- Mockup open: [auto / ask / off]
|
|
150
198
|
- Gitignore: [patterns added, or "no changes"]
|
|
151
199
|
- Git remote: [remote URL, or "none configured"]
|
|
200
|
+
- Task tracker: [type + cli path, or "none"]
|
|
152
201
|
```
|
|
153
202
|
|
|
154
203
|
Check subsystems in config.json. If empty or missing, note:
|
|
@@ -172,45 +221,12 @@ EOF
|
|
|
172
221
|
|
|
173
222
|
<step name="done">
|
|
174
223
|
|
|
175
|
-
Present next steps:
|
|
176
|
-
|
|
177
|
-
**If PROJECT.md exists:**
|
|
178
|
-
|
|
179
|
-
```
|
|
180
|
-
---
|
|
181
|
-
|
|
182
|
-
## ▶ Next Up
|
|
183
|
-
|
|
184
|
-
`/ms:new-milestone` — Discover what to build next, create requirements and roadmap
|
|
185
|
-
|
|
186
|
-
<sub>`/clear` first → fresh context window</sub>
|
|
187
|
-
|
|
188
|
-
---
|
|
189
|
-
|
|
190
|
-
**Also available:**
|
|
191
|
-
- `/ms:doctor` — Verify subsystems and artifact health
|
|
224
|
+
Present next steps using the "Next Up" format:
|
|
192
225
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
**If no PROJECT.md:**
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
---
|
|
200
|
-
|
|
201
|
-
## ▶ Next Up
|
|
226
|
+
- **If PROJECT.md exists:** recommend `/ms:new-milestone` — Discover what to build next, create requirements and roadmap
|
|
227
|
+
- **If no PROJECT.md:** recommend `/ms:new-project` — Initialize project with business context and vision
|
|
202
228
|
|
|
203
|
-
`/ms:
|
|
204
|
-
|
|
205
|
-
<sub>`/clear` first → fresh context window</sub>
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
**Also available:**
|
|
210
|
-
- `/ms:doctor` — Verify subsystems and artifact health
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
```
|
|
229
|
+
Also list: `/ms:doctor` — Verify subsystems and artifact health
|
|
214
230
|
|
|
215
231
|
</step>
|
|
216
232
|
|
|
@@ -225,5 +241,6 @@ Present next steps:
|
|
|
225
241
|
- [ ] Validation summary displayed
|
|
226
242
|
- [ ] Config.json code_review values set (or preserved if skipped)
|
|
227
243
|
- [ ] Config.json open_mockups value set (or preserved if skipped)
|
|
244
|
+
- [ ] Config.json task_tracker value set (or preserved if skipped)
|
|
228
245
|
|
|
229
246
|
</success_criteria>
|
|
@@ -132,13 +132,14 @@ Task(
|
|
|
132
132
|
|
|
133
133
|
<instructions>
|
|
134
134
|
1. Derive REQUIREMENTS.md from milestone context (apply requirements_derivation process)
|
|
135
|
-
2.
|
|
136
|
-
3.
|
|
137
|
-
4.
|
|
138
|
-
5.
|
|
139
|
-
6.
|
|
140
|
-
7.
|
|
141
|
-
8.
|
|
135
|
+
2. If PROJECT.md has a Deferred section, consider those items as v1 candidates for this milestone
|
|
136
|
+
3. Derive phases from those requirements (don't impose structure)
|
|
137
|
+
4. **Start phase numbering at $START_PHASE** (not 1, unless this is the first milestone)
|
|
138
|
+
5. Map every v1 requirement to exactly one phase
|
|
139
|
+
6. Derive 2-5 success criteria per phase (observable user behaviors)
|
|
140
|
+
7. Validate 100% coverage
|
|
141
|
+
8. Write files immediately (REQUIREMENTS.md, ROADMAP.md, STATE.md)
|
|
142
|
+
9. Return ROADMAP CREATED with combined requirements + roadmap summary
|
|
142
143
|
|
|
143
144
|
Write files first, then return. This ensures artifacts persist even if context is lost.
|
|
144
145
|
</instructions>
|
package/commands/ms/doctor.md
CHANGED
|
@@ -13,7 +13,7 @@ allowed-tools:
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
15
|
<objective>
|
|
16
|
-
Run health checks on project configuration. Detect and fix structural drift across
|
|
16
|
+
Run health checks on project configuration. Detect and fix structural drift across 10 categories: subsystem vocabulary, milestone directory structure, milestone naming convention, phase archival, knowledge files, phase summaries, PLAN cleanup, CLI wrappers, research API keys, and Mindsystem version.
|
|
17
17
|
|
|
18
18
|
Idempotent.
|
|
19
19
|
</objective>
|
|
@@ -59,7 +59,8 @@ If MISSING, create from template structure:
|
|
|
59
59
|
"adhoc": null,
|
|
60
60
|
"phase": null,
|
|
61
61
|
"milestone": null
|
|
62
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"task_tracker": null
|
|
63
64
|
}
|
|
64
65
|
```
|
|
65
66
|
|
|
@@ -79,6 +80,28 @@ ms-tools doctor-scan
|
|
|
79
80
|
Capture the full output. Parse each check's Status (PASS/FAIL/SKIP/WARN) and detail lines.
|
|
80
81
|
</step>
|
|
81
82
|
|
|
83
|
+
<step name="check_version">
|
|
84
|
+
Check for Mindsystem updates:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Installed version
|
|
88
|
+
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mindsystem/VERSION" 2>/dev/null || cat ./.claude/mindsystem/VERSION 2>/dev/null
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
# Latest from npm
|
|
93
|
+
npm view mindsystem-cc version 2>/dev/null
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Compare versions:
|
|
97
|
+
- installed == latest → PASS, "v{installed} (latest)"
|
|
98
|
+
- installed > latest → PASS, "v{installed} (development)"
|
|
99
|
+
- installed < latest → WARN, "v{installed} → v{latest} available — run `/ms:update`"
|
|
100
|
+
- npm fetch failed → SKIP, "Could not reach npm registry"
|
|
101
|
+
|
|
102
|
+
Include as an extra row ("Mindsystem version") in the results table.
|
|
103
|
+
</step>
|
|
104
|
+
|
|
82
105
|
<step name="present_results">
|
|
83
106
|
Display results as a markdown table:
|
|
84
107
|
|
|
@@ -96,9 +119,10 @@ Display results as a markdown table:
|
|
|
96
119
|
| PLAN cleanup | FAIL | 9 leftover PLAN.md files |
|
|
97
120
|
| CLI wrappers | FAIL | ms-tools not on PATH |
|
|
98
121
|
| Research API Keys | WARN | PERPLEXITY_API_KEY not set |
|
|
122
|
+
| Mindsystem version | WARN | v3.21.0 → v3.22.1 available |
|
|
99
123
|
```
|
|
100
124
|
|
|
101
|
-
Populate Result and Details from scan output. Use concise detail summaries.
|
|
125
|
+
Populate Result and Details from scan output and version check. Use concise detail summaries.
|
|
102
126
|
|
|
103
127
|
If all PASS (or WARN only) → go to `report`.
|
|
104
128
|
If any FAIL → go to `confirm_action`.
|
|
@@ -155,6 +179,7 @@ Final summary table:
|
|
|
155
179
|
| PLAN cleanup | PASS | ... |
|
|
156
180
|
| CLI wrappers | PASS | ... |
|
|
157
181
|
| Research API Keys | PASS | ... |
|
|
182
|
+
| Mindsystem version | PASS | ... |
|
|
158
183
|
|
|
159
184
|
All checks passed.
|
|
160
185
|
```
|
|
@@ -170,6 +195,6 @@ Include counts: checks total, passed, warned, fixed during this run.
|
|
|
170
195
|
- [ ] Re-scan verifies all checks pass after fixes
|
|
171
196
|
- [ ] Each fix group committed atomically
|
|
172
197
|
- [ ] Fixes applied in dependency order: subsystems → dirs → milestone naming → archival → cleanup → knowledge
|
|
173
|
-
- [ ] All
|
|
198
|
+
- [ ] All 10 categories reported with PASS/FAIL/WARN/SKIP
|
|
174
199
|
- [ ] Clean project reports all PASS with no fix prompts
|
|
175
200
|
</success_criteria>
|
package/commands/ms/help.md
CHANGED
|
@@ -47,14 +47,11 @@ Output ONLY the reference content below. Do NOT add:
|
|
|
47
47
|
Mindsystem evolves fast. Check for updates periodically:
|
|
48
48
|
|
|
49
49
|
```
|
|
50
|
-
/ms:
|
|
50
|
+
/ms:update
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
Shows
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
npx mindsystem-cc@latest
|
|
57
|
-
```
|
|
53
|
+
Shows current vs latest version. Updates non-interactively if behind.
|
|
54
|
+
Release notes: `/ms:release-notes`
|
|
58
55
|
|
|
59
56
|
## Core Workflow
|
|
60
57
|
|
|
@@ -64,7 +61,7 @@ Initialize → (Optional Research) → Roadmap → Plan → Execute → Verify
|
|
|
64
61
|
|
|
65
62
|
Common deviations:
|
|
66
63
|
- Existing repo: `/ms:map-codebase` after `/ms:new-project` (or before — either works)
|
|
67
|
-
- Plan looks wrong: `/ms:discuss-phase <phase>`
|
|
64
|
+
- Plan looks wrong: `/ms:discuss-phase <phase>`
|
|
68
65
|
- Unknown domain: `/ms:research-project` or `/ms:research-phase <phase>`
|
|
69
66
|
- Phase prep: `/ms:discuss-phase` → `/ms:design-phase` → `/ms:research-phase` → `/ms:plan-phase` (all optional before plan)
|
|
70
67
|
- Execution gaps: `/ms:plan-phase <phase> --gaps` then `/ms:execute-phase <phase>`
|
|
@@ -205,16 +202,6 @@ Usage: `/ms:execute-phase 5`
|
|
|
205
202
|
|
|
206
203
|
### Verification
|
|
207
204
|
|
|
208
|
-
**`/ms:check-phase <number>`**
|
|
209
|
-
Verify phase plans before execution (optional quality gate).
|
|
210
|
-
|
|
211
|
-
- Use when: the phase is complex or risky and you want a “will this actually achieve the goal?” sanity check before executing.
|
|
212
|
-
- Spawns plan checker agent to analyze PLAN.md files
|
|
213
|
-
- Checks requirement coverage, task completeness, dependencies
|
|
214
|
-
- Use for complex phases before committing to execution
|
|
215
|
-
|
|
216
|
-
Usage: `/ms:check-phase 5`
|
|
217
|
-
|
|
218
205
|
**`/ms:verify-work [number]`**
|
|
219
206
|
User acceptance testing of phase or plan.
|
|
220
207
|
|
|
@@ -298,15 +285,6 @@ Archive completed milestone and prepare for next.
|
|
|
298
285
|
Usage: `/ms:complete-milestone`
|
|
299
286
|
Usage: `/ms:complete-milestone "MVP"`
|
|
300
287
|
|
|
301
|
-
**`/ms:plan-milestone-gaps`**
|
|
302
|
-
Create phases to close gaps identified by milestone audit.
|
|
303
|
-
|
|
304
|
-
- Reads MILESTONE-AUDIT.md and groups gaps into logical phases
|
|
305
|
-
- Prioritizes by requirement importance (must/should/nice)
|
|
306
|
-
- Creates phase entries in ROADMAP.md automatically
|
|
307
|
-
|
|
308
|
-
Usage: `/ms:plan-milestone-gaps`
|
|
309
|
-
|
|
310
288
|
### Progress Tracking
|
|
311
289
|
|
|
312
290
|
**`/ms:progress`**
|
|
@@ -340,44 +318,32 @@ Usage: `/ms:debug` (resume active session)
|
|
|
340
318
|
### Todo Management
|
|
341
319
|
|
|
342
320
|
**`/ms:add-todo [description]`**
|
|
343
|
-
Capture idea or task as todo
|
|
321
|
+
Capture idea or task as todo with priority, estimate, and subsystem (Linear-inspired).
|
|
344
322
|
|
|
345
323
|
- Use when: you discover work that’s real but not the right thing to do right now.
|
|
346
324
|
- Extracts context from conversation (or uses provided description)
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
325
|
+
- Infers priority (1-4), estimate (XS-XL), and subsystem from context
|
|
326
|
+
- Confirms inferred metadata before creating (adjust if needed)
|
|
327
|
+
- Creates structured todo file in `.planning/todos/`
|
|
328
|
+
- Use `/ms:adhoc` to address todos anytime
|
|
351
329
|
|
|
352
330
|
Usage: `/ms:add-todo` (infers from conversation)
|
|
353
331
|
Usage: `/ms:add-todo Add auth token refresh`
|
|
354
332
|
|
|
355
|
-
**`/ms:check-todos [area]`**
|
|
356
|
-
List pending todos and select one to work on.
|
|
357
|
-
|
|
358
|
-
- Use when: you want to pick up deferred work and route it into the right place (do now vs schedule vs plan into a phase).
|
|
359
|
-
- Lists all pending todos with title, area, age
|
|
360
|
-
- Optional area filter (e.g., `/ms:check-todos api`)
|
|
361
|
-
- Loads full context for selected todo
|
|
362
|
-
- Routes to appropriate action (work now, add to phase, brainstorm)
|
|
363
|
-
- Moves todo to done/ when work begins
|
|
364
|
-
|
|
365
|
-
Usage: `/ms:check-todos`
|
|
366
|
-
Usage: `/ms:check-todos api`
|
|
367
|
-
|
|
368
333
|
### Adhoc Work
|
|
369
334
|
|
|
370
335
|
**`/ms:adhoc <description>`**
|
|
371
|
-
Execute
|
|
336
|
+
Execute discovered work with knowledge-aware planning and execution.
|
|
372
337
|
|
|
373
|
-
- Use when: you discover
|
|
374
|
-
- Bridges the gap between `/ms:add-todo` (capture for later) and `/ms:insert-phase` (
|
|
375
|
-
-
|
|
376
|
-
-
|
|
377
|
-
-
|
|
378
|
-
-
|
|
338
|
+
- Use when: you discover work mid-session that can be completed in a single context window without multi-phase orchestration.
|
|
339
|
+
- Bridges the gap between `/ms:add-todo` (capture for later) and `/ms:insert-phase` (multi-plan coordination)
|
|
340
|
+
- Knowledge-aware: loads relevant knowledge files before planning, consolidates learnings after execution
|
|
341
|
+
- Spawns Explore agents for codebase understanding, ms-adhoc-planner for plan creation, ms-executor for execution
|
|
342
|
+
- Creates per-execution artifacts in `.planning/adhoc/{timestamp}-{slug}/`
|
|
343
|
+
- Updates knowledge files via ms-consolidator after execution
|
|
379
344
|
|
|
380
345
|
Usage: `/ms:adhoc Fix auth token not refreshing on 401`
|
|
346
|
+
Usage: `/ms:adhoc Refactor API error handling to use consistent format`
|
|
381
347
|
|
|
382
348
|
### Utility Commands
|
|
383
349
|
|
|
@@ -392,6 +358,31 @@ Health check and fix project configuration — subsystems, milestone structure,
|
|
|
392
358
|
|
|
393
359
|
Usage: `/ms:doctor`
|
|
394
360
|
|
|
361
|
+
**`/ms:compound [input]`**
|
|
362
|
+
Compound code changes into knowledge files.
|
|
363
|
+
|
|
364
|
+
- Use when: work was done outside the Mindsystem pipeline and knowledge files need updating
|
|
365
|
+
- Accepts: git reference (SHA, range), file path, description, or no args (infers from conversation)
|
|
366
|
+
- Updates existing knowledge files for affected subsystems
|
|
367
|
+
- Creates new subsystem knowledge files if warranted
|
|
368
|
+
- Extends config.json subsystem list if new subsystem detected
|
|
369
|
+
|
|
370
|
+
Usage: `/ms:compound abc123` (commit)
|
|
371
|
+
Usage: `/ms:compound HEAD~3..HEAD` (range)
|
|
372
|
+
Usage: `/ms:compound src/auth/login.ts` (file)
|
|
373
|
+
Usage: `/ms:compound "Added JWT auth with refresh tokens"` (description)
|
|
374
|
+
Usage: `/ms:compound` (infer from conversation context)
|
|
375
|
+
|
|
376
|
+
**`/ms:update`**
|
|
377
|
+
Check for updates and install latest Mindsystem version.
|
|
378
|
+
|
|
379
|
+
- Detects local vs global install mode automatically
|
|
380
|
+
- Compares installed version against npm registry
|
|
381
|
+
- Runs non-interactive install with --force flag
|
|
382
|
+
- After update: restart Claude Code, then run `/ms:doctor`
|
|
383
|
+
|
|
384
|
+
Usage: `/ms:update`
|
|
385
|
+
|
|
395
386
|
**`/ms:help`**
|
|
396
387
|
Show this command reference.
|
|
397
388
|
|
|
@@ -415,11 +406,12 @@ Usage: `/ms:release-notes`
|
|
|
415
406
|
├── config.json # Workflow settings
|
|
416
407
|
├── research/ # Domain ecosystem research
|
|
417
408
|
├── todos/ # Captured ideas and tasks
|
|
418
|
-
│ ├──
|
|
409
|
+
│ ├── *.md # Pending todos (flat files)
|
|
419
410
|
│ └── done/ # Completed todos
|
|
420
|
-
├── adhoc/ #
|
|
421
|
-
│
|
|
422
|
-
│
|
|
411
|
+
├── adhoc/ # Work executed via /ms:adhoc
|
|
412
|
+
│ └── {date}-{slug}/ # Per-execution subdirectory
|
|
413
|
+
│ ├── adhoc-01-PLAN.md # Execution plan (deleted after consolidation)
|
|
414
|
+
│ └── adhoc-01-SUMMARY.md # Completion summary
|
|
423
415
|
├── debug/ # Active debug sessions
|
|
424
416
|
│ └── resolved/ # Archived resolved issues
|
|
425
417
|
├── codebase/ # Codebase map (brownfield projects)
|
|
@@ -477,7 +469,6 @@ Usage: `/ms:release-notes`
|
|
|
477
469
|
|
|
478
470
|
```
|
|
479
471
|
/ms:plan-phase 5 # Create one or more PLAN.md files
|
|
480
|
-
/ms:check-phase 5 # (optional) Sanity check: plans will achieve goal
|
|
481
472
|
/ms:execute-phase 5 # Execute; produces SUMMARY + VERIFICATION
|
|
482
473
|
# If gaps found during verification:
|
|
483
474
|
/ms:plan-phase 5 --gaps # Create additional plans to close verifier gaps
|
|
@@ -489,8 +480,8 @@ Usage: `/ms:release-notes`
|
|
|
489
480
|
```
|
|
490
481
|
/ms:debug "form submission fails silently" # Systematic investigation (persists across /clear)
|
|
491
482
|
# Then decide where the fix belongs:
|
|
492
|
-
# - If it
|
|
493
|
-
/ms:adhoc "Fix auth token refresh on 401" #
|
|
483
|
+
# - If it fits in a single context window:
|
|
484
|
+
/ms:adhoc "Fix auth token refresh on 401" # Knowledge-aware fix with consolidation
|
|
494
485
|
# - If it's required to satisfy the current phase goal: add more plans to the current phase
|
|
495
486
|
/ms:plan-phase 5 # (or: /ms:plan-phase 5 --gaps after verification)
|
|
496
487
|
/ms:execute-phase 5
|
|
@@ -532,10 +523,9 @@ Common options:
|
|
|
532
523
|
**Closing gaps from audit:**
|
|
533
524
|
|
|
534
525
|
```
|
|
535
|
-
/ms:audit-milestone # Finds gaps
|
|
536
|
-
/ms:
|
|
537
|
-
/ms:
|
|
538
|
-
/ms:execute-phase 6
|
|
526
|
+
/ms:audit-milestone # Finds gaps → review MILESTONE-AUDIT.md
|
|
527
|
+
/ms:adhoc "fix dashboard auth" # Discovered gaps (single context)
|
|
528
|
+
/ms:add-phase "Wire API auth" # Larger coherent gaps
|
|
539
529
|
/ms:audit-milestone # Re-audit when done
|
|
540
530
|
```
|
|
541
531
|
|
|
@@ -544,8 +534,7 @@ Common options:
|
|
|
544
534
|
```
|
|
545
535
|
/ms:add-todo # Capture from conversation context
|
|
546
536
|
/ms:add-todo Fix modal z-index # Capture with explicit description
|
|
547
|
-
/ms:
|
|
548
|
-
/ms:check-todos api # Filter by area
|
|
537
|
+
/ms:adhoc Fix modal z-index # Work on a todo right now
|
|
549
538
|
```
|
|
550
539
|
|
|
551
540
|
## Getting Help
|
|
@@ -66,7 +66,8 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
|
|
|
66
66
|
1. **Load context:**
|
|
67
67
|
- Read PROJECT.md (existing project, validated requirements, decisions)
|
|
68
68
|
- Read MILESTONES.md (what shipped previously)
|
|
69
|
-
- Read STATE.md (
|
|
69
|
+
- Read STATE.md (blockers)
|
|
70
|
+
- Scan `.planning/todos/` for pending todos
|
|
70
71
|
- Read config.json (project settings)
|
|
71
72
|
- Identify previous milestone name from MILESTONES.md (e.g., last shipped was "MVP")
|
|
72
73
|
|
|
@@ -111,9 +112,9 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
|
|
|
111
112
|
- Tech debt from TECH-DEBT.md, MILESTONE-AUDIT.md, or knowledge file Pitfalls sections
|
|
112
113
|
- Settled decisions and patterns from knowledge files
|
|
113
114
|
- Untested assumptions from previous audit
|
|
114
|
-
-
|
|
115
|
+
- Deferred items from PROJECT.md `## Deferred` section (carried forward from previous milestones)
|
|
115
116
|
- Strategic features inferred from PROJECT.md: Who It's For, Core Problem, How It's Different
|
|
116
|
-
- Pending todos from
|
|
117
|
+
- Pending todos from `.planning/todos/`
|
|
117
118
|
|
|
118
119
|
If no meaningful artifacts exist (first milestone), base suggestions purely on PROJECT.md.
|
|
119
120
|
|
package/commands/ms/progress.md
CHANGED
|
@@ -38,7 +38,7 @@ Reconstruct STATE.md from artifacts:
|
|
|
38
38
|
1. Read PROJECT.md → Extract "What This Is" and Core Value
|
|
39
39
|
2. Read ROADMAP.md → Determine phases, find current position
|
|
40
40
|
3. Scan *-SUMMARY.md files → Extract recent decisions, concerns
|
|
41
|
-
4. Count pending todos in .planning/todos/
|
|
41
|
+
4. Count pending todos in .planning/todos/
|
|
42
42
|
|
|
43
43
|
Write reconstructed STATE.md, then proceed to "load" step.
|
|
44
44
|
|
|
@@ -55,6 +55,22 @@ This means a milestone was completed and archived. Go to **Route F** (between mi
|
|
|
55
55
|
If missing both ROADMAP.md and PROJECT.md: suggest `/ms:new-project`.
|
|
56
56
|
</step>
|
|
57
57
|
|
|
58
|
+
<step name="check_version">
|
|
59
|
+
**Check for Mindsystem updates (non-blocking):**
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# Installed version
|
|
63
|
+
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/mindsystem/VERSION" 2>/dev/null || cat ./.claude/mindsystem/VERSION 2>/dev/null
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
# Latest from npm
|
|
68
|
+
npm view mindsystem-cc version 2>/dev/null
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Compare versions. Store result for the report step. If npm fails or versions match, skip — do not block progress.
|
|
72
|
+
</step>
|
|
73
|
+
|
|
58
74
|
<step name="load">
|
|
59
75
|
**Load full project context:**
|
|
60
76
|
|
|
@@ -79,7 +95,7 @@ If missing both ROADMAP.md and PROJECT.md: suggest `/ms:new-project`.
|
|
|
79
95
|
- Note any blockers or concerns
|
|
80
96
|
- Check for CONTEXT.md: For phases without PLAN.md files, check if `{phase}-CONTEXT.md` exists in phase directory
|
|
81
97
|
- Check for DESIGN.md: For UI-heavy phases, check if `{phase}-DESIGN.md` exists in phase directory
|
|
82
|
-
- Count pending todos: `ls .planning/todos
|
|
98
|
+
- Count pending todos: `ls .planning/todos/*.md 2>/dev/null | wc -l`
|
|
83
99
|
- Check for active debug sessions: `ls .planning/debug/*.md 2>/dev/null | grep -v resolved | wc -l`
|
|
84
100
|
</step>
|
|
85
101
|
|
|
@@ -109,12 +125,16 @@ DESIGN: [✓ if DESIGN.md exists | - if not]
|
|
|
109
125
|
- [any blockers or concerns from STATE.md]
|
|
110
126
|
|
|
111
127
|
## Pending Todos
|
|
112
|
-
- [count] pending — /ms:
|
|
128
|
+
- [count] pending — /ms:add-todo to capture, /ms:adhoc to work on
|
|
113
129
|
|
|
114
130
|
## Active Debug Sessions
|
|
115
131
|
- [count] active — /ms:debug to continue
|
|
116
132
|
(Only show this section if count > 0)
|
|
117
133
|
|
|
134
|
+
## Update Available
|
|
135
|
+
⬆ v{installed} → v{latest} — run `/ms:update`
|
|
136
|
+
(Only show this section if installed < latest)
|
|
137
|
+
|
|
118
138
|
## What's Next
|
|
119
139
|
[Next phase/plan objective from ROADMAP]
|
|
120
140
|
```
|