mindsystem-cc 3.22.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- 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 +52 -52
- 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/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-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
|
|
|
@@ -298,15 +295,6 @@ Archive completed milestone and prepare for next.
|
|
|
298
295
|
Usage: `/ms:complete-milestone`
|
|
299
296
|
Usage: `/ms:complete-milestone "MVP"`
|
|
300
297
|
|
|
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
298
|
### Progress Tracking
|
|
311
299
|
|
|
312
300
|
**`/ms:progress`**
|
|
@@ -340,44 +328,32 @@ Usage: `/ms:debug` (resume active session)
|
|
|
340
328
|
### Todo Management
|
|
341
329
|
|
|
342
330
|
**`/ms:add-todo [description]`**
|
|
343
|
-
Capture idea or task as todo
|
|
331
|
+
Capture idea or task as todo with priority, estimate, and subsystem (Linear-inspired).
|
|
344
332
|
|
|
345
333
|
- Use when: you discover work that’s real but not the right thing to do right now.
|
|
346
334
|
- Extracts context from conversation (or uses provided description)
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
335
|
+
- Infers priority (1-4), estimate (XS-XL), and subsystem from context
|
|
336
|
+
- Confirms inferred metadata before creating (adjust if needed)
|
|
337
|
+
- Creates structured todo file in `.planning/todos/`
|
|
338
|
+
- Use `/ms:adhoc` to address todos anytime
|
|
351
339
|
|
|
352
340
|
Usage: `/ms:add-todo` (infers from conversation)
|
|
353
341
|
Usage: `/ms:add-todo Add auth token refresh`
|
|
354
342
|
|
|
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
343
|
### Adhoc Work
|
|
369
344
|
|
|
370
345
|
**`/ms:adhoc <description>`**
|
|
371
|
-
Execute
|
|
346
|
+
Execute discovered work with knowledge-aware planning and execution.
|
|
372
347
|
|
|
373
|
-
- Use when: you discover
|
|
374
|
-
- Bridges the gap between `/ms:add-todo` (capture for later) and `/ms:insert-phase` (
|
|
375
|
-
-
|
|
376
|
-
-
|
|
377
|
-
-
|
|
378
|
-
-
|
|
348
|
+
- Use when: you discover work mid-session that can be completed in a single context window without multi-phase orchestration.
|
|
349
|
+
- Bridges the gap between `/ms:add-todo` (capture for later) and `/ms:insert-phase` (multi-plan coordination)
|
|
350
|
+
- Knowledge-aware: loads relevant knowledge files before planning, consolidates learnings after execution
|
|
351
|
+
- Spawns Explore agents for codebase understanding, ms-adhoc-planner for plan creation, ms-executor for execution
|
|
352
|
+
- Creates per-execution artifacts in `.planning/adhoc/{timestamp}-{slug}/`
|
|
353
|
+
- Updates knowledge files via ms-consolidator after execution
|
|
379
354
|
|
|
380
355
|
Usage: `/ms:adhoc Fix auth token not refreshing on 401`
|
|
356
|
+
Usage: `/ms:adhoc Refactor API error handling to use consistent format`
|
|
381
357
|
|
|
382
358
|
### Utility Commands
|
|
383
359
|
|
|
@@ -392,6 +368,31 @@ Health check and fix project configuration — subsystems, milestone structure,
|
|
|
392
368
|
|
|
393
369
|
Usage: `/ms:doctor`
|
|
394
370
|
|
|
371
|
+
**`/ms:compound [input]`**
|
|
372
|
+
Compound code changes into knowledge files.
|
|
373
|
+
|
|
374
|
+
- Use when: work was done outside the Mindsystem pipeline and knowledge files need updating
|
|
375
|
+
- Accepts: git reference (SHA, range), file path, description, or no args (infers from conversation)
|
|
376
|
+
- Updates existing knowledge files for affected subsystems
|
|
377
|
+
- Creates new subsystem knowledge files if warranted
|
|
378
|
+
- Extends config.json subsystem list if new subsystem detected
|
|
379
|
+
|
|
380
|
+
Usage: `/ms:compound abc123` (commit)
|
|
381
|
+
Usage: `/ms:compound HEAD~3..HEAD` (range)
|
|
382
|
+
Usage: `/ms:compound src/auth/login.ts` (file)
|
|
383
|
+
Usage: `/ms:compound "Added JWT auth with refresh tokens"` (description)
|
|
384
|
+
Usage: `/ms:compound` (infer from conversation context)
|
|
385
|
+
|
|
386
|
+
**`/ms:update`**
|
|
387
|
+
Check for updates and install latest Mindsystem version.
|
|
388
|
+
|
|
389
|
+
- Detects local vs global install mode automatically
|
|
390
|
+
- Compares installed version against npm registry
|
|
391
|
+
- Runs non-interactive install with --force flag
|
|
392
|
+
- After update: restart Claude Code, then run `/ms:doctor`
|
|
393
|
+
|
|
394
|
+
Usage: `/ms:update`
|
|
395
|
+
|
|
395
396
|
**`/ms:help`**
|
|
396
397
|
Show this command reference.
|
|
397
398
|
|
|
@@ -415,11 +416,12 @@ Usage: `/ms:release-notes`
|
|
|
415
416
|
├── config.json # Workflow settings
|
|
416
417
|
├── research/ # Domain ecosystem research
|
|
417
418
|
├── todos/ # Captured ideas and tasks
|
|
418
|
-
│ ├──
|
|
419
|
+
│ ├── *.md # Pending todos (flat files)
|
|
419
420
|
│ └── done/ # Completed todos
|
|
420
|
-
├── adhoc/ #
|
|
421
|
-
│
|
|
422
|
-
│
|
|
421
|
+
├── adhoc/ # Work executed via /ms:adhoc
|
|
422
|
+
│ └── {date}-{slug}/ # Per-execution subdirectory
|
|
423
|
+
│ ├── adhoc-01-PLAN.md # Execution plan (deleted after consolidation)
|
|
424
|
+
│ └── adhoc-01-SUMMARY.md # Completion summary
|
|
423
425
|
├── debug/ # Active debug sessions
|
|
424
426
|
│ └── resolved/ # Archived resolved issues
|
|
425
427
|
├── codebase/ # Codebase map (brownfield projects)
|
|
@@ -489,8 +491,8 @@ Usage: `/ms:release-notes`
|
|
|
489
491
|
```
|
|
490
492
|
/ms:debug "form submission fails silently" # Systematic investigation (persists across /clear)
|
|
491
493
|
# Then decide where the fix belongs:
|
|
492
|
-
# - If it
|
|
493
|
-
/ms:adhoc "Fix auth token refresh on 401" #
|
|
494
|
+
# - If it fits in a single context window:
|
|
495
|
+
/ms:adhoc "Fix auth token refresh on 401" # Knowledge-aware fix with consolidation
|
|
494
496
|
# - If it's required to satisfy the current phase goal: add more plans to the current phase
|
|
495
497
|
/ms:plan-phase 5 # (or: /ms:plan-phase 5 --gaps after verification)
|
|
496
498
|
/ms:execute-phase 5
|
|
@@ -532,10 +534,9 @@ Common options:
|
|
|
532
534
|
**Closing gaps from audit:**
|
|
533
535
|
|
|
534
536
|
```
|
|
535
|
-
/ms:audit-milestone # Finds gaps
|
|
536
|
-
/ms:
|
|
537
|
-
/ms:
|
|
538
|
-
/ms:execute-phase 6
|
|
537
|
+
/ms:audit-milestone # Finds gaps → review MILESTONE-AUDIT.md
|
|
538
|
+
/ms:adhoc "fix dashboard auth" # Discovered gaps (single context)
|
|
539
|
+
/ms:add-phase "Wire API auth" # Larger coherent gaps
|
|
539
540
|
/ms:audit-milestone # Re-audit when done
|
|
540
541
|
```
|
|
541
542
|
|
|
@@ -544,8 +545,7 @@ Common options:
|
|
|
544
545
|
```
|
|
545
546
|
/ms:add-todo # Capture from conversation context
|
|
546
547
|
/ms:add-todo Fix modal z-index # Capture with explicit description
|
|
547
|
-
/ms:
|
|
548
|
-
/ms:check-todos api # Filter by area
|
|
548
|
+
/ms:adhoc Fix modal z-index # Work on a todo right now
|
|
549
549
|
```
|
|
550
550
|
|
|
551
551
|
## 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
|
```
|