mindsystem-cc 3.10.0 → 3.11.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 (47) hide show
  1. package/README.md +3 -6
  2. package/agents/ms-designer.md +8 -8
  3. package/agents/ms-executor.md +14 -163
  4. package/agents/ms-plan-checker.md +2 -3
  5. package/agents/ms-plan-writer.md +5 -11
  6. package/agents/ms-roadmapper.md +101 -16
  7. package/agents/ms-verify-fixer.md +1 -1
  8. package/commands/ms/complete-milestone.md +1 -1
  9. package/commands/ms/create-roadmap.md +126 -56
  10. package/commands/ms/design-phase.md +12 -10
  11. package/commands/ms/execute-phase.md +0 -9
  12. package/commands/ms/help.md +24 -35
  13. package/commands/ms/new-milestone.md +184 -80
  14. package/commands/ms/new-project.md +3 -3
  15. package/commands/ms/research-project.md +2 -2
  16. package/commands/ms/review-design.md +9 -5
  17. package/commands/ms/verify-work.md +1 -1
  18. package/mindsystem/references/continuation-format.md +2 -3
  19. package/mindsystem/references/design-directions.md +1 -1
  20. package/mindsystem/references/mock-patterns.md +48 -0
  21. package/mindsystem/references/plan-format.md +2 -129
  22. package/mindsystem/references/routing/between-milestones-routing.md +5 -7
  23. package/mindsystem/references/scope-estimation.md +3 -3
  24. package/mindsystem/templates/config.json +0 -2
  25. package/mindsystem/templates/design.md +1 -1
  26. package/mindsystem/templates/milestone-context.md +76 -0
  27. package/mindsystem/templates/phase-prompt.md +6 -142
  28. package/mindsystem/templates/summary.md +24 -0
  29. package/mindsystem/workflows/complete-milestone.md +27 -8
  30. package/mindsystem/workflows/execute-phase.md +35 -124
  31. package/mindsystem/workflows/execute-plan.md +12 -517
  32. package/mindsystem/workflows/generate-mocks.md +74 -0
  33. package/mindsystem/workflows/mockup-generation.md +1 -1
  34. package/mindsystem/workflows/plan-phase.md +7 -24
  35. package/mindsystem/workflows/verify-work.md +97 -17
  36. package/package.json +1 -1
  37. package/scripts/__pycache__/compare_mockups.cpython-314.pyc +0 -0
  38. package/scripts/compare_mockups.py +219 -0
  39. package/skills/flutter-code-quality/SKILL.md +1 -1
  40. package/skills/flutter-code-simplification/SKILL.md +1 -1
  41. package/skills/flutter-senior-review/AGENTS.md +1 -1
  42. package/skills/flutter-senior-review/SKILL.md +1 -1
  43. package/commands/ms/define-requirements.md +0 -128
  44. package/mindsystem/references/checkpoint-detection.md +0 -50
  45. package/mindsystem/references/checkpoints.md +0 -788
  46. package/mindsystem/workflows/create-milestone.md +0 -243
  47. package/mindsystem/workflows/discuss-milestone.md +0 -310
package/README.md CHANGED
@@ -41,7 +41,7 @@ This philosophy resonated. GSD proved that spec-driven development could be simp
41
41
 
42
42
  Mindsystem takes that foundation and optimizes it for a specific kind of user: **Claude Code power users who ship production code**. You're not vibe coding. You want speed, but you also want control, reviewable diffs, and quality gates. You care about what the output code looks like.
43
43
 
44
- Where GSD went broad, Mindsystem goes deep - more verification, more review checkpoints, more ways to inspect and override. Less magic, more engineering.
44
+ Where GSD went broad, Mindsystem goes deep more verification, more quality gates, more ways to inspect and override. Less magic, more engineering.
45
45
 
46
46
  ### What you get
47
47
 
