mindsystem-cc 3.11.0 → 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.
@@ -15,7 +15,7 @@ Your job: Transform task lists into parallel-optimized PLAN.md files with proper
15
15
 
16
16
  **What you receive:**
17
17
  - Task list with needs/creates/tdd_candidate flags
18
- - Phase context (number, name, goal, directory, requirements, depth)
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
 
@@ -62,7 +62,6 @@ The orchestrator provides structured XML:
62
62
  <phase_dir>.planning/phases/03-authentication</phase_dir>
63
63
  <phase_goal>Users can securely access accounts</phase_goal>
64
64
  <requirements>AUTH-01, AUTH-02</requirements>
65
- <depth>standard</depth>
66
65
  <subsystem_hint>auth</subsystem_hint>
67
66
  </phase_context>
68
67
 
@@ -206,14 +205,6 @@ If any plan exceeds:
206
205
  - 10+ files: Split by subsystem
207
206
  - Complex domain (auth, payments): Consider extra split
208
207
 
209
- **Depth calibration:**
210
- | Depth | Plans/Phase | Tasks/Plan |
211
- |-------|-------------|------------|
212
- | Quick | 1-3 | 2-3 |
213
- | Standard | 3-5 | 2-3 |
214
- | Comprehensive | 5-10 | 2-3 |
215
-
216
- Tasks/plan is constant. Depth affects plan count, not size.
217
208
  </step>
218
209
 
219
210
  <step name="write_plan_files">
@@ -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,14 +109,7 @@ If exists, extract:
109
109
 
110
110
  **3c. Optional context — project UI skill:**
111
111
 
112
- Discover project-level skills:
113
- ```bash
114
- ls .claude/skills/*/SKILL.md 2>/dev/null
115
- ```
116
-
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.
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.
120
113
 
121
114
  **3d. Optional context - codebase analysis:**
122
115
 
@@ -185,7 +178,7 @@ Follow mockup-generation workflow:
185
178
  4. Present directions to user for approval/tweaking
186
179
  5. Read platform template (mobile or web)
187
180
  6. Spawn 3 x ms-mockup-designer agents in parallel
188
- 7. Present mockup file paths user opens in browser
181
+ 7. Generate comparison page, open in browser, and present to user
189
182
  8. Handle selection (single pick, combine, tweak, more variants, or skip)
190
183
  9. Extract CSS specs from chosen variant into `<mockup_direction>` block
191
184
 
@@ -196,14 +196,9 @@ Execute all unexecuted plans in a phase with wave-based parallelization.
196
196
  - Spawns parallel agents for independent plans
197
197
  - Resumes automatically from interrupted execution
198
198
  - Creates SUMMARY.md for each completed plan
199
- - Respects max_concurrent_agents from config.json
200
199
 
201
200
  Usage: `/ms:execute-phase 5`
202
201
 
203
- Options (via `.planning/config.json` parallelization section):
204
- - `max_concurrent_agents`: Limit parallel agents (default: 3)
205
- - `min_plans_for_parallel`: Minimum plans to trigger parallelization (default: 2)
206
-
207
202
  ### Verification
208
203
 
209
204
  **`/ms:check-phase <number>`**
@@ -215,46 +215,9 @@ Do not compress. Capture everything gathered.
215
215
 
216
216
  </step>
217
217
 
218
- <step name="workflow_preferences">
219
-
220
- Ask workflow preferences in a single AskUserQuestion call (2 questions):
221
-
222
- Use AskUserQuestion with questions array:
223
-
224
- ```
225
- questions: [
226
- {
227
- header: "Depth",
228
- question: "How thorough should planning be?",
229
- multiSelect: false,
230
- options: [
231
- { label: "Quick", description: "Ship fast (3-5 phases, 1-3 plans each)" },
232
- { label: "Standard (Recommended)", description: "Balanced scope and speed (5-8 phases, 3-5 plans each)" },
233
- { label: "Comprehensive", description: "Thorough coverage (8-12 phases, 5-10 plans each)" }
234
- ]
235
- },
236
- {
237
- header: "Execution",
238
- question: "Run plans in parallel?",
239
- multiSelect: false,
240
- options: [
241
- { label: "Parallel (Recommended)", description: "Independent plans run simultaneously" },
242
- { label: "Sequential", description: "One plan at a time" }
243
- ]
244
- }
245
- ]
246
- ```
247
-
248
- **Notes:**
249
- - Depth controls compression tolerance, not artificial inflation
250
- - Parallelization spawns multiple agents for independent plans
251
- - All settings can be changed later in config.json
252
-
253
- </step>
254
-
255
218
  <step name="config">
