mindsystem-cc 4.3.0 → 4.3.1
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 +11 -11
- package/agents/ms-compounder.md +14 -13
- package/agents/ms-consolidator.md +14 -13
- package/commands/ms/add-phase.md +0 -4
- package/commands/ms/execute-phase.md +20 -13
- package/commands/ms/insert-phase.md +0 -4
- package/mindsystem/references/routing/next-phase-routing.md +1 -1
- package/mindsystem/templates/knowledge.md +1 -1
- package/mindsystem/templates/milestone-archive.md +0 -14
- package/mindsystem/templates/roadmap-milestone.md +5 -16
- package/mindsystem/templates/roadmap.md +6 -32
- package/mindsystem/workflows/complete-milestone.md +0 -1
- package/mindsystem/workflows/doctor-fixes.md +1 -1
- package/mindsystem/workflows/execute-phase.md +10 -10
- package/mindsystem/workflows/transition.md +6 -8
- package/mindsystem/workflows/verify-work.md +11 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# MINDSYSTEM
|
|
4
4
|
|
|
5
|
-
**The
|
|
5
|
+
**The full-cycle development system for Claude Code.**
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
In lean teams and solo ventures, the person writing the code is also the person deciding what to build, researching the domain, picking the layout, and verifying the result. Mindsystem amplifies each of those steps, making them deeper and faster — discovery, research, design, planning, execution, verification — so one person can cover the full cycle without cutting corners. What it learns carries forward, so phase 10 knows everything phase 1 figured out.
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
npx mindsystem-cc
|
|
@@ -27,17 +27,17 @@ npx mindsystem-cc
|
|
|
27
27
|
|
|
28
28
|
## Why Mindsystem
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
Larger organizations split product delivery across specialists — product owners, designers, researchers, QA engineers. Autonomous coding tools try to replace that entire chain with a single prompt. Both approaches lose something: the first requires headcount, the second loses your judgment.
|
|
31
31
|
|
|
32
|
-
Mindsystem
|
|
32
|
+
Mindsystem is the middle ground. Each specialist role maps to a phase you control:
|
|
33
33
|
|
|
34
|
-
| What you'd do
|
|
35
|
-
|
|
36
|
-
| Talk through requirements, catch misalignment early | **Discuss phase** surfaces assumptions with confidence levels, forces tradeoff decisions before any code gets written |
|
|
37
|
-
| Google libraries, read a few docs | **Research phase** runs 3 parallel agents across documentation, your codebase, and community practices — 10x more sources, synthesized in minutes |
|
|
38
|
-
| Try design directions, pick the best one | **Design phase** generates parallel HTML/CSS mockups with side-by-side comparison and exact design tokens |
|
|
39
|
-
| Plan from what you remember about the codebase | **Plan phase** loads knowledge files capturing every decision, pattern, and pitfall from prior phases |
|
|
40
|
-
| Figure out what states to test, mock them manually | **Verify work** determines mock states automatically — you validate visually or programmatically |
|
|
34
|
+
| The role | What you'd do | What Mindsystem does |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| **Product owner** | Talk through requirements, catch misalignment early | **Discuss phase** surfaces assumptions with confidence levels, forces tradeoff decisions before any code gets written |
|
|
37
|
+
| **Technical researcher** | Google libraries, read a few docs | **Research phase** runs 3 parallel agents across documentation, your codebase, and community practices — 10x more sources, synthesized in minutes |
|
|
38
|
+
| **Designer** | Try design directions, pick the best one | **Design phase** generates parallel HTML/CSS mockups with side-by-side comparison and exact design tokens |
|
|
39
|
+
| **Tech lead** | Plan from what you remember about the codebase | **Plan phase** loads knowledge files capturing every decision, pattern, and pitfall from prior phases |
|
|
40
|
+
| **QA engineer** | Figure out what states to test, mock them manually | **Verify work** determines mock states automatically — you validate visually or programmatically |
|
|
41
41
|
|
|
42
42
|
The workflow stays yours. Each step finishes in minutes instead of hours. Everything learned compounds into knowledge that survives context resets — phase 10 starts with everything the project learned from phases 1–9.
|
|
43
43
|
|
package/agents/ms-compounder.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ms-compounder
|
|
3
3
|
description: Compounds raw code changes into per-subsystem knowledge files. Spawned by compound workflow.
|
|
4
4
|
model: sonnet
|
|
5
|
-
tools: Read, Write, Bash, Grep, Glob
|
|
5
|
+
tools: Read, Edit, Write, Bash, Grep, Glob
|
|
6
6
|
color: yellow
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -71,23 +71,23 @@ Focus on:
|
|
|
71
71
|
|
|
72
72
|
## Step 4: Merge Into Existing Knowledge
|
|
73
73
|
|
|
74
|
-
For each affected subsystem,
|
|
74
|
+
For each affected subsystem, edit the knowledge file to reflect current state:
|
|
75
75
|
|
|
76
|
-
- **Decisions:**
|
|
77
|
-
- **Architecture:**
|
|
78
|
-
- **Design:**
|
|
79
|
-
- **Pitfalls:**
|
|
80
|
-
- **Key Files:**
|
|
76
|
+
- **Decisions:** Append new entries. Edit superseded decisions in place. Delete contradicted ones.
|
|
77
|
+
- **Architecture:** Edit structural descriptions with new components and patterns.
|
|
78
|
+
- **Design:** Append new specs, edit changed specs.
|
|
79
|
+
- **Pitfalls:** Append new entries. Delete duplicates of existing entries.
|
|
80
|
+
- **Key Files:** Append new paths, delete renamed or deleted files.
|
|
81
81
|
|
|
82
|
-
|
|
82
|
+
Use `Edit` for existing files — targeted changes preserve content you haven't inspected. Use `Write` only for new files (subsystem has no knowledge file yet).
|
|
83
83
|
|
|
84
|
-
## Step 5:
|
|
84
|
+
## Step 5: Update Knowledge Files and Return Report
|
|
85
85
|
|
|
86
86
|
```bash
|
|
87
87
|
mkdir -p .planning/knowledge/
|
|
88
88
|
```
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
For new subsystems (no existing file), use `Write` to create the file following the template format from `~/.claude/mindsystem/templates/knowledge.md`. For existing files, all changes should already be applied via `Edit` in step 4. Omit empty sections.
|
|
91
91
|
|
|
92
92
|
Return a structured report to the compound workflow.
|
|
93
93
|
|
|
@@ -123,11 +123,11 @@ If changes suggest a subsystem not in the confirmed list, note it as a proposal
|
|
|
123
123
|
|
|
124
124
|
**Preserve rationale.** The "because" part is the value. Decisions without rationale are just facts.
|
|
125
125
|
|
|
126
|
-
**
|
|
126
|
+
**Edit to reflect current state.** Update superseded decisions, remove outdated patterns, append new entries. Use `Edit` for existing files, `Write` only for new files.
|
|
127
127
|
|
|
128
128
|
**Omit empty sections.** If a subsystem has no design work, do not include a Design section.
|
|
129
129
|
|
|
130
|
-
**No commits.**
|
|
130
|
+
**No commits.** Edit/write files only — the compound workflow orchestrator handles commits.
|
|
131
131
|
|
|
132
132
|
**Only write files for confirmed affected subsystems.** Do not invent subsystems or write knowledge files for subsystems not in the confirmed list.
|
|
133
133
|
|
|
@@ -136,7 +136,8 @@ If changes suggest a subsystem not in the confirmed list, note it as a proposal
|
|
|
136
136
|
</critical_rules>
|
|
137
137
|
|
|
138
138
|
<success_criteria>
|
|
139
|
-
- [ ]
|
|
139
|
+
- [ ] Existing files modified via Edit (not Write) — targeted changes, no full-file replacement
|
|
140
|
+
- [ ] Merge reflects current state (update, remove, deduplicate — not just append)
|
|
140
141
|
- [ ] No commits made
|
|
141
142
|
- [ ] Report returned with update counts
|
|
142
143
|
- [ ] Empty sections omitted from knowledge files
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: ms-consolidator
|
|
3
3
|
description: Consolidates phase artifacts into per-subsystem knowledge files. Spawned by execute-phase after plan execution.
|
|
4
4
|
model: sonnet
|
|
5
|
-
tools: Read, Write, Bash, Grep, Glob
|
|
5
|
+
tools: Read, Edit, Write, Bash, Grep, Glob
|
|
6
6
|
color: yellow
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -137,25 +137,25 @@ Extract knowledge, not descriptions. "Using React" is not knowledge. "Using Reac
|
|
|
137
137
|
|
|
138
138
|
## Step 6: Merge Into Knowledge Files
|
|
139
139
|
|
|
140
|
-
For each affected subsystem,
|
|
140
|
+
For each affected subsystem, edit the knowledge file to reflect current state:
|
|
141
141
|
|
|
142
|
-
- **Decisions:**
|
|
143
|
-
- **Architecture:**
|
|
144
|
-
- **Design:**
|
|
145
|
-
- **Pitfalls:**
|
|
146
|
-
- **Key Files:**
|
|
142
|
+
- **Decisions:** Append new entries. Edit superseded decisions in place. Delete contradicted ones.
|
|
143
|
+
- **Architecture:** Edit structural descriptions with new components and patterns.
|
|
144
|
+
- **Design:** Append new specs, edit changed specs.
|
|
145
|
+
- **Pitfalls:** Append new entries. Delete duplicates of existing entries.
|
|
146
|
+
- **Key Files:** Append new paths, delete renamed or deleted files.
|
|
147
147
|
|
|
148
|
-
|
|
148
|
+
Use `Edit` for existing files — targeted changes preserve content you haven't inspected. Use `Write` only for new files (subsystem has no knowledge file yet).
|
|
149
149
|
|
|
150
|
-
## Step 7:
|
|
150
|
+
## Step 7: Update Knowledge Files
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
153
|
mkdir -p .planning/knowledge/
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
For new subsystems (no existing file), use `Write` to create the file following the template format from `~/.claude/mindsystem/templates/knowledge.md`. For existing files, all changes should already be applied via `Edit` in step 6. Omit empty sections.
|
|
157
157
|
|
|
158
|
-
Only
|
|
158
|
+
Only update files for subsystems found in SUMMARY.md frontmatter.
|
|
159
159
|
|
|
160
160
|
## Step 8: Delete PLAN.md Files
|
|
161
161
|
|
|
@@ -203,7 +203,7 @@ Use `+N` for new entries added, `updated` for sections rewritten with changes, `
|
|
|
203
203
|
|
|
204
204
|
**Preserve rationale.** The "because" part is the value. Decisions without rationale are just facts.
|
|
205
205
|
|
|
206
|
-
**
|
|
206
|
+
**Edit to reflect current state.** Update superseded decisions, remove outdated patterns, append new entries. Use `Edit` for existing files, `Write` only for new files.
|
|
207
207
|
|
|
208
208
|
**Handle missing files gracefully.** Not all phases have CONTEXT, DESIGN, or RESEARCH files. This is normal.
|
|
209
209
|
|
|
@@ -220,7 +220,8 @@ Use `+N` for new entries added, `updated` for sections rewritten with changes, `
|
|
|
220
220
|
<success_criteria>
|
|
221
221
|
- [ ] Subsystem alignment validated against config.json
|
|
222
222
|
- [ ] Content extracted and distributed per extraction guide
|
|
223
|
-
- [ ]
|
|
223
|
+
- [ ] Existing knowledge files modified via Edit (not Write) — targeted changes, no full-file replacement
|
|
224
|
+
- [ ] New knowledge files created with Write in `.planning/knowledge/`
|
|
224
225
|
- [ ] Empty sections omitted from knowledge files
|
|
225
226
|
- [ ] PLAN.md files deleted from phase directory
|
|
226
227
|
- [ ] CONTEXT.md, DESIGN.md, RESEARCH.md, SUMMARY.md preserved
|
package/commands/ms/add-phase.md
CHANGED
|
@@ -148,10 +148,6 @@ Add the new phase entry to the roadmap:
|
|
|
148
148
|
**Design focus**: {focus} ← only if Likely
|
|
149
149
|
**Research**: {Likely (reason) | Unlikely (reason)}
|
|
150
150
|
**Research topics**: {topics} ← only if Likely
|
|
151
|
-
**Plans:** 0 plans
|
|
152
|
-
|
|
153
|
-
Plans:
|
|
154
|
-
- [ ] TBD (run /ms:plan-phase {N} to break down)
|
|
155
151
|
|
|
156
152
|
**Details:**
|
|
157
153
|
[To be added during planning]
|
|
@@ -145,14 +145,14 @@ Then route based on status:
|
|
|
145
145
|
| Status | Route |
|
|
146
146
|
|--------|-------|
|
|
147
147
|
| `gaps_found` | Route C (gap closure) |
|
|
148
|
-
| `passed` + more phases | Route A (verify
|
|
148
|
+
| `passed` + more phases | Route A (verify) |
|
|
149
149
|
| `passed` + last phase | Route B (verify + milestone complete) |
|
|
150
150
|
|
|
151
151
|
Thoroughness by default: verify-work is the primary "Next Up" in both routes. Assess skip context per workflow `offer_next` step.
|
|
152
152
|
|
|
153
153
|
---
|
|
154
154
|
|
|
155
|
-
**
|
|
155
|
+
**Shared steps (Routes A and B):**
|
|
156
156
|
|
|
157
157
|
1. Show phase completion summary:
|
|
158
158
|
```
|
|
@@ -174,26 +174,33 @@ All {Y} plans finished. Phase goal verified.
|
|
|
174
174
|
{If skip context: "Phase involved only {description} with no user-facing changes — skip if structural verification is sufficient."}
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
**Phase {Z+1}: {Name}** — {Goal}
|
|
180
|
-
{If pre-work flagged: brief note about recommendations}
|
|
177
|
+
**Then branch by route:**
|
|
181
178
|
|
|
182
|
-
**
|
|
183
|
-
- `/ms:{suggested} {Z+1}` — {reason}
|
|
184
|
-
- `/ms:plan-phase {Z+1}` — skip pre-work, plan directly
|
|
185
|
-
```
|
|
179
|
+
**Route A: More phases remain**
|
|
186
180
|
|
|
187
|
-
|
|
181
|
+
4. **If skip context applies:** Determine next phase's primary suggestion:
|
|
182
|
+
- From ROADMAP.md (already in context), get Phase {Z+1} pre-work flags
|
|
183
|
+
- Check: CONTEXT.md exists? DESIGN.md? RESEARCH.md? in next phase dir
|
|
184
|
+
- Priority: discuss (if Likely + no CONTEXT.md) > design (if Likely + no DESIGN.md) > research (if Likely + no RESEARCH.md) > plan-phase
|
|
185
|
+
- Present ONE "Also available" entry:
|
|
186
|
+
```
|
|
187
|
+
---
|
|
188
|
+
**Also available:**
|
|
189
|
+
- `/ms:{suggested} {Z+1}` — skip verify, start Phase {Z+1}: {Name}
|
|
190
|
+
---
|
|
191
|
+
```
|
|
192
|
+
**If skip context does NOT apply:** No "Also available" — verify-work is the sole suggestion.
|
|
188
193
|
|
|
189
|
-
**Route B:
|
|
194
|
+
**Route B: Milestone complete**
|
|
190
195
|
|
|
191
|
-
|
|
196
|
+
4. Present milestone options:
|
|
192
197
|
```
|
|
198
|
+
---
|
|
193
199
|
**Also available:**
|
|
194
200
|
- `/ms:audit-milestone` — verify requirements, cross-phase integration, E2E flows
|
|
195
201
|
- `/ms:complete-milestone` — skip audit, archive directly
|
|
196
202
|
- `/ms:add-phase <description>` — add another phase first
|
|
203
|
+
---
|
|
197
204
|
```
|
|
198
205
|
|
|
199
206
|
---
|
|
@@ -163,10 +163,6 @@ Insert the new phase entry into the roadmap:
|
|
|
163
163
|
**Design focus**: {focus} ← only if Likely
|
|
164
164
|
**Research**: {Likely (reason) | Unlikely (reason)}
|
|
165
165
|
**Research topics**: {topics} ← only if Likely
|
|
166
|
-
**Plans:** 0 plans
|
|
167
|
-
|
|
168
|
-
Plans:
|
|
169
|
-
- [ ] TBD (run /ms:plan-phase {decimal_phase} to break down)
|
|
170
166
|
|
|
171
167
|
**Details:**
|
|
172
168
|
[To be added during planning]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Next Phase Routing
|
|
2
2
|
|
|
3
|
-
Reference for presenting "Next Up" guidance for a phase. Used by progress (current phase)
|
|
3
|
+
Reference for presenting "Next Up" guidance for a phase. Used by progress (current phase) and verify-work (next phase).
|
|
4
4
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
@@ -66,7 +66,7 @@ Template for `.planning/knowledge/{subsystem}.md` — per-subsystem knowledge fi
|
|
|
66
66
|
- **Architecture and Design use prose bullets.** Describe how things work, not tables.
|
|
67
67
|
- **Pitfalls use bold titles** for scannability.
|
|
68
68
|
- **Key Files is a flat list.** No nesting, no grouping.
|
|
69
|
-
- **
|
|
69
|
+
- **Edit to reflect current state.** Each update produces the current state through targeted edits — update superseded decisions, remove outdated patterns, append new entries. Use `Edit` for existing files, `Write` only for new files. Never replace an entire knowledge file via `Write`.
|
|
70
70
|
|
|
71
71
|
## Cross-Reference Pattern
|
|
72
72
|
|
|
@@ -10,8 +10,6 @@ This template is used by the complete-milestone workflow to create archive files
|
|
|
10
10
|
|
|
11
11
|
**Status:** ✅ SHIPPED {{DATE}}
|
|
12
12
|
**Phases:** {{PHASE_START}}-{{PHASE_END}}
|
|
13
|
-
**Total Plans:** {{TOTAL_PLANS}}
|
|
14
|
-
|
|
15
13
|
## Overview
|
|
16
14
|
|
|
17
15
|
{{MILESTONE_DESCRIPTION}}
|
|
@@ -26,13 +24,6 @@ This template is used by the complete-milestone workflow to create archive files
|
|
|
26
24
|
|
|
27
25
|
**Goal**: {{PHASE_GOAL}}
|
|
28
26
|
**Depends on**: {{DEPENDS_ON}}
|
|
29
|
-
**Plans**: {{PLAN_COUNT}} plans
|
|
30
|
-
|
|
31
|
-
Plans:
|
|
32
|
-
|
|
33
|
-
- [x] {{PHASE}}-01: {{PLAN_DESCRIPTION}}
|
|
34
|
-
- [x] {{PHASE}}-02: {{PLAN_DESCRIPTION}}
|
|
35
|
-
[... all plans ...]
|
|
36
27
|
|
|
37
28
|
**Details:**
|
|
38
29
|
{{PHASE_DETAILS_FROM_ROADMAP}}
|
|
@@ -43,11 +34,6 @@ Plans:
|
|
|
43
34
|
|
|
44
35
|
**Goal**: Fix authentication bypass vulnerability
|
|
45
36
|
**Depends on**: Phase 2
|
|
46
|
-
**Plans**: 1 plan
|
|
47
|
-
|
|
48
|
-
Plans:
|
|
49
|
-
|
|
50
|
-
- [x] 02.1-01: Patch auth vulnerability
|
|
51
37
|
|
|
52
38
|
**Details:**
|
|
53
39
|
{{PHASE_DETAILS_FROM_ROADMAP}}
|
|
@@ -18,12 +18,6 @@ Template for reorganizing `ROADMAP.md` after first milestone ships. Collapse com
|
|
|
18
18
|
|
|
19
19
|
### Phase 1: [Name]
|
|
20
20
|
**Goal**: [What this phase delivers]
|
|
21
|
-
**Plans**: 3 plans
|
|
22
|
-
|
|
23
|
-
Plans:
|
|
24
|
-
- [x] 01-01: [Brief description]
|
|
25
|
-
- [x] 01-02: [Brief description]
|
|
26
|
-
- [x] 01-03: [Brief description]
|
|
27
21
|
|
|
28
22
|
[... remaining phases ...]
|
|
29
23
|
|
|
@@ -36,11 +30,6 @@ Plans:
|
|
|
36
30
|
#### Phase 5: [Name]
|
|
37
31
|
**Goal**: [What this phase delivers]
|
|
38
32
|
**Depends on**: Phase 4
|
|
39
|
-
**Plans**: 2 plans
|
|
40
|
-
|
|
41
|
-
Plans:
|
|
42
|
-
- [ ] 05-01: [Brief description]
|
|
43
|
-
- [ ] 05-02: [Brief description]
|
|
44
33
|
|
|
45
34
|
[... remaining phases ...]
|
|
46
35
|
|
|
@@ -52,11 +41,11 @@ Plans:
|
|
|
52
41
|
|
|
53
42
|
## Progress
|
|
54
43
|
|
|
55
|
-
| Phase | Milestone |
|
|
56
|
-
|
|
57
|
-
| 1. Foundation | MVP |
|
|
58
|
-
| 2. Features | MVP |
|
|
59
|
-
| 5. Security | Security & Polish |
|
|
44
|
+
| Phase | Milestone | Status | Completed |
|
|
45
|
+
|-------|-----------|--------|-----------|
|
|
46
|
+
| 1. Foundation | MVP | Complete | YYYY-MM-DD |
|
|
47
|
+
| 2. Features | MVP | Complete | YYYY-MM-DD |
|
|
48
|
+
| 5. Security | Security & Polish | Not started | - |
|
|
60
49
|
```
|
|
61
50
|
|
|
62
51
|
**Notes:**
|
|
@@ -52,12 +52,6 @@ Decimal phases appear between their surrounding integers in numeric order.
|
|
|
52
52
|
**Discuss**: Unlikely (mechanical setup, zero design decisions)
|
|
53
53
|
**Design**: Unlikely (backend only)
|
|
54
54
|
**Research**: Unlikely (established patterns)
|
|
55
|
-
**Plans**: [Number of plans, e.g., "3 plans" or "TBD"]
|
|
56
|
-
|
|
57
|
-
Plans:
|
|
58
|
-
- [ ] 01-01: [Brief description of first plan]
|
|
59
|
-
- [ ] 01-02: [Brief description of second plan]
|
|
60
|
-
- [ ] 01-03: [Brief description of third plan]
|
|
61
55
|
|
|
62
56
|
### Phase 2: [Name]
|
|
63
57
|
**Goal**: [What this phase delivers]
|
|
@@ -72,21 +66,12 @@ Plans:
|
|
|
72
66
|
**Design focus**: [What to design]
|
|
73
67
|
**Research**: Likely (new integration)
|
|
74
68
|
**Research topics**: [What needs investigating]
|
|
75
|
-
**Plans**: [Number of plans]
|
|
76
|
-
|
|
77
|
-
Plans:
|
|
78
|
-
- [ ] 02-01: [Brief description]
|
|
79
|
-
- [ ] 02-02: [Brief description]
|
|
80
69
|
|
|
81
70
|
### Phase 2.1: Critical Fix (INSERTED)
|
|
82
71
|
**Goal**: [Urgent work inserted between phases]
|
|
83
72
|
**Depends on**: Phase 2
|
|
84
73
|
**Success Criteria** (what must be TRUE):
|
|
85
74
|
1. [What the fix achieves]
|
|
86
|
-
**Plans**: 1 plan
|
|
87
|
-
|
|
88
|
-
Plans:
|
|
89
|
-
- [ ] 02.1-01: [Description]
|
|
90
75
|
|
|
91
76
|
### Phase 3: [Name]
|
|
92
77
|
**Goal**: [What this phase delivers]
|
|
@@ -101,11 +86,6 @@ Plans:
|
|
|
101
86
|
**Design**: Unlikely (API only)
|
|
102
87
|
**Research**: Likely (external API)
|
|
103
88
|
**Research topics**: [What needs investigating]
|
|
104
|
-
**Plans**: [Number of plans]
|
|
105
|
-
|
|
106
|
-
Plans:
|
|
107
|
-
- [ ] 03-01: [Brief description]
|
|
108
|
-
- [ ] 03-02: [Brief description]
|
|
109
89
|
|
|
110
90
|
### Phase 4: [Name]
|
|
111
91
|
**Goal**: [What this phase delivers]
|
|
@@ -118,22 +98,18 @@ Plans:
|
|
|
118
98
|
**Discuss topics**: [Priority rules, batch vs individual, error recovery]
|
|
119
99
|
**Design**: Unlikely (backend only)
|
|
120
100
|
**Research**: Unlikely (internal patterns)
|
|
121
|
-
**Plans**: [Number of plans]
|
|
122
|
-
|
|
123
|
-
Plans:
|
|
124
|
-
- [ ] 04-01: [Brief description]
|
|
125
101
|
|
|
126
102
|
## Progress
|
|
127
103
|
|
|
128
104
|
**Execution Order:**
|
|
129
105
|
Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
|
|
130
106
|
|
|
131
|
-
| Phase |
|
|
132
|
-
|
|
133
|
-
| 1. [Name] |
|
|
134
|
-
| 2. [Name] |
|
|
135
|
-
| 3. [Name] |
|
|
136
|
-
| 4. [Name] |
|
|
107
|
+
| Phase | Status | Completed |
|
|
108
|
+
|-------|--------|-----------|
|
|
109
|
+
| 1. [Name] | Not started | - |
|
|
110
|
+
| 2. [Name] | Not started | - |
|
|
111
|
+
| 3. [Name] | Not started | - |
|
|
112
|
+
| 4. [Name] | Not started | - |
|
|
137
113
|
```
|
|
138
114
|
|
|
139
115
|
<guidelines>
|
|
@@ -145,11 +121,9 @@ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
|
|
|
145
121
|
**Initial planning:**
|
|
146
122
|
- Phase count derived from actual work (not a target number)
|
|
147
123
|
- Each phase delivers something coherent
|
|
148
|
-
- Phases can have 1+ plans (split by orchestrator judgment — multiple subsystems, context budget, vertical slices)
|
|
149
124
|
- Plans use naming: {phase}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
|
|
150
125
|
- No time estimates (this isn't enterprise PM)
|
|
151
126
|
- Progress table updated by execute workflow
|
|
152
|
-
- Plan count can be "TBD" initially, refined during planning
|
|
153
127
|
|
|
154
128
|
**Success criteria:**
|
|
155
129
|
- 2-5 observable behaviors per phase (from user's perspective)
|
|
@@ -345,7 +345,6 @@ Extract completed milestone details and create archive file.
|
|
|
345
345
|
- {{DATE}} — Today's date
|
|
346
346
|
- {{PHASE_START}} — First phase number in milestone
|
|
347
347
|
- {{PHASE_END}} — Last phase number in milestone
|
|
348
|
-
- {{TOTAL_PLANS}} — Count of all plans in milestone
|
|
349
348
|
- {{MILESTONE_DESCRIPTION}} — From ROADMAP.md overview
|
|
350
349
|
- {{PHASES_SECTION}} — Full phase details extracted
|
|
351
350
|
- {{DECISIONS_FROM_PROJECT}} — Key decisions from PROJECT.md
|
|
@@ -315,7 +315,7 @@ Spawn a `general-purpose` subagent (Task tool) with the following structured pro
|
|
|
315
315
|
> - Preserve rationale when visible in code comments or config. Do not fabricate reasons.
|
|
316
316
|
> - Do not fabricate specific numbers (limits, thresholds, counts) — read from source or omit.
|
|
317
317
|
> - Omit empty sections. No Design section if subsystem has no UI.
|
|
318
|
-
> -
|
|
318
|
+
> - Edit to reflect current state — use `Edit` for existing knowledge files (targeted changes), `Write` only for new files.
|
|
319
319
|
> - Cross-reference between subsystems where relevant: "(see api subsystem)".
|
|
320
320
|
> - Decisions table: 5-10 words per cell. Source column: `"existing"` for source code mode, artifact reference for artifact mode.
|
|
321
321
|
> - Key files must reference actual paths verified to exist.
|
|
@@ -539,24 +539,24 @@ All {Y} plans finished. Phase goal verified.
|
|
|
539
539
|
|
|
540
540
|
**Then present "Also available" based on milestone status:**
|
|
541
541
|
|
|
542
|
-
**If more phases remain:**
|
|
542
|
+
**If more phases remain AND skip context applies:**
|
|
543
543
|
|
|
544
|
-
|
|
544
|
+
Determine the next phase's primary suggestion inline — do NOT read next-phase-routing.md:
|
|
545
|
+
- From ROADMAP.md (already in context), get Phase {Z+1} pre-work flags
|
|
546
|
+
- Check: CONTEXT.md exists? DESIGN.md? RESEARCH.md? in next phase dir
|
|
547
|
+
- Priority: discuss (if Likely + no CONTEXT.md) > design (if Likely + no DESIGN.md) > research (if Likely + no RESEARCH.md) > plan-phase
|
|
548
|
+
- Present ONE "Also available" entry:
|
|
545
549
|
|
|
546
550
|
```markdown
|
|
547
551
|
---
|
|
548
|
-
|
|
549
|
-
**Phase {Z+1}: {Name}** — {Goal}
|
|
550
|
-
{If pre-work flagged: brief note about recommendations}
|
|
551
|
-
|
|
552
552
|
**Also available:**
|
|
553
|
-
- `/ms:{suggested} {Z+1}` —
|
|
554
|
-
- `/ms:plan-phase {Z+1}` — skip pre-work, plan directly
|
|
555
|
-
|
|
553
|
+
- `/ms:{suggested} {Z+1}` — skip verify, start Phase {Z+1}: {Name}
|
|
556
554
|
---
|
|
557
555
|
```
|
|
558
556
|
|
|
559
|
-
|
|
557
|
+
**If more phases remain but skip context does NOT apply:** No "Also available" — verify-work is the sole suggestion.
|
|
558
|
+
|
|
559
|
+
Do NOT present pre-work recommendation tables or multiple cross-phase alternatives. Cross-phase routing belongs to verify-work and progress.
|
|
560
560
|
|
|
561
561
|
**If milestone complete:**
|
|
562
562
|
|
|
@@ -97,7 +97,6 @@ Update the file:
|
|
|
97
97
|
|
|
98
98
|
- Mark current phase: `[x] Complete`
|
|
99
99
|
- Add completion date
|
|
100
|
-
- Update plan count to final (e.g., "3/3 plans complete")
|
|
101
100
|
- Update Progress table
|
|
102
101
|
- Keep next phase as `[ ] Not started`
|
|
103
102
|
|
|
@@ -112,11 +111,11 @@ Update the file:
|
|
|
112
111
|
|
|
113
112
|
## Progress
|
|
114
113
|
|
|
115
|
-
| Phase |
|
|
116
|
-
| ----------------- |
|
|
117
|
-
| 1. Foundation |
|
|
118
|
-
| 2. Authentication |
|
|
119
|
-
| 3. Core Features |
|
|
114
|
+
| Phase | Status | Completed |
|
|
115
|
+
| ----------------- | ----------- | ---------- |
|
|
116
|
+
| 1. Foundation | Complete | 2025-01-15 |
|
|
117
|
+
| 2. Authentication | Not started | - |
|
|
118
|
+
| 3. Core Features | Not started | - |
|
|
120
119
|
```
|
|
121
120
|
|
|
122
121
|
</step>
|
|
@@ -442,7 +441,6 @@ Respect user judgment — they know if work matters.
|
|
|
442
441
|
|
|
443
442
|
**If marking complete with incomplete plans:**
|
|
444
443
|
|
|
445
|
-
- Update ROADMAP: "2/3 plans complete" (not "3/3")
|
|
446
444
|
- Note in transition message which plans were skipped
|
|
447
445
|
|
|
448
446
|
</partial_completion>
|
|
@@ -453,7 +451,7 @@ Transition is complete when:
|
|
|
453
451
|
|
|
454
452
|
- [ ] Current phase plan summaries verified (all exist or user chose to skip)
|
|
455
453
|
- [ ] Any stale handoffs deleted
|
|
456
|
-
- [ ] ROADMAP.md updated with completion status
|
|
454
|
+
- [ ] ROADMAP.md updated with completion status
|
|
457
455
|
- [ ] PROJECT.md evolved (requirements, decisions, description if needed)
|
|
458
456
|
- [ ] STATE.md updated (position, project reference, context, session)
|
|
459
457
|
- [ ] Progress table updated
|
|
@@ -365,24 +365,21 @@ This knowledge informs investigation (where to look, known pitfalls) and any sub
|
|
|
365
365
|
3. Check git log for recent changes to relevant files
|
|
366
366
|
```
|
|
367
367
|
|
|
368
|
-
**2.
|
|
368
|
+
**2. Report finding and act:**
|
|
369
369
|
|
|
370
|
-
|
|
371
|
-
- Propose fix in plain language:
|
|
372
|
-
```
|
|
373
|
-
Found the issue. In `ErrorBanner.tsx` line 42, the error message is
|
|
374
|
-
hardcoded to "Something went wrong" instead of using the actual error
|
|
375
|
-
from the API response.
|
|
370
|
+
State the root cause and the fix in plain language before applying. This lets the user capture the lesson in persistent instructions or catch a wrong direction before reviewing the diff. No confirmation needed — go straight to fixing.
|
|
376
371
|
|
|
377
|
-
|
|
372
|
+
Format:
|
|
373
|
+
```
|
|
374
|
+
{Root cause — what the code does wrong and why, 1-2 sentences}
|
|
378
375
|
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
376
|
+
Fix: {what the fix changes, 1-2 sentences}
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
**If fix is simple (single file, straightforward change):**
|
|
380
|
+
- Go to `apply_fix` immediately
|
|
383
381
|
|
|
384
|
-
**If
|
|
385
|
-
- Report finding
|
|
382
|
+
**If fix is complex (multiple files, architectural):**
|
|
386
383
|
- Spawn ms-verify-fixer subagent (go to `escalate_to_fixer`)
|
|
387
384
|
|
|
388
385
|
**If cause NOT found after 2-3 checks:**
|