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.
- package/README.md +3 -6
- package/agents/ms-designer.md +8 -8
- package/agents/ms-executor.md +14 -163
- package/agents/ms-plan-checker.md +2 -3
- package/agents/ms-plan-writer.md +5 -11
- package/agents/ms-roadmapper.md +101 -16
- package/agents/ms-verify-fixer.md +1 -1
- package/commands/ms/complete-milestone.md +1 -1
- package/commands/ms/create-roadmap.md +126 -56
- package/commands/ms/design-phase.md +12 -10
- package/commands/ms/execute-phase.md +0 -9
- package/commands/ms/help.md +24 -35
- package/commands/ms/new-milestone.md +184 -80
- package/commands/ms/new-project.md +3 -3
- package/commands/ms/research-project.md +2 -2
- package/commands/ms/review-design.md +9 -5
- package/commands/ms/verify-work.md +1 -1
- package/mindsystem/references/continuation-format.md +2 -3
- package/mindsystem/references/design-directions.md +1 -1
- package/mindsystem/references/mock-patterns.md +48 -0
- package/mindsystem/references/plan-format.md +2 -129
- package/mindsystem/references/routing/between-milestones-routing.md +5 -7
- package/mindsystem/references/scope-estimation.md +3 -3
- package/mindsystem/templates/config.json +0 -2
- package/mindsystem/templates/design.md +1 -1
- package/mindsystem/templates/milestone-context.md +76 -0
- package/mindsystem/templates/phase-prompt.md +6 -142
- package/mindsystem/templates/summary.md +24 -0
- package/mindsystem/workflows/complete-milestone.md +27 -8
- package/mindsystem/workflows/execute-phase.md +35 -124
- package/mindsystem/workflows/execute-plan.md +12 -517
- package/mindsystem/workflows/generate-mocks.md +74 -0
- package/mindsystem/workflows/mockup-generation.md +1 -1
- package/mindsystem/workflows/plan-phase.md +7 -24
- package/mindsystem/workflows/verify-work.md +97 -17
- package/package.json +1 -1
- package/scripts/__pycache__/compare_mockups.cpython-314.pyc +0 -0
- package/scripts/compare_mockups.py +219 -0
- package/skills/flutter-code-quality/SKILL.md +1 -1
- package/skills/flutter-code-simplification/SKILL.md +1 -1
- package/skills/flutter-senior-review/AGENTS.md +1 -1
- package/skills/flutter-senior-review/SKILL.md +1 -1
- package/commands/ms/define-requirements.md +0 -128
- package/mindsystem/references/checkpoint-detection.md +0 -50
- package/mindsystem/references/checkpoints.md +0 -788
- package/mindsystem/workflows/create-milestone.md +0 -243
- package/mindsystem/workflows/discuss-milestone.md +0 -310
|
@@ -26,11 +26,12 @@ When a milestone completes, this workflow:
|
|
|
26
26
|
2. Cleans up phase artifacts (PLAN, CONTEXT, RESEARCH, DESIGN files deleted)
|
|
27
27
|
3. Extracts full milestone details to `.planning/milestones/v[X.Y]-ROADMAP.md`
|
|
28
28
|
4. Archives requirements to `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
|
|
29
|
-
5.
|
|
30
|
-
6.
|
|
31
|
-
7.
|
|
32
|
-
8.
|
|
33
|
-
9.
|
|
29
|
+
5. Archives milestone context to `.planning/milestones/v[X.Y]-CONTEXT.md`
|
|
30
|
+
6. Updates ROADMAP.md to replace milestone details with one-line summary
|
|
31
|
+
7. Deletes REQUIREMENTS.md (fresh one created for next milestone)
|
|
32
|
+
8. Extracts learnings into `.planning/LEARNINGS.md` (curated one-line patterns with source refs)
|
|
33
|
+
9. Performs full PROJECT.md evolution review
|
|
34
|
+
10. Routes to `/ms:new-milestone` for next milestone
|
|
34
35
|
|
|
35
36
|
**Context Efficiency:**
|
|
36
37
|
|
|
@@ -645,7 +646,7 @@ Archive requirements and prepare for fresh requirements in next milestone.
|
|
|
645
646
|
✅ REQUIREMENTS.md deleted (fresh one needed for next milestone)
|
|
646
647
|
```
|
|
647
648
|
|
|
648
|
-
**Important:** The next milestone workflow starts with `/ms:
|
|
649
|
+
**Important:** The next milestone workflow starts with `/ms:create-roadmap` to create a fresh REQUIREMENTS.md. PROJECT.md's Validated section carries the cumulative record across milestones.
|
|
649
650
|
|
|
650
651
|
</step>
|
|
651
652
|
|
|
@@ -667,6 +668,23 @@ Confirm:
|
|
|
667
668
|
|
|
668
669
|
</step>
|
|
669
670
|
|
|
671
|
+
<step name="archive_context">
|
|
672
|
+
|
|
673
|
+
Archive the milestone context file (if it exists):
|
|
674
|
+
|
|
675
|
+
```bash
|
|
676
|
+
[ -f .planning/MILESTONE-CONTEXT.md ] && mv .planning/MILESTONE-CONTEXT.md .planning/milestones/v[X.Y]-CONTEXT.md
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
If archived:
|
|
680
|
+
```
|
|
681
|
+
✅ Context archived to milestones/v[X.Y]-CONTEXT.md
|
|
682
|
+
```
|
|
683
|
+
|
|
684
|
+
(Skip silently if no context file exists)
|
|
685
|
+
|
|
686
|
+
</step>
|
|
687
|
+
|
|
670
688
|
<step name="update_state">
|
|
671
689
|
|
|
672
690
|
Update STATE.md to reflect milestone completion.
|
|
@@ -743,6 +761,7 @@ git add .planning/milestones/v[X.Y]-DECISIONS.md
|
|
|
743
761
|
git add .planning/milestones/v[X.Y]-ROADMAP.md
|
|
744
762
|
git add .planning/milestones/v[X.Y]-REQUIREMENTS.md
|
|
745
763
|
git add .planning/milestones/v[X.Y]-MILESTONE-AUDIT.md 2>/dev/null || true
|
|
764
|
+
git add .planning/milestones/v[X.Y]-CONTEXT.md 2>/dev/null || true
|
|
746
765
|
|
|
747
766
|
# Stage learnings (may not exist if no learnings found)
|
|
748
767
|
git add .planning/LEARNINGS.md 2>/dev/null || true
|
|
@@ -818,8 +837,7 @@ Tag: v[X.Y]
|
|
|
818
837
|
**Next milestone flow:**
|
|
819
838
|
1. `/ms:new-milestone` — discover what to build, update PROJECT.md with goals
|
|
820
839
|
2. `/ms:research-project` — (optional) research ecosystem
|
|
821
|
-
3. `/ms:
|
|
822
|
-
4. `/ms:create-roadmap` — plan how to build it
|
|
840
|
+
3. `/ms:create-roadmap` — define requirements and plan how to build it
|
|
823
841
|
|
|
824
842
|
---
|
|
825
843
|
```
|
|
@@ -882,6 +900,7 @@ Milestone completion is successful when:
|
|
|
882
900
|
- [ ] STATE.md updated with fresh project reference
|
|
883
901
|
- [ ] Git tag created (v[X.Y])
|
|
884
902
|
- [ ] Milestone commit made (includes archive files and deletion)
|
|
903
|
+
- [ ] Context archive created if MILESTONE-CONTEXT.md existed
|
|
885
904
|
- [ ] User knows next steps (starting with /ms:new-milestone)
|
|
886
905
|
|
|
887
906
|
</success_criteria>
|
|
@@ -3,7 +3,7 @@ Execute all plans in a phase using wave-based parallel execution. Orchestrator s
|
|
|
3
3
|
</purpose>
|
|
4
4
|
|
|
5
5
|
<core_principle>
|
|
6
|
-
The orchestrator's job is coordination, not execution. Each subagent loads the full execute-plan context itself. Orchestrator discovers plans, analyzes dependencies, groups into waves, spawns agents,
|
|
6
|
+
The orchestrator's job is coordination, not execution. Each subagent loads the full execute-plan context itself. Orchestrator discovers plans, analyzes dependencies, groups into waves, spawns agents, collects results.
|
|
7
7
|
</core_principle>
|
|
8
8
|
|
|
9
9
|
<required_reading>
|
|
@@ -68,13 +68,11 @@ ls -1 "$PHASE_DIR"/*-SUMMARY.md 2>/dev/null | sort
|
|
|
68
68
|
|
|
69
69
|
For each plan, read frontmatter to extract:
|
|
70
70
|
- `wave: N` - Execution wave (pre-computed)
|
|
71
|
-
- `autonomous: true/false` - Whether plan has checkpoints
|
|
72
71
|
|
|
73
72
|
Build plan inventory:
|
|
74
73
|
- Plan path
|
|
75
74
|
- Plan ID (e.g., "03-01")
|
|
76
75
|
- Wave number
|
|
77
|
-
- Autonomous flag
|
|
78
76
|
- Completion status (SUMMARY exists = complete)
|
|
79
77
|
|
|
80
78
|
Skip completed plans. If all complete, report "Phase already executed" and exit.
|
|
@@ -87,8 +85,7 @@ Read `wave` from each plan's frontmatter and group by wave number:
|
|
|
87
85
|
# For each plan, extract wave from frontmatter
|
|
88
86
|
for plan in $PHASE_DIR/*-PLAN.md; do
|
|
89
87
|
wave=$(grep "^wave:" "$plan" | cut -d: -f2 | tr -d ' ')
|
|
90
|
-
|
|
91
|
-
echo "$plan:$wave:$autonomous"
|
|
88
|
+
echo "$plan:$wave"
|
|
92
89
|
done
|
|
93
90
|
```
|
|
94
91
|
|
|
@@ -113,7 +110,7 @@ Report wave structure with context:
|
|
|
113
110
|
|------|-------|----------------|
|
|
114
111
|
| 1 | 01-01, 01-02 | {from plan objectives} |
|
|
115
112
|
| 2 | 01-03 | {from plan objectives} |
|
|
116
|
-
| 3 | 01-04
|
|
113
|
+
| 3 | 01-04 | {from plan objectives} |
|
|
117
114
|
|
|
118
115
|
```
|
|
119
116
|
|
|
@@ -150,36 +147,40 @@ Execute each wave in sequence. Autonomous plans within a wave run in parallel.
|
|
|
150
147
|
- Bad: "Executing terrain generation plan"
|
|
151
148
|
- Good: "Procedural terrain generator using Perlin noise — creates height maps, biome zones, and collision meshes. Required before vehicle physics can interact with ground."
|
|
152
149
|
|
|
153
|
-
2. **Spawn
|
|
150
|
+
2. **Spawn executor agents:**
|
|
154
151
|
|
|
155
|
-
|
|
152
|
+
Pass paths only — executors read files themselves with their fresh 200k context.
|
|
153
|
+
This keeps orchestrator context lean (~10-15%).
|
|
156
154
|
|
|
157
155
|
```
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
156
|
+
Task(
|
|
157
|
+
subagent_type="ms-executor",
|
|
158
|
+
prompt="
|
|
159
|
+
<objective>
|
|
160
|
+
Execute plan {plan_number} of phase {phase_number}-{phase_name}.
|
|
161
|
+
Commit each task atomically. Create SUMMARY.md. Update STATE.md.
|
|
162
|
+
</objective>
|
|
163
|
+
|
|
164
|
+
<execution_context>
|
|
165
|
+
@~/.claude/mindsystem/workflows/execute-plan.md
|
|
166
|
+
@~/.claude/mindsystem/templates/summary.md
|
|
167
|
+
@~/.claude/mindsystem/references/tdd.md
|
|
168
|
+
</execution_context>
|
|
169
|
+
|
|
170
|
+
<context>
|
|
171
|
+
Plan: @{plan_path}
|
|
172
|
+
Project state: @.planning/STATE.md
|
|
173
|
+
Config: @.planning/config.json (if exists)
|
|
174
|
+
</context>
|
|
175
|
+
|
|
176
|
+
<success_criteria>
|
|
177
|
+
- [ ] All tasks executed
|
|
178
|
+
- [ ] Each task committed individually
|
|
179
|
+
- [ ] SUMMARY.md created in plan directory
|
|
180
|
+
- [ ] STATE.md updated with position and decisions
|
|
181
|
+
</success_criteria>
|
|
182
|
+
"
|
|
183
|
+
)
|
|
183
184
|
```
|
|
184
185
|
|
|
185
186
|
2. **Wait for all agents in wave to complete:**
|
|
@@ -223,93 +224,8 @@ Execute each wave in sequence. Autonomous plans within a wave run in parallel.
|
|
|
223
224
|
- If continue: proceed to next wave (dependent plans may also fail)
|
|
224
225
|
- If stop: exit with partial completion report
|
|
225
226
|
|
|
226
|
-
5. **
|
|
227
|
-
|
|
228
|
-
See `<checkpoint_handling>` for details.
|
|
229
|
-
|
|
230
|
-
6. **Proceed to next wave**
|
|
231
|
-
|
|
232
|
-
</step>
|
|
233
|
-
|
|
234
|
-
<step name="checkpoint_handling">
|
|
235
|
-
Plans with `autonomous: false` require user interaction.
|
|
236
|
-
|
|
237
|
-
**Detection:** Check `autonomous` field in frontmatter.
|
|
238
|
-
|
|
239
|
-
**Execution flow for checkpoint plans:**
|
|
240
|
-
|
|
241
|
-
1. **Spawn agent for checkpoint plan:**
|
|
242
|
-
```
|
|
243
|
-
Task(prompt="{subagent-task-prompt}", subagent_type="general-purpose")
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
2. **Agent runs until checkpoint:**
|
|
247
|
-
- Executes auto tasks normally
|
|
248
|
-
- Reaches checkpoint task (e.g., `type="checkpoint:human-verify"`) or auth gate
|
|
249
|
-
- Agent returns with structured checkpoint (see checkpoint-return.md template)
|
|
250
|
-
|
|
251
|
-
3. **Agent return includes (structured format):**
|
|
252
|
-
- Completed Tasks table with commit hashes and files
|
|
253
|
-
- Current task name and blocker
|
|
254
|
-
- Checkpoint type and details for user
|
|
255
|
-
- What's awaited from user
|
|
256
|
-
|
|
257
|
-
4. **Orchestrator presents checkpoint to user:**
|
|
258
|
-
|
|
259
|
-
Extract and display the "Checkpoint Details" and "Awaiting" sections from agent return:
|
|
260
|
-
```
|
|
261
|
-
## Checkpoint: [Type]
|
|
262
|
-
|
|
263
|
-
**Plan:** 03-03 Dashboard Layout
|
|
264
|
-
**Progress:** 2/3 tasks complete
|
|
265
|
-
|
|
266
|
-
[Checkpoint Details section from agent return]
|
|
267
|
-
|
|
268
|
-
[Awaiting section from agent return]
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
5. **User responds:**
|
|
272
|
-
- "approved" / "done" → spawn continuation agent
|
|
273
|
-
- Description of issues → spawn continuation agent with feedback
|
|
274
|
-
- Decision selection → spawn continuation agent with choice
|
|
275
|
-
|
|
276
|
-
6. **Spawn continuation agent (NOT resume):**
|
|
277
|
-
|
|
278
|
-
Use the continuation-prompt.md template:
|
|
279
|
-
```
|
|
280
|
-
Task(
|
|
281
|
-
prompt=filled_continuation_template,
|
|
282
|
-
subagent_type="general-purpose"
|
|
283
|
-
)
|
|
284
|
-
```
|
|
227
|
+
5. **Proceed to next wave**
|
|
285
228
|
|
|
286
|
-
Fill template with:
|
|
287
|
-
- `{completed_tasks_table}`: From agent's checkpoint return
|
|
288
|
-
- `{resume_task_number}`: Current task from checkpoint
|
|
289
|
-
- `{resume_task_name}`: Current task name from checkpoint
|
|
290
|
-
- `{user_response}`: What user provided
|
|
291
|
-
- `{resume_instructions}`: Based on checkpoint type (see continuation-prompt.md)
|
|
292
|
-
|
|
293
|
-
7. **Continuation agent executes:**
|
|
294
|
-
- Verifies previous commits exist
|
|
295
|
-
- Continues from resume point
|
|
296
|
-
- May hit another checkpoint (repeat from step 4)
|
|
297
|
-
- Or completes plan
|
|
298
|
-
|
|
299
|
-
8. **Repeat until plan completes or user stops**
|
|
300
|
-
|
|
301
|
-
**Why fresh agent instead of resume:**
|
|
302
|
-
Resume relies on Claude Code's internal serialization which breaks with parallel tool calls.
|
|
303
|
-
Fresh agents with explicit state are more reliable and maintain full context.
|
|
304
|
-
|
|
305
|
-
**Checkpoint in parallel context:**
|
|
306
|
-
If a plan in a parallel wave has a checkpoint:
|
|
307
|
-
- Spawn as normal
|
|
308
|
-
- Agent pauses at checkpoint and returns with structured state
|
|
309
|
-
- Other parallel agents may complete while waiting
|
|
310
|
-
- Present checkpoint to user
|
|
311
|
-
- Spawn continuation agent with user response
|
|
312
|
-
- Wait for all agents to finish before next wave
|
|
313
229
|
</step>
|
|
314
230
|
|
|
315
231
|
<step name="aggregate_results">
|
|
@@ -612,10 +528,6 @@ Each subagent: Fresh 200k context
|
|
|
612
528
|
- Stop execution
|
|
613
529
|
- Report for manual investigation
|
|
614
530
|
|
|
615
|
-
**Checkpoint fails to resolve:**
|
|
616
|
-
- User can't approve or provides repeated issues
|
|
617
|
-
- Ask: "Skip this plan?" or "Abort phase execution?"
|
|
618
|
-
- Record partial progress in STATE.md
|
|
619
531
|
</failure_handling>
|
|
620
532
|
|
|
621
533
|
<resumption>
|
|
@@ -632,5 +544,4 @@ If phase execution was interrupted (context limit, user exit, error):
|
|
|
632
544
|
**STATE.md tracks:**
|
|
633
545
|
- Last completed plan
|
|
634
546
|
- Current wave
|
|
635
|
-
- Any pending checkpoints
|
|
636
547
|
</resumption>
|