mindsystem-cc 3.10.0 → 3.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +3 -6
  2. package/agents/ms-designer.md +8 -8
  3. package/agents/ms-executor.md +14 -163
  4. package/agents/ms-plan-checker.md +2 -3
  5. package/agents/ms-plan-writer.md +5 -11
  6. package/agents/ms-roadmapper.md +101 -16
  7. package/agents/ms-verify-fixer.md +1 -1
  8. package/commands/ms/complete-milestone.md +1 -1
  9. package/commands/ms/create-roadmap.md +126 -56
  10. package/commands/ms/design-phase.md +12 -10
  11. package/commands/ms/execute-phase.md +0 -9
  12. package/commands/ms/help.md +24 -35
  13. package/commands/ms/new-milestone.md +184 -80
  14. package/commands/ms/new-project.md +3 -3
  15. package/commands/ms/research-project.md +2 -2
  16. package/commands/ms/review-design.md +9 -5
  17. package/commands/ms/verify-work.md +1 -1
  18. package/mindsystem/references/continuation-format.md +2 -3
  19. package/mindsystem/references/design-directions.md +1 -1
  20. package/mindsystem/references/mock-patterns.md +48 -0
  21. package/mindsystem/references/plan-format.md +2 -129
  22. package/mindsystem/references/routing/between-milestones-routing.md +5 -7
  23. package/mindsystem/references/scope-estimation.md +3 -3
  24. package/mindsystem/templates/config.json +0 -2
  25. package/mindsystem/templates/design.md +1 -1
  26. package/mindsystem/templates/milestone-context.md +76 -0
  27. package/mindsystem/templates/phase-prompt.md +6 -142
  28. package/mindsystem/templates/summary.md +24 -0
  29. package/mindsystem/workflows/complete-milestone.md +27 -8
  30. package/mindsystem/workflows/execute-phase.md +35 -124
  31. package/mindsystem/workflows/execute-plan.md +12 -517
  32. package/mindsystem/workflows/generate-mocks.md +74 -0
  33. package/mindsystem/workflows/mockup-generation.md +1 -1
  34. package/mindsystem/workflows/plan-phase.md +7 -24
  35. package/mindsystem/workflows/verify-work.md +97 -17
  36. package/package.json +1 -1
  37. package/scripts/__pycache__/compare_mockups.cpython-314.pyc +0 -0
  38. package/scripts/compare_mockups.py +219 -0
  39. package/skills/flutter-code-quality/SKILL.md +1 -1
  40. package/skills/flutter-code-simplification/SKILL.md +1 -1
  41. package/skills/flutter-senior-review/AGENTS.md +1 -1
  42. package/skills/flutter-senior-review/SKILL.md +1 -1
  43. package/commands/ms/define-requirements.md +0 -128
  44. package/mindsystem/references/checkpoint-detection.md +0 -50
  45. package/mindsystem/references/checkpoints.md +0 -788
  46. package/mindsystem/workflows/create-milestone.md +0 -243
  47. package/mindsystem/workflows/discuss-milestone.md +0 -310