256
219
 
257
- Create `.planning/config.json` with chosen depth, parallelization, and subsystems using `templates/config.json` structure.
220
+ Create `.planning/config.json` with subsystems and code_review using `templates/config.json` structure.
258
221
 
259
222
  **Subsystems:** Derive 5-10 initial subsystems from the project context gathered during questioning. These are short, lowercase identifiers for the major functional areas of the project.
260
223
 
@@ -263,7 +226,7 @@ Examples by project type:
263
226
  - SaaS: `["auth", "dashboard", "analytics", "billing", "notifications", "ui", "api", "database"]`
264
227
  - Mobile app: `["auth", "onboarding", "feed", "messaging", "profile", "media", "api", "storage"]`
265
228
 
266
- Place `subsystems` array as the first field in config.json (before `depth`). These values are used throughout the system for consistent categorization of summaries, debug docs, and adhoc work.
229
+ These values are used throughout the system for consistent categorization of summaries, debug docs, and adhoc work.
267
230
 
268
231
  </step>
269
232
 
@@ -340,7 +303,7 @@ Update `.planning/STATE.md` Last Command field (if STATE.md exists):
340
303
  - [ ] PROJECT.md captures full context with evolutionary structure
341
304
  - [ ] Requirements initialized as hypotheses (greenfield) or with inferred Validated (brownfield)
342
305
  - [ ] Key Decisions table initialized
343
- - [ ] config.json has depth and parallelization settings
306
+ - [ ] config.json has subsystems and code_review settings
344
307
  - [ ] All committed to git
345
308
 
346
309
  </success_criteria>
