mindsystem-cc 3.10.1 → 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.
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,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>
@@ -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,16 @@ 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
+ Discover project-level skills:
112
113
  ```bash
113
- # Check for implement-ui skill
114
- ls .claude/skills/*implement-ui* 2>/dev/null
114
+ ls .claude/skills/*/SKILL.md 2>/dev/null
115
115
  ```
116
116
 
117
- If exists, load it as the authoritative source of existing patterns.
117
+ If skills found, read the YAML frontmatter (name + description) of each SKILL.md. Identify any skill whose description indicates it provides UI implementation patterns (screens, widgets, components, theming, spacing, visual patterns).
118
+
119
+ If a UI skill is found, read its full content. Extract aesthetic patterns (colors, components, spacing, typography) for the `<existing_aesthetic>` block passed to ms-designer.
118
120
 
119
121
  **3d. Optional context - codebase analysis:**
120
122
 
@@ -140,7 +142,7 @@ Document discovered patterns for the designer.
140
142
 
141
143
  Assess context coverage:
142
144
  - Can platform be inferred? (from codebase or PROJECT.md)
143
- - Can visual style be inferred? (from implement-ui or codebase)
145
+ - Can visual style be inferred? (from project UI skill or codebase)
144
146
  - Can design priorities be inferred? (from CONTEXT.md or phase requirements)
145
147
 
146
148
  **If everything can be inferred:** Skip to step 5.
@@ -240,15 +242,15 @@ Reference products: [From Q&A if asked, or "None specified"]
240
242
  </user_vision>
241
243
 
242
244
  <existing_aesthetic>
243
- [If implement-ui skill exists:]
245
+ [If project UI skill exists:]
244
246
 
245
- Authoritative patterns from implement-ui skill:
247
+ Authoritative patterns from project UI skill:
246
248
  - Color palette: [exact values]
247
249
  - Typography: [font families, sizes]
248
250
  - Spacing system: [scale values]
249
251
  - Component library: [named components]
250
252
 
251
- [If no skill, from codebase analysis:]
253
+ [If no UI skill, from codebase analysis:]
252
254
 
253
255
  Discovered patterns from codebase:
254
256
  - Colors found: [hex values from theme/styles]
@@ -393,7 +395,7 @@ Update `.planning/STATE.md` Last Command field:
393
395
  - [ ] Phase validated against roadmap
394
396
  - [ ] Existing design checked and handled appropriately
395
397
  - [ ] Context chain loaded (PROJECT.md, ROADMAP.md, CONTEXT.md if exists)
396
- - [ ] implement-ui skill loaded if exists
398
+ - [ ] Project UI skill discovered and loaded if exists
397
399
  - [ ] Codebase analyzed for existing patterns
398
400
  - [ ] Adaptive Q&A completed if gaps existed
399
401
  - [ ] 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,7 +194,6 @@ 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
199
  - Respects max_concurrent_agents from config.json
@@ -203,7 +202,6 @@ Usage: `/ms:execute-phase 5`
203
202
 
204
203
  Options (via `.planning/config.json` parallelization section):
205
204
  - `max_concurrent_agents`: Limit parallel agents (default: 3)
206
- - `skip_checkpoints`: Skip human checkpoints in background (default: true)
207
205
  - `min_plans_for_parallel`: Minimum plans to trigger parallelization (default: 2)
208
206
 
209
207
  ### Verification
@@ -117,12 +117,16 @@ ls .planning/phases/${PHASE_ARG}-*/*-DESIGN.md 2>/dev/null
117
117
 
118
118
  ### Step 2.3: Optional Context
119
119
 
120
- **implement-ui skill (if exists):**
120
+ **Project UI skill (if exists):**
121
+
122
+ Discover project-level skills:
121
123
  ```bash
122
- ls .claude/skills/*implement-ui* 2>/dev/null
124
+ ls .claude/skills/*/SKILL.md 2>/dev/null
123
125
  ```
124
126
 
125
- If exists, load as authoritative source for existing patterns.
127
+ If skills found, read the YAML frontmatter (name + description) of each SKILL.md. Identify any skill whose description indicates it provides UI implementation patterns (screens, widgets, components, theming, spacing, visual patterns).
128
+
129
+ If a UI skill is found, load as authoritative source for existing patterns.
126
130
 
127
131
  **Codebase analysis:**
128
132
  - Detect platform (Flutter, React, etc.)
@@ -192,7 +196,7 @@ Apply quality-forcing patterns from `ai-driven-ui-design-system.md`:
192
196
 
193
197
  ### 3.5: Pattern Alignment
194
198
 
195
- If implement-ui skill or codebase patterns exist:
199
+ If project UI skill or codebase patterns exist:
196
200
  - Check for consistent color usage
197
201
  - Check for consistent component patterns
198
202
  - Check for consistent spacing scale
@@ -478,7 +482,7 @@ Apply these patterns throughout the review:
478
482
 
479
483
  <success_criteria>
480
484
  - [ ] Target code scope clarified (via arguments or AskUserQuestion)
481
- - [ ] Context chain loaded (PROJECT.md, DESIGN.md if exists, implement-ui skill)
485
+ - [ ] Context chain loaded (PROJECT.md, DESIGN.md if exists, project UI skill)
482
486
  - [ ] Code analyzed across all quality dimensions
483
487
  - [ ] Retroactive DESIGN.md created if missing
484
488
  - [ ] Improvements presented with benefits AND trade-offs
@@ -41,7 +41,7 @@ Phase: $ARGUMENTS (optional)
41
41
  2. **Check for active UAT sessions** — Resume or start new
42
42
  3. **Find SUMMARY.md files** for the phase
43
43
  4. **Extract testable deliverables** from summaries
44
- 5. **Classify tests by mock requirements** — Infer mock_type from test descriptions
44
+ 5. **Classify tests by mock requirements** — Use SUMMARY.md mock_hints when available; classify inline with keyword heuristics when absent. Confirm data availability with user before batching.
45
45
  6. **Group into batches** — By mock type, max 4 per batch, no-mock tests first
46
46
  - If any tests require mocks: Read `~/.claude/mindsystem/references/mock-patterns.md` and `~/.claude/mindsystem/workflows/generate-mocks.md` for mock generation guidance
47
47
  7. **For each batch:**
@@ -93,7 +93,7 @@ Rule: If you can only tell variants apart by squinting at colors, they are not d
93
93
 
94
94
  <existing_aesthetic_constraint>
95
95
 
96
- When the project has an existing visual aesthetic (implement-ui skill, established codebase patterns):
96
+ When the project has an existing visual aesthetic (project UI skill, established codebase patterns):
97
97
 
98
98
  **ALL variants use the same colors, fonts, and component shapes.** Directions differ ONLY in:
99
99
  - Layout and spatial organization