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,759 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
|
|
3
|
+
Mark a shipped version (v1.0, v1.1, v2.0) as complete. This creates a historical record in MILESTONES.md, performs full PROJECT.md evolution review, reorganizes ROADMAP.md with milestone groupings, and tags the release in git.
|
|
4
|
+
|
|
5
|
+
This is the ritual that separates "development" from "shipped."
|
|
6
|
+
|
|
7
|
+
</purpose>
|
|
8
|
+
|
|
9
|
+
<required_reading>
|
|
10
|
+
|
|
11
|
+
**Read these files NOW:**
|
|
12
|
+
|
|
13
|
+
1. templates/milestone.md
|
|
14
|
+
2. templates/milestone-archive.md
|
|
15
|
+
3. `.planning/ROADMAP.md`
|
|
16
|
+
4. `.planning/REQUIREMENTS.md`
|
|
17
|
+
5. `.planning/PROJECT.md`
|
|
18
|
+
|
|
19
|
+
</required_reading>
|
|
20
|
+
|
|
21
|
+
<archival_behavior>
|
|
22
|
+
|
|
23
|
+
When a milestone completes, this workflow:
|
|
24
|
+
|
|
25
|
+
1. Extracts full milestone details to `.planning/milestones/v[X.Y]-ROADMAP.md`
|
|
26
|
+
2. Archives requirements to `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
|
|
27
|
+
3. Updates ROADMAP.md to replace milestone details with one-line summary
|
|
28
|
+
4. Deletes REQUIREMENTS.md (fresh one created for next milestone)
|
|
29
|
+
5. Performs full PROJECT.md evolution review
|
|
30
|
+
6. Offers to create next milestone inline
|
|
31
|
+
|
|
32
|
+
**Context Efficiency:**
|
|
33
|
+
|
|
34
|
+
- Completed milestones: One line each (~50 tokens)
|
|
35
|
+
- Full details: In archive files (loaded only when needed)
|
|
36
|
+
- Result: ROADMAP.md stays constant size forever
|
|
37
|
+
- Result: REQUIREMENTS.md is always milestone-scoped (not cumulative)
|
|
38
|
+
|
|
39
|
+
**Archive Format:**
|
|
40
|
+
|
|
41
|
+
**ROADMAP archive** uses `templates/milestone-archive.md` template with:
|
|
42
|
+
- Milestone header (status, phases, date)
|
|
43
|
+
- Full phase details from roadmap
|
|
44
|
+
- Milestone summary (decisions, issues, technical debt)
|
|
45
|
+
|
|
46
|
+
**REQUIREMENTS archive** contains:
|
|
47
|
+
- All v1 requirements marked complete with outcomes
|
|
48
|
+
- Traceability table with final status
|
|
49
|
+
- Notes on any requirements that changed during milestone
|
|
50
|
+
|
|
51
|
+
</archival_behavior>
|
|
52
|
+
|
|
53
|
+
<process>
|
|
54
|
+
|
|
55
|
+
<step name="verify_readiness">
|
|
56
|
+
|
|
57
|
+
Check if milestone is truly complete:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
cat .planning/ROADMAP.md
|
|
61
|
+
ls .planning/phases/*/SUMMARY.md 2>/dev/null | wc -l
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Questions to ask:**
|
|
65
|
+
|
|
66
|
+
- Which phases belong to this milestone?
|
|
67
|
+
- Are all those phases complete (all plans have summaries)?
|
|
68
|
+
- Has the work been tested/validated?
|
|
69
|
+
- Is this ready to ship/tag?
|
|
70
|
+
|
|
71
|
+
Present:
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Milestone: [Name from user, e.g., "v1.0 MVP"]
|
|
75
|
+
|
|
76
|
+
Appears to include:
|
|
77
|
+
- Phase 1: Foundation (2/2 plans complete)
|
|
78
|
+
- Phase 2: Authentication (2/2 plans complete)
|
|
79
|
+
- Phase 3: Core Features (3/3 plans complete)
|
|
80
|
+
- Phase 4: Polish (1/1 plan complete)
|
|
81
|
+
|
|
82
|
+
Total: 4 phases, 8 plans, all complete
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
<config-check>
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
cat .planning/config.json 2>/dev/null
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
</config-check>
|
|
92
|
+
|
|
93
|
+
<if mode="yolo">
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
⚡ Auto-approved: Milestone scope verification
|
|
97
|
+
|
|
98
|
+
[Show breakdown summary without prompting]
|
|
99
|
+
|
|
100
|
+
Proceeding to stats gathering...
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Proceed directly to gather_stats step.
|
|
104
|
+
|
|
105
|
+
</if>
|
|
106
|
+
|
|
107
|
+
<if mode="interactive" OR="custom with gates.confirm_milestone_scope true">
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
Ready to mark this milestone as shipped?
|
|
111
|
+
(yes / wait / adjust scope)
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Wait for confirmation.
|
|
115
|
+
|
|
116
|
+
If "adjust scope": Ask which phases should be included.
|
|
117
|
+
If "wait": Stop, user will return when ready.
|
|
118
|
+
|
|
119
|
+
</if>
|
|
120
|
+
|
|
121
|
+
</step>
|
|
122
|
+
|
|
123
|
+
<step name="gather_stats">
|
|
124
|
+
|
|
125
|
+
Calculate milestone statistics:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
# Count phases and plans in milestone
|
|
129
|
+
# (user specified or detected from roadmap)
|
|
130
|
+
|
|
131
|
+
# Find git range
|
|
132
|
+
git log --oneline --grep="feat(" | head -20
|
|
133
|
+
|
|
134
|
+
# Count files modified in range
|
|
135
|
+
git diff --stat FIRST_COMMIT..LAST_COMMIT | tail -1
|
|
136
|
+
|
|
137
|
+
# Count LOC (adapt to language)
|
|
138
|
+
find . -name "*.swift" -o -name "*.ts" -o -name "*.py" | xargs wc -l 2>/dev/null
|
|
139
|
+
|
|
140
|
+
# Calculate timeline
|
|
141
|
+
git log --format="%ai" FIRST_COMMIT | tail -1 # Start date
|
|
142
|
+
git log --format="%ai" LAST_COMMIT | head -1 # End date
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
Present summary:
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Milestone Stats:
|
|
149
|
+
- Phases: [X-Y]
|
|
150
|
+
- Plans: [Z] total
|
|
151
|
+
- Tasks: [N] total (estimated from phase summaries)
|
|
152
|
+
- Files modified: [M]
|
|
153
|
+
- Lines of code: [LOC] [language]
|
|
154
|
+
- Timeline: [Days] days ([Start] → [End])
|
|
155
|
+
- Git range: feat(XX-XX) → feat(YY-YY)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
</step>
|
|
159
|
+
|
|
160
|
+
<step name="extract_accomplishments">
|
|
161
|
+
|
|
162
|
+
Read all phase SUMMARY.md files in milestone range:
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
cat .planning/phases/01-*/01-*-SUMMARY.md
|
|
166
|
+
cat .planning/phases/02-*/02-*-SUMMARY.md
|
|
167
|
+
# ... for each phase in milestone
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
From summaries, extract 4-6 key accomplishments.
|
|
171
|
+
|
|
172
|
+
Present:
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
Key accomplishments for this milestone:
|
|
176
|
+
1. [Achievement from phase 1]
|
|
177
|
+
2. [Achievement from phase 2]
|
|
178
|
+
3. [Achievement from phase 3]
|
|
179
|
+
4. [Achievement from phase 4]
|
|
180
|
+
5. [Achievement from phase 5]
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
</step>
|
|
184
|
+
|
|
185
|
+
<step name="create_milestone_entry">
|
|
186
|
+
|
|
187
|
+
Create or update `.planning/MILESTONES.md`.
|
|
188
|
+
|
|
189
|
+
If file doesn't exist:
|
|
190
|
+
|
|
191
|
+
```markdown
|
|
192
|
+
# Project Milestones: [Project Name from PROJECT.md]
|
|
193
|
+
|
|
194
|
+
[New entry]
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
If exists, prepend new entry (reverse chronological order).
|
|
198
|
+
|
|
199
|
+
Use template from `templates/milestone.md`:
|
|
200
|
+
|
|
201
|
+
```markdown
|
|
202
|
+
## v[Version] [Name] (Shipped: YYYY-MM-DD)
|
|
203
|
+
|
|
204
|
+
**Delivered:** [One sentence from user]
|
|
205
|
+
|
|
206
|
+
**Phases completed:** [X-Y] ([Z] plans total)
|
|
207
|
+
|
|
208
|
+
**Key accomplishments:**
|
|
209
|
+
|
|
210
|
+
- [List from previous step]
|
|
211
|
+
|
|
212
|
+
**Stats:**
|
|
213
|
+
|
|
214
|
+
- [Files] files created/modified
|
|
215
|
+
- [LOC] lines of [language]
|
|
216
|
+
- [Phases] phases, [Plans] plans, [Tasks] tasks
|
|
217
|
+
- [Days] days from [start milestone or start project] to ship
|
|
218
|
+
|
|
219
|
+
**Git range:** `feat(XX-XX)` → `feat(YY-YY)`
|
|
220
|
+
|
|
221
|
+
**What's next:** [Ask user: what's the next goal?]
|
|
222
|
+
|
|
223
|
+
---
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
</step>
|
|
227
|
+
|
|
228
|
+
<step name="evolve_project_full_review">
|
|
229
|
+
|
|
230
|
+
Perform full PROJECT.md evolution review at milestone completion.
|
|
231
|
+
|
|
232
|
+
**Read all phase summaries in this milestone:**
|
|
233
|
+
|
|
234
|
+
```bash
|
|
235
|
+
cat .planning/phases/*-*/*-SUMMARY.md
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
**Full review checklist:**
|
|
239
|
+
|
|
240
|
+
1. **"What This Is" accuracy:**
|
|
241
|
+
- Read current description
|
|
242
|
+
- Compare to what was actually built
|
|
243
|
+
- Update if the product has meaningfully changed
|
|
244
|
+
|
|
245
|
+
2. **Core Value check:**
|
|
246
|
+
- Is the stated core value still the right priority?
|
|
247
|
+
- Did shipping reveal a different core value?
|
|
248
|
+
- Update if the ONE thing has shifted
|
|
249
|
+
|
|
250
|
+
3. **Requirements audit:**
|
|
251
|
+
|
|
252
|
+
**Validated section:**
|
|
253
|
+
- All Active requirements shipped in this milestone → Move to Validated
|
|
254
|
+
- Format: `- ✓ [Requirement] — v[X.Y]`
|
|
255
|
+
|
|
256
|
+
**Active section:**
|
|
257
|
+
- Remove requirements that moved to Validated
|
|
258
|
+
- Add any new requirements for next milestone
|
|
259
|
+
- Keep requirements that weren't addressed yet
|
|
260
|
+
|
|
261
|
+
**Out of Scope audit:**
|
|
262
|
+
- Review each item — is the reasoning still valid?
|
|
263
|
+
- Remove items that are no longer relevant
|
|
264
|
+
- Add any requirements invalidated during this milestone
|
|
265
|
+
|
|
266
|
+
4. **Context update:**
|
|
267
|
+
- Current codebase state (LOC, tech stack)
|
|
268
|
+
- User feedback themes (if any)
|
|
269
|
+
- Known issues or technical debt to address
|
|
270
|
+
|
|
271
|
+
5. **Key Decisions audit:**
|
|
272
|
+
- Extract all decisions from milestone phase summaries
|
|
273
|
+
- Add to Key Decisions table with outcomes where known
|
|
274
|
+
- Mark ✓ Good, ⚠️ Revisit, or — Pending for each
|
|
275
|
+
|
|
276
|
+
6. **Constraints check:**
|
|
277
|
+
- Any constraints that changed during development?
|
|
278
|
+
- Update as needed
|
|
279
|
+
|
|
280
|
+
**Update PROJECT.md:**
|
|
281
|
+
|
|
282
|
+
Make all edits inline. Update "Last updated" footer:
|
|
283
|
+
|
|
284
|
+
```markdown
|
|
285
|
+
---
|
|
286
|
+
*Last updated: [date] after v[X.Y] milestone*
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
**Example full evolution (v1.0 → v1.1 prep):**
|
|
290
|
+
|
|
291
|
+
Before:
|
|
292
|
+
|
|
293
|
+
```markdown
|
|
294
|
+
## What This Is
|
|
295
|
+
|
|
296
|
+
A real-time collaborative whiteboard for remote teams.
|
|
297
|
+
|
|
298
|
+
## Core Value
|
|
299
|
+
|
|
300
|
+
Real-time sync that feels instant.
|
|
301
|
+
|
|
302
|
+
## Requirements
|
|
303
|
+
|
|
304
|
+
### Validated
|
|
305
|
+
|
|
306
|
+
(None yet — ship to validate)
|
|
307
|
+
|
|
308
|
+
### Active
|
|
309
|
+
|
|
310
|
+
- [ ] Canvas drawing tools
|
|
311
|
+
- [ ] Real-time sync < 500ms
|
|
312
|
+
- [ ] User authentication
|
|
313
|
+
- [ ] Export to PNG
|
|
314
|
+
|
|
315
|
+
### Out of Scope
|
|
316
|
+
|
|
317
|
+
- Mobile app — web-first approach
|
|
318
|
+
- Video chat — use external tools
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
After v1.0:
|
|
322
|
+
|
|
323
|
+
```markdown
|
|
324
|
+
## What This Is
|
|
325
|
+
|
|
326
|
+
A real-time collaborative whiteboard for remote teams with instant sync and drawing tools.
|
|
327
|
+
|
|
328
|
+
## Core Value
|
|
329
|
+
|
|
330
|
+
Real-time sync that feels instant.
|
|
331
|
+
|
|
332
|
+
## Requirements
|
|
333
|
+
|
|
334
|
+
### Validated
|
|
335
|
+
|
|
336
|
+
- ✓ Canvas drawing tools — v1.0
|
|
337
|
+
- ✓ Real-time sync < 500ms — v1.0 (achieved 200ms avg)
|
|
338
|
+
- ✓ User authentication — v1.0
|
|
339
|
+
|
|
340
|
+
### Active
|
|
341
|
+
|
|
342
|
+
- [ ] Export to PNG
|
|
343
|
+
- [ ] Undo/redo history
|
|
344
|
+
- [ ] Shape tools (rectangles, circles)
|
|
345
|
+
|
|
346
|
+
### Out of Scope
|
|
347
|
+
|
|
348
|
+
- Mobile app — web-first approach, PWA works well
|
|
349
|
+
- Video chat — use external tools
|
|
350
|
+
- Offline mode — real-time is core value
|
|
351
|
+
|
|
352
|
+
## Context
|
|
353
|
+
|
|
354
|
+
Shipped v1.0 with 2,400 LOC TypeScript.
|
|
355
|
+
Tech stack: Next.js, Supabase, Canvas API.
|
|
356
|
+
Initial user testing showed demand for shape tools.
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
**Step complete when:**
|
|
360
|
+
|
|
361
|
+
- [ ] "What This Is" reviewed and updated if needed
|
|
362
|
+
- [ ] Core Value verified as still correct
|
|
363
|
+
- [ ] All shipped requirements moved to Validated
|
|
364
|
+
- [ ] New requirements added to Active for next milestone
|
|
365
|
+
- [ ] Out of Scope reasoning audited
|
|
366
|
+
- [ ] Context updated with current state
|
|
367
|
+
- [ ] All milestone decisions added to Key Decisions
|
|
368
|
+
- [ ] "Last updated" footer reflects milestone completion
|
|
369
|
+
|
|
370
|
+
</step>
|
|
371
|
+
|
|
372
|
+
<step name="reorganize_roadmap">
|
|
373
|
+
|
|
374
|
+
Update `.planning/ROADMAP.md` to group completed milestone phases.
|
|
375
|
+
|
|
376
|
+
Add milestone headers and collapse completed work:
|
|
377
|
+
|
|
378
|
+
```markdown
|
|
379
|
+
# Roadmap: [Project Name]
|
|
380
|
+
|
|
381
|
+
## Milestones
|
|
382
|
+
|
|
383
|
+
- ✅ **v1.0 MVP** — Phases 1-4 (shipped YYYY-MM-DD)
|
|
384
|
+
- 🚧 **v1.1 Security** — Phases 5-6 (in progress)
|
|
385
|
+
- 📋 **v2.0 Redesign** — Phases 7-10 (planned)
|
|
386
|
+
|
|
387
|
+
## Phases
|
|
388
|
+
|
|
389
|
+
<details>
|
|
390
|
+
<summary>✅ v1.0 MVP (Phases 1-4) — SHIPPED YYYY-MM-DD</summary>
|
|
391
|
+
|
|
392
|
+
- [x] Phase 1: Foundation (2/2 plans) — completed YYYY-MM-DD
|
|
393
|
+
- [x] Phase 2: Authentication (2/2 plans) — completed YYYY-MM-DD
|
|
394
|
+
- [x] Phase 3: Core Features (3/3 plans) — completed YYYY-MM-DD
|
|
395
|
+
- [x] Phase 4: Polish (1/1 plan) — completed YYYY-MM-DD
|
|
396
|
+
|
|
397
|
+
</details>
|
|
398
|
+
|
|
399
|
+
### 🚧 v[Next] [Name] (In Progress / Planned)
|
|
400
|
+
|
|
401
|
+
- [ ] Phase 5: [Name] ([N] plans)
|
|
402
|
+
- [ ] Phase 6: [Name] ([N] plans)
|
|
403
|
+
|
|
404
|
+
## Progress
|
|
405
|
+
|
|
406
|
+
| Phase | Milestone | Plans Complete | Status | Completed |
|
|
407
|
+
| ----------------- | --------- | -------------- | ----------- | ---------- |
|
|
408
|
+
| 1. Foundation | v1.0 | 2/2 | Complete | YYYY-MM-DD |
|
|
409
|
+
| 2. Authentication | v1.0 | 2/2 | Complete | YYYY-MM-DD |
|
|
410
|
+
| 3. Core Features | v1.0 | 3/3 | Complete | YYYY-MM-DD |
|
|
411
|
+
| 4. Polish | v1.0 | 1/1 | Complete | YYYY-MM-DD |
|
|
412
|
+
| 5. Security Audit | v1.1 | 0/1 | Not started | - |
|
|
413
|
+
| 6. Hardening | v1.1 | 0/2 | Not started | - |
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
</step>
|
|
417
|
+
|
|
418
|
+
<step name="archive_milestone">
|
|
419
|
+
|
|
420
|
+
Extract completed milestone details and create archive file.
|
|
421
|
+
|
|
422
|
+
**Process:**
|
|
423
|
+
|
|
424
|
+
1. Create archive file path: `.planning/milestones/v[X.Y]-ROADMAP.md`
|
|
425
|
+
|
|
426
|
+
2. Read `~/.claude/mindsystem/templates/milestone-archive.md` template
|
|
427
|
+
|
|
428
|
+
3. Extract data from current ROADMAP.md:
|
|
429
|
+
- All phases belonging to this milestone (by phase number range)
|
|
430
|
+
- Full phase details (goals, plans, dependencies, status)
|
|
431
|
+
- Phase plan lists with completion checkmarks
|
|
432
|
+
|
|
433
|
+
4. Extract data from PROJECT.md:
|
|
434
|
+
- Key decisions made during this milestone
|
|
435
|
+
- Requirements that were validated
|
|
436
|
+
|
|
437
|
+
5. Fill template {{PLACEHOLDERS}}:
|
|
438
|
+
- {{VERSION}} — Milestone version (e.g., "1.0")
|
|
439
|
+
- {{MILESTONE_NAME}} — From ROADMAP.md milestone header
|
|
440
|
+
- {{DATE}} — Today's date
|
|
441
|
+
- {{PHASE_START}} — First phase number in milestone
|
|
442
|
+
- {{PHASE_END}} — Last phase number in milestone
|
|
443
|
+
- {{TOTAL_PLANS}} — Count of all plans in milestone
|
|
444
|
+
- {{MILESTONE_DESCRIPTION}} — From ROADMAP.md overview
|
|
445
|
+
- {{PHASES_SECTION}} — Full phase details extracted
|
|
446
|
+
- {{DECISIONS_FROM_PROJECT}} — Key decisions from PROJECT.md
|
|
447
|
+
- {{ISSUES_RESOLVED_DURING_MILESTONE}} — From summaries
|
|
448
|
+
|
|
449
|
+
6. Write filled template to `.planning/milestones/v[X.Y]-ROADMAP.md`
|
|
450
|
+
|
|
451
|
+
7. Delete ROADMAP.md (fresh one created for next milestone):
|
|
452
|
+
```bash
|
|
453
|
+
rm .planning/ROADMAP.md
|
|
454
|
+
```
|
|
455
|
+
|
|
456
|
+
8. Verify archive exists:
|
|
457
|
+
```bash
|
|
458
|
+
ls .planning/milestones/v[X.Y]-ROADMAP.md
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
9. Confirm roadmap archive complete:
|
|
462
|
+
|
|
463
|
+
```
|
|
464
|
+
✅ v[X.Y] roadmap archived to milestones/v[X.Y]-ROADMAP.md
|
|
465
|
+
✅ ROADMAP.md deleted (fresh one for next milestone)
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
**Note:** Phase directories (`.planning/phases/`) are NOT deleted. They accumulate across milestones as the raw execution history. Phase numbering continues (v1.0 phases 1-4, v1.1 phases 5-8, etc.).
|
|
469
|
+
|
|
470
|
+
</step>
|
|
471
|
+
|
|
472
|
+
<step name="archive_requirements">
|
|
473
|
+
|
|
474
|
+
Archive requirements and prepare for fresh requirements in next milestone.
|
|
475
|
+
|
|
476
|
+
**Process:**
|
|
477
|
+
|
|
478
|
+
1. Read current REQUIREMENTS.md:
|
|
479
|
+
```bash
|
|
480
|
+
cat .planning/REQUIREMENTS.md
|
|
481
|
+
```
|
|
482
|
+
|
|
483
|
+
2. Create archive file: `.planning/milestones/v[X.Y]-REQUIREMENTS.md`
|
|
484
|
+
|
|
485
|
+
3. Transform requirements for archive:
|
|
486
|
+
- Mark all v1 requirements as `[x]` complete
|
|
487
|
+
- Add outcome notes where relevant (validated, adjusted, dropped)
|
|
488
|
+
- Update traceability table status to "Complete" for all shipped requirements
|
|
489
|
+
- Add "Milestone Summary" section with:
|
|
490
|
+
- Total requirements shipped
|
|
491
|
+
- Any requirements that changed scope during milestone
|
|
492
|
+
- Any requirements dropped and why
|
|
493
|
+
|
|
494
|
+
4. Write archive file with header:
|
|
495
|
+
```markdown
|
|
496
|
+
# Requirements Archive: v[X.Y] [Milestone Name]
|
|
497
|
+
|
|
498
|
+
**Archived:** [DATE]
|
|
499
|
+
**Status:** ✅ SHIPPED
|
|
500
|
+
|
|
501
|
+
This is the archived requirements specification for v[X.Y].
|
|
502
|
+
For current requirements, see `.planning/REQUIREMENTS.md` (created for next milestone).
|
|
503
|
+
|
|
504
|
+
---
|
|
505
|
+
|
|
506
|
+
[Full REQUIREMENTS.md content with checkboxes marked complete]
|
|
507
|
+
|
|
508
|
+
---
|
|
509
|
+
|
|
510
|
+
## Milestone Summary
|
|
511
|
+
|
|
512
|
+
**Shipped:** [X] of [Y] v1 requirements
|
|
513
|
+
**Adjusted:** [list any requirements that changed during implementation]
|
|
514
|
+
**Dropped:** [list any requirements removed and why]
|
|
515
|
+
|
|
516
|
+
---
|
|
517
|
+
*Archived: [DATE] as part of v[X.Y] milestone completion*
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
5. Delete original REQUIREMENTS.md:
|
|
521
|
+
```bash
|
|
522
|
+
rm .planning/REQUIREMENTS.md
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
6. Confirm:
|
|
526
|
+
```
|
|
527
|
+
✅ Requirements archived to milestones/v[X.Y]-REQUIREMENTS.md
|
|
528
|
+
✅ REQUIREMENTS.md deleted (fresh one needed for next milestone)
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
**Important:** The next milestone workflow starts with `/ms:define-requirements` to create a fresh REQUIREMENTS.md. PROJECT.md's Validated section carries the cumulative record across milestones.
|
|
532
|
+
|
|
533
|
+
</step>
|
|
534
|
+
|
|
535
|
+
<step name="archive_audit">
|
|
536
|
+
|
|
537
|
+
Move the milestone audit file to the archive (if it exists):
|
|
538
|
+
|
|
539
|
+
```bash
|
|
540
|
+
# Move audit to milestones folder (if exists)
|
|
541
|
+
[ -f .planning/v[X.Y]-MILESTONE-AUDIT.md ] && mv .planning/v[X.Y]-MILESTONE-AUDIT.md .planning/milestones/
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
Confirm:
|
|
545
|
+
```
|
|
546
|
+
✅ Audit archived to milestones/v[X.Y]-MILESTONE-AUDIT.md
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
(Skip silently if no audit file exists — audit is optional)
|
|
550
|
+
|
|
551
|
+
</step>
|
|
552
|
+
|
|
553
|
+
<step name="update_state">
|
|
554
|
+
|
|
555
|
+
Update STATE.md to reflect milestone completion.
|
|
556
|
+
|
|
557
|
+
**Project Reference:**
|
|
558
|
+
|
|
559
|
+
```markdown
|
|
560
|
+
## Project Reference
|
|
561
|
+
|
|
562
|
+
See: .planning/PROJECT.md (updated [today])
|
|
563
|
+
|
|
564
|
+
**Core value:** [Current core value from PROJECT.md]
|
|
565
|
+
**Current focus:** [Next milestone or "Planning next milestone"]
|
|
566
|
+
```
|
|
567
|
+
|
|
568
|
+
**Current Position:**
|
|
569
|
+
|
|
570
|
+
```markdown
|
|
571
|
+
Phase: [Next phase] of [Total] ([Phase name])
|
|
572
|
+
Plan: Not started
|
|
573
|
+
Status: Ready to plan
|
|
574
|
+
Last activity: [today] — v[X.Y] milestone complete
|
|
575
|
+
|
|
576
|
+
Progress: [updated progress bar]
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
**Accumulated Context:**
|
|
580
|
+
|
|
581
|
+
- Clear decisions summary (full log in PROJECT.md)
|
|
582
|
+
- Clear resolved blockers
|
|
583
|
+
- Keep open blockers for next milestone
|
|
584
|
+
|
|
585
|
+
</step>
|
|
586
|
+
|
|
587
|
+
<step name="git_tag">
|
|
588
|
+
|
|
589
|
+
Create git tag for milestone:
|
|
590
|
+
|
|
591
|
+
```bash
|
|
592
|
+
git tag -a v[X.Y] -m "$(cat <<'EOF'
|
|
593
|
+
v[X.Y] [Name]
|
|
594
|
+
|
|
595
|
+
Delivered: [One sentence]
|
|
596
|
+
|
|
597
|
+
Key accomplishments:
|
|
598
|
+
- [Item 1]
|
|
599
|
+
- [Item 2]
|
|
600
|
+
- [Item 3]
|
|
601
|
+
|
|
602
|
+
See .planning/MILESTONES.md for full details.
|
|
603
|
+
EOF
|
|
604
|
+
)"
|
|
605
|
+
```
|
|
606
|
+
|
|
607
|
+
Confirm: "Tagged: v[X.Y]"
|
|
608
|
+
|
|
609
|
+
Ask: "Push tag to remote? (y/n)"
|
|
610
|
+
|
|
611
|
+
If yes:
|
|
612
|
+
|
|
613
|
+
```bash
|
|
614
|
+
git push origin v[X.Y]
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
</step>
|
|
618
|
+
|
|
619
|
+
<step name="git_commit_milestone">
|
|
620
|
+
|
|
621
|
+
Commit milestone completion including archive files and deletions.
|
|
622
|
+
|
|
623
|
+
```bash
|
|
624
|
+
# Stage archive files (new)
|
|
625
|
+
git add .planning/milestones/v[X.Y]-ROADMAP.md
|
|
626
|
+
git add .planning/milestones/v[X.Y]-REQUIREMENTS.md
|
|
627
|
+
git add .planning/milestones/v[X.Y]-MILESTONE-AUDIT.md 2>/dev/null || true
|
|
628
|
+
|
|
629
|
+
# Stage updated files
|
|
630
|
+
git add .planning/MILESTONES.md
|
|
631
|
+
git add .planning/PROJECT.md
|
|
632
|
+
git add .planning/STATE.md
|
|
633
|
+
|
|
634
|
+
# Stage deletions
|
|
635
|
+
git add -u .planning/
|
|
636
|
+
|
|
637
|
+
# Commit with descriptive message
|
|
638
|
+
git commit -m "$(cat <<'EOF'
|
|
639
|
+
chore: complete v[X.Y] milestone
|
|
640
|
+
|
|
641
|
+
Archived:
|
|
642
|
+
- milestones/v[X.Y]-ROADMAP.md
|
|
643
|
+
- milestones/v[X.Y]-REQUIREMENTS.md
|
|
644
|
+
- milestones/v[X.Y]-MILESTONE-AUDIT.md (if audit was run)
|
|
645
|
+
|
|
646
|
+
Deleted (fresh for next milestone):
|
|
647
|
+
- ROADMAP.md
|
|
648
|
+
- REQUIREMENTS.md
|
|
649
|
+
|
|
650
|
+
Updated:
|
|
651
|
+
- MILESTONES.md (new entry)
|
|
652
|
+
- PROJECT.md (requirements → Validated)
|
|
653
|
+
- STATE.md (reset for next milestone)
|
|
654
|
+
|
|
655
|
+
Tagged: v[X.Y]
|
|
656
|
+
EOF
|
|
657
|
+
)"
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
Confirm: "Committed: chore: complete v[X.Y] milestone"
|
|
661
|
+
|
|
662
|
+
</step>
|
|
663
|
+
|
|
664
|
+
<step name="offer_next">
|
|
665
|
+
|
|
666
|
+
```
|
|
667
|
+
✅ Milestone v[X.Y] [Name] complete
|
|
668
|
+
|
|
669
|
+
Shipped:
|
|
670
|
+
- [N] phases ([M] plans, [P] tasks)
|
|
671
|
+
- [One sentence of what shipped]
|
|
672
|
+
|
|
673
|
+
Archived:
|
|
674
|
+
- milestones/v[X.Y]-ROADMAP.md
|
|
675
|
+
- milestones/v[X.Y]-REQUIREMENTS.md
|
|
676
|
+
|
|
677
|
+
Summary: .planning/MILESTONES.md
|
|
678
|
+
Tag: v[X.Y]
|
|
679
|
+
|
|
680
|
+
---
|
|
681
|
+
|
|
682
|
+
## ▶ Next Up
|
|
683
|
+
|
|
684
|
+
**Discuss Next Milestone** — figure out what to build next
|
|
685
|
+
|
|
686
|
+
`/ms:discuss-milestone`
|
|
687
|
+
|
|
688
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
689
|
+
|
|
690
|
+
---
|
|
691
|
+
|
|
692
|
+
**Next milestone flow:**
|
|
693
|
+
1. `/ms:discuss-milestone` — thinking partner, creates context file
|
|
694
|
+
2. `/ms:new-milestone` — update PROJECT.md with new goals
|
|
695
|
+
3. `/ms:research-project` — (optional) research ecosystem
|
|
696
|
+
4. `/ms:define-requirements` — scope what to build
|
|
697
|
+
5. `/ms:create-roadmap` — plan how to build it
|
|
698
|
+
|
|
699
|
+
---
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
</step>
|
|
703
|
+
|
|
704
|
+
</process>
|
|
705
|
+
|
|
706
|
+
<milestone_naming>
|
|
707
|
+
|
|
708
|
+
**Version conventions:**
|
|
709
|
+
- **v1.0** — Initial MVP
|
|
710
|
+
- **v1.1, v1.2, v1.3** — Minor updates, new features, fixes
|
|
711
|
+
- **v2.0, v3.0** — Major rewrites, breaking changes, significant new direction
|
|
712
|
+
|
|
713
|
+
**Name conventions:**
|
|
714
|
+
- v1.0 MVP
|
|
715
|
+
- v1.1 Security
|
|
716
|
+
- v1.2 Performance
|
|
717
|
+
- v2.0 Redesign
|
|
718
|
+
- v2.0 iOS Launch
|
|
719
|
+
|
|
720
|
+
Keep names short (1-2 words describing the focus).
|
|
721
|
+
|
|
722
|
+
</milestone_naming>
|
|
723
|
+
|
|
724
|
+
<what_qualifies>
|
|
725
|
+
|
|
726
|
+
**Create milestones for:**
|
|
727
|
+
- Initial release (v1.0)
|
|
728
|
+
- Public releases
|
|
729
|
+
- Major feature sets shipped
|
|
730
|
+
- Before archiving planning
|
|
731
|
+
|
|
732
|
+
**Don't create milestones for:**
|
|
733
|
+
- Every phase completion (too granular)
|
|
734
|
+
- Work in progress (wait until shipped)
|
|
735
|
+
- Internal dev iterations (unless truly shipped internally)
|
|
736
|
+
|
|
737
|
+
If uncertain, ask: "Is this deployed/usable/shipped in some form?"
|
|
738
|
+
If yes → milestone. If no → keep working.
|
|
739
|
+
|
|
740
|
+
</what_qualifies>
|
|
741
|
+
|
|
742
|
+
<success_criteria>
|
|
743
|
+
|
|
744
|
+
Milestone completion is successful when:
|
|
745
|
+
|
|
746
|
+
- [ ] MILESTONES.md entry created with stats and accomplishments
|
|
747
|
+
- [ ] PROJECT.md full evolution review completed
|
|
748
|
+
- [ ] All shipped requirements moved to Validated in PROJECT.md
|
|
749
|
+
- [ ] Key Decisions updated with outcomes
|
|
750
|
+
- [ ] ROADMAP.md reorganized with milestone grouping
|
|
751
|
+
- [ ] Roadmap archive created (milestones/v[X.Y]-ROADMAP.md)
|
|
752
|
+
- [ ] Requirements archive created (milestones/v[X.Y]-REQUIREMENTS.md)
|
|
753
|
+
- [ ] REQUIREMENTS.md deleted (fresh for next milestone)
|
|
754
|
+
- [ ] STATE.md updated with fresh project reference
|
|
755
|
+
- [ ] Git tag created (v[X.Y])
|
|
756
|
+
- [ ] Milestone commit made (includes archive files and deletion)
|
|
757
|
+
- [ ] User knows next steps (starting with /ms:define-requirements)
|
|
758
|
+
|
|
759
|
+
</success_criteria>
|