mindsystem-cc 3.10.1 → 3.12.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 (34) hide show
  1. package/README.md +1 -1
  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 +6 -21
  6. package/agents/ms-roadmapper.md +1 -18
  7. package/agents/ms-verify-fixer.md +1 -1
  8. package/commands/ms/design-phase.md +9 -14
  9. package/commands/ms/execute-phase.md +0 -9
  10. package/commands/ms/help.md +1 -8
  11. package/commands/ms/new-project.md +3 -40
  12. package/commands/ms/review-design.md +4 -7
  13. package/commands/ms/verify-work.md +1 -1
  14. package/mindsystem/references/design-directions.md +1 -1
  15. package/mindsystem/references/mock-patterns.md +48 -0
  16. package/mindsystem/references/plan-format.md +2 -129
  17. package/mindsystem/references/scope-estimation.md +3 -36
  18. package/mindsystem/templates/config.json +0 -13
  19. package/mindsystem/templates/design.md +1 -1
  20. package/mindsystem/templates/phase-prompt.md +6 -142
  21. package/mindsystem/templates/roadmap.md +1 -1
  22. package/mindsystem/templates/summary.md +24 -0
  23. package/mindsystem/workflows/execute-phase.md +4 -99
  24. package/mindsystem/workflows/execute-plan.md +12 -523
  25. package/mindsystem/workflows/generate-mocks.md +74 -0
  26. package/mindsystem/workflows/mockup-generation.md +11 -5
  27. package/mindsystem/workflows/plan-phase.md +15 -60
  28. package/mindsystem/workflows/transition.md +1 -10
  29. package/mindsystem/workflows/verify-work.md +97 -17
  30. package/package.json +1 -1
  31. package/scripts/__pycache__/compare_mockups.cpython-314.pyc +0 -0
  32. package/scripts/compare_mockups.py +219 -0
  33. package/mindsystem/references/checkpoint-detection.md +0 -50
  34. package/mindsystem/references/checkpoints.md +0 -788
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
 
@@ -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,8 +14,8 @@ 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
18
- - Phase context (number, name, goal, directory, requirements, depth)
17
+ - Task list with needs/creates/tdd_candidate flags
18
+ - Phase context (number, name, goal, directory, requirements)
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)
21
21
 
@@ -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>
@@ -64,7 +62,6 @@ The orchestrator provides structured XML:
64
62
  <phase_dir>.planning/phases/03-authentication</phase_dir>
65
63
  <phase_goal>Users can securely access accounts</phase_goal>
66
64
  <requirements>AUTH-01, AUTH-02</requirements>
67
- <depth>standard</depth>
68
65
  <subsystem_hint>auth</subsystem_hint>
69
66
  </phase_context>
70
67
 
@@ -149,8 +146,7 @@ Verify:
149
146
  Rules:
150
147
  1. **Same-wave tasks with no file conflicts → parallel plans**
151
148
  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)**
149
+ 3. **TDD candidatesdedicated plans (one feature per TDD plan)**
154
150
  5. **2-3 tasks per plan, ~50% context target**
155
151
 
156
152
  Grouping algorithm:
@@ -158,9 +154,8 @@ Grouping algorithm:
158
154
  1. Start with Wave 1 tasks (no dependencies)
159
155
  2. Group by feature affinity (vertical slice)
160
156
  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
