mindsystem-cc 4.0.3 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +39 -22
  2. package/agents/ms-researcher.md +3 -3
  3. package/agents/ms-roadmapper.md +11 -6
  4. package/bin/install.js +29 -8
  5. package/commands/ms/audit-milestone.md +35 -42
  6. package/commands/ms/create-roadmap.md +5 -7
  7. package/commands/ms/doctor.md +3 -3
  8. package/commands/ms/help.md +14 -14
  9. package/commands/ms/new-milestone.md +3 -3
  10. package/commands/ms/research-milestone.md +339 -0
  11. package/mindsystem/references/questioning.md +1 -1
  12. package/mindsystem/references/routing/between-milestones-routing.md +1 -1
  13. package/mindsystem/templates/milestone-context.md +1 -1
  14. package/mindsystem/templates/milestone-research.md +89 -0
  15. package/mindsystem/templates/requirements.md +1 -1
  16. package/mindsystem/templates/roadmap.md +20 -0
  17. package/mindsystem/templates/tech-debt.md +4 -4
  18. package/mindsystem/workflows/complete-milestone.md +4 -4
  19. package/mindsystem/workflows/define-requirements.md +12 -14
  20. package/mindsystem/workflows/verify-work.md +14 -49
  21. package/package.json +1 -1
  22. package/scripts/ms-tools.py +290 -14
  23. package/agents/ms-integration-checker.md +0 -424
  24. package/agents/ms-research-synthesizer.md +0 -248
  25. package/commands/ms/research-project.md +0 -353
  26. package/mindsystem/templates/research-project/ARCHITECTURE.md +0 -204
  27. package/mindsystem/templates/research-project/FEATURES.md +0 -147
  28. package/mindsystem/templates/research-project/PITFALLS.md +0 -200
  29. package/mindsystem/templates/research-project/STACK.md +0 -120
  30. package/mindsystem/templates/research-project/SUMMARY.md +0 -170
  31. package/mindsystem/templates/research-project-output.md +0 -81
  32. package/mindsystem/workflows/research-project.md +0 -23
@@ -30,7 +30,7 @@ Output ONLY the reference content below. Do NOT add:
30
30
 
31
31
  1. `/ms:new-project` — Initialize project with brief
32
32
  2. `/ms:config` — (optional) Configure code reviewers and gitignore
33
- 3. `/ms:research-project` — (optional) Research domain ecosystem
33
+ 3. `/ms:research-milestone` — (optional) Research domain ecosystem
34
34
  4. `/ms:create-roadmap` — Define requirements and create roadmap
35
35
  5. `/ms:plan-phase 1` — Create detailed plan for first phase
36
36
  6. `/ms:execute-phase 1` — Execute with parallel agents
@@ -62,7 +62,7 @@ Initialize → (Optional Research) → Roadmap → Plan → Execute → Verify
62
62
  Common deviations:
63
63
  - Existing repo: `/ms:map-codebase` after `/ms:new-project` (or before — either works)
64
64
  - Plan looks wrong: `/ms:discuss-phase <phase>`
65
- - Unknown domain: `/ms:research-project` or `/ms:research-phase <phase>`
65
+ - Unknown domain: `/ms:research-milestone` before roadmap, or `/ms:research-phase <phase>` before planning
66
66
  - Phase prep: `/ms:discuss-phase` → `/ms:design-phase` → `/ms:research-phase` → `/ms:plan-phase` (all optional before plan)
67
67
  - New urgent work: `/ms:insert-phase <after> "<desc>"`
68
68
  - New non-urgent work: `/ms:add-todo "<desc>"`
@@ -109,15 +109,15 @@ Configure Mindsystem preferences — code reviewers, mockup preferences, gitigno
109
109
 
110
110
  Usage: `/ms:config`
111
111
 
112
- **`/ms:research-project`**
113
- Research domain ecosystem before creating roadmap.
112
+ **`/ms:research-milestone`**
113
+ Research milestone domain before creating roadmap.
114
114
 
115
115
  - Use when: you’re unsure about stack choices, common pitfalls, or “what good looks like” in this domain.