@@ -119,14 +119,7 @@ ls .planning/phases/${PHASE_ARG}-*/*-DESIGN.md 2>/dev/null
119
119
 
120
120
  **Project UI skill (if exists):**
121
121
 
122
- Discover project-level skills:
123
- ```bash
124
- ls .claude/skills/*/SKILL.md 2>/dev/null
125
- ```
126
-
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.
122
+ 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 use as authoritative source for existing patterns.
130
123
 
131
124
  **Codebase analysis:**
132
125
  - Detect platform (Flutter, React, etc.)
@@ -204,38 +204,6 @@ Waves: [01, 02, 03] (all parallel)
204
204
  **3 tasks:** Simple ~45%, Medium ~75% (risky), Complex 120% (impossible)
205
205
  </estimating_context>
206
206
 
207
- <depth_calibration>
208
- **Depth controls compression tolerance, not artificial inflation.**
209
-
210
- | Depth | Typical Phases | Typical Plans/Phase | Tasks/Plan |
211
- |-------|----------------|---------------------|------------|
212
- | Quick | 3-5 | 1-3 | 2-3 |
213
- | Standard | 5-8 | 3-5 | 2-3 |
214
- | Comprehensive | 8-12 | 5-10 | 2-3 |
215
-
216
- Tasks/plan is CONSTANT at 2-3. The 50% context rule applies universally.
217
-
218
- **Key principle:** Derive from actual work. Depth determines how aggressively you combine things, not a target to hit.
219
-
220
- - Comprehensive auth = 8 plans (because auth genuinely has 8 concerns)
221
- - Comprehensive "add favicon" = 1 plan (because that's all it is)
222
-
223
- Don't pad small work to hit a number. Don't compress complex work to look efficient.
224
-
225
- **Comprehensive depth example:**
226
- Auth system at comprehensive depth = 8 plans (not 3 big ones):
227
- - 01: DB models (2 tasks)
228
- - 02: Password hashing (2 tasks)
229
- - 03: JWT generation (2 tasks)
230
- - 04: JWT validation middleware (2 tasks)
231
- - 05: Login endpoint (2 tasks)
232
- - 06: Register endpoint (2 tasks)
233
- - 07: Protected route patterns (2 tasks)
234
- - 08: Auth UI components (3 tasks)
235
-
236
- Each plan: fresh context, peak quality. More plans = more thoroughness, same quality per plan.
237
- </depth_calibration>
238
-
239
207
  <summary>
240
208
  **2-3 tasks, 50% context target:**
241
209
  - All tasks: Peak quality
@@ -246,7 +214,6 @@ Each plan: fresh context, peak quality. More plans = more thoroughness, same qua
246
214
 
247
215
  **The rules:**
248
216
  - If in doubt, split. Quality over consolidation.
249
- - Depth increases plan COUNT, never plan SIZE.
250
217
  - Vertical slices over horizontal layers.
251
218
  - Explicit dependencies via `depends_on` frontmatter.
252
219
  - Autonomous plans get parallel execution.
@@ -1,16 +1,5 @@
1
1
  {
2
2
  "subsystems": [],
3
- "depth": "standard",
4
- "parallelization": {
5
- "enabled": true,
6
- "plan_level": true,
7
- "max_concurrent_agents": 3,
8
- "min_plans_for_parallel": 2
9
- },
10
- "safety": {
11
- "always_confirm_destructive": true,
12
- "always_confirm_external_services": true
13
- },
14
3
  "code_review": {
15
4
  "adhoc": null,
16
5
  "phase": null,
@@ -121,7 +121,7 @@ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
121
121
 
122
122
  <guidelines>
123
123
  **Initial planning (v1.0):**
124
- - Phase count depends on depth setting (quick: 3-5, standard: 5-8, comprehensive: 8-12)
124
+ - Phase count derived from actual work (not a target number)
125
125
  - Each phase delivers something coherent
126
126
  - Phases can have 1+ plans (split if >3 tasks or multiple subsystems)
127
127
  - Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
@@ -170,7 +170,6 @@ Execute each wave in sequence. Autonomous plans within a wave run in parallel.
170
170
  <context>
171
171
  Plan: @{plan_path}
172
172
  Project state: @.planning/STATE.md
173
- Config: @.planning/config.json (if exists)
174
173
  </context>
175
174
 
176
175
  <success_criteria>
@@ -77,12 +77,6 @@ SUMMARY naming follows same pattern:
77
77
 
78
78
  Confirm with user if ambiguous.
79
79
 
80
- <config-check>
81
- ```bash
82
- cat .planning/config.json 2>/dev/null
83
- ```
84
- </config-check>
85
-
86
80
  ```
87
81
  ⚡ Auto-approved: Execute {phase}-{plan}-PLAN.md
88
82
  [Plan X of Y for Phase Z]