157
+ 4. Move to Wave 2, repeat
158
+ 5. Continue until all tasks assigned
164
159
  ```
165
160
 
166
161
  **Plan assignment:**
@@ -210,14 +205,6 @@ If any plan exceeds:
210
205
  - 10+ files: Split by subsystem
211
206
  - Complex domain (auth, payments): Consider extra split
212
207
 
213
- **Depth calibration:**
214
- | Depth | Plans/Phase | Tasks/Plan |
215
- |-------|-------------|------------|
216
- | Quick | 1-3 | 2-3 |
217
- | Standard | 3-5 | 2-3 |
218
- | Comprehensive | 5-10 | 2-3 |
219
-
220
- Tasks/plan is constant. Depth affects plan count, not size.
221
208
  </step>
222
209
 
223
210
  <step name="write_plan_files">
@@ -233,7 +220,6 @@ type: execute # or tdd
233
220
  wave: {wave_number}
234
221
  depends_on: [{plan_ids}]
235
222
  files_modified: [{files}]
236
- autonomous: {true if no checkpoints}
237
223
  subsystem_hint: {from phase_context, for executor SUMMARY.md}
238
224
  user_setup: [] # If external services needed
239
225
 
@@ -259,7 +245,6 @@ Output: {artifacts_created}
259
245
  <execution_context>
260
246
  @~/.claude/mindsystem/workflows/execute-plan.md
261
247
  @~/.claude/mindsystem/templates/summary.md
262
- {If checkpoints: @~/.claude/mindsystem/references/checkpoints.md}
263
248
  </execution_context>
264
249
 
265
250
  <context>
@@ -327,18 +327,6 @@ Track coverage as you go.
327
327
  - New milestone: Start at 1
328
328
  - Continuing milestone: Check existing phases, start at last + 1
329
329
 
330
- ## Depth Calibration
331
-
332
- Read depth from config.json. Depth controls compression tolerance.
333
-
334
- | Depth | Typical Phases | What It Means |
335
- |-------|----------------|---------------|
336
- | Quick | 3-5 | Combine aggressively, critical path only |
337
- | Standard | 5-8 | Balanced grouping |
338
- | Comprehensive | 8-12 | Let natural boundaries stand |
339
-
340
- **Key:** Derive phases from work, then apply depth as compression guidance. Don't pad small projects or compress complex ones.
341
-
342
330
  ## Good Phase Patterns
343
331
 
344
332
  **Foundation → Features → Enhancement**
@@ -449,7 +437,6 @@ When presenting to user for approval:
449
437
  ## ROADMAP DRAFT
450
438
 
451
439
  **Phases:** [N]
452
- **Depth:** [from config]
453
440
  **Coverage:** [X]/[Y] requirements mapped
454
441
 
455
442
  ### Phase Structure
@@ -510,7 +497,7 @@ Orchestrator provides:
510
497
  - PROJECT.md content (core value, constraints)
511
498
  - research/FEATURES.md content (if exists - feature categorization)
512
499
  - research/SUMMARY.md content (if exists - phase suggestions)
513
- - config.json (depth setting, starting phase number)
500
+ - config.json (starting phase number)
514
501
 
515
502
  Parse and confirm understanding before proceeding.
516
503
 
@@ -552,8 +539,6 @@ Apply phase identification methodology:
552
539
  1. Group requirements by natural delivery boundaries
553
540
  2. Identify dependencies between groups
554
541
  3. Create phases that complete coherent capabilities
555
- 4. Check depth setting for compression guidance
556
-
557
542
  ## Step 5: Derive Success Criteria and Pre-Work Flags
558
543
 
559
544
  For each phase, apply goal-backward:
@@ -629,7 +614,6 @@ When files are written and returning to orchestrator:
629
614
  ### Summary
630
615
 
631
616
  **Phases:** {N}
632
- **Depth:** {from config}
633
617
  **Coverage:** {X}/{X} requirements mapped ✓
634
618
 
635
619
  | Phase | Goal | Requirements |
@@ -774,7 +758,6 @@ Roadmap is complete when:
774
758
  - [ ] All v1 requirements extracted with IDs
775
759
  - [ ] Research context loaded (if exists)
776
760
  - [ ] Phases derived from requirements (not imposed)
777
- - [ ] Depth calibration applied
778
761
  - [ ] Dependencies between phases identified
779
762
  - [ ] Success criteria derived for each phase (2-5 observable behaviors)
780
763
  - [ ] Success criteria cross-checked against requirements (gaps resolved)
@@ -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
@@ -12,7 +12,7 @@ allowed-tools:
12
12
  <objective>
13
13
  Create design specifications for a phase. Spawns ms-designer agent with phase context.
14
14
 
15
- **Orchestrator role:** Parse phase, validate against roadmap, check existing design, gather context chain (CONTEXT.md → implement-ui → codebase), adaptive Q&A if gaps, spawn designer agent, enable conversational refinement.
15
+ **Orchestrator role:** Parse phase, validate against roadmap, check existing design, gather context chain (CONTEXT.md → project UI skill → codebase), adaptive Q&A if gaps, spawn designer agent, enable conversational refinement.
16
16
 
17
17
  **Why subagent:** Design requires focused attention with quality-forcing patterns. Fresh 200k context for design generation. Main context reserved for user refinement conversation.
18
18
 
@@ -107,14 +107,9 @@ If exists, extract:
107
107
  - What Must Be Nailed (essentials)
108
108
  - Specific Ideas (references to products)
109
109
 
110
- **3c. Optional context - implement-ui skill:**
110
+ **3c. Optional context project UI skill:**
111
111
 
112
- ```bash
113
- # Check for implement-ui skill
114
- ls .claude/skills/*implement-ui* 2>/dev/null
115
- ```
116
-
117
- If exists, load it as the authoritative source of existing patterns.
112
+ Before proceeding, check your available skills for one that provides domain expertise relevant to this project's UI implementation patterns. If found, invoke it via the Skill tool and extract aesthetic patterns (colors, components, spacing, typography) for the `<existing_aesthetic>` block passed to ms-designer.
118
113
 
119
114
  **3d. Optional context - codebase analysis:**
120
115
 
@@ -140,7 +135,7 @@ Document discovered patterns for the designer.
140
135
 
141
136
  Assess context coverage:
142
137
  - Can platform be inferred? (from codebase or PROJECT.md)
143
- - Can visual style be inferred? (from implement-ui or codebase)
138
+ - Can visual style be inferred? (from project UI skill or codebase)
144
139
  - Can design priorities be inferred? (from CONTEXT.md or phase requirements)
145
140
 
146
141
  **If everything can be inferred:** Skip to step 5.
@@ -183,7 +178,7 @@ Follow mockup-generation workflow:
183
178
  4. Present directions to user for approval/tweaking
184
179
  5. Read platform template (mobile or web)
185
180
  6. Spawn 3 x ms-mockup-designer agents in parallel
186
- 7. Present mockup file paths user opens in browser
181
+ 7. Generate comparison page, open in browser, and present to user
187
182
  8. Handle selection (single pick, combine, tweak, more variants, or skip)
188
183
  9. Extract CSS specs from chosen variant into `<mockup_direction>` block
189
184
 
@@ -240,15 +235,15 @@ Reference products: [From Q&A if asked, or "None specified"]
240
235
  </user_vision>
241
236
 
242
237
  <existing_aesthetic>
243
- [If implement-ui skill exists:]
238
+ [If project UI skill exists:]
244
239
 
245
- Authoritative patterns from implement-ui skill:
240
+ Authoritative patterns from project UI skill:
246
241
  - Color palette: [exact values]
247
242
  - Typography: [font families, sizes]
248
243
  - Spacing system: [scale values]
249
244
  - Component library: [named components]
250
245
 
251
- [If no skill, from codebase analysis:]
246
+ [If no UI skill, from codebase analysis:]
252
247
 
253
248
  Discovered patterns from codebase:
254
249
  - Colors found: [hex values from theme/styles]
@@ -393,7 +388,7 @@ Update `.planning/STATE.md` Last Command field:
393
388
  - [ ] Phase validated against roadmap
394
389
  - [ ] Existing design checked and handled appropriately
395
390
  - [ ] Context chain loaded (PROJECT.md, ROADMAP.md, CONTEXT.md if exists)
396
- - [ ] implement-ui skill loaded if exists
391
+ - [ ] Project UI skill discovered and loaded if exists
397
392
  - [ ] Codebase analyzed for existing patterns
398
393
  - [ ] Adaptive Q&A completed if gaps existed
399
394
  - [ ] Mockup generation offered if phase has significant new UI
@@ -173,15 +173,6 @@ All three run in parallel. Task tool blocks until all complete.
173
173
  **No polling.** No background agents. No TaskOutput loops.
174
174
  </wave_execution>
175
175
 
176
- <checkpoint_handling>
177
- Plans with `autonomous: false` have checkpoints. The execute-phase.md workflow handles the full checkpoint flow:
178
- - Subagent pauses at checkpoint, returns structured state
179
- - Orchestrator presents to user, collects response
180
- - Spawns fresh continuation agent (not resume)
181
-
182
- See `@~/.claude/mindsystem/workflows/execute-phase.md` step `checkpoint_handling` for complete details.
183
- </checkpoint_handling>
184
-
185
176
  <deviation_rules>
186
177
  During execution, handle discoveries automatically:
187
178
 
@@ -132,7 +132,7 @@ Create visual/UX design specifications for UI-heavy phases.
132
132
  - Produces DESIGN.md with layouts, components, flows, verification criteria
133
133
  - Optionally generates parallel HTML mockup variants for visual direction exploration
134
134
  - Applies quality-forcing patterns to prevent generic AI output
135
- - Checks for existing implement-ui skill and harmonizes with codebase
135
+ - Discovers project UI skill dynamically and harmonizes with codebase
136
136
  - Use for phases with significant UI work, novel components, or cross-platform design
137
137
 
138
138
  Usage: `/ms:design-phase 3`
@@ -194,18 +194,11 @@ Execute all unexecuted plans in a phase with wave-based parallelization.
194
194
 
195
195
  - Use when: the phase has PLAN.md files and you want Mindsystem to run them (including verification and possible gap-closure loop).
196
196
  - Spawns parallel agents for independent plans
197
- - Handles checkpoints with user interaction
198
197
  - Resumes automatically from interrupted execution
199
198
  - Creates SUMMARY.md for each completed plan
200
- - Respects max_concurrent_agents from config.json
201
199
 
202
200
  Usage: `/ms:execute-phase 5`
203
201
 
204
- Options (via `.planning/config.json` parallelization section):
205
- - `max_concurrent_agents`: Limit parallel agents (default: 3)
206
- - `skip_checkpoints`: Skip human checkpoints in background (default: true)
207
- - `min_plans_for_parallel`: Minimum plans to trigger parallelization (default: 2)
208
-
209
202
  ### Verification
210
203
 
211
204
  **`/ms:check-phase <number>`**