@@ -1,243 +0,0 @@
1
- <purpose>
2
- Start a new milestone cycle by updating PROJECT.md with new goals.
3
-
4
- This is the brownfield equivalent of new-project. The project exists and has history.
5
- This workflow gathers "what's next" and updates PROJECT.md, then routes to the
6
- requirements → roadmap cycle.
7
- </purpose>
8
-
9
- <required_reading>
10
- **Read these files NOW:**
11
-
12
- 1. ~/.claude/mindsystem/references/questioning.md
13
- 2. ~/.claude/mindsystem/templates/project.md
14
- 3. `.planning/PROJECT.md`
15
- 4. `.planning/MILESTONES.md` (if exists)
16
- 5. `.planning/STATE.md`
17
- </required_reading>
18
-
19
- <process>
20
-
21
- <step name="load_context">
22
- Load project context:
23
-
24
- ```bash
25
- cat .planning/PROJECT.md
26
- cat .planning/MILESTONES.md 2>/dev/null || echo "No milestones file yet"
27
- cat .planning/STATE.md
28
- cat .planning/config.json 2>/dev/null
29
- ```
30
-
31
- Extract:
32
- - What shipped previously (from MILESTONES.md)
33
- - Current Validated requirements (from PROJECT.md)
34
- - Pending todos and blockers (from STATE.md)
35
-
36
- **Calculate next milestone version:**
37
- - Parse last version from MILESTONES.md
38
- - If v1.0 → suggest v1.1 (minor) or v2.0 (major)
39
- - If v1.3 → suggest v1.4 or v2.0
40
-
41
- **Calculate previous milestone for context:**
42
- - If v1.1 starting → previous is v1.0
43
- - Store previous version number for use in gather_goals step
44
- - Context files (DECISIONS.md, AUDIT.md) will be loaded on-demand based on user's choice
45
-
46
- **Why only the last milestone?** Older decisions that remain important should already be in PROJECT.md or visible in the codebase. Older untested assumptions that weren't addressed are intentionally skipped. Loading all previous milestones would bloat context for diminishing returns.
47
- </step>
48
-
49
- <step name="gather_goals">
50
- Present what shipped:
51
- ```
52
- Last milestone: v[X.Y] [Name]
53
- Key accomplishments:
54
- - [From MILESTONES.md]
55
-
56
- Validated so far:
57
- - [From PROJECT.md Validated section]
58
-
59
- Pending todos:
60
- - [From STATE.md if any]
61
- ```
62
-
63
- **Decision gate:**
64
-
65
- Use AskUserQuestion:
66
- ```
67
- header: "New Milestone"
68
- question: "How do you want to start v[X.Y]?"
69
- options:
70
- - "I know what to build" — proceed to goal gathering
71
- - "Help me figure it out" — enter discovery mode with previous context
72
- - "Show previous decisions first" — view DECISIONS.md and AUDIT.md, then decide
73
- ```
74
-
75
- **If "I know what to build":**
76
- - Ask directly: "What do you want to build in the next milestone?"
77
- - Wait for response
78
- - Proceed to confirm_goals
79
-
80
- **If "Show previous decisions first":**
81
- - Using the previous version from load_context (e.g., "1.0"):
82
- - Check for and read `.planning/milestones/v1.0-DECISIONS.md` if exists
83
- - Check for and read `.planning/milestones/v1.0-MILESTONE-AUDIT.md` if exists
84
- - Present relevant context from these files
85
- - Then present decision gate again (without this option)
86
-
87
- **If "Help me figure it out" (Discovery Mode):**
88
- - Using the previous version from load_context:
89
- - Check for and read `.planning/milestones/v{VERSION}-DECISIONS.md` if exists
90
- - Check for and read `.planning/milestones/v{VERSION}-MILESTONE-AUDIT.md` if exists
91
-
92
- Surface untested assumptions (from AUDIT.md):
93
- ```
94
- 📋 Untested from v[previous]:
95
- - Error state displays (couldn't mock API errors)
96
- - Empty state handling (couldn't clear test data)
97
- - [etc. from assumptions section]
98
-
99
- These were skipped during UAT. Address them in this milestone?
100
- ```
101
-
102
- Run AskUserQuestion-based feature discovery:
103
- ```
104
- header: "What to build"
105
- question: "What do you want to add, improve, or fix?"
106
- options:
107
- - "Address untested assumptions" — add test infrastructure or fix gaps
108
- - "New features" — build something new
109
- - "Improvements" — enhance existing features
110
- - "Bug fixes" — fix known issues
111
- - "Let me describe" — freeform input
112
- ```
113
-
114
- Continue with follow-up questions:
115
- - Probe specific features mentioned
116
- - Ask about priorities
117
- - Surface constraints or dependencies
118
- - Clarify scope boundaries
119
-
120
- Follow questioning.md patterns for AskUserQuestion-based discovery.
121
-
122
- Continue until you have clear milestone goals.
123
- </step>
124
-
125
- <step name="confirm_goals">
126
- Present gathered goals:
127
-
128
- ```
129
- Milestone: v[X.Y] [Name]
130
-
131
- Goal: [One sentence focus]
132
-
133
- Target features:
134
- - [Feature 1]
135
- - [Feature 2]
136
- - [Feature 3]
137
-
138
- Ready to update PROJECT.md? (yes / adjust)
139
- ```
140
-
141
- If "adjust": return to gather_goals.
142
- </step>
143
-
144
- <step name="update_project">
145
- Update `.planning/PROJECT.md`:
146
-
147
- **Add Current Milestone section** (after Core Value, before Requirements):
148
-
149
- ```markdown
150
- ## Current Milestone: v[X.Y] [Name]
151
-
152
- **Goal:** [One sentence describing milestone focus]
153
-
154
- **Target features:**
155
- - [Feature 1]
156
- - [Feature 2]
157
- - [Feature 3]
158
- ```
159
-
160
- **Update Active requirements:**
161
- - Add new milestone goals to Active section
162
- - Keep existing Active items that weren't addressed
163
- - Don't remove anything from Validated
164
-
165
- **Update footer:**
166
- ```markdown
167
- ---
168
- *Last updated: [date] after v[X.Y] milestone start*
169
- ```
170
- </step>
171
-
172
- <step name="update_state">
173
- Update `.planning/STATE.md`:
174
-
175
- ```markdown
176
- ## Current Position
177
-
178
- Phase: Not started (run /ms:create-roadmap)
179
- Plan: —
180
- Status: Defining requirements
181
- Last activity: [today] — Milestone v[X.Y] started
182
-
183
- Progress: ░░░░░░░░░░ 0%
184
- ```
185
-
186
- Keep Accumulated Context (decisions, blockers) from previous milestone.
187
- </step>
188
-
189
-
190
- <step name="git_commit">
191
- ```bash
192
- git add .planning/PROJECT.md .planning/STATE.md
193
- git commit -m "$(cat <<'EOF'
194
- docs: start milestone v[X.Y] [Name]
195
-
196
- Goal: [One sentence]
197
- Target features: [count] features
198
- EOF
199
- )"
200
- ```
201
- </step>
202
-
203
- <step name="offer_next">
204
- ```
205
- Milestone v[X.Y] [Name] initialized.
206
-
207
- PROJECT.md updated with:
208
- - Current Milestone section
209
- - Target features in Active requirements
210
-
211
- ---
212
-
213
- ## ▶ Next Up
214
-
215
- **Define Requirements** — scope v[X.Y] features into REQUIREMENTS.md
216
-
217
- `/ms:define-requirements`
218
-
219
- <sub>`/clear` first → fresh context window</sub>
220
-
221
- ---
222
-
223
- **Or research first:**
224
- - `/ms:research-project` — investigate ecosystem before scoping
225
-
226
- **Full flow:**
227
- 1. `/ms:define-requirements` — create REQUIREMENTS.md
228
- 2. `/ms:create-roadmap` — create ROADMAP.md with phases
229
- 3. `/ms:plan-phase [N]` — start execution
230
-
231
- ---
232
- ```
233
- </step>
234
-
235
- </process>
236
-
237
- <success_criteria>
238
- - PROJECT.md updated with Current Milestone section
239
- - Active requirements reflect new milestone goals
240
- - STATE.md reset for new milestone (keeps accumulated context)
241
- - Git commit made
242
- - User routed to define-requirements (or research-project)
243
- </success_criteria>
@@ -1,310 +0,0 @@
1
- <purpose>
2
- Help the user figure out what they want to build in the next milestone through collaborative thinking.
3
-
4
- You're a thinking partner helping them crystallize their vision for what's next. Features first — everything else (scope, phases) derives from what they want to build.
5
- </purpose>
6
-
7
- <process>
8
-
9
- <step name="check_state" priority="first">
10
- Load project state:
11
-
12
- ```bash
13
- cat .planning/STATE.md
14
- cat .planning/ROADMAP.md
15
- ```
16
-
17
- **If no active milestone (expected state after completing previous):**
18
- Continue to milestone_context.
19
-
20
- **If active milestone exists:**
21
-
22
- ```
23
- Current milestone in progress: v[X.Y] [Name]
24
- Phases [N]-[M], [P]% complete
25
-
26
- Did you want to:
27
- 1. Complete current milestone first (/ms:complete-milestone)
28
- 2. Add phases to current milestone (/ms:add-phase)
29
- 3. Continue anyway - discuss next milestone scope
30
-
31
- ```
32
-
33
- Wait for user response. If "Continue anyway", proceed to milestone_context.
34
- </step>
35
-
36
- <step name="milestone_context">
37
- Present context from previous milestone:
38
-
39
- ```
40
- Last completed: v[X.Y] [Name] (shipped [DATE])
41
- Key accomplishments:
42
- - [From MILESTONES.md or STATE.md]
43
-
44
- Total phases delivered: [N]
45
- Next phase number: [N+1]
46
- ```
47
-
48
- Continue to intake_gate.
49
- </step>
50
-
51
- <step name="intake_gate">
52
- **CRITICAL: ALL questions use AskUserQuestion. Never ask inline text questions.**
53
-
54
- The primary question is: **What do you want to build/add/fix?**
55
-
56
- Everything else (scope, priority, constraints) is secondary and derived from features.
57
-
58
- Check for inputs:
59
- - Pending todos from STATE.md (potential features)
60
- - Untested assumptions from MILESTONE-AUDIT.md (potential infrastructure work)
61
- - Known gaps or pain points from usage
62
- - User's ideas for what's next
63
-
64
- ```bash
65
- # Check for assumptions from previous milestone audit
66
- ASSUMPTIONS=$(cat .planning/v*-MILESTONE-AUDIT.md 2>/dev/null | grep -c "assumptions:" || echo 0)
67
- ```
68
-
69
- **1. Open with context-aware options:**
70
-
71
- Use AskUserQuestion:
72
- - header: "Next"
73
- - question: "What do you want to add, improve, or fix in this milestone?"
74
- - options:
75
- - [Pending todos from STATE.md if any]
76
- - [If ASSUMPTIONS > 0: "Address untested assumptions ({N} items)"]
77
- - "New features"
78
- - "Improvements to existing"
79
- - "Bug fixes"
80
- - "Let me describe"
81
-
82
- **If user selects "Address untested assumptions":**
83
-
84
- Present the assumptions list from MILESTONE-AUDIT.md:
85
-
86
- ```
87
- ## Untested Assumptions from v{X.Y}
88
-
89
- These tests were skipped because required states couldn't be mocked:
90
-
91
- | Phase | Test | Expected Behavior | Reason |
92
- |-------|------|-------------------|--------|
93
- | 04-comments | Error state display | Shows error message when API fails | Can't mock API errors |
94
- | 04-comments | Empty state | Shows placeholder when no comments | Can't clear test data |
95
- | 05-auth | Session timeout | Redirects to login after 30min | Can't manipulate time |
96
-
97
- To verify these, you'd need:
98
- - Error response mocking (API interceptor or mock server)
99
- - State reset capabilities (clear data for empty states)
100
- - Time manipulation (for timeout testing)
101
- ```
102
-
103
- Then use AskUserQuestion:
104
- - header: "Assumptions"
105
- - question: "Which assumptions do you want to address?"
106
- - options:
107
- - "All of them — plan test infrastructure"
108
- - "Just error states"
109
- - "Just empty states"
110
- - "None for now — they're low risk"
111
-
112
- Continue to feature gathering based on selection.
113
-
114
- **2. Follow the thread (don't switch topics):**
115
-
116
- Based on their response, dig deeper into THAT topic before moving on:
117
-
118
- | They said | Follow-up |
119
- |-----------|-----------|
120
- | Named a feature | "What should [feature] do? What's the core behavior?" |
121
- | "New features" | "What capability is missing? What would users do with it?" |
122
- | "Improvements" | "Which existing feature needs improvement? What's the friction?" |
123
- | "Bug fixes" | "What's broken? How does it manifest?" |
124
-
125
- **3. Probe for edges:**
126
-
127
- Once you understand the feature, probe:
128
- - "What's the simplest version of this that would be useful?"
129
- - "What would make this feel complete vs MVP?"
130
- - "Any constraints I should know about?"
131
-
132
- **4. Explore features:**
133
-
134
- Based on their response, use AskUserQuestion:
135
-
136
- If they named specific features:
137
- - header: "Feature Details"
138
- - question: "Tell me more about [feature] - what should it do?"
139
- - options: [Contextual options based on feature type + "Let me describe it"]
140
-
141
- If they described a general direction:
142
- - header: "Breaking It Down"
143
- - question: "That could involve [A], [B], [C] - which matter most?"
144
- - options: [Specific sub-features + "All of them" + "Something else"]
145
-
146
- If they're not sure:
147
- - header: "Starting Points"
148
- - question: "What's been frustrating or missing?"
149
- - options: [Pending todos from STATE.md + pain point categories + "Let me think about it"]
150
-
151
- **5. Prioritize:**
152
-
153
- Use AskUserQuestion:
154
- - header: "Priority"
155
- - question: "Which of these matters most?"
156
- - options: [Features they mentioned + "All equally important" + "Let me prioritize"]
157
-
158
- After gathering features, synthesize:
159
-
160
- ```
161
- Based on what you described:
162
-
163
- **Features:**
164
- - [Feature 1]: [brief description]
165
- - [Feature 2]: [brief description]
166
- - [Feature 3]: [brief description]
167
-
168
- **Estimated scope:** [N] phases
169
- **Theme suggestion:** v[X.Y] [Name]
170
- ```
171
-
172
- **6. Decision gate:**
173
-
174
- Use AskUserQuestion:
175
- - header: "Ready?"
176
- - question: "Ready to create the milestone, or explore more?"
177
- - options (ALL THREE REQUIRED):
178
- - "Create milestone" - Proceed to /ms:new-milestone
179
- - "Ask more questions" - Help me think through this more
180
- - "Let me add context" - I have more to share
181
-
182
- If "Ask more questions" → return to step 2 with new probes.
183
- If "Let me add context" → receive input → return to step 2.
184
- Loop until "Create milestone" selected.
185
- </step>
186
-
187
- <step name="write_context">
188
- Write milestone context to file for handoff.
189
-
190
- **File:** `.planning/MILESTONE-CONTEXT.md`
191
-
192
- Use template from ~/.claude/mindsystem/templates/milestone-context.md
193
-
194
- **Calculate next phase number:**
195
-
196
- ```bash
197
- # Find highest existing phase number
198
- LAST_PHASE=$(ls -d .planning/phases/[0-9]*-* 2>/dev/null | sort -V | tail -1 | grep -oE '[0-9]+' | head -1)
199
-
200
- if [ -n "$LAST_PHASE" ]; then
201
- NEXT_PHASE=$((10#$LAST_PHASE + 1))
202
- else
203
- NEXT_PHASE=1
204
- fi
205
- echo "Next phase number: $NEXT_PHASE"
206
- ```
207
-
208
- Populate with:
209
- - Features identified during discussion
210
- - Suggested milestone name and theme
211
- - Estimated phase count
212
- - How features map to phases
213
- - Any constraints or scope boundaries mentioned
214
- - **Starting phase number** (calculated above)
215
-
216
- ```bash
217
- # Write the context file
218
- cat > .planning/MILESTONE-CONTEXT.md << 'EOF'
219
- # Milestone Context
220
-
221
- **Generated:** [today's date]
222
- **Status:** Ready for /ms:new-milestone
223
-
224
- <features>
225
- ## Features to Build
226
-
227
- - **[Feature 1]**: [description]
228
- - **[Feature 2]**: [description]
229
- - **[Feature 3]**: [description]
230
-
231
- </features>
232
-
233
- <scope>
234
- ## Scope
235
-
236
- **Suggested name:** v[X.Y] [Theme Name]
237
- **Estimated phases:** [N]
238
- **Focus:** [One sentence theme/focus]
239
-
240
- </scope>
241
-
242
- <starting_phase>
243
- ## Starting Phase
244
-
245
- Next phase number: $NEXT_PHASE (calculated from existing phases)
246
-
247
- </starting_phase>
248
-
249
- <constraints>
250
- ## Constraints
251
-
252
- - [Any constraints mentioned]
253
-
254
- </constraints>
255
-
256
- <notes>
257
- ## Additional Context
258
-
259
- [Anything else from discussion]
260
-
261
- </notes>
262
-
263
- ---
264
-
265
- *This file is temporary. It will be deleted after /ms:new-milestone creates the milestone.*
266
- EOF
267
- ```
268
- </step>
269
-
270
- <step name="handoff">
271
- Present summary and hand off to create-milestone:
272
-
273
- ```
274
- Milestone scope defined:
275
-
276
- **Features:**
277
- - [Feature 1]: [description]
278
- - [Feature 2]: [description]
279
- - [Feature 3]: [description]
280
-
281
- **Suggested milestone:** v[X.Y] [Theme Name]
282
-
283
- Context saved to `.planning/MILESTONE-CONTEXT.md`
284
-
285
- ---
286
-
287
- ## ▶ Next Up
288
-
289
- **Create Milestone v[X.Y]** — [Theme Name]
290
-
291
- `/ms:new-milestone`
292
-
293
- <sub>`/clear` first → fresh context window</sub>
294
-
295
- ---
296
- ```
297
- </step>
298
-
299
- </process>
300
-
301
- <success_criteria>
302
-
303
- - Project state loaded (STATE.md, MILESTONES.md)
304
- - Previous milestone context presented
305
- - **Features identified** - What to build/add/fix (the substance)
306
- - Features explored with clarifying questions
307
- - Scope synthesized from features (not asked abstractly)
308
- - **MILESTONE-CONTEXT.md created** with features and scope
309
- - Context handed off to /ms:new-milestone
310
- </success_criteria>