116
- - Spawns parallel agents to investigate stack, features, architecture, pitfalls
117
- - Creates `.planning/research/` with ecosystem knowledge
118
- - Recommended for best results; skip only if you need speed over thoroughness
116
+ - Spawns 2-5 adaptive agents based on milestone scope (stack, product landscape, codebase feasibility, architecture, pitfalls)
117
+ - Creates `.planning/MILESTONE-RESEARCH.md` single file consumed by roadmapper
118
+ - Research conclusions flow through ROADMAP.md to all downstream phase commands
119
119
 
120
- Usage: `/ms:research-project`
120
+ Usage: `/ms:research-milestone`
121
121
 
122
122
  **`/ms:create-roadmap`**
123
123
  Define requirements and create roadmap with phases.
@@ -236,7 +236,7 @@ Audit milestone completion against original intent.
236
236
 
237
237
  - Use when: you think you’re “done” and want cross-phase integration + requirements coverage checked before archiving.
238
238
  - Reads phase VERIFICATION.md files and aggregates results
239
- - Spawns integration checker for cross-phase wiring
239
+ - Checks cross-phase wiring from verification artifacts
240
240
  - Maintains TECH-DEBT.md as single source of truth for debt items
241
241
  - Creates MILESTONE-AUDIT.md with gaps and tech debt
242
242
 
@@ -287,7 +287,7 @@ Discover what to build next and start a new milestone.
287
287
  - Collaborative discovery through adaptive questioning
288
288
  - Updates PROJECT.md with new goals
289
289
  - Creates MILESTONE-CONTEXT.md for downstream consumption (roadmap, planning)
290
- - Routes to create-roadmap or research-project
290
+ - Routes to create-roadmap or research-milestone
291
291
 
292
292
  Usage: `/ms:new-milestone`
293
293
  Usage: `/ms:new-milestone "Push Notifications"`
@@ -423,7 +423,7 @@ Usage: `/ms:release-notes`
423
423
  ├── ROADMAP.md # Current phase breakdown
424
424
  ├── STATE.md # Project memory & context
425
425
  ├── config.json # Workflow settings
426
- ├── research/ # Domain ecosystem research
426
+ ├── MILESTONE-RESEARCH.md # Domain ecosystem research (from /ms:research-milestone)
427
427
  ├── todos/ # Captured ideas and tasks
428
428
  │ ├── *.md # Pending todos (flat files)
429
429
  │ └── done/ # Completed todos
@@ -460,7 +460,7 @@ Usage: `/ms:release-notes`
460
460
  ```
461
461
  /ms:new-project # Extract your idea through questions
462
462
  /ms:config # (optional) Configure code reviewers and gitignore
463
- /ms:research-project # (recommended) Research domain ecosystem
463
+ /ms:research-milestone # (recommended) Research domain ecosystem
464
464
  /ms:create-roadmap # Define requirements and create phases
465
465
  /ms:plan-phase 1 # Create detailed plan
466
466
  /ms:execute-phase 1 # Execute with parallel agents
@@ -472,7 +472,7 @@ Usage: `/ms:release-notes`
472
472
  /ms:new-project # Step 1: Questions focus on business context and vision
473
473
  /ms:map-codebase # Step 2: Analyze existing code
474
474
  /ms:config # (optional) Configure code reviewers and gitignore
475
- /ms:research-project # (optional) Research new domain areas
475
+ /ms:research-milestone # (optional) Research new domain areas
476
476
  /ms:create-roadmap # Define requirements and create roadmap
477
477
  /ms:plan-phase 1 # Codebase docs load automatically
478
478
  /ms:execute-phase 1 # Claude knows your patterns & conventions
@@ -526,7 +526,7 @@ Common options:
526
526
 
527
527
  ```
528
528
  /ms:new-milestone # Discover what to build, update PROJECT.md
529
- /ms:research-project # (optional) Domain / stack research
529
+ /ms:research-milestone # (optional) Domain / stack research
530
530
  /ms:create-roadmap # New phases mapped to requirements
531
531
  /ms:plan-phase # Auto-detect next unplanned phase