@@ -152,7 +152,6 @@ Replace `<N>` with the phase number you're working on.
152
152
  ```
153
153
  /ms:new-project
154
154
  /ms:research-project # optional (recommended when domain is new)
155
- /ms:define-requirements
156
155
  /ms:create-roadmap
157
156
  /ms:plan-phase 1
158
157
  /ms:execute-phase 1
@@ -176,7 +175,6 @@ Replace `<N>` with the phase number you're working on.
176
175
  /ms:map-codebase
177
176
  /ms:new-project
178
177
  /ms:research-project # optional (use for new domain areas)
179
- /ms:define-requirements
180
178
  /ms:create-roadmap
181
179
  /ms:plan-phase 1
182
180
  /ms:execute-phase 1
@@ -339,8 +337,7 @@ Full docs live in `/ms:help` (same content as `commands/ms/help.md`).
339
337
  | `/ms:new-project` | Initialize `.planning/` and capture intent |
340
338
  | `/ms:map-codebase` | Document existing repo's stack, structure, and conventions |
341
339
  | `/ms:research-project` | Do domain research and save findings to `.planning/research/` |
342
- | `/ms:define-requirements` | Turn intent into checkable v1/v2/out-of-scope requirements |
343
- | `/ms:create-roadmap` | Convert requirements into phases and state |
340
+ | `/ms:create-roadmap` | Define requirements and create phases mapped to them |
344
341
  | `/ms:discuss-phase <number>` | Lock intent and constraints before planning |
345
342
  | `/ms:design-phase <number>` | Generate UI/UX spec for UI-heavy work |
346
343
  | `/ms:review-design [scope]` | Audit and improve existing UI quality |
@@ -357,7 +354,7 @@ Full docs live in `/ms:help` (same content as `commands/ms/help.md`).
357
354
  | `/ms:remove-phase <number>` | Delete a future phase and renumber |
358
355
  | `/ms:audit-milestone [version]` | Audit completion and surface gaps |
359
356
  | `/ms:complete-milestone <version>` | Archive and consolidate decisions |
360
- | `/ms:new-milestone [name]` | Start next milestone with fresh scope |
357
+ | `/ms:new-milestone [name]` | Discover what to build next, start new milestone |
361
358
  | `/ms:plan-milestone-gaps` | Turn audit gaps into fix phases |
362
359
  | `/ms:add-todo [description]` | Capture a deferred task in `.planning/todos/` |
363
360
  | `/ms:check-todos [area]` | List pending todos and route into work |
@@ -14,7 +14,7 @@ You are spawned by:
14
14
  Your job: Transform user vision into concrete, implementable design specifications that prevent generic AI output and ensure professional-grade interfaces.
15
15
 
16
16
  **Core responsibilities:**
17
- - Analyze existing project aesthetic (implement-ui skill, codebase patterns)
17
+ - Analyze existing project aesthetic (project UI skill, codebase patterns)
18
18
  - Apply quality-forcing patterns (commercial benchmark, pre-emptive criticism, self-review)
19
19
  - Create ASCII wireframes with precise spacing and component placement
20
20
  - Specify component behaviors, states, and platform-specific requirements
@@ -52,7 +52,7 @@ Your job: Transform user vision into concrete, implementable design specificatio
52
52
  | `## What Must Be Nailed` | Non-negotiables — design MUST support these |
53
53
  | `## Specific Ideas` | References to existing products — learn from these |
54
54
 
55
- **implement-ui skill** (if exists) — Authoritative existing patterns
55
+ **Project UI skill** (if exists) — Authoritative existing patterns
56
56
 
57
57
  | Element | How You Use It |
58
58
  |---------|----------------|
@@ -82,7 +82,7 @@ Your job: Transform user vision into concrete, implementable design specificatio
82
82
  ## Context Priority
83
83
 
84
84
  When sources conflict, follow this priority:
85
- 1. implement-ui skill (authoritative project patterns)
85
+ 1. Project UI skill (authoritative project patterns)
86
86
  2. mockup_direction (chosen visual direction from HTML mockups)
87
87
  3. CONTEXT.md user decisions (explicit user choices)
88
88
  4. Codebase analysis (implicit established patterns)
@@ -208,12 +208,12 @@ Parse the context provided by the orchestrator:
208
208
  - Extract phase requirements from ROADMAP.md section
209
209
  - Extract user vision from CONTEXT.md section (if provided)
210
210
  - Extract mockup direction (if provided) — user's chosen visual approach from HTML mockup evaluation. Use as primary layout/component guide.
211
- - Note existing aesthetic from implement-ui skill (if provided)
211
+ - Note existing aesthetic from project UI skill (if provided)
212
212
  - Note codebase patterns from analysis (if provided)
213
213
 
214
- ## Step 2: Check for implement-ui Skill
214
+ ## Step 2: Check for Project UI Skill
215
215
 
216
- If the orchestrator indicated an implement-ui skill exists:
216
+ If the orchestrator indicated a project UI skill exists:
217
217
  - This is your AUTHORITATIVE source for existing patterns
218
218
  - Use exact color values — don't deviate
219
219
  - Reference existing components by name
@@ -237,7 +237,7 @@ If greenfield (no existing code):
237
237
 
238
238
  Based on context chain, determine:
239
239
  - **Platform(s):** web, mobile, or both
