mindsystem-cc 3.0.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/LICENSE +21 -0
- package/README.md +501 -0
- package/agents/ms-codebase-mapper.md +739 -0
- package/agents/ms-debugger.md +1184 -0
- package/agents/ms-designer.md +414 -0
- package/agents/ms-executor.md +760 -0
- package/agents/ms-integration-checker.md +423 -0
- package/agents/ms-milestone-auditor.md +448 -0
- package/agents/ms-mock-generator.md +182 -0
- package/agents/ms-plan-checker.md +746 -0
- package/agents/ms-research-synthesizer.md +248 -0
- package/agents/ms-researcher.md +962 -0
- package/agents/ms-roadmapper.md +606 -0
- package/agents/ms-verifier.md +779 -0
- package/agents/ms-verify-fixer.md +124 -0
- package/bin/install.js +296 -0
- package/commands/ms/add-phase.md +207 -0
- package/commands/ms/add-todo.md +182 -0
- package/commands/ms/audit-milestone.md +318 -0
- package/commands/ms/check-phase.md +162 -0
- package/commands/ms/check-todos.md +217 -0
- package/commands/ms/complete-milestone.md +137 -0
- package/commands/ms/create-roadmap.md +273 -0
- package/commands/ms/debug.md +149 -0
- package/commands/ms/define-requirements.md +121 -0
- package/commands/ms/design-phase.md +341 -0
- package/commands/ms/discuss-milestone.md +48 -0
- package/commands/ms/discuss-phase.md +60 -0
- package/commands/ms/do-work.md +90 -0
- package/commands/ms/execute-phase.md +289 -0
- package/commands/ms/help.md +623 -0
- package/commands/ms/insert-phase.md +227 -0
- package/commands/ms/list-phase-assumptions.md +50 -0
- package/commands/ms/map-codebase.md +71 -0
- package/commands/ms/new-milestone.md +193 -0
- package/commands/ms/new-project.md +338 -0
- package/commands/ms/pause-work.md +123 -0
- package/commands/ms/plan-milestone-gaps.md +285 -0
- package/commands/ms/plan-phase.md +105 -0
- package/commands/ms/progress.md +370 -0
- package/commands/ms/remove-phase.md +338 -0
- package/commands/ms/research-phase.md +175 -0
- package/commands/ms/research-project.md +339 -0
- package/commands/ms/resume-work.md +40 -0
- package/commands/ms/review-design.md +484 -0
- package/commands/ms/simplify-flutter.md +193 -0
- package/commands/ms/update.md +159 -0
- package/commands/ms/verify-work.md +92 -0
- package/commands/ms/whats-new.md +124 -0
- package/mindsystem/references/checkpoints.md +788 -0
- package/mindsystem/references/continuation-format.md +255 -0
- package/mindsystem/references/debugging/debugging-mindset.md +11 -0
- package/mindsystem/references/debugging/hypothesis-testing.md +11 -0
- package/mindsystem/references/debugging/investigation-techniques.md +11 -0
- package/mindsystem/references/debugging/verification-patterns.md +11 -0
- package/mindsystem/references/debugging/when-to-research.md +11 -0
- package/mindsystem/references/git-integration.md +254 -0
- package/mindsystem/references/goal-backward.md +286 -0
- package/mindsystem/references/mock-patterns.md +294 -0
- package/mindsystem/references/plan-format.md +473 -0
- package/mindsystem/references/principles.md +73 -0
- package/mindsystem/references/questioning.md +140 -0
- package/mindsystem/references/research-pitfalls.md +233 -0
- package/mindsystem/references/scope-estimation.md +256 -0
- package/mindsystem/references/tdd.md +263 -0
- package/mindsystem/references/verification-patterns.md +595 -0
- package/mindsystem/templates/DEBUG.md +159 -0
- package/mindsystem/templates/UAT.md +403 -0
- package/mindsystem/templates/adhoc-summary.md +153 -0
- package/mindsystem/templates/codebase/architecture.md +255 -0
- package/mindsystem/templates/codebase/concerns.md +310 -0
- package/mindsystem/templates/codebase/conventions.md +307 -0
- package/mindsystem/templates/codebase/integrations.md +280 -0
- package/mindsystem/templates/codebase/stack.md +186 -0
- package/mindsystem/templates/codebase/structure.md +285 -0
- package/mindsystem/templates/codebase/testing.md +480 -0
- package/mindsystem/templates/config.json +26 -0
- package/mindsystem/templates/context.md +140 -0
- package/mindsystem/templates/continue-here.md +78 -0
- package/mindsystem/templates/debug-subagent-prompt.md +91 -0
- package/mindsystem/templates/design-iteration.md +208 -0
- package/mindsystem/templates/design.md +417 -0
- package/mindsystem/templates/discovery.md +146 -0
- package/mindsystem/templates/milestone-archive.md +123 -0
- package/mindsystem/templates/milestone-context.md +93 -0
- package/mindsystem/templates/milestone.md +115 -0
- package/mindsystem/templates/phase-prompt.md +574 -0
- package/mindsystem/templates/project.md +184 -0
- package/mindsystem/templates/requirements.md +231 -0
- package/mindsystem/templates/research-project/ARCHITECTURE.md +204 -0
- package/mindsystem/templates/research-project/FEATURES.md +147 -0
- package/mindsystem/templates/research-project/PITFALLS.md +200 -0
- package/mindsystem/templates/research-project/STACK.md +120 -0
- package/mindsystem/templates/research-project/SUMMARY.md +170 -0
- package/mindsystem/templates/research-subagent-prompt.md +92 -0
- package/mindsystem/templates/research.md +529 -0
- package/mindsystem/templates/roadmap.md +214 -0
- package/mindsystem/templates/state.md +224 -0
- package/mindsystem/templates/summary.md +269 -0
- package/mindsystem/templates/user-setup.md +323 -0
- package/mindsystem/templates/verification-report.md +322 -0
- package/mindsystem/workflows/complete-milestone.md +759 -0
- package/mindsystem/workflows/create-milestone.md +203 -0
- package/mindsystem/workflows/debug.md +14 -0
- package/mindsystem/workflows/define-requirements.md +330 -0
- package/mindsystem/workflows/diagnose-issues.md +241 -0
- package/mindsystem/workflows/discovery-phase.md +293 -0
- package/mindsystem/workflows/discuss-milestone.md +310 -0
- package/mindsystem/workflows/discuss-phase.md +237 -0
- package/mindsystem/workflows/do-work.md +359 -0
- package/mindsystem/workflows/execute-phase.md +644 -0
- package/mindsystem/workflows/execute-plan.md +1828 -0
- package/mindsystem/workflows/generate-mocks.md +187 -0
- package/mindsystem/workflows/list-phase-assumptions.md +178 -0
- package/mindsystem/workflows/map-codebase.md +289 -0
- package/mindsystem/workflows/plan-phase.md +876 -0
- package/mindsystem/workflows/research-phase.md +17 -0
- package/mindsystem/workflows/research-project.md +23 -0
- package/mindsystem/workflows/resume-project.md +311 -0
- package/mindsystem/workflows/transition.md +564 -0
- package/mindsystem/workflows/verify-phase.md +629 -0
- package/mindsystem/workflows/verify-work.md +823 -0
- package/package.json +32 -0
- package/scripts/generate-phase-patch.sh +169 -0
- package/scripts/ms-lookup/README.md +112 -0
- package/scripts/ms-lookup/ms_lookup/__init__.py +3 -0
- package/scripts/ms-lookup/ms_lookup/__main__.py +6 -0
- package/scripts/ms-lookup/ms_lookup/backends/__init__.py +6 -0
- package/scripts/ms-lookup/ms_lookup/backends/context7.py +219 -0
- package/scripts/ms-lookup/ms_lookup/backends/perplexity.py +145 -0
- package/scripts/ms-lookup/ms_lookup/cache.py +48 -0
- package/scripts/ms-lookup/ms_lookup/cli.py +219 -0
- package/scripts/ms-lookup/ms_lookup/config.py +23 -0
- package/scripts/ms-lookup/ms_lookup/errors.py +24 -0
- package/scripts/ms-lookup/ms_lookup/output.py +49 -0
- package/scripts/ms-lookup/ms_lookup/tokens.py +56 -0
- package/scripts/ms-lookup/pyproject.toml +17 -0
- package/scripts/ms-lookup/uv.lock +207 -0
- package/scripts/ms-lookup-wrapper.sh +21 -0
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ms:plan-milestone-gaps
|
|
3
|
+
description: Create phases to close all gaps identified by milestone audit
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Write
|
|
7
|
+
- Bash
|
|
8
|
+
- Glob
|
|
9
|
+
- Grep
|
|
10
|
+
- AskUserQuestion
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
<objective>
|
|
14
|
+
Create all phases necessary to close gaps identified by `/ms:audit-milestone`.
|
|
15
|
+
|
|
16
|
+
Reads MILESTONE-AUDIT.md, groups gaps into logical phases, creates phase entries in ROADMAP.md, and offers to plan each phase.
|
|
17
|
+
|
|
18
|
+
One command creates all fix phases — no manual `/ms:add-phase` per gap.
|
|
19
|
+
</objective>
|
|
20
|
+
|
|
21
|
+
<execution_context>
|
|
22
|
+
@~/.claude/mindsystem/references/principles.md
|
|
23
|
+
@~/.claude/mindsystem/workflows/plan-phase.md
|
|
24
|
+
</execution_context>
|
|
25
|
+
|
|
26
|
+
<context>
|
|
27
|
+
**Audit results:**
|
|
28
|
+
Glob: .planning/v*-MILESTONE-AUDIT.md (use most recent)
|
|
29
|
+
|
|
30
|
+
**Original intent (for prioritization):**
|
|
31
|
+
@.planning/PROJECT.md
|
|
32
|
+
@.planning/REQUIREMENTS.md
|
|
33
|
+
|
|
34
|
+
**Current state:**
|
|
35
|
+
@.planning/ROADMAP.md
|
|
36
|
+
@.planning/STATE.md
|
|
37
|
+
</context>
|
|
38
|
+
|
|
39
|
+
<process>
|
|
40
|
+
|
|
41
|
+
## 1. Load Audit Results
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
# Find the most recent audit file
|
|
45
|
+
ls -t .planning/v*-MILESTONE-AUDIT.md 2>/dev/null | head -1
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Parse YAML frontmatter to extract structured gaps:
|
|
49
|
+
- `gaps.requirements` — unsatisfied requirements
|
|
50
|
+
- `gaps.integration` — missing cross-phase connections
|
|
51
|
+
- `gaps.flows` — broken E2E flows
|
|
52
|
+
|
|
53
|
+
If no audit file exists or has no gaps, error:
|
|
54
|
+
```
|
|
55
|
+
No audit gaps found. Run `/ms:audit-milestone` first.
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## 2. Prioritize Gaps
|
|
59
|
+
|
|
60
|
+
Group gaps by priority from REQUIREMENTS.md:
|
|
61
|
+
|
|
62
|
+
| Priority | Action |
|
|
63
|
+
|----------|--------|
|
|
64
|
+
| `must` | Create phase, blocks milestone |
|
|
65
|
+
| `should` | Create phase, recommended |
|
|
66
|
+
| `nice` | Ask user: include or defer? |
|
|
67
|
+
|
|
68
|
+
For integration/flow gaps, infer priority from affected requirements.
|
|
69
|
+
|
|
70
|
+
## 3. Group Gaps into Phases
|
|
71
|
+
|
|
72
|
+
Cluster related gaps into logical phases:
|
|
73
|
+
|
|
74
|
+
**Grouping rules:**
|
|
75
|
+
- Same affected phase → combine into one fix phase
|
|
76
|
+
- Same subsystem (auth, API, UI) → combine
|
|
77
|
+
- Dependency order (fix stubs before wiring)
|
|
78
|
+
- Keep phases focused: 2-4 tasks each
|
|
79
|
+
|
|
80
|
+
**Example grouping:**
|
|
81
|
+
```
|
|
82
|
+
Gap: DASH-01 unsatisfied (Dashboard doesn't fetch)
|
|
83
|
+
Gap: Integration Phase 1→3 (Auth not passed to API calls)
|
|
84
|
+
Gap: Flow "View dashboard" broken at data fetch
|
|
85
|
+
|
|
86
|
+
→ Phase 6: "Wire Dashboard to API"
|
|
87
|
+
- Add fetch to Dashboard.tsx
|
|
88
|
+
- Include auth header in fetch
|
|
89
|
+
- Handle response, update state
|
|
90
|
+
- Render user data
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## 4. Determine Phase Numbers
|
|
94
|
+
|
|
95
|
+
Find highest existing phase:
|
|
96
|
+
```bash
|
|
97
|
+
ls -d .planning/phases/*/ | sort -V | tail -1
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
New phases continue from there:
|
|
101
|
+
- If Phase 5 is highest, gaps become Phase 6, 7, 8...
|
|
102
|
+
|
|
103
|
+
## 5. Present Gap Closure Plan
|
|
104
|
+
|
|
105
|
+
```markdown
|
|
106
|
+
## Gap Closure Plan
|
|
107
|
+
|
|
108
|
+
**Milestone:** {version}
|
|
109
|
+
**Gaps to close:** {N} requirements, {M} integration, {K} flows
|
|
110
|
+
|
|
111
|
+
### Proposed Phases
|
|
112
|
+
|
|
113
|
+
**Phase {N}: {Name}**
|
|
114
|
+
Closes:
|
|
115
|
+
- {REQ-ID}: {description}
|
|
116
|
+
- Integration: {from} → {to}
|
|
117
|
+
Tasks: {count}
|
|
118
|
+
|
|
119
|
+
**Phase {N+1}: {Name}**
|
|
120
|
+
Closes:
|
|
121
|
+
- {REQ-ID}: {description}
|
|
122
|
+
- Flow: {flow name}
|
|
123
|
+
Tasks: {count}
|
|
124
|
+
|
|
125
|
+
{If nice-to-have gaps exist:}
|
|
126
|
+
|
|
127
|
+
### Deferred (nice-to-have)
|
|
128
|
+
|
|
129
|
+
These gaps are optional. Include them?
|
|
130
|
+
- {gap description}
|
|
131
|
+
- {gap description}
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
Create these {X} phases? (yes / adjust / defer all optional)
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Wait for user confirmation.
|
|
139
|
+
|
|
140
|
+
## 6. Update ROADMAP.md
|
|
141
|
+
|
|
142
|
+
Add new phases to current milestone:
|
|
143
|
+
|
|
144
|
+
```markdown
|
|
145
|
+
### Phase {N}: {Name}
|
|
146
|
+
**Goal:** {derived from gaps being closed}
|
|
147
|
+
**Requirements:** {REQ-IDs being satisfied}
|
|
148
|
+
**Gap Closure:** Closes gaps from audit
|
|
149
|
+
|
|
150
|
+
### Phase {N+1}: {Name}
|
|
151
|
+
...
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
## 7. Create Phase Directories
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
mkdir -p ".planning/phases/{NN}-{name}"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## 8. Commit Roadmap Update
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
git add .planning/ROADMAP.md
|
|
164
|
+
git commit -m "docs(roadmap): add gap closure phases {N}-{M}"
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## 9. Offer Next Steps
|
|
168
|
+
|
|
169
|
+
```markdown
|
|
170
|
+
## ✓ Gap Closure Phases Created
|
|
171
|
+
|
|
172
|
+
**Phases added:** {N} - {M}
|
|
173
|
+
**Gaps addressed:** {count} requirements, {count} integration, {count} flows
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## ▶ Next Up
|
|
178
|
+
|
|
179
|
+
**Plan first gap closure phase**
|
|
180
|
+
|
|
181
|
+
`/ms:plan-phase {N}`
|
|
182
|
+
|
|
183
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
**Also available:**
|
|
188
|
+
- `/ms:execute-phase {N}` — if plans already exist
|
|
189
|
+
- `cat .planning/ROADMAP.md` — see updated roadmap
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
**After all gap phases complete:**
|
|
194
|
+
|
|
195
|
+
`/ms:audit-milestone` — re-audit to verify gaps closed
|
|
196
|
+
`/ms:complete-milestone {version}` — archive when audit passes
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
</process>
|
|
200
|
+
|
|
201
|
+
<gap_to_phase_mapping>
|
|
202
|
+
|
|
203
|
+
## How Gaps Become Tasks
|
|
204
|
+
|
|
205
|
+
**Requirement gap → Tasks:**
|
|
206
|
+
```yaml
|
|
207
|
+
gap:
|
|
208
|
+
id: DASH-01
|
|
209
|
+
description: "User sees their data"
|
|
210
|
+
reason: "Dashboard exists but doesn't fetch from API"
|
|
211
|
+
missing:
|
|
212
|
+
- "useEffect with fetch to /api/user/data"
|
|
213
|
+
- "State for user data"
|
|
214
|
+
- "Render user data in JSX"
|
|
215
|
+
|
|
216
|
+
becomes:
|
|
217
|
+
|
|
218
|
+
phase: "Wire Dashboard Data"
|
|
219
|
+
tasks:
|
|
220
|
+
- name: "Add data fetching"
|
|
221
|
+
files: [src/components/Dashboard.tsx]
|
|
222
|
+
action: "Add useEffect that fetches /api/user/data on mount"
|
|
223
|
+
|
|
224
|
+
- name: "Add state management"
|
|
225
|
+
files: [src/components/Dashboard.tsx]
|
|
226
|
+
action: "Add useState for userData, loading, error states"
|
|
227
|
+
|
|
228
|
+
- name: "Render user data"
|
|
229
|
+
files: [src/components/Dashboard.tsx]
|
|
230
|
+
action: "Replace placeholder with userData.map rendering"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
**Integration gap → Tasks:**
|
|
234
|
+
```yaml
|
|
235
|
+
gap:
|
|
236
|
+
from_phase: 1
|
|
237
|
+
to_phase: 3
|
|
238
|
+
connection: "Auth token → API calls"
|
|
239
|
+
reason: "Dashboard API calls don't include auth header"
|
|
240
|
+
missing:
|
|
241
|
+
- "Auth header in fetch calls"
|
|
242
|
+
- "Token refresh on 401"
|
|
243
|
+
|
|
244
|
+
becomes:
|
|
245
|
+
|
|
246
|
+
phase: "Add Auth to Dashboard API Calls"
|
|
247
|
+
tasks:
|
|
248
|
+
- name: "Add auth header to fetches"
|
|
249
|
+
files: [src/components/Dashboard.tsx, src/lib/api.ts]
|
|
250
|
+
action: "Include Authorization header with token in all API calls"
|
|
251
|
+
|
|
252
|
+
- name: "Handle 401 responses"
|
|
253
|
+
files: [src/lib/api.ts]
|
|
254
|
+
action: "Add interceptor to refresh token or redirect to login on 401"
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
**Flow gap → Tasks:**
|
|
258
|
+
```yaml
|
|
259
|
+
gap:
|
|
260
|
+
name: "User views dashboard after login"
|
|
261
|
+
broken_at: "Dashboard data load"
|
|
262
|
+
reason: "No fetch call"
|
|
263
|
+
missing:
|
|
264
|
+
- "Fetch user data on mount"
|
|
265
|
+
- "Display loading state"
|
|
266
|
+
- "Render user data"
|
|
267
|
+
|
|
268
|
+
becomes:
|
|
269
|
+
|
|
270
|
+
# Usually same phase as requirement/integration gap
|
|
271
|
+
# Flow gaps often overlap with other gap types
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
</gap_to_phase_mapping>
|
|
275
|
+
|
|
276
|
+
<success_criteria>
|
|
277
|
+
- [ ] MILESTONE-AUDIT.md loaded and gaps parsed
|
|
278
|
+
- [ ] Gaps prioritized (must/should/nice)
|
|
279
|
+
- [ ] Gaps grouped into logical phases
|
|
280
|
+
- [ ] User confirmed phase plan
|
|
281
|
+
- [ ] ROADMAP.md updated with new phases
|
|
282
|
+
- [ ] Phase directories created
|
|
283
|
+
- [ ] Changes committed
|
|
284
|
+
- [ ] User knows to run `/ms:plan-phase` next
|
|
285
|
+
</success_criteria>
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ms:plan-phase
|
|
3
|
+
description: Create detailed execution plan for a phase (PLAN.md)
|
|
4
|
+
argument-hint: "[phase] [--gaps]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
- WebFetch
|
|
13
|
+
- mcp__context7__*
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<objective>
|
|
17
|
+
Create executable phase prompt with discovery, context injection, and task breakdown.
|
|
18
|
+
|
|
19
|
+
Purpose: Break down roadmap phases into concrete, executable PLAN.md files that Claude can execute.
|
|
20
|
+
Output: One or more PLAN.md files in the phase directory (.planning/phases/XX-name/{phase}-{plan}-PLAN.md)
|
|
21
|
+
|
|
22
|
+
**Gap closure mode (`--gaps` flag):**
|
|
23
|
+
When invoked with `--gaps`, plans address gaps identified by the verifier. Load VERIFICATION.md, create plans to close specific gaps.
|
|
24
|
+
</objective>
|
|
25
|
+
|
|
26
|
+
<execution_context>
|
|
27
|
+
@~/.claude/mindsystem/references/principles.md
|
|
28
|
+
@~/.claude/mindsystem/workflows/plan-phase.md
|
|
29
|
+
@~/.claude/mindsystem/templates/phase-prompt.md
|
|
30
|
+
@~/.claude/mindsystem/references/plan-format.md
|
|
31
|
+
@~/.claude/mindsystem/references/scope-estimation.md
|
|
32
|
+
@~/.claude/mindsystem/references/checkpoints.md
|
|
33
|
+
@~/.claude/mindsystem/references/tdd.md
|
|
34
|
+
@~/.claude/mindsystem/references/goal-backward.md
|
|
35
|
+
</execution_context>
|
|
36
|
+
|
|
37
|
+
<context>
|
|
38
|
+
Phase number: $ARGUMENTS (optional - auto-detects next unplanned phase if not provided)
|
|
39
|
+
Gap closure mode: `--gaps` flag triggers gap closure workflow
|
|
40
|
+
|
|
41
|
+
**Load project state first:**
|
|
42
|
+
@.planning/STATE.md
|
|
43
|
+
|
|
44
|
+
**Load roadmap:**
|
|
45
|
+
@.planning/ROADMAP.md
|
|
46
|
+
|
|
47
|
+
**Load requirements:**
|
|
48
|
+
@.planning/REQUIREMENTS.md
|
|
49
|
+
|
|
50
|
+
After loading, extract the requirements for the current phase:
|
|
51
|
+
1. Find the phase in ROADMAP.md, get its `Requirements:` list (e.g., "PROF-01, PROF-02, PROF-03")
|
|
52
|
+
2. Look up each REQ-ID in REQUIREMENTS.md to get the full description
|
|
53
|
+
3. Present the requirements this phase must satisfy:
|
|
54
|
+
```
|
|
55
|
+
Phase [N] Requirements:
|
|
56
|
+
- PROF-01: User can create profile with display name
|
|
57
|
+
- PROF-02: User can upload avatar image
|
|
58
|
+
- PROF-03: User can write bio (max 500 chars)
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Load phase context if exists (created by /ms:discuss-phase):**
|
|
62
|
+
Check for and read `.planning/phases/XX-name/{phase}-CONTEXT.md` - contains research findings, clarifications, and decisions from phase discussion.
|
|
63
|
+
|
|
64
|
+
**Load design specs if exists (created by /ms:design-phase):**
|
|
65
|
+
Check for and read `.planning/phases/XX-name/{phase}-DESIGN.md` - contains visual/UX specifications including layouts, components, flows, and verification criteria.
|
|
66
|
+
|
|
67
|
+
**Load codebase context if exists:**
|
|
68
|
+
Check for `.planning/codebase/` and load relevant documents based on phase type.
|
|
69
|
+
|
|
70
|
+
**If --gaps flag present, also load:**
|
|
71
|
+
@.planning/phases/XX-name/{phase}-VERIFICATION.md — contains structured gaps in YAML frontmatter
|
|
72
|
+
</context>
|
|
73
|
+
|
|
74
|
+
<process>
|
|
75
|
+
1. Check .planning/ directory exists (error if not - user should run /ms:new-project)
|
|
76
|
+
2. Parse arguments: extract phase number and check for `--gaps` flag
|
|
77
|
+
3. If phase number provided, validate it exists in roadmap
|
|
78
|
+
4. If no phase number, detect next unplanned phase from roadmap
|
|
79
|
+
|
|
80
|
+
**Standard mode (no --gaps flag):**
|
|
81
|
+
5. Follow plan-phase.md workflow:
|
|
82
|
+
- Load project state and accumulated decisions
|
|
83
|
+
- Perform mandatory discovery (Level 0-3 as appropriate)
|
|
84
|
+
- Read project history (prior decisions, issues, concerns)
|
|
85
|
+
- Break phase into tasks
|
|
86
|
+
- Estimate scope and split into multiple plans if needed
|
|
87
|
+
- Create PLAN.md file(s) with executable structure
|
|
88
|
+
|
|
89
|
+
**Gap closure mode (--gaps flag):**
|
|
90
|
+
5. Follow plan-phase.md workflow with gap_closure_mode:
|
|
91
|
+
- Load VERIFICATION.md and parse `gaps:` YAML from frontmatter
|
|
92
|
+
- Read existing SUMMARYs to understand what's already built
|
|
93
|
+
- Create tasks from gaps (each gap.missing item → task candidates)
|
|
94
|
+
- Number plans sequentially after existing (if 01-03 exist, create 04, 05...)
|
|
95
|
+
- Create PLAN.md file(s) focused on closing specific gaps
|
|
96
|
+
</process>
|
|
97
|
+
|
|
98
|
+
<success_criteria>
|
|
99
|
+
|
|
100
|
+
- One or more PLAN.md files created in .planning/phases/XX-name/
|
|
101
|
+
- Each plan has: objective, execution_context, context, tasks, verification, success_criteria, output
|
|
102
|
+
- must_haves derived from phase goal and documented in frontmatter (truths, artifacts, key_links)
|
|
103
|
+
- Tasks are specific enough for Claude to execute
|
|
104
|
+
- User knows next steps (execute plan or review/adjust)
|
|
105
|
+
</success_criteria>
|