532
532
  /ms:execute-phase <phase>
@@ -16,7 +16,7 @@ Start a new milestone by helping the user discover what to build next, then upda
16
16
 
17
17
  Self-contained command — three phases: Orient (load context, present directions), Deepen (collaborative discovery), Commit (update files, route forward).
18
18
 
19
- Output: Updated PROJECT.md, new MILESTONE-CONTEXT.md, routes to create-roadmap or research-project
19
+ Output: Updated PROJECT.md, new MILESTONE-CONTEXT.md, routes to create-roadmap or research-milestone
20
20
  </objective>
21
21
 
22
22
  <execution_context>
@@ -278,7 +278,7 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
278
278
 
279
279
  19. **Route to next step:**
280
280
 
281
- Based on the conversation, recommend ONE path. If unfamiliar domains or open questions surfaced during discovery, recommend `/ms:research-project`. Otherwise recommend `/ms:create-roadmap`.
281
+ Based on the conversation, recommend ONE path. If unfamiliar domains or open questions surfaced during discovery, recommend `/ms:research-milestone`. Otherwise recommend `/ms:create-roadmap`.
282
282
 
283
283
  ```
284
284
  Milestone [Name] initialized.
@@ -311,5 +311,5 @@ Milestone name: $ARGUMENTS (optional — will emerge during discovery if not pro
311
311
  - MILESTONE-CONTEXT.md created with vision, features, scope, priorities
312
312
  - STATE.md reset for new milestone
313
313
  - Git commit made
314
- - User routed to create-roadmap (or research-project if unknowns surfaced)
314
+ - User routed to create-roadmap (or research-milestone if unknowns surfaced)
315
315
  </success_criteria>
@@ -0,0 +1,339 @@
1
+ ---
2
+ name: ms:research-milestone
3
+ description: Research domain ecosystem before creating roadmap
4
+ allowed-tools:
5
+ - Read
6
+ - Write
7
+ - Bash
8
+ - Task
9
+ - AskUserQuestion
10
+ ---
11
+
12
+ <objective>
13
+ Research milestone domain before creating roadmap. Spawns 2-5 adaptive agents based on milestone scope.
14
+
15
+ **Orchestrator role:** Analyze milestone context, determine research dimensions, spawn parallel agents returning text, synthesize into MILESTONE-RESEARCH.md.
16
+
17
+ **Why this exists:** Sits between `/ms:new-milestone` and `/ms:create-roadmap`. Produces a single file the roadmapper consumes to create better phase breakdowns. Research conclusions flow through ROADMAP.md so all downstream phase commands implicitly benefit.
18
+ </objective>
19
+
20
+ <execution_context>
21
+ @~/.claude/mindsystem/templates/milestone-research.md
22
+ </execution_context>
23
+
24
+ <context>
25
+ @.planning/PROJECT.md
26
+ @.planning/MILESTONE-CONTEXT.md (if exists)
27
+ @.planning/config.json (if exists)
28
+ </context>
29
+
30
+ <process>
31
+
32
+ ## 1. Validate Prerequisites
33
+
34
+ ```bash
35
+ [ -f .planning/PROJECT.md ] || { echo "ERROR: No PROJECT.md. Run /ms:new-project first."; exit 1; }
36
+ [ -f .planning/MILESTONE-CONTEXT.md ] || { echo "ERROR: No MILESTONE-CONTEXT.md. Run /ms:new-milestone first."; exit 1; }
37
+ [ -f .planning/MILESTONE-RESEARCH.md ] && echo "RESEARCH_EXISTS" || echo "NO_RESEARCH"
38
+ ```
39
+
40
+ ## 2. Handle Existing Research
41
+
42
+ **If RESEARCH_EXISTS:** Use AskUserQuestion:
43
+ - header: "Existing research"
44
+ - question: "MILESTONE-RESEARCH.md already exists. What would you like to do?"
45
+ - options:
46
+ - "View existing" — Show current research
47
+ - "Replace" — Research from scratch (will overwrite)
48
+ - "Cancel" — Keep existing
49
+
50
+ If "View existing": Read and display, then exit.
51
+ If "Cancel": Exit.
52
+ If "Replace": Continue.
53
+
54
+ ## 3. Analyze Milestone Scope
55
+
56
+ Read MILESTONE-CONTEXT.md and PROJECT.md. Extract:
57
+ - **Features** — what the milestone aims to build
58
+ - **Open Questions** — unknowns flagged during discovery
59
+ - **Vision** — the "why" behind the milestone
60
+ - **Priorities** — must-have vs nice-to-have
61
+ - **Scope boundaries** — what's excluded
62
+
63
+ Check if this is a brownfield project:
64
+ ```bash
65
+ [ -d .planning/codebase ] && echo "BROWNFIELD" || echo "GREENFIELD"
66
+ ```
67
+
68
+ ## 4. Determine Research Dimensions
69
+
70
+ Select which agents to spawn based on milestone context:
71
+
72
+ | Dimension | Agent | Spawn when |
73
+ |-----------|-------|------------|
74
+ | Ecosystem/Stack | ms-researcher | Unfamiliar tech, first milestone, or Open Questions mention stack |
75
+ | Product Landscape | ms-product-researcher | User-facing features where competitor analysis adds value |
76
+ | Codebase Feasibility | ms-codebase-researcher | Brownfield project with existing codebase |
77
+ | Architecture/Dependencies | ms-researcher | 3+ features with dependencies, or system design in Open Questions |
78
+ | Pitfalls/Risk | ms-researcher | Unfamiliar domain, external services, complex integrations |
79
+
80
+ Default: lean toward spawning more agents.
81
+
82
+ Present proposed agents to user:
83
+
84
+ ```
85
+ Research dimensions for milestone: [Name]
86
+
87
+ Spawning [N] agents:
88
+ 1. [Dimension] — [one-line reason]
89
+ 2. [Dimension] — [one-line reason]
90
+ ...
91
+
92
+ Proceed? (yes / adjust)
93
+ ```
94
+
95
+ Use AskUserQuestion:
96
+ - header: "Research scope"
97
+ - question: "These agents will research your milestone. Adjust?"
98
+ - options:
99
+ - "Proceed" — Spawn agents as proposed
100
+ - "Add dimension" — I want more coverage
101
+ - "Remove dimension" — Skip some of these
102
+ - "Cancel" — Skip research entirely
103
+
104
+ ## 5. Spawn Agents in Parallel
105
+
106
+ Spawn all selected agents in a single message. Each agent receives milestone and project context and returns structured text (no file writes).
107
+
108
+ **Announce:** "Spawning [N] research agents... may take 2-3 minutes."
109
+
110
+ ### Ecosystem/Stack Agent (ms-researcher)
111
+
112
+ ```
113
+ Task(
114
+ prompt="
115
+ <research_type>
116
+ Milestone Research — Ecosystem/Stack dimension.
117
+ </research_type>
118
+
119
+ <milestone_context>
120
+ [MILESTONE-CONTEXT.md content]
121
+ </milestone_context>
122
+
123
+ <project_context>
124
+ [PROJECT.md summary — core value, constraints, tech stack if known]
125
+ </project_context>
126
+
127
+ <focus>
128
+ Research the technology stack for this milestone scope. Recommend specific libraries with versions and rationale. Flag what NOT to use and why. If the project has an established stack, focus on NEW libraries needed for the milestone features.
129
+ </focus>
130
+
131
+ <output>
132
+ Return findings as structured text. Do NOT write to filesystem.
133
+ Format:
134
+ ## ECOSYSTEM/STACK FINDINGS
135
+ ### Recommended Stack (technology, version, purpose, rationale)
136
+ ### Alternatives Rejected (what, why not, use instead)
137
+ ### Version Constraints & Compatibility
138
+ ### Confidence (HIGH/MEDIUM/LOW per recommendation with sources)
139
+ </output>
140
+ ",
141
+ subagent_type="ms-researcher",
142
+ description="Stack research"
143
+ )
144
+ ```
145
+
146
+ ### Product Landscape Agent (ms-product-researcher)
147
+
148
+ ```
149
+ Task(
150
+ prompt="
151
+ <milestone_context>
152
+ [MILESTONE-CONTEXT.md content]
153
+ </milestone_context>
154
+
155
+ <project_context>
156
+ [PROJECT.md summary]
157
+ </project_context>
158
+
159
+ <focus>
160
+ Research the product landscape for this milestone's features. What do users expect (table stakes)? What differentiates? What should be deliberately excluded?
161
+ </focus>
162
+
163
+ Return findings as structured text:
164
+ ## PRODUCT LANDSCAPE FINDINGS
165
+ ### Table Stakes (feature, why users expect it)
166
+ ### Differentiators (feature, competitive advantage)
167
+ ### Anti-Features (feature, why excluded)
168
+ ### Confidence (HIGH/MEDIUM/LOW with sources)
169
+ ",
170
+ subagent_type="ms-product-researcher",
171
+ description="Product research"
172
+ )
173
+ ```
174
+
175
+ ### Codebase Feasibility Agent (ms-codebase-researcher)
176
+
177
+ ```
178
+ Task(
179
+ prompt="
180
+ <objective>
181
+ Analyze codebase feasibility for milestone features.
182
+ </objective>
183
+
184
+ <milestone_context>
185
+ [MILESTONE-CONTEXT.md content]
186
+ </milestone_context>
187
+
188
+ <project_context>
189
+ [PROJECT.md summary]
190
+ </project_context>
191
+
192
+ <focus>
193
+ Assess how the existing codebase supports the milestone's planned features. Identify which components need modification vs creation. Surface feasibility constraints and integration points.
194
+ </focus>
195
+ ",
196
+ subagent_type="ms-codebase-researcher",
197
+ description="Codebase feasibility"
198
+ )
199
+ ```
200
+
201
+ ### Architecture/Dependencies Agent (ms-researcher)
202
+
203
+ ```
204
+ Task(
205
+ prompt="
206
+ <research_type>
207
+ Milestone Research — Architecture/Dependencies dimension.
208
+ </research_type>
209
+
210
+ <milestone_context>
211
+ [MILESTONE-CONTEXT.md content]
212
+ </milestone_context>
213
+
214
+ <project_context>
215
+ [PROJECT.md summary]
216
+ </project_context>
217
+
218
+ <focus>
219
+ Research architecture patterns and component dependencies for this milestone. Determine build order based on dependencies. Identify integration points between components.
220
+ </focus>
221
+
222
+ <output>
223
+ Return findings as structured text. Do NOT write to filesystem.
224
+ Format:
225
+ ## ARCHITECTURE FINDINGS
226
+ ### Components (name, responsibility)
227
+ ### Build Order (sequence with rationale)
228
+ ### Integration Points (how components connect)
229
+ ### Confidence (HIGH/MEDIUM/LOW with sources)
230
+ </output>
231
+ ",
232
+ subagent_type="ms-researcher",
233
+ description="Architecture research"
234
+ )
235
+ ```
236
+
237
+ ### Pitfalls/Risk Agent (ms-researcher)
238
+
239
+ ```
240
+ Task(
241
+ prompt="
242
+ <research_type>
243
+ Milestone Research — Pitfalls/Risk dimension.
244
+ </research_type>
245
+
246
+ <milestone_context>
247
+ [MILESTONE-CONTEXT.md content]
248
+ </milestone_context>
249
+
250
+ <project_context>
251
+ [PROJECT.md summary]
252
+ </project_context>
253
+
254
+ <focus>
255
+ Research common pitfalls and risks for this milestone's domain and features. For each pitfall: severity, prevention strategy, and which components/phases it affects.
256
+ </focus>
257
+
258
+ <output>
259
+ Return findings as structured text. Do NOT write to filesystem.
260
+ Format:
261
+ ## PITFALLS/RISK FINDINGS
262
+ ### Pitfalls (pitfall, severity, prevention, affects)
263
+ ### Feasibility Assessment (feasible YES/CONDITIONALLY/NO, constraints)
264
+ ### Open Questions (needing resolution)
265
+ ### Confidence (HIGH/MEDIUM/LOW with sources)
266
+ </output>
267
+ ",
268
+ subagent_type="ms-researcher",
269
+ description="Pitfalls research"
270
+ )
271
+ ```
272
+
273
+ ## 6. Synthesize into MILESTONE-RESEARCH.md
274
+
275
+ After all agents return, synthesize findings into `.planning/MILESTONE-RESEARCH.md` using template.
276
+
277
+ Map agent returns to template sections:
278
+ - Ecosystem/Stack → Technology Decisions
279
+ - Product Landscape → Product Landscape
280
+ - Codebase Feasibility → Feasibility Assessment + Architecture & Dependencies
281
+ - Architecture → Architecture & Dependencies
282
+ - Pitfalls/Risk → Pitfalls & Risks + Feasibility Assessment
283
+
284
+ Write Executive Summary (2-3 paragraphs) synthesizing all findings.
285
+
286
+ Merge overlapping findings. Resolve conflicts by preferring higher-confidence sources.
287
+
288
+ ## 7. Present Results and Commit
289
+
290
+ ```bash
291
+ git add .planning/MILESTONE-RESEARCH.md
292
+ git commit -m "$(cat <<'EOF'
293
+ docs: complete milestone research
294
+
295
+ Key findings:
296
+ - Stack: [one-liner]
297
+ - Architecture: [one-liner]
298
+ - Critical pitfall: [one-liner]
299
+ EOF
300
+ )"
301
+ ```
302
+
303
+ Present summary:
304
+
305
+ ```
306
+ Research complete:
307
+
308
+ File: .planning/MILESTONE-RESEARCH.md
309
+
310
+ Key findings:
311
+ - Stack: [one-liner]
312
+ - Architecture: [one-liner]
313
+ - Critical pitfall: [one-liner]
314
+ - Feasibility: [YES/CONDITIONALLY/NO]
315
+
316
+ ---
317
+ ## ▶ Next Up
318
+ `/ms:create-roadmap` — define requirements and create roadmap
319
+ <sub>`/clear` first → fresh context window</sub>
320
+ ---
321
+ ```
322
+
323
+ ## 8. Update Last Command
324
+
325
+ ```bash
326
+ ms-tools set-last-command "ms:research-milestone"
327
+ ```
328
+
329
+ </process>
330
+
331
+ <success_criteria>
332
+ - [ ] PROJECT.md and MILESTONE-CONTEXT.md validated
333
+ - [ ] Research dimensions determined and approved by user
334
+ - [ ] 2-5 agents spawned in parallel (adaptive selection)
335
+ - [ ] All agent results received and synthesized
336
+ - [ ] MILESTONE-RESEARCH.md created using template
337
+ - [ ] Research committed to git
338
+ - [ ] User routed to /ms:create-roadmap
339
+ </success_criteria>
@@ -16,7 +16,7 @@ Don't interrogate. Collaborate. Don't follow a script. Follow the thread.
16
16
 
17
17
  By the end of questioning, you need enough clarity to write a PROJECT.md that downstream phases can act on:
18
18
 
19
- - **research-project** needs: product domain, target audience, core problem, what unknowns exist
19
+ - **research-milestone** needs: product domain, target audience, core problem, what unknowns exist
20
20
  - **create-roadmap** needs: clear vision with business context grounding — who it's for, what problem it solves, how it's different — to decompose into phases
21
21
  - **plan-phase** needs: audience context for task weighting, specific requirements for implementation choices
22
22
  - **discuss-phase** needs: business context for PO-style analysis — audience, problem, differentiation inform scope recommendations
@@ -36,7 +36,7 @@ Ready to plan the next milestone.
36
36
 
37
37
  **Next milestone flow:**
38
38
  1. `/ms:new-milestone` — discover what to build, update PROJECT.md
39
- 2. `/ms:research-project` — (optional) research ecosystem
39
+ 2. `/ms:research-milestone` — (optional) research ecosystem
40
40
  3. `/ms:create-roadmap` — plan how to build it
41
41
 
42
42
  ---
@@ -69,7 +69,7 @@ Empty section if none — that's fine.]
69
69
  - If user didn't express priorities, derive from emphasis during conversation
70
70
 
71
71
  **Open Questions:**
72
- - Feed into `/ms:research-project` if research is needed
72
+ - Feed into `/ms:research-milestone` if research is needed
73
73
  - Empty section is fine — not every milestone has unknowns
74
74
  - Questions should be specific enough to research
75
75
 
@@ -0,0 +1,89 @@
1
+ # Milestone Research Template
2
+
3
+ Template for `.planning/MILESTONE-RESEARCH.md` — milestone-scoped research between `/ms:new-milestone` and `/ms:create-roadmap`.
4
+
5
+ **Purpose:** Inform the roadmapper with technology decisions, product landscape, architecture constraints, and risk assessment. Each section maps to a specific roadmapper decision.
6
+
7
+ **Created by:** `/ms:research-milestone` command
8
+
9
+ **Consumed by:** `ms-roadmapper` agent during `/ms:create-roadmap`
10
+
11
+ ---
12
+
13
+ ## Template
14
+
15
+ ```markdown
16
+ # Milestone Research: [Name]
17
+
18
+ **Generated:** [date]
19
+ **Source:** /ms:research-milestone
20
+
21
+ ## Executive Summary
22
+ [2-3 paragraphs: what type of problem, recommended approach, key risks]
23
+
24
+ ## Technology Decisions
25
+ ### Recommended Stack
26
+ | Technology | Version | Purpose | Rationale |
27
+ |------------|---------|---------|-----------|
28
+ | [lib] | [ver] | [what it does] | [why this choice] |
29
+
30
+ ### Alternatives Rejected
31
+ | Rejected | Reason | Use Instead |
32
+ |----------|--------|-------------|
33
+ | [lib] | [why not] | [recommendation] |
34
+
35
+ ## Product Landscape
36
+ ### Table Stakes
37
+ - [Feature]: [why users expect this]
38
+
39
+ ### Differentiators
40
+ - [Feature]: [competitive advantage]
41
+
42
+ ### Anti-Features
43
+ - [Feature]: [why deliberately excluded]
44
+
45
+ ## Architecture & Dependencies
46
+ ### Components
47
+ - [Component]: [responsibility]
48
+
49
+ ### Build Order
50
+ 1. [First]: [rationale — what it unblocks]
51
+ 2. [Second]: [rationale]
52
+
53
+ ### Integration Points
54
+ - [Integration]: [how components connect]
55
+
56
+ ## Feasibility Assessment
57
+ ### Feasible: [YES/CONDITIONALLY/NO]
58
+ ### Constraints
59
+ - [Constraint and impact]
60
+
61
+ ### Open Questions
62
+ - [Question needing resolution before or during implementation]
63
+
64
+ ## Pitfalls & Risks
65
+ | Pitfall | Severity | Prevention | Affects |
66
+ |---------|----------|------------|---------|
67
+ | [risk] | [HIGH/MEDIUM/LOW] | [how to avoid] | [which phases/components] |
68
+
69
+ ## Sources
70
+ ### HIGH Confidence
71
+ - [Source]: [what it verified]
72
+
73
+ ### MEDIUM Confidence
74
+ - [Source]: [what it informed]
75
+
76
+ ### LOW Confidence
77
+ - [Source]: [what it suggested — needs validation]
78
+ ```
79
+
80
+ ## Section-to-Roadmapper Mapping
81
+
82
+ | Section | Roadmapper Decision |
83
+ |---------|-------------------|
84
+ | Technology Decisions | Phase content — what tools each phase uses |
85
+ | Product Landscape | Requirements derivation — table stakes = v1 candidates |
86
+ | Architecture & Dependencies | Phase ordering — build order drives phase sequence |
87
+ | Feasibility Assessment | Phase boundaries and constraints |
88
+ | Pitfalls & Risks | Pre-work Research indicators per phase |
89
+ | Open Questions | Per-phase Research topics |
@@ -82,7 +82,7 @@ Which phases cover which requirements. Updated by create-roadmap.
82
82
  - Checkbox: Only for v1 requirements (v2 are not yet actionable)
83
83
 
84
84
  **Categories:**
85
- - Derive from research FEATURES.md categories
85
+ - Derive from MILESTONE-RESEARCH.md Product Landscape categories
86
86
  - Keep consistent with domain conventions
87
87
  - Typical: Authentication, Content, Social, Notifications, Moderation, Payments, Admin
88
88
 
@@ -11,6 +11,21 @@ Template for `.planning/ROADMAP.md`.
11
11
 
12
12
  [One paragraph describing the journey from start to finish]
13
13
 
14
+ ## Research Conclusions
15
+ [Present only when /ms:research-milestone informed the roadmap]
16
+
17
+ ### Technology Stack
18
+ - [Technology]: [purpose] — [rationale]
19
+
20
+ ### Key Constraints
21
+ - [Constraint and impact]
22
+
23
+ ### Architecture Decisions
24
+ - [Decision and rationale]
25
+
26
+ ### Risk Mitigations
27
+ - Phase [N]: [pitfall] — [prevention]
28
+
14
29
  ## Phases
15
30
 
16
31
  **Phase Numbering:**
@@ -122,6 +137,11 @@ Phases execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
122
137
  ```