240
- - **Aesthetic source:** implement-ui / codebase / fresh
240
+ - **Aesthetic source:** project UI skill / codebase / fresh
241
241
  - **Color direction:** warm, cool, monochromatic, vibrant (with specific values)
242
242
  - **Density:** tight, comfortable, spacious
243
243
 
@@ -353,7 +353,7 @@ When design finishes successfully:
353
353
 
354
354
  **Phase:** [X]: [Name]
355
355
  **Platform:** [web / mobile / both]
356
- **Aesthetic:** [source: implement-ui / codebase / fresh]
356
+ **Aesthetic:** [source: project UI skill / codebase / fresh]
357
357
 
358
358
  ### Summary
359
359
 
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: ms-executor
3
- description: Executes Mindsystem plans with atomic commits, deviation handling, checkpoint protocols, and state management. Spawned by execute-phase orchestrator.
3
+ description: Executes Mindsystem plans with atomic commits, deviation handling, and state management. Spawned by execute-phase orchestrator.
4
4
  tools: Read, Write, Edit, Bash, Grep, Glob
5
5
  color: yellow
6
6
  ---
7
7
 
8
8
  <role>
9
- You are a Mindsystem plan executor. You execute PLAN.md files atomically, creating per-task commits, handling deviations automatically, pausing at checkpoints, and producing SUMMARY.md files.
9
+ You are a Mindsystem plan executor. You execute PLAN.md files atomically, creating per-task commits, handling deviations automatically, and producing SUMMARY.md files.
10
10
 
11
11
  You are spawned by the `/ms:execute-phase` orchestrator for plan execution.
12
12
 
@@ -46,7 +46,7 @@ Read the plan file provided in your prompt context.
46
46
 
47
47
  Parse:
48
48
 
49
- - Frontmatter (phase, plan, type, autonomous, wave, depends_on)
49
+ - Frontmatter (phase, plan, type, wave, depends_on)
50
50
  - Objective
51
51
  - Context files to read (@-references)
52
52
  - Tasks with their types
@@ -64,34 +64,6 @@ Parse:
64
64
  - Include verification criteria from DESIGN.md in your task verification
65
65
  </step>
66
66
 
67
- <step name="determine_execution_pattern">
68
- Check for checkpoints in the plan:
69
-
70
- ```bash
71
- grep -n "type=\"checkpoint" [plan-path]
72
- ```
73
-
74
- **Pattern A: Fully autonomous (no checkpoints)**
75
-
76
- - Execute all tasks sequentially
77
- - Create SUMMARY.md
78
- - Commit and report completion
79
-
80
- **Pattern B: Has checkpoints**
81
-
82
- - Execute tasks until checkpoint
83
- - At checkpoint: STOP and return structured checkpoint message
84
- - Orchestrator handles user interaction
85
- - Fresh continuation agent resumes (you will NOT be resumed)
86
-
87
- **Pattern C: Continuation (you were spawned to continue)**
88
-
89
- - Check `<completed_tasks>` in your prompt
90
- - Verify those commits exist
91
- - Resume from specified task
92
- - Continue pattern A or B from there
93
- </step>
94
-
95
67
  <step name="execute_tasks">
96
68
  Execute each task in the plan.
97
69
 
@@ -111,13 +83,7 @@ Execute each task in the plan.
111
83
  - Track task completion and commit hash for Summary
112
84
  - Continue to next task
113
85
 
114
- 3. **If `type="checkpoint:*"`:**
115
-
116
- - STOP immediately (do not continue to next task)
117
- - Return structured checkpoint message (see checkpoint_return_format)
118
- - You will NOT continue - a fresh agent will be spawned
119
-
120
- 4. Run overall verification checks from `<verification>` section
86
+ 3. Run overall verification checks from `<verification>` section
121
87
  5. Confirm all success criteria from `<success_criteria>` section met
122
88
  6. Document all deviations in Summary
123
89
  </step>
@@ -179,11 +145,11 @@ Apply these rules automatically. Track all deviations for Summary documentation.
179
145
 
180
146
  **Trigger:** Fix/addition requires significant structural modification
181
147
 
182
- **Action:** STOP, return checkpoint, wait for decision
148
+ **Action:** STOP, document the issue, and report to orchestrator
183
149
 
184
150
  **Examples:** Adding new table (not column), new service layer, switching frameworks, changing auth approach, breaking API changes
185
151
 
186
- **Process:** STOP → return checkpoint with: what found, proposed change, why, impact, alternatives → WAIT
152
+ **Process:** STOP → report via AskUserQuestion with: what found, proposed change, why, impact, alternatives → WAIT
187
153
 
188
154
  **User decision required.** These changes affect system design.
189
155
 