@@ -87,16 +87,22 @@ Task(prompt=assembled_context, subagent_type="ms-mockup-designer", description="
87
87
  </step>
88
88
 
89
89
  <step name="present_mockups">
90
- After all 3 agents return, display file paths:
90
+ After all 3 agents return, generate comparison page and open it:
91
+
92
+ ```bash
93
+ uv run ~/.claude/mindsystem/scripts/compare_mockups.py "${PHASE_DIR}/mockups"
94
+ open "${PHASE_DIR}/mockups/comparison.html"
95
+ ```
96
+
97
+ Display summary:
91
98
 
92
99
  ```markdown
93
- 3 mockup variants generated:
100
+ 3 mockup variants generated — comparison page opened in browser.
94
101
 
102
+ Individual variants for reference:
95
103
  - **A: {Direction A name}** — `.planning/phases/{phase}-{slug}/mockups/variant-a.html`
96
104
  - **B: {Direction B name}** — `.planning/phases/{phase}-{slug}/mockups/variant-b.html`
97
105
  - **C: {Direction C name}** — `.planning/phases/{phase}-{slug}/mockups/variant-c.html`
98
-
99
- Open these in your browser to compare.
100
106
  ```
101
107
 
102
108
  Use AskUserQuestion:
@@ -494,43 +494,16 @@ External service indicators:
494
494
  Note external services for risk scoring.
495
495
 
496
496
  <output_format>
497
- **After task identification, produce structured task list for handoff:**
497
+ **Present a concise numbered task summary for the user:**
498
498
 
499
- ```xml
500
- <task_list>
501
- <task id="1">
502
- <name>Create User model</name>
503
- <type>auto</type>
504
- <needs>nothing</needs>
505
- <creates>src/models/user.ts</creates>
506
- <tdd_candidate>false</tdd_candidate>
507
- <action_hint>Define User type with id, email, createdAt</action_hint>
508
- <verify_hint>tsc --noEmit passes</verify_hint>
509
- <done_hint>User type exportable</done_hint>
510
- </task>
511
- <task id="2">
512
- <name>Create login endpoint</name>
513
- <type>auto</type>
514
- <needs>src/models/user.ts</needs>
515
- <creates>src/app/api/auth/login/route.ts</creates>
516
- <tdd_candidate>true</tdd_candidate>
517
- <action_hint>POST endpoint with bcrypt validation</action_hint>
518
- <verify_hint>curl returns 200 with valid credentials</verify_hint>
519
- <done_hint>Login works with valid credentials</done_hint>
520
- </task>
521
- </task_list>
522
- ```
499
+ ### Tasks Identified
500
+
501
+ 1. **Create User model** → `src/models/user.ts` (no dependencies)
502
+ 2. **Create login endpoint** → `src/app/api/auth/login/route.ts` (needs: Task 1) [TDD]
503
+
504
+ Format: numbered list with task name, key files, dependency hint, and `[TDD]` flag if applicable. No XML.
523
505
 
524
- Each task captures:
525
- - `id`: Sequential identifier
526
- - `name`: Action-oriented task name
527
- - `type`: auto
528
- - `needs`: Files/types this task requires (or "nothing")
529
- - `creates`: Files/types this task produces (or "nothing")
530
- - `tdd_candidate`: true if should be TDD plan
531
- - `action_hint`: Brief implementation guidance (subagent expands)
532
- - `verify_hint`: How to verify completion
533
- - `done_hint`: Acceptance criteria
506
+ **Retain full task details internally.** For each task, maintain in your analysis: id, name, type, needs, creates, tdd_candidate, action_hint, verify_hint, done_hint. These are needed for the handoff step — they just don't need to be displayed.
534
507
  </output_format>
535
508
  </step>
536
509
 
@@ -545,7 +518,7 @@ Assemble handoff payload:
545
518
 
546
519
  ```xml
547
520
  <task_list>
548
- {tasks from break_into_tasks}
521
+ {Construct full task XML from your analysis. Each task needs: id, name, type, needs, creates, tdd_candidate, action_hint, verify_hint, done_hint. Use the same XML schema the plan-writer expects.}
549
522
  </task_list>
550
523
 
551
524
  <phase_context>
@@ -554,7 +527,6 @@ Assemble handoff payload:
554
527
  <phase_dir>.planning/phases/{PHASE}-{PHASE_NAME}</phase_dir>
555
528
  <phase_goal>{goal from ROADMAP}</phase_goal>
556
529
  <requirements>{REQ-IDs from ROADMAP}</requirements>
557
- <depth>{from config.json or "standard"}</depth>
558
530
  <subsystem_hint>{best-match subsystem from config.json}</subsystem_hint>
559
531
  </phase_context>
560
532
 
@@ -50,14 +50,6 @@ ls .planning/phases/XX-current/*-SUMMARY.md 2>/dev/null | sort
50
50
  - If counts match: all plans complete
51
51
  - If counts don't match: incomplete
52
52
 
53
- <config-check>
54
-
55
- ```bash
56
- cat .planning/config.json 2>/dev/null
57
- ```
58
-
59
- </config-check>
60
-
61
53
  **If all plans complete:**
62
54
 
63
55
  ```
@@ -71,8 +63,7 @@ Proceed directly to cleanup_handoff step.
71
63
 
72
64
  **If plans incomplete:**
73
65
 
74
- **SAFETY RAIL: always_confirm_destructive applies here.**
75
- Skipping incomplete plans is destructive — ALWAYS prompt regardless of mode.
66
+ **SAFETY RAIL: Skipping incomplete plans is destructive — always confirm.**
76
67
 
77
68
  Present:
78
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mindsystem-cc",
3
- "version": "3.11.0",
3
+ "version": "3.12.0",
4
4
  "description": "A meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.",
5
5
  "bin": {
6
6
  "mindsystem-cc": "bin/install.js"