123
138
 
124
139
  <guidelines>
140
+ **Research Conclusions section:**
141
+ - Populated by roadmapper when MILESTONE-RESEARCH.md exists
142
+ - Downstream commands (plan-phase, discuss-phase, research-phase) consume this implicitly by reading ROADMAP.md
143
+ - Omitted entirely when no milestone research was performed
144
+
125
145
  **Initial planning:**
126
146
  - Phase count derived from actual work (not a target number)
127
147
  - Each phase delivers something coherent
@@ -10,7 +10,7 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
10
10
 
11
11
  **Item IDs** use `TD-{N}` format — monotonically increasing, never reused. New items continue from highest existing ID.
12
12
 
13
- **Sources:** Phase verifications (anti-patterns, non-critical gaps), code review findings, integration checker bugs, unfixed UAT issues.
13
+ **Sources:** Phase verifications (anti-patterns, non-critical gaps), code review findings, cross-phase wiring gaps, unfixed UAT issues.
14
14
 
15
15
  ---
16
16
 
@@ -30,7 +30,7 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
30
30
  - **Location:** {file:line or component}
31
31
  - **Impact:** {what this causes and why it matters}
32
32
  - **Fix:** {how to address}
33
- - <sub>Phase {source phase} | {verification | integration-check | code-review} | v{milestone}</sub>
33
+ - <sub>Phase {source phase} | {verification | wiring-check | code-review} | v{milestone}</sub>
34
34
 