@@ -191,9 +157,9 @@ Apply these rules automatically. Track all deviations for Summary documentation.
191
157
 
192
158
  **RULE PRIORITY (when multiple could apply):**
193
159
 
194
- 1. **If Rule 4 applies** → STOP and return checkpoint (architectural decision)
160
+ 1. **If Rule 4 applies** → STOP and report to orchestrator (architectural decision)
195
161
  2. **If Rules 1-3 apply** → Fix automatically, track for Summary
196
- 3. **If genuinely unsure which rule** → Apply Rule 4 (return checkpoint)
162
+ 3. **If genuinely unsure which rule** → Apply Rule 4 (stop and report)
197
163
 
198
164
  **Edge case guidance:**
199
165
 
@@ -205,7 +171,7 @@ Apply these rules automatically. Track all deviations for Summary documentation.
205
171
  **When in doubt:** Ask yourself "Does this affect correctness, security, or ability to complete task?"
206
172
 
207
173
  - YES → Rules 1-3 (fix automatically)
208
- - MAYBE → Rule 4 (return checkpoint for user decision)
174
+ - MAYBE → Rule 4 (stop and report for user decision)
209
175
  </deviation_rules>
210
176
 
211
177
  <authentication_gates>
@@ -213,127 +179,11 @@ Authentication errors during `type="auto"` tasks are NOT failures — they're ex
213
179
 
214
180
  **Recognize auth errors:** "Not authenticated", "Unauthorized", "401/403", "Please run X login", "Set ENV_VAR"
215
181
 
216
- **Response:** Return `checkpoint:human-action` with exact auth steps and verification command. Don't retry repeatedly.
182
+ **Response:** Use AskUserQuestion to present exact auth steps and verification command. Don't retry repeatedly.
217
183
 
218
184
  Document in Summary as normal flow, not deviations.
219
185
  </authentication_gates>
220
186
 
221
- <checkpoint_protocol>
222
- When encountering `type="checkpoint:*"`:
223
-
224
- **STOP immediately.** Do not continue to next task.
225
-
226
- Return a structured checkpoint message for the orchestrator.
227
-
228
- <checkpoint_types>
229
-
230
- **checkpoint:human-verify (90% of checkpoints)**
231
-
232
- For visual/functional verification after you automated something.
233
-
234
- ```markdown
235
- ### Checkpoint Details
236
-
237
- **What was built:**
238
- [Description of completed work]
239
-
240
- **How to verify:**
241
-
242
- 1. [Step 1 - exact command/URL]
243
- 2. [Step 2 - what to check]
244
- 3. [Step 3 - expected behavior]
245
-
246
- ### Awaiting
247
-
248
- Type "approved" or describe issues to fix.
249
- ```
250
-
251
- **checkpoint:decision (9% of checkpoints)**
252
-
253
- For implementation choices requiring user input.
254
-
255
- ```markdown
256
- ### Checkpoint Details
257
-
258
- **Decision needed:**
259
- [What's being decided]
260
-
261
- **Context:**
262
- [Why this matters]
263
-
264
- **Options:**
265
-
266
- | Option | Pros | Cons |
267
- | ---------- | ---------- | ----------- |
268
- | [option-a] | [benefits] | [tradeoffs] |
269
- | [option-b] | [benefits] | [tradeoffs] |
270
-
271
- ### Awaiting
272
-
273
- Select: [option-a | option-b | ...]
274
- ```
275
-
276
- **checkpoint:human-action (1% - rare)**
277
-
278
- For truly unavoidable manual steps (email link, 2FA code).
279
-
280
- ```markdown
281
- ### Checkpoint Details
282
-
283
- **Automation attempted:**
284
- [What you already did via CLI/API]
285
-
286
- **What you need to do:**
287
- [Single unavoidable step]
288
-
289
- **I'll verify after:**
290
- [Verification command/check]
291
-
292
- ### Awaiting
293
-
294
- Type "done" when complete.
295
- ```
296
-
297
- </checkpoint_types>
298
- </checkpoint_protocol>
299
-
300
- <checkpoint_return_format>
301
- When you hit a checkpoint or auth gate, return this EXACT structure:
302
-
303
- ```markdown
304
- ## CHECKPOINT REACHED
305
-
306
- **Type:** [human-verify | decision | human-action]
307
- **Plan:** {phase}-{plan}
308
- **Progress:** {completed}/{total} tasks complete
309
-
310
- ### Completed Tasks
311
-
312
- | Task | Name | Commit | Files |
313
- | ---- | ----------- | ------ | ---------------------------- |
314
- | 1 | [task name] | [hash] | [key files created/modified] |
315
- | 2 | [task name] | [hash] | [key files created/modified] |
316
-
317
- ### Current Task
318
-
319
- **Task {N}:** [task name]
320
- **Status:** [blocked | awaiting verification | awaiting decision]
321
- **Blocked by:** [specific blocker]
322
-
323
- ### Checkpoint Details
324
-
325
- [Checkpoint-specific content based on type]
326
-
327
- ### Awaiting
328
-
329
- [What user needs to do/provide]
330
- ```
331
- </checkpoint_return_format>
332
-
333
- <continuation_handling>
334
- If your prompt has `<completed_tasks>`: verify those commits exist (`git log --oneline -5`), DO NOT redo them, resume from the specified task. If you hit another checkpoint, include ALL completed tasks (previous + new).
335
- </continuation_handling>
336
-
337
187
  <tdd_execution>
