mindsystem-cc 4.4.1 → 4.5.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 +17 -7
- package/agents/ms-compounder.md +19 -7
- package/agents/ms-consolidator.md +11 -1
- package/agents/ms-designer.md +25 -47
- package/agents/ms-executor.md +1 -1
- package/agents/ms-mockup-designer.md +7 -4
- package/agents/ms-plan-checker.md +32 -27
- package/agents/ms-plan-writer.md +12 -8
- package/commands/ms/adhoc.md +11 -1
- package/commands/ms/config.md +47 -9
- package/commands/ms/design-phase.md +83 -63
- package/commands/ms/discuss-phase.md +1 -0
- package/commands/ms/doctor.md +7 -3
- package/commands/ms/execute-phase.md +1 -5
- package/commands/ms/help.md +6 -5
- package/commands/ms/remove-phase.md +7 -25
- package/commands/ms/research-phase.md +13 -0
- package/commands/ms/review-design.md +1 -1
- package/commands/ms/verify-work.md +1 -3
- package/mindsystem/references/design-directions.md +2 -2
- package/mindsystem/references/knowledge-quality.md +89 -0
- package/mindsystem/references/plan-format.md +2 -13
- package/mindsystem/references/prework-status.md +6 -32
- package/mindsystem/references/routing/next-phase-routing.md +7 -41
- package/mindsystem/references/scope-estimation.md +8 -4
- package/mindsystem/templates/config.json +6 -0
- package/mindsystem/templates/design.md +1 -1
- package/mindsystem/templates/knowledge.md +18 -3
- package/mindsystem/workflows/adhoc.md +63 -0
- package/mindsystem/workflows/discuss-phase.md +12 -0
- package/mindsystem/workflows/doctor-fixes.md +71 -0
- package/mindsystem/workflows/execute-phase.md +19 -6
- package/mindsystem/workflows/execute-plan.md +1 -7
- package/mindsystem/workflows/mockup-generation.md +1 -1
- package/mindsystem/workflows/plan-phase.md +41 -77
- package/mindsystem/workflows/verify-work.md +8 -77
- package/package.json +1 -1
- package/scripts/ms-tools.py +481 -0
- package/agents/ms-verify-fixer.md +0 -125
- package/mindsystem/workflows/transition.md +0 -460
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: ms-verify-fixer
|
|
3
|
-
description: Investigates and fixes single UAT issues. Spawned by verify-work when lightweight investigation fails.
|
|
4
|
-
model: sonnet
|
|
5
|
-
tools: Read, Write, Edit, Bash, Grep, Glob
|
|
6
|
-
color: orange
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
<role>
|
|
10
|
-
You are a Mindsystem verify-fixer. You investigate a single UAT issue that the main orchestrator couldn't resolve with lightweight investigation, find the root cause, implement a fix, and commit it.
|
|
11
|
-
|
|
12
|
-
You are spawned by `/ms:verify-work` when an issue requires deeper investigation (failed 2-3 quick checks).
|
|
13
|
-
|
|
14
|
-
Your job: Find root cause, implement minimal fix, commit with proper message, return result for re-testing.
|
|
15
|
-
</role>
|
|
16
|
-
|
|
17
|
-
<context_you_receive>
|
|
18
|
-
Your prompt will include:
|
|
19
|
-
|
|
20
|
-
- **Issue details**: test name, expected behavior, actual behavior, severity
|
|
21
|
-
- **Phase info**: phase name, current mock state (if any)
|
|
22
|
-
- **Relevant files**: suspected files from initial investigation
|
|
23
|
-
- **What was checked**: results of lightweight investigation already done
|
|
24
|
-
</context_you_receive>
|
|
25
|
-
|
|
26
|
-
<investigation_approach>
|
|
27
|
-
You have fresh 200k context. Use it to investigate thoroughly.
|
|
28
|
-
|
|
29
|
-
**1. Start from what's known**
|
|
30
|
-
- Read the files already identified as suspicious
|
|
31
|
-
- Review what was already checked (don't repeat)
|
|
32
|
-
- Look for adjacent code that might be involved
|
|
33
|
-
|
|
34
|
-
**2. Form specific hypothesis**
|
|
35
|
-
- Be precise: "useEffect missing dependency" not "something with state"
|
|
36
|
-
- Make it falsifiable: you can prove it wrong with a test
|
|
37
|
-
|
|
38
|
-
**3. Test one thing at a time**
|
|
39
|
-
- Add logging if needed
|
|
40
|
-
- Run the code to observe
|
|
41
|
-
- Don't change multiple things at once
|
|
42
|
-
|
|
43
|
-
**4. When you find it**
|
|
44
|
-
- Verify with evidence (log output, test result)
|
|
45
|
-
- Implement minimal fix
|
|
46
|
-
- Test that fix resolves the issue
|
|
47
|
-
</investigation_approach>
|
|
48
|
-
|
|
49
|
-
<fix_protocol>
|
|
50
|
-
**Mocks are currently stashed** - your working tree is clean.
|
|
51
|
-
|
|
52
|
-
**1. Implement fix**
|
|
53
|
-
- Make the smallest change that addresses root cause
|
|
54
|
-
- Don't refactor surrounding code
|
|
55
|
-
- Don't add "improvements" beyond the fix
|
|
56
|
-
|
|
57
|
-
**2. Commit with proper message**
|
|
58
|
-
```bash
|
|
59
|
-
git add [specific files]
|
|
60
|
-
git commit -m "fix({phase}-uat): {description}"
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Use the `{phase}-uat` scope so patches can find UAT fixes later.
|
|
64
|
-
|
|
65
|
-
**3. Document what you did**
|
|
66
|
-
- Which file(s) changed
|
|
67
|
-
- What the fix actually does
|
|
68
|
-
- Why this addresses the root cause
|
|
69
|
-
</fix_protocol>
|
|
70
|
-
|
|
71
|
-
<return_formats>
|
|
72
|
-
|
|
73
|
-
**When fix applied successfully:**
|
|
74
|
-
|
|
75
|
-
```markdown
|
|
76
|
-
## FIX COMPLETE
|
|
77
|
-
|
|
78
|
-
**Root cause:** {specific cause with evidence}
|
|
79
|
-
|
|
80
|
-
**Fix applied:** {what was changed and why}
|
|
81
|
-
|
|
82
|
-
**Commit:** {hash}
|
|
83
|
-
|
|
84
|
-
**Files changed:**
|
|
85
|
-
- {file}: {change description}
|
|
86
|
-
|
|
87
|
-
**Re-test instruction:** {specific step for user to verify}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**When investigation is inconclusive:**
|
|
91
|
-
|
|
92
|
-
```markdown
|
|
93
|
-
## INVESTIGATION INCONCLUSIVE
|
|
94
|
-
|
|
95
|
-
**What was checked:**
|
|
96
|
-
- {area}: {finding}
|
|
97
|
-
- {area}: {finding}
|
|
98
|
-
|
|
99
|
-
**Hypotheses eliminated:**
|
|
100
|
-
- {hypothesis}: {why ruled out}
|
|
101
|
-
|
|
102
|
-
**Remaining possibilities:**
|
|
103
|
-
- {possibility 1}
|
|
104
|
-
- {possibility 2}
|
|
105
|
-
|
|
106
|
-
**Recommendation:** {suggested next steps}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
</return_formats>
|
|
110
|
-
|
|
111
|
-
<constraints>
|
|
112
|
-
- Do NOT modify mock code (it's stashed)
|
|
113
|
-
- Do NOT make architectural changes (stop and report the issue)
|
|
114
|
-
- Do NOT fix unrelated issues you discover (note them for later)
|
|
115
|
-
- Do commit your fix before returning
|
|
116
|
-
- Do use `fix({phase}-uat):` commit message format
|
|
117
|
-
</constraints>
|
|
118
|
-
|
|
119
|
-
<success_criteria>
|
|
120
|
-
- [ ] Root cause identified with evidence
|
|
121
|
-
- [ ] Minimal fix implemented
|
|
122
|
-
- [ ] Fix committed with proper message format
|
|
123
|
-
- [ ] Clear re-test instruction provided
|
|
124
|
-
- [ ] Return uses correct format (FIX COMPLETE or INVESTIGATION INCONCLUSIVE)
|
|
125
|
-
</success_criteria>
|
|
@@ -1,460 +0,0 @@
|
|
|
1
|
-
<required_reading>
|
|
2
|
-
|
|
3
|
-
**Read these files NOW:**
|
|
4
|
-
|
|
5
|
-
1. `.planning/STATE.md`
|
|
6
|
-
2. `.planning/PROJECT.md`
|
|
7
|
-
3. `.planning/ROADMAP.md`
|
|
8
|
-
4. Current phase's plan files (`*-PLAN.md`)
|
|
9
|
-
5. Current phase's summary files (`*-SUMMARY.md`)
|
|
10
|
-
|
|
11
|
-
</required_reading>
|
|
12
|
-
|
|
13
|
-
<purpose>
|
|
14
|
-
|
|
15
|
-
Mark current phase complete and advance to next. This is the natural point where progress tracking and PROJECT.md evolution happen.
|
|
16
|
-
|
|
17
|
-
"Planning next phase" = "current phase is done"
|
|
18
|
-
|
|
19
|
-
</purpose>
|
|
20
|
-
|
|
21
|
-
<process>
|
|
22
|
-
|
|
23
|
-
<step name="load_project_state" priority="first">
|
|
24
|
-
|
|
25
|
-
Before transition, read project state:
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
cat .planning/STATE.md 2>/dev/null
|
|
29
|
-
cat .planning/PROJECT.md 2>/dev/null
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Parse current position to verify we're transitioning the right phase.
|
|
33
|
-
Note accumulated context that may need updating after transition.
|
|
34
|
-
|
|
35
|
-
</step>
|
|
36
|
-
|
|
37
|
-
<step name="verify_completion">
|
|
38
|
-
|
|
39
|
-
Check current phase has all plan summaries:
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
ls .planning/phases/XX-current/*-PLAN.md 2>/dev/null | sort
|
|
43
|
-
ls .planning/phases/XX-current/*-SUMMARY.md 2>/dev/null | sort
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
**Verification logic:**
|
|
47
|
-
|
|
48
|
-
- Count PLAN files
|
|
49
|
-
- Count SUMMARY files
|
|
50
|
-
- If counts match: all plans complete
|
|
51
|
-
- If counts don't match: incomplete
|
|
52
|
-
|
|
53
|
-
**If all plans complete:**
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
⚡ Auto-approved: Transition Phase [X] → Phase [X+1]
|
|
57
|
-
Phase [X] complete — all [Y] plans finished.
|
|
58
|
-
|
|
59
|
-
Proceeding to mark done and advance...
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Proceed directly to cleanup_handoff step.
|
|
63
|
-
|
|
64
|
-
**If plans incomplete:**
|
|
65
|
-
|
|
66
|
-
**SAFETY RAIL: Skipping incomplete plans is destructive — always confirm.**
|
|
67
|
-
|
|
68
|
-
Present:
|
|
69
|
-
|
|
70
|
-
```
|
|
71
|
-
Phase [X] has incomplete plans:
|
|
72
|
-
- {phase}-01-SUMMARY.md ✓ Complete
|
|
73
|
-
- {phase}-02-SUMMARY.md ✗ Missing
|
|
74
|
-
- {phase}-03-SUMMARY.md ✗ Missing
|
|
75
|
-
|
|
76
|
-
⚠️ Safety rail: Skipping plans requires confirmation (destructive action)
|
|
77
|
-
|
|
78
|
-
Options:
|
|
79
|
-
1. Continue current phase (execute remaining plans)
|
|
80
|
-
2. Mark complete anyway (skip remaining plans)
|
|
81
|
-
3. Review what's left
|
|
82
|
-
```
|
|
83
|
-
|
|
84
|
-
Wait for user decision.
|
|
85
|
-
|
|
86
|
-
</step>
|
|
87
|
-
|
|
88
|
-
<step name="update_roadmap">
|
|
89
|
-
|
|
90
|
-
Update the roadmap file:
|
|
91
|
-
|
|
92
|
-
```bash
|
|
93
|
-
ROADMAP_FILE=".planning/ROADMAP.md"
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
Update the file:
|
|
97
|
-
|
|
98
|
-
- Mark current phase: `[x] Complete`
|
|
99
|
-
- Add completion date
|
|
100
|
-
- Update Progress table
|
|
101
|
-
- Keep next phase as `[ ] Not started`
|
|
102
|
-
|
|
103
|
-
**Example:**
|
|
104
|
-
|
|
105
|
-
```markdown
|
|
106
|
-
## Phases
|
|
107
|
-
|
|
108
|
-
- [x] Phase 1: Foundation (completed 2025-01-15)
|
|
109
|
-
- [ ] Phase 2: Authentication ← Next
|
|
110
|
-
- [ ] Phase 3: Core Features
|
|
111
|
-
|
|
112
|
-
## Progress
|
|
113
|
-
|
|
114
|
-
| Phase | Status | Completed |
|
|
115
|
-
| ----------------- | ----------- | ---------- |
|
|
116
|
-
| 1. Foundation | Complete | 2025-01-15 |
|
|
117
|
-
| 2. Authentication | Not started | - |
|
|
118
|
-
| 3. Core Features | Not started | - |
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
</step>
|
|
122
|
-
|
|
123
|
-
<step name="archive_prompts">
|
|
124
|
-
|
|
125
|
-
If prompts were generated for the phase, they stay in place.
|
|
126
|
-
The `completed/` subfolder pattern from create-meta-prompts handles archival.
|
|
127
|
-
|
|
128
|
-
</step>
|
|
129
|
-
|
|
130
|
-
<step name="evolve_project">
|
|
131
|
-
|
|
132
|
-
Evolve PROJECT.md to reflect learnings from completed phase.
|
|
133
|
-
|
|
134
|
-
**Read phase summaries:**
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
cat .planning/phases/XX-current/*-SUMMARY.md
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
**Assess requirement changes:**
|
|
141
|
-
|
|
142
|
-
1. **Requirements validated?**
|
|
143
|
-
- Any requirements shipped in this phase?
|
|
144
|
-
- Add to Validated with phase reference: `- ✓ [Requirement] — Phase X`
|
|
145
|
-
|
|
146
|
-
2. **Requirements invalidated?**
|
|
147
|
-
- Any requirements discovered to be unnecessary or wrong?
|
|
148
|
-
- Add to Out of Scope with reason: `- [Requirement] — [why invalidated]`
|
|
149
|
-
|
|
150
|
-
3. **Business context evolved?**
|
|
151
|
-
- Has understanding of audience, problem, or differentiation changed?
|
|
152
|
-
- Update Who It's For, Core Problem, or How It's Different if so
|
|
153
|
-
- New key flows emerged? → Update Key User Flows
|
|
154
|
-
|
|
155
|
-
4. **Decisions to log?**
|
|
156
|
-
- Extract decisions from SUMMARY.md files
|
|
157
|
-
- Add to Key Decisions table with outcome if known
|
|
158
|
-
|
|
159
|
-
5. **"What This Is" still accurate?**
|
|
160
|
-
- If the product has meaningfully changed, update the description
|
|
161
|
-
- Keep it current and accurate
|
|
162
|
-
|
|
163
|
-
**Update PROJECT.md:**
|
|
164
|
-
|
|
165
|
-
Make the edits inline. Update "Last updated" footer:
|
|
166
|
-
|
|
167
|
-
```markdown
|
|
168
|
-
---
|
|
169
|
-
*Last updated: [date] after Phase [X]*
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
**Example evolution:**
|
|
173
|
-
|
|
174
|
-
Before:
|
|
175
|
-
|
|
176
|
-
```markdown
|
|
177
|
-
## Validated
|
|
178
|
-
|
|
179
|
-
- ✓ Canvas drawing tools — Phase 1
|
|
180
|
-
|
|
181
|
-
## Out of Scope
|
|
182
|
-
|
|
183
|
-
- OAuth2 — complexity not needed for v1
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
After (Phase 2 shipped JWT auth, discovered rate limiting needed):
|
|
187
|
-
|
|
188
|
-
```markdown
|
|
189
|
-
## Validated
|
|
190
|
-
|
|
191
|
-
- ✓ Canvas drawing tools — Phase 1
|
|
192
|
-
- ✓ JWT authentication — Phase 2
|
|
193
|
-
|
|
194
|
-
## Out of Scope
|
|
195
|
-
|
|
196
|
-
- OAuth2 — complexity not needed for v1
|
|
197
|
-
- Offline mode — real-time is core value, discovered Phase 2
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
**Step complete when:**
|
|
201
|
-
|
|
202
|
-
- [ ] Phase summaries reviewed for learnings
|
|
203
|
-
- [ ] Shipped requirements added to Validated
|
|
204
|
-
- [ ] Invalidated requirements added to Out of Scope with reason
|
|
205
|
-
- [ ] Business context sections reviewed (Who It's For, Core Problem, How It's Different, Key User Flows)
|
|
206
|
-
- [ ] New decisions logged with rationale
|
|
207
|
-
- [ ] "What This Is" updated if product changed
|
|
208
|
-
- [ ] "Last updated" footer reflects this transition
|
|
209
|
-
|
|
210
|
-
</step>
|
|
211
|
-
|
|
212
|
-
<step name="update_current_position_after_transition">
|
|
213
|
-
|
|
214
|
-
Update Current Position section in STATE.md to reflect phase completion and transition.
|
|
215
|
-
|
|
216
|
-
**Format:**
|
|
217
|
-
|
|
218
|
-
```markdown
|
|
219
|
-
Phase: [next] of [total] ([Next phase name])
|
|
220
|
-
Plan: Not started
|
|
221
|
-
Status: Ready to plan
|
|
222
|
-
Last activity: [today] — Phase [X] complete, transitioned to Phase [X+1]
|
|
223
|
-
|
|
224
|
-
Progress: [updated progress bar]
|
|
225
|
-
```
|
|
226
|
-
|
|
227
|
-
**Instructions:**
|
|
228
|
-
|
|
229
|
-
- Increment phase number to next phase
|
|
230
|
-
- Reset plan to "Not started"
|
|
231
|
-
- Set status to "Ready to plan"
|
|
232
|
-
- Update last activity to describe transition
|
|
233
|
-
- Recalculate progress bar based on completed plans
|
|
234
|
-
|
|
235
|
-
**Example — transitioning from Phase 2 to Phase 3:**
|
|
236
|
-
|
|
237
|
-
Before:
|
|
238
|
-
|
|
239
|
-
```markdown
|
|
240
|
-
## Current Position
|
|
241
|
-
|
|
242
|
-
Phase: 2 of 4 (Authentication)
|
|
243
|
-
Plan: 2 of 2 in current phase
|
|
244
|
-
Status: Phase complete
|
|
245
|
-
Last activity: 2025-01-20 — Completed 02-02-PLAN.md
|
|
246
|
-
|
|
247
|
-
Progress: ███████░░░ 60%
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
After:
|
|
251
|
-
|
|
252
|
-
```markdown
|
|
253
|
-
## Current Position
|
|
254
|
-
|
|
255
|
-
Phase: 3 of 4 (Core Features)
|
|
256
|
-
Plan: Not started
|
|
257
|
-
Status: Ready to plan
|
|
258
|
-
Last activity: 2025-01-20 — Phase 2 complete, transitioned to Phase 3
|
|
259
|
-
|
|
260
|
-
Progress: ███████░░░ 60%
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
**Step complete when:**
|
|
264
|
-
|
|
265
|
-
- [ ] Phase number incremented to next phase
|
|
266
|
-
- [ ] Plan status reset to "Not started"
|
|
267
|
-
- [ ] Status shows "Ready to plan"
|
|
268
|
-
- [ ] Last activity describes the transition
|
|
269
|
-
- [ ] Progress bar reflects total completed plans
|
|
270
|
-
|
|
271
|
-
</step>
|
|
272
|
-
|
|
273
|
-
<step name="update_project_reference">
|
|
274
|
-
|
|
275
|
-
Update Project Reference section in STATE.md.
|
|
276
|
-
|
|
277
|
-
```markdown
|
|
278
|
-
## Project Reference
|
|
279
|
-
|
|
280
|
-
See: .planning/PROJECT.md (updated [today])
|
|
281
|
-
|
|
282
|
-
**Core value:** [Current core value from PROJECT.md]
|
|
283
|
-
**Current focus:** [Next phase name]
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
Update the date and current focus to reflect the transition.
|
|
287
|
-
|
|
288
|
-
</step>
|
|
289
|
-
|
|
290
|
-
<step name="review_accumulated_context">
|
|
291
|
-
|
|
292
|
-
Review and update Accumulated Context section in STATE.md.
|
|
293
|
-
|
|
294
|
-
**Decisions:**
|
|
295
|
-
|
|
296
|
-
- Note recent decisions from this phase (3-5 max)
|
|
297
|
-
- Full log lives in PROJECT.md Key Decisions table
|
|
298
|
-
|
|
299
|
-
**Blockers/Concerns:**
|
|
300
|
-
|
|
301
|
-
- Review blockers from completed phase
|
|
302
|
-
- If addressed in this phase: Remove from list
|
|
303
|
-
- If still relevant for future: Keep with "Phase X" prefix
|
|
304
|
-
- Add any new concerns from completed phase's summaries
|
|
305
|
-
|
|
306
|
-
**Example:**
|
|
307
|
-
|
|
308
|
-
Before:
|
|
309
|
-
|
|
310
|
-
```markdown
|
|
311
|
-
### Blockers/Concerns
|
|
312
|
-
|
|
313
|
-
- ⚠️ [Phase 1] Database schema not indexed for common queries
|
|
314
|
-
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
After (if database indexing was addressed in Phase 2):
|
|
318
|
-
|
|
319
|
-
```markdown
|
|
320
|
-
### Blockers/Concerns
|
|
321
|
-
|
|
322
|
-
- ⚠️ [Phase 2] WebSocket reconnection behavior on flaky networks unknown
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
**Step complete when:**
|
|
326
|
-
|
|
327
|
-
- [ ] Recent decisions noted (full log in PROJECT.md)
|
|
328
|
-
- [ ] Resolved blockers removed from list
|
|
329
|
-
- [ ] Unresolved blockers kept with phase prefix
|
|
330
|
-
- [ ] New concerns from completed phase added
|
|
331
|
-
|
|
332
|
-
</step>
|
|
333
|
-
|
|
334
|
-
<step name="update_session_continuity_after_transition">
|
|
335
|
-
|
|
336
|
-
Update Session Continuity section in STATE.md to reflect transition completion.
|
|
337
|
-
|
|
338
|
-
**Format:**
|
|
339
|
-
|
|
340
|
-
```markdown
|
|
341
|
-
Last session: [today]
|
|
342
|
-
Stopped at: Phase [X] complete, ready to plan Phase [X+1]
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-
**Step complete when:**
|
|
346
|
-
|
|
347
|
-
- [ ] Last session timestamp updated to current date and time
|
|
348
|
-
- [ ] Stopped at describes phase completion and next phase
|
|
349
|
-
|
|
350
|
-
</step>
|
|
351
|
-
|
|
352
|
-
<step name="offer_next_phase">
|
|
353
|
-
|
|
354
|
-
**MANDATORY: Verify milestone status before presenting next steps.**
|
|
355
|
-
|
|
356
|
-
**Step 1: Read ROADMAP.md and identify phases in current milestone**
|
|
357
|
-
|
|
358
|
-
Read the ROADMAP.md file and extract:
|
|
359
|
-
1. Current phase number (the phase just transitioned from)
|
|
360
|
-
2. All phase numbers in the current milestone section
|
|
361
|
-
|
|
362
|
-
To find phases, look for:
|
|
363
|
-
- Phase headers: lines starting with `### Phase` or `#### Phase`
|
|
364
|
-
- Phase list items: lines like `- [ ] **Phase X:` or `- [x] **Phase X:`
|
|
365
|
-
|
|
366
|
-
Count total phases and identify the highest phase number in the milestone.
|
|
367
|
-
|
|
368
|
-
State: "Current phase is {X}. Milestone has {N} phases (highest: {Y})."
|
|
369
|
-
|
|
370
|
-
**Step 2: Route based on milestone status**
|
|
371
|
-
|
|
372
|
-
| Condition | Meaning | Action |
|
|
373
|
-
|-----------|---------|--------|
|
|
374
|
-
| current phase < highest phase | More phases remain | Go to **Route A** |
|
|
375
|
-
| current phase = highest phase | Milestone complete | Go to **Route B** |
|
|
376
|
-
|
|
377
|
-
---
|
|
378
|
-
|
|
379
|
-
**Route A: More phases remain in milestone**
|
|
380
|
-
|
|
381
|
-
Read ROADMAP.md to get the next phase's name and goal.
|
|
382
|
-
|
|
383
|
-
**If next phase exists:**
|
|
384
|
-
|
|
385
|
-
```
|
|
386
|
-
Phase [X] marked complete.
|
|
387
|
-
|
|
388
|
-
Next: Phase [X+1] — [Name]
|
|
389
|
-
|
|
390
|
-
⚡ Auto-continuing: Plan Phase [X+1] in detail
|
|
391
|
-
```
|
|
392
|
-
|
|
393
|
-
Exit skill and invoke SlashCommand("/ms:plan-phase [X+1]")
|
|
394
|
-
|
|
395
|
-
---
|
|
396
|
-
|
|
397
|
-
**Route B: Milestone complete (all phases done)**
|
|
398
|
-
|
|
399
|
-
```
|
|
400
|
-
Phase {X} marked complete.
|
|
401
|
-
|
|
402
|
-
🎉 Milestone is 100% complete — all {N} phases finished!
|
|
403
|
-
|
|
404
|
-
⚡ Auto-continuing: Complete milestone and archive
|
|
405
|
-
```
|
|
406
|
-
|
|
407
|
-
Exit skill and invoke SlashCommand("/ms:complete-milestone")
|
|
408
|
-
|
|
409
|
-
</step>
|
|
410
|
-
|
|
411
|
-
</process>
|
|
412
|
-
|
|
413
|
-
<implicit_tracking>
|
|
414
|
-
|
|
415
|
-
Progress tracking is IMPLICIT:
|
|
416
|
-
|
|
417
|
-
- "Plan phase 2" → Phase 1 must be done (or ask)
|
|
418
|
-
- "Plan phase 3" → Phases 1-2 must be done (or ask)
|
|
419
|
-
- Transition workflow makes it explicit in ROADMAP.md
|
|
420
|
-
|
|
421
|
-
No separate "update progress" step. Forward motion IS progress.
|
|
422
|
-
|
|
423
|
-
</implicit_tracking>
|
|
424
|
-
|
|
425
|
-
<partial_completion>
|
|
426
|
-
|
|
427
|
-
If user wants to move on but phase isn't fully complete:
|
|
428
|
-
|
|
429
|
-
```
|
|
430
|
-
Phase [X] has incomplete plans:
|
|
431
|
-
- {phase}-02-PLAN.md (not executed)
|
|
432
|
-
- {phase}-03-PLAN.md (not executed)
|
|
433
|
-
|
|
434
|
-
Options:
|
|
435
|
-
1. Mark complete anyway (plans weren't needed)
|
|
436
|
-
2. Defer work to later phase
|
|
437
|
-
3. Stay and finish current phase
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
Respect user judgment — they know if work matters.
|
|
441
|
-
|
|
442
|
-
**If marking complete with incomplete plans:**
|
|
443
|
-
|
|
444
|
-
- Note in transition message which plans were skipped
|
|
445
|
-
|
|
446
|
-
</partial_completion>
|
|
447
|
-
|
|
448
|
-
<success_criteria>
|
|
449
|
-
|
|
450
|
-
Transition is complete when:
|
|
451
|
-
|
|
452
|
-
- [ ] Current phase plan summaries verified (all exist or user chose to skip)
|
|
453
|
-
- [ ] Any stale handoffs deleted
|
|
454
|
-
- [ ] ROADMAP.md updated with completion status
|
|
455
|
-
- [ ] PROJECT.md evolved (requirements, decisions, description if needed)
|
|
456
|
-
- [ ] STATE.md updated (position, project reference, context, session)
|
|
457
|
-
- [ ] Progress table updated
|
|
458
|
-
- [ ] User knows next steps
|
|
459
|
-
|
|
460
|
-
</success_criteria>
|