35
35
  ---
36
36
 
@@ -47,13 +47,13 @@ Created and updated by `/ms:audit-milestone`. Items persist across milestones. U
47
47
  ## Guidelines
48
48
 
49
49
  **Severity levels:**
50
- - `Critical` — Breaks behavior or risks data loss. Integration checker bugs (broken cross-phase wiring, failed E2E flows) always map here.
50
+ - `Critical` — Breaks behavior or risks data loss. Cross-phase wiring gaps (broken cross-phase connections, orphaned artifacts spanning phases) always map here.
51
51
  - `High` — Causes cascading changes if left unaddressed. Fragile patterns that spread to new code, missing abstractions forcing workarounds.
52
52
  - `Medium` — Contained friction. TODOs, missing validation, incomplete error handling. Impact stays local.
53
53
  - `Low` — Won't compound. Style inconsistencies, minor naming issues, improvement opportunities.
54
54
 
55
55
  **Severity mapping from sources:**
56
- - Integration checker bugs → Critical
56
+ - Cross-phase wiring gaps → Critical
57
57
  - Unfixed UAT issues → Critical (blocker) / High (major) / Medium (minor) / Low (cosmetic)
58
58
  - Code review findings → pass through reviewer severity (High/Medium/Low)
59
59
  - Phase verification anti-patterns → Medium or Low (blockers go to `gaps`, not tech debt)