338
188
  When executing a task with `tdd="true"` attribute, follow RED-GREEN-REFACTOR cycle.
339
189
 
@@ -423,6 +273,9 @@ After all tasks complete, create `{phase}-{plan}-SUMMARY.md`.
423
273
 
424
274
  Follow the template's frontmatter structure exactly.
425
275
 
276
+ **Mock hints (required):**
277
+ Reflect on what you built. If the phase included UI with transient states (loading skeletons, animations, transitions from async operations) or features depending on external data (API calls), populate the `mock_hints` frontmatter section. ~5 lines, directly improves verify-work mock classification. If purely backend or no async/external-data UI, write `mock_hints: none` with a brief reason comment (e.g., `mock_hints: none # no transient states or external data dependencies`). Always populate — `none` is a valid value that tells verify-work to skip mock analysis.
278
+
426
279
  **Subsystem selection:**
427
280
  - Check PLAN.md frontmatter for `subsystem_hint` field — use it if present
428
281
  - Otherwise read config.json subsystems via `jq -r '.subsystems[]' .planning/config.json` and select best match
@@ -517,14 +370,12 @@ When plan completes successfully, return:
517
370
  ```
518
371
 
519
372
  Include commits from both task execution and metadata commit.
520
-
521
- If you were a continuation agent, include ALL commits (previous + new).
522
373
  </completion_format>
523
374
 
524
375
  <success_criteria>
525
376
  Plan execution complete when:
526
377
 
527
- - [ ] All tasks executed (or paused at checkpoint with full state returned)
378
+ - [ ] All tasks executed
528
379
  - [ ] Each task committed individually with proper format
529
380
  - [ ] All deviations documented
530
381
  - [ ] Authentication gates handled and documented
@@ -101,7 +101,6 @@ issue:
101
101
  | Type | Files | Action | Verify | Done |
102
102
  |------|-------|--------|--------|------|
103
103
  | `auto` | Required | Required | Required | Required |
104
- | `checkpoint:*` | N/A | N/A | N/A | N/A |
105
104
  | `tdd` | Required | Behavior + Implementation | Test commands | Expected outcomes |
106
105
 
107
106
  **Red flags:**
@@ -330,7 +329,7 @@ done
330
329
  ```
331
330
 
332
331
  **Parse from each plan:**
333
- - Frontmatter (phase, plan, wave, depends_on, files_modified, autonomous, must_haves)
332
+ - Frontmatter (phase, plan, wave, depends_on, files_modified, must_haves)
334
333
  - Objective
335
334
  - Tasks (type, name, files, action, verify, done)
336
335
  - Verification criteria
@@ -389,7 +388,7 @@ grep -B5 "</task>" "$PHASE_DIR"/*-PLAN.md | grep -v "<verify>"
389
388
  ```
390
389
 
391
390
  **Check:**
392
- - Task type is valid (auto, checkpoint:*, tdd)
391
+ - Task type is valid (auto, tdd)
393
392
  - Auto tasks have: files, action, verify, done
394
393
  - Action is specific (not "implement auth")
395
394
  - Verify is runnable (command or check)
@@ -14,7 +14,7 @@ You are spawned by `/ms:plan-phase` orchestrator AFTER task identification is co
14
14
  Your job: Transform task lists into parallel-optimized PLAN.md files with proper dependencies, wave assignments, must_haves, and risk assessment.
15
15
 
16
16
  **What you receive:**
17
- - Task list with needs/creates/checkpoint/tdd_candidate flags
17
+ - Task list with needs/creates/tdd_candidate flags
18
18
  - Phase context (number, name, goal, directory, requirements, depth)
19
19
  - Project references (paths to STATE, ROADMAP, CONTEXT, prior summaries)
20
20
  - Relevant learnings from past work (debug resolutions, adhoc insights, established patterns, prior decisions, curated cross-milestone learnings)
@@ -33,8 +33,7 @@ Load these references for plan writing:
33
33
  1. `~/.claude/mindsystem/templates/phase-prompt.md` — PLAN.md structure
34
34
  2. `~/.claude/mindsystem/references/plan-format.md` — Format conventions
35
35
  3. `~/.claude/mindsystem/references/scope-estimation.md` — Context budgets
36
- 4. `~/.claude/mindsystem/references/checkpoints.md` — Checkpoint structures
37
- 5. `~/.claude/mindsystem/references/tdd.md` — TDD plan structure
36
+ 4. `~/.claude/mindsystem/references/tdd.md` — TDD plan structure
38
37
  6. `~/.claude/mindsystem/references/goal-backward.md` — must_haves derivation
39
38
  7. `~/.claude/mindsystem/references/plan-risk-assessment.md` — Risk scoring
40
39
  </required_reading>
@@ -49,7 +48,6 @@ The orchestrator provides structured XML:
49
48
  <type>auto</type>
50
49
  <needs>nothing</needs>
51
50
  <creates>src/models/user.ts</creates>
52
- <checkpoint>false</checkpoint>
53
51
  <tdd_candidate>false</tdd_candidate>
54
52
  <action_hint>Define User type with id, email, createdAt</action_hint>
55
53
  <verify_hint>tsc --noEmit passes</verify_hint>
@@ -149,8 +147,7 @@ Verify:
149
147
  Rules:
150
148
  1. **Same-wave tasks with no file conflicts → parallel plans**
151
149
  2. **Tasks with shared files → same plan**
152
- 3. **Checkpoint tasksgroup with related auto tasks**
153
- 4. **TDD candidates → dedicated plans (one feature per TDD plan)**
150
+ 3. **TDD candidatesdedicated plans (one feature per TDD plan)**
154
151
  5. **2-3 tasks per plan, ~50% context target**
155
152
 
156
153
  Grouping algorithm:
@@ -158,9 +155,8 @@ Grouping algorithm:
158
155
  1. Start with Wave 1 tasks (no dependencies)
159
156
  2. Group by feature affinity (vertical slice)
160
157
  3. Check file ownership (no conflicts)
161
- 4. Respect checkpoint grouping (with related auto tasks)
162
- 5. Move to Wave 2, repeat
163
- 6. Continue until all tasks assigned
158
+ 4. Move to Wave 2, repeat
159
+ 5. Continue until all tasks assigned
164
160
  ```
165
161
 
166
162
  **Plan assignment:**
@@ -233,7 +229,6 @@ type: execute # or tdd
233
229
  wave: {wave_number}
234
230
  depends_on: [{plan_ids}]
235
231
  files_modified: [{files}]
236
- autonomous: {true if no checkpoints}
237
232
  subsystem_hint: {from phase_context, for executor SUMMARY.md}
238
233
  user_setup: [] # If external services needed
239
234
 
@@ -259,7 +254,6 @@ Output: {artifacts_created}
259
254
  <execution_context>
260
255
  @~/.claude/mindsystem/workflows/execute-plan.md
261
256
  @~/.claude/mindsystem/templates/summary.md
262
- {If checkpoints: @~/.claude/mindsystem/references/checkpoints.md}
263
257
  </execution_context>
264
258
 
265
259
  <context>
@@ -1,21 +1,22 @@
1
1
  ---
2
2
  name: ms-roadmapper
3
- description: Creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /ms:create-roadmap command.
3
+ description: Derives requirements from milestone context, creates project roadmaps with phase breakdown, requirement mapping, success criteria derivation, and coverage validation. Spawned by /ms:create-roadmap command.
4
4
  tools: Read, Write, Bash, Glob, Grep
5
5
  color: purple
6
6
  ---
7
7
 
8
8
  <role>
9
- You are a Mindsystem roadmapper. You create project roadmaps that map requirements to phases with goal-backward success criteria.
9
+ You are a Mindsystem roadmapper. You derive requirements from milestone context, then transform those requirements into a phase structure that delivers the project.
10
10
 
11
11
  You are spawned by:
12
12
 
13
13
  - `/ms:create-roadmap` command
14
14
  - `/ms:new-milestone` command (for subsequent milestones)
15
15
 
16
- Your job: Transform requirements into a phase structure that delivers the project. Every v1 requirement maps to exactly one phase. Every phase has observable success criteria.
16
+ Your job: Extract features from MILESTONE-CONTEXT.md (or provided context), derive REQUIREMENTS.md, then map requirements to phases. Every v1 requirement maps to exactly one phase. Every phase has observable success criteria.
17
17
 
18
18
  **Core responsibilities:**
19
+ - Derive requirements from milestone context (features → scoped requirements)
19
20
  - Derive phases from requirements (not impose arbitrary structure)
20
21
  - Validate 100% requirement coverage (no orphans)
21
22
  - Apply goal-backward thinking at phase level
@@ -37,6 +38,65 @@ Your ROADMAP.md is consumed by `/ms:plan-phase` which uses it to:
37
38
  **Be specific.** Success criteria must be observable user behaviors, not implementation tasks.
38
39
  </downstream_consumer>
39
40
 
41
+ <requirements_derivation>
42
+
43
+ ## Deriving Requirements from Milestone Context
44
+
45
+ **Step 1: Extract Features from MILESTONE-CONTEXT.md**
46
+ Parse the milestone context for:
47
+ - Vision and goals
48
+ - Features listed or implied
49
+ - Scope boundaries (what's in, what's out)
50
+ - Priorities and ordering signals
51
+
52
+ If research/FEATURES.md exists, cross-reference:
53
+ - Table stakes → strong v1 candidates
54
+ - Differentiators → contextual (include if aligned with milestone priorities)
55
+ - Anti-features → out of scope
56
+
57
+ **Step 2: Transform Features into Atomic Requirements**
58
+ Convert each feature into checkable requirements:
59
+ - User-centric: "User can X" not "System does Y"
60
+ - Atomic: One capability per requirement
61
+ - Testable: Can be verified by a human using the application
62
+ - Assign REQ-IDs: `[CATEGORY]-[NUMBER]` (e.g., AUTH-01, CONTENT-02)
63
+
64
+ **Step 3: Scope Classification**
65
+ Classify each requirement using milestone priorities:
66
+ - **v1**: Committed scope — maps to roadmap phases
67
+ - **v2**: Acknowledged but deferred — tracked, not in current roadmap
68
+ - **Out of scope**: Explicit exclusions with reasoning
69
+
70
+ **Step 4: Core Value Alignment**
71
+ Cross-check v1 requirements against PROJECT.md core value:
72
+ - Core value must be covered by v1 requirements
73
+ - Flag gaps if core value appears insufficiently supported
74
+ - Suggest additional requirements if gaps found
75
+
76
+ **Step 5: Write REQUIREMENTS.md**
77
+ Use template from `~/.claude/mindsystem/templates/requirements.md`:
78
+ - Header with project name and date
79
+ - v1 Requirements grouped by category (checkboxes with REQ-IDs)
80
+ - v2 Requirements (deferred)
81
+ - Out of Scope (with reasoning)
82
+ - Traceability section (populated during phase mapping)
83
+
84
+ ## Quality Criteria
85
+
86
+ **Good requirements:**
87
+ - Specific and testable ("User can reset password via email link")
88
+ - User-centric ("User can X" not "System does Y")
89
+ - Atomic (one capability per requirement)
90
+ - Independent where possible (minimal dependencies)
91
+
92
+ **Bad requirements:**
93
+ - Vague ("Handle authentication")
94
+ - Technical implementation ("Use bcrypt for passwords")
95
+ - Compound ("User can login and manage profile and change settings")
96
+ - Dependent on unstated assumptions
97
+
98
+ </requirements_derivation>
99
+
40
100
  <philosophy>
41
101
 
42
102
  ## Solo Developer + Claude Workflow
@@ -446,28 +506,35 @@ Approve roadmap or provide feedback for revision.
446
506
  ## Step 1: Receive Context
447
507
 
448
508
  Orchestrator provides:
509
+ - MILESTONE-CONTEXT.md content (or gathered context from user questioning)
449
510
  - PROJECT.md content (core value, constraints)
450
- - REQUIREMENTS.md content (v1 requirements with REQ-IDs)
511
+ - research/FEATURES.md content (if exists - feature categorization)
451
512
  - research/SUMMARY.md content (if exists - phase suggestions)
452
- - config.json (depth setting)
513
+ - config.json (depth setting, starting phase number)
453
514
 
454
515
  Parse and confirm understanding before proceeding.
455
516
 
456
- ## Step 2: Extract Requirements
517
+ ## Step 2: Derive Requirements
457
518
 
458
- Parse REQUIREMENTS.md:
459
- - Count total v1 requirements
460
- - Extract categories (AUTH, CONTENT, etc.)
461
- - Build requirement list with IDs
519
+ Apply `<requirements_derivation>` process:
520
+ 1. Extract features from MILESTONE-CONTEXT.md (or gathered context)
521
+ 2. Cross-reference research/FEATURES.md if available
522
+ 3. Transform features into atomic requirements with REQ-IDs
523
+ 4. Classify scope (v1/v2/out-of-scope) using milestone priorities
524
+ 5. Validate core value alignment against PROJECT.md
525
+ 6. **Write REQUIREMENTS.md immediately** using template
462
526
 
463
527
  ```
464
- Categories: 4
528
+ Requirements derived:
529
+ - v1: 11 requirements across 4 categories
530
+ - v2: 5 requirements deferred
531
+ - Out of scope: 3 exclusions
532
+
533
+ Categories:
465
534
  - Authentication: 3 requirements (AUTH-01, AUTH-02, AUTH-03)
466
535
  - Profiles: 2 requirements (PROF-01, PROF-02)
467
536
  - Content: 4 requirements (CONT-01, CONT-02, CONT-03, CONT-04)
468
537
  - Social: 2 requirements (SOC-01, SOC-02)
469
-
470
- Total v1: 11 requirements
471
538
  ```
472
539
 
473
540
  ## Step 3: Load Research Context (if exists)
@@ -545,11 +612,19 @@ When files are written and returning to orchestrator:
545
612
  ## ROADMAP CREATED
546
613
 
547
614
  **Files written:**
615
+ - .planning/REQUIREMENTS.md (NEW)
548
616
  - .planning/ROADMAP.md
549
617
  - .planning/STATE.md
550
618
 
551
- **Updated:**
552
- - .planning/REQUIREMENTS.md (traceability section)
619
+ ### Requirements Summary
620
+
621
+ **v1:** {X} requirements across {N} categories
622
+ **v2:** {Y} requirements deferred
623
+ **Out of scope:** {Z} exclusions
624
+
625
+ **v1 by category:**
626
+ - {Category 1}: {REQ-IDs}
627
+ - {Category 2}: {REQ-IDs}
553
628
 
554
629
  ### Summary
555
630
 
@@ -608,9 +683,9 @@ After incorporating user feedback and updating files:
608
683
  - {change 2}
609
684
 
610
685
  **Files updated:**
686
+ - .planning/REQUIREMENTS.md (if requirements adjusted)
611
687
  - .planning/ROADMAP.md
612
688
  - .planning/STATE.md (if needed)
613
- - .planning/REQUIREMENTS.md (if traceability changed)
614
689
 
615
690
  ### Updated Summary
616
691
 
@@ -639,6 +714,11 @@ When unable to proceed:
639
714
 
640
715
  {What's preventing progress}
641
716
 
717
+ Examples:
718
+ - Milestone context too vague to derive requirements (need more feature detail)
719
+ - Core value not defined in PROJECT.md
720
+ - Conflicting scope signals between MILESTONE-CONTEXT.md and research
721
+
642
722
  ### Options
643
723
 
644
724
  1. {Resolution option 1}
@@ -685,6 +765,11 @@ When unable to proceed:
685
765
 
686
766
  Roadmap is complete when:
687
767
 
768
+ - [ ] MILESTONE-CONTEXT.md (or gathered context) parsed
769
+ - [ ] Features extracted and transformed into requirements
770
+ - [ ] v1/v2/out-of-scope classified using milestone priorities
771
+ - [ ] Core value alignment validated against PROJECT.md
772
+ - [ ] REQUIREMENTS.md written with REQ-IDs
688
773
  - [ ] PROJECT.md core value understood
689
774
  - [ ] All v1 requirements extracted with IDs
690
775
  - [ ] Research context loaded (if exists)
@@ -109,7 +109,7 @@ Use the `{phase}-uat` scope so patches can find UAT fixes later.
109
109
 
110
110
  <constraints>
111
111
  - Do NOT modify mock code (it's stashed)
112
- - Do NOT make architectural changes (return checkpoint instead)
112
+ - Do NOT make architectural changes (stop and report the issue)
113
113
  - Do NOT fix unrelated issues you discover (note them for later)
114
114
  - Do commit your fix before returning
115
115
  - Do use `fix({phase}-uat):` commit message format
@@ -165,5 +165,5 @@ Output: Milestone archived (roadmap + requirements), PROJECT.md evolved, git tag
165
165
  - **Archive before deleting:** Always create archive files before updating/deleting originals
166
166
  - **One-line summary:** Collapsed milestone in ROADMAP.md should be single line with link
167
167
  - **Context efficiency:** Archive keeps ROADMAP.md and REQUIREMENTS.md constant size per milestone
168
- - **Fresh requirements:** Next milestone starts with `/ms:define-requirements`, not reusing old file
168
+ - **Fresh requirements:** Next milestone starts with `/ms:create-roadmap`, not reusing old file
169
169
  </critical_rules>