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,203 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Start a new milestone cycle by updating PROJECT.md with new goals.
|
|
3
|
+
|
|
4
|
+
This is the brownfield equivalent of new-project. The project exists and has history.
|
|
5
|
+
This workflow gathers "what's next" and updates PROJECT.md, then routes to the
|
|
6
|
+
requirements → roadmap cycle.
|
|
7
|
+
</purpose>
|
|
8
|
+
|
|
9
|
+
<required_reading>
|
|
10
|
+
**Read these files NOW:**
|
|
11
|
+
|
|
12
|
+
1. ~/.claude/mindsystem/references/questioning.md
|
|
13
|
+
2. ~/.claude/mindsystem/templates/project.md
|
|
14
|
+
3. `.planning/PROJECT.md`
|
|
15
|
+
4. `.planning/MILESTONES.md` (if exists)
|
|
16
|
+
5. `.planning/STATE.md`
|
|
17
|
+
</required_reading>
|
|
18
|
+
|
|
19
|
+
<process>
|
|
20
|
+
|
|
21
|
+
<step name="load_context">
|
|
22
|
+
Load project context:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
cat .planning/PROJECT.md
|
|
26
|
+
cat .planning/MILESTONES.md 2>/dev/null || echo "No milestones file yet"
|
|
27
|
+
cat .planning/STATE.md
|
|
28
|
+
cat .planning/MILESTONE-CONTEXT.md 2>/dev/null || echo "No milestone context file"
|
|
29
|
+
cat .planning/config.json 2>/dev/null
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Extract:
|
|
33
|
+
- What shipped previously (from MILESTONES.md)
|
|
34
|
+
- Current Validated requirements (from PROJECT.md)
|
|
35
|
+
- Pending todos and blockers (from STATE.md)
|
|
36
|
+
- Any context from discuss-milestone (MILESTONE-CONTEXT.md)
|
|
37
|
+
|
|
38
|
+
**Calculate next milestone version:**
|
|
39
|
+
- Parse last version from MILESTONES.md
|
|
40
|
+
- If v1.0 → suggest v1.1 (minor) or v2.0 (major)
|
|
41
|
+
- If v1.3 → suggest v1.4 or v2.0
|
|
42
|
+
</step>
|
|
43
|
+
|
|
44
|
+
<step name="gather_goals">
|
|
45
|
+
**If MILESTONE-CONTEXT.md exists (from /ms:discuss-milestone):**
|
|
46
|
+
- Use features and scope already gathered
|
|
47
|
+
- Present summary for confirmation
|
|
48
|
+
- Skip to confirm_goals step
|
|
49
|
+
|
|
50
|
+
**If no context file:**
|
|
51
|
+
|
|
52
|
+
Present what shipped:
|
|
53
|
+
```
|
|
54
|
+
Last milestone: v[X.Y] [Name]
|
|
55
|
+
Key accomplishments:
|
|
56
|
+
- [From MILESTONES.md]
|
|
57
|
+
|
|
58
|
+
Validated so far:
|
|
59
|
+
- [From PROJECT.md Validated section]
|
|
60
|
+
|
|
61
|
+
Pending todos:
|
|
62
|
+
- [From STATE.md if any]
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Ask (freeform, not AskUserQuestion):
|
|
66
|
+
"What do you want to build in the next milestone?"
|
|
67
|
+
|
|
68
|
+
Wait for response. Then use AskUserQuestion to explore:
|
|
69
|
+
- Probe specific features mentioned
|
|
70
|
+
- Ask about priorities
|
|
71
|
+
- Surface constraints or dependencies
|
|
72
|
+
- Clarify scope boundaries
|
|
73
|
+
|
|
74
|
+
Continue until you have clear milestone goals.
|
|
75
|
+
</step>
|
|
76
|
+
|
|
77
|
+
<step name="confirm_goals">
|
|
78
|
+
Present gathered goals:
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
Milestone: v[X.Y] [Name]
|
|
82
|
+
|
|
83
|
+
Goal: [One sentence focus]
|
|
84
|
+
|
|
85
|
+
Target features:
|
|
86
|
+
- [Feature 1]
|
|
87
|
+
- [Feature 2]
|
|
88
|
+
- [Feature 3]
|
|
89
|
+
|
|
90
|
+
Ready to update PROJECT.md? (yes / adjust)
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
If "adjust": return to gather_goals.
|
|
94
|
+
</step>
|
|
95
|
+
|
|
96
|
+
<step name="update_project">
|
|
97
|
+
Update `.planning/PROJECT.md`:
|
|
98
|
+
|
|
99
|
+
**Add Current Milestone section** (after Core Value, before Requirements):
|
|
100
|
+
|
|
101
|
+
```markdown
|
|
102
|
+
## Current Milestone: v[X.Y] [Name]
|
|
103
|
+
|
|
104
|
+
**Goal:** [One sentence describing milestone focus]
|
|
105
|
+
|
|
106
|
+
**Target features:**
|
|
107
|
+
- [Feature 1]
|
|
108
|
+
- [Feature 2]
|
|
109
|
+
- [Feature 3]
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
**Update Active requirements:**
|
|
113
|
+
- Add new milestone goals to Active section
|
|
114
|
+
- Keep existing Active items that weren't addressed
|
|
115
|
+
- Don't remove anything from Validated
|
|
116
|
+
|
|
117
|
+
**Update footer:**
|
|
118
|
+
```markdown
|
|
119
|
+
---
|
|
120
|
+
*Last updated: [date] after v[X.Y] milestone start*
|
|
121
|
+
```
|
|
122
|
+
</step>
|
|
123
|
+
|
|
124
|
+
<step name="update_state">
|
|
125
|
+
Update `.planning/STATE.md`:
|
|
126
|
+
|
|
127
|
+
```markdown
|
|
128
|
+
## Current Position
|
|
129
|
+
|
|
130
|
+
Phase: Not started (run /ms:create-roadmap)
|
|
131
|
+
Plan: —
|
|
132
|
+
Status: Defining requirements
|
|
133
|
+
Last activity: [today] — Milestone v[X.Y] started
|
|
134
|
+
|
|
135
|
+
Progress: ░░░░░░░░░░ 0%
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Keep Accumulated Context (decisions, blockers) from previous milestone.
|
|
139
|
+
</step>
|
|
140
|
+
|
|
141
|
+
<step name="cleanup">
|
|
142
|
+
Delete temporary context file if it exists:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
rm -f .planning/MILESTONE-CONTEXT.md
|
|
146
|
+
```
|
|
147
|
+
</step>
|
|
148
|
+
|
|
149
|
+
<step name="git_commit">
|
|
150
|
+
```bash
|
|
151
|
+
git add .planning/PROJECT.md .planning/STATE.md
|
|
152
|
+
git commit -m "$(cat <<'EOF'
|
|
153
|
+
docs: start milestone v[X.Y] [Name]
|
|
154
|
+
|
|
155
|
+
Goal: [One sentence]
|
|
156
|
+
Target features: [count] features
|
|
157
|
+
EOF
|
|
158
|
+
)"
|
|
159
|
+
```
|
|
160
|
+
</step>
|
|
161
|
+
|
|
162
|
+
<step name="offer_next">
|
|
163
|
+
```
|
|
164
|
+
Milestone v[X.Y] [Name] initialized.
|
|
165
|
+
|
|
166
|
+
PROJECT.md updated with:
|
|
167
|
+
- Current Milestone section
|
|
168
|
+
- Target features in Active requirements
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## ▶ Next Up
|
|
173
|
+
|
|
174
|
+
**Define Requirements** — scope v[X.Y] features into REQUIREMENTS.md
|
|
175
|
+
|
|
176
|
+
`/ms:define-requirements`
|
|
177
|
+
|
|
178
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
|
|
182
|
+
**Or research first:**
|
|
183
|
+
- `/ms:research-project` — investigate ecosystem before scoping
|
|
184
|
+
|
|
185
|
+
**Full flow:**
|
|
186
|
+
1. `/ms:define-requirements` — create REQUIREMENTS.md
|
|
187
|
+
2. `/ms:create-roadmap` — create ROADMAP.md with phases
|
|
188
|
+
3. `/ms:plan-phase [N]` — start execution
|
|
189
|
+
|
|
190
|
+
---
|
|
191
|
+
```
|
|
192
|
+
</step>
|
|
193
|
+
|
|
194
|
+
</process>
|
|
195
|
+
|
|
196
|
+
<success_criteria>
|
|
197
|
+
- PROJECT.md updated with Current Milestone section
|
|
198
|
+
- Active requirements reflect new milestone goals
|
|
199
|
+
- STATE.md reset for new milestone (keeps accumulated context)
|
|
200
|
+
- MILESTONE-CONTEXT.md consumed and deleted (if existed)
|
|
201
|
+
- Git commit made
|
|
202
|
+
- User routed to define-requirements (or research-project)
|
|
203
|
+
</success_criteria>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Debug Workflow (DEPRECATED)
|
|
2
|
+
|
|
3
|
+
This workflow has been consolidated into the `ms-debugger` agent.
|
|
4
|
+
|
|
5
|
+
**Location:** `agents/ms-debugger.md`
|
|
6
|
+
|
|
7
|
+
**Reason:** The ms-debugger agent contains all debugging expertise. Loading a separate workflow into orchestrator context was wasteful.
|
|
8
|
+
|
|
9
|
+
**Migration:**
|
|
10
|
+
- `/ms:debug` now spawns `ms-debugger` agent directly
|
|
11
|
+
- All debugging methodology lives in the agent file
|
|
12
|
+
- Templates remain at `mindsystem/templates/DEBUG.md`
|
|
13
|
+
|
|
14
|
+
See `agents/ms-debugger.md` for debugging expertise.
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
<purpose>
|
|
2
|
+
Define concrete, checkable requirements for v1.
|
|
3
|
+
|
|
4
|
+
Two modes:
|
|
5
|
+
1. **With research** — Transform FEATURES.md into scoped requirements
|
|
6
|
+
2. **Without research** — Gather requirements through questioning
|
|
7
|
+
|
|
8
|
+
This is the bridge between "what's possible/wanted" and "what we're committing to."
|
|
9
|
+
</purpose>
|
|
10
|
+
|
|
11
|
+
<required_reading>
|
|
12
|
+
**Read these files NOW:**
|
|
13
|
+
|
|
14
|
+
1. ~/.claude/mindsystem/templates/requirements.md
|
|
15
|
+
2. .planning/PROJECT.md
|
|
16
|
+
3. .planning/research/FEATURES.md (if exists)
|
|
17
|
+
4. .planning/research/SUMMARY.md (if exists)
|
|
18
|
+
</required_reading>
|
|
19
|
+
|
|
20
|
+
<process>
|
|
21
|
+
|
|
22
|
+
<step name="detect_mode">
|
|
23
|
+
Check for research:
|
|
24
|
+
```bash
|
|
25
|
+
[ -f .planning/research/FEATURES.md ] && echo "HAS_RESEARCH" || echo "NO_RESEARCH"
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
**If HAS_RESEARCH:** Follow steps load_context → present_features → scope_categories
|
|
29
|
+
**If NO_RESEARCH:** Follow steps load_project → gather_requirements → scope_categories
|
|
30
|
+
</step>
|
|
31
|
+
|
|
32
|
+
<step name="load_context" mode="with_research">
|
|
33
|
+
Read PROJECT.md and extract:
|
|
34
|
+
- Core value (the ONE thing that must work)
|
|
35
|
+
- Stated constraints (budget, timeline, tech limitations)
|
|
36
|
+
- Any explicit scope boundaries from project definition
|
|
37
|
+
|
|
38
|
+
Read research/FEATURES.md and extract:
|
|
39
|
+
- Table stakes (users expect these)
|
|
40
|
+
- Differentiators (competitive advantage)
|
|
41
|
+
- Anti-features (commonly requested, often problematic)
|
|
42
|
+
- Feature dependencies
|
|
43
|
+
- MVP vs full product recommendations
|
|
44
|
+
|
|
45
|
+
Read research/SUMMARY.md for:
|
|
46
|
+
- Overall confidence level
|
|
47
|
+
- Key architectural constraints
|
|
48
|
+
- Suggested phase structure (informational only)
|
|
49
|
+
</step>
|
|
50
|
+
|
|
51
|
+
<step name="load_project" mode="without_research">
|
|
52
|
+
Read PROJECT.md and extract:
|
|
53
|
+
- Core value (the ONE thing that must work)
|
|
54
|
+
- Stated constraints (budget, timeline, tech limitations)
|
|
55
|
+
- Any explicit scope boundaries from project definition
|
|
56
|
+
- Any requirements already mentioned in PROJECT.md
|
|
57
|
+
</step>
|
|
58
|
+
|
|
59
|
+
<step name="gather_requirements" mode="without_research">
|
|
60
|
+
Since no research exists, gather requirements through conversation.
|
|
61
|
+
|
|
62
|
+
**Start with core value:**
|
|
63
|
+
```
|
|
64
|
+
Based on PROJECT.md, the core value is: "[core value]"
|
|
65
|
+
|
|
66
|
+
What are the main things users need to be able to do?
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Wait for response. For each capability mentioned:
|
|
70
|
+
- Ask clarifying questions to make it specific
|
|
71
|
+
- Probe for related capabilities they might need
|
|
72
|
+
- Group naturally emerging categories
|
|
73
|
+
|
|
74
|
+
**Example flow:**
|
|
75
|
+
```
|
|
76
|
+
User: "Users need to create and share posts"
|
|
77
|
+
|
|
78
|
+
You: "For posts, what should users be able to include?
|
|
79
|
+
- Text only?
|
|
80
|
+
- Images?
|
|
81
|
+
- Links with previews?
|
|
82
|
+
|
|
83
|
+
And for sharing — to a feed, or also direct to other users?"
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Build up a mental feature list organized by category.
|
|
87
|
+
|
|
88
|
+
**When you have enough:**
|
|
89
|
+
Present gathered features in same format as present_features step, then proceed to scope_categories.
|
|
90
|
+
</step>
|
|
91
|
+
|
|
92
|
+
<step name="present_features">
|
|
93
|
+
Present features grouped by category (from research or gathered through questioning):
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
Here are the features for [domain]:
|
|
97
|
+
|
|
98
|
+
## Authentication
|
|
99
|
+
**Table stakes:**
|
|
100
|
+
- Sign up with email/password
|
|
101
|
+
- Email verification
|
|
102
|
+
- Password reset
|
|
103
|
+
- Session management
|
|
104
|
+
|
|
105
|
+
**Differentiators:**
|
|
106
|
+
- Magic link login
|
|
107
|
+
- OAuth (Google, GitHub)
|
|
108
|
+
- 2FA
|
|
109
|
+
|
|
110
|
+
**Research notes:** [any relevant notes from FEATURES.md]
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## [Next Category]
|
|
115
|
+
...
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
For each category, include:
|
|
119
|
+
- Table stakes from FEATURES.md
|
|
120
|
+
- Differentiators from FEATURES.md
|
|
121
|
+
- Any anti-features flagged (with warnings)
|
|
122
|
+
- Complexity notes where relevant
|
|
123
|
+
</step>
|
|
124
|
+
|
|
125
|
+
<step name="scope_categories">
|
|
126
|
+
For each category, use AskUserQuestion:
|
|
127
|
+
|
|
128
|
+
- header: "[Category name]"
|
|
129
|
+
- question: "Which [category] features are in v1?"
|
|
130
|
+
- multiSelect: true
|
|
131
|
+
- options:
|
|
132
|
+
- "[Feature 1]" — [brief description or complexity note]
|
|
133
|
+
- "[Feature 2]" — [brief description]
|
|
134
|
+
- "[Feature 3]" — [brief description]
|
|
135
|
+
- "None for v1" — Defer entire category
|
|
136
|
+
|
|
137
|
+
Repeat for each category from research.
|
|
138
|
+
|
|
139
|
+
**Track responses:**
|
|
140
|
+
- Selected features → v1 requirements
|
|
141
|
+
- Unselected table stakes → flag as v2 (users expect these)
|
|
142
|
+
- Unselected differentiators → out of scope (unless user specifies v2)
|
|
143
|
+
</step>
|
|
144
|
+
|
|
145
|
+
<step name="identify_gaps">
|
|
146
|
+
After scoping all researched categories, ask for additions:
|
|
147
|
+
|
|
148
|
+
Use AskUserQuestion:
|
|
149
|
+
- header: "Additions"
|
|
150
|
+
- question: "Any requirements research missed? (Features specific to your vision)"
|
|
151
|
+
- options:
|
|
152
|
+
- "No, research covered it" — Proceed to generate
|
|
153
|
+
- "Yes, let me add some" — Capture additional requirements
|
|
154
|
+
|
|
155
|
+
**If "Yes":**
|
|
156
|
+
|
|
157
|
+
Ask inline (freeform): "What additional requirements do you need?"
|
|
158
|
+
|
|
159
|
+
Parse response into requirement format and add to v1 list.
|
|
160
|
+
</step>
|
|
161
|
+
|
|
162
|
+
<step name="validate_core_value">
|
|
163
|
+
Cross-check requirements against Core Value from PROJECT.md:
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
Core value: "[from PROJECT.md]"
|
|
167
|
+
|
|
168
|
+
Requirements that directly support core value:
|
|
169
|
+
- [requirement 1]
|
|
170
|
+
- [requirement 2]
|
|
171
|
+
|
|
172
|
+
⚠️ Warning: Core value may not be fully covered by selected requirements.
|
|
173
|
+
Missing coverage: [gap description]
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
**If gap detected:**
|
|
177
|
+
|
|
178
|
+
Use AskUserQuestion:
|
|
179
|
+
- header: "Core value"
|
|
180
|
+
- question: "Core value '[X]' may need additional requirements. Add coverage?"
|
|
181
|
+
- options:
|
|
182
|
+
- "Yes, suggest requirements" — Claude suggests, user confirms
|
|
183
|
+
- "No, it's covered" — Proceed
|
|
184
|
+
- "Adjust core value" — User provides updated core value
|
|
185
|
+
</step>
|
|
186
|
+
|
|
187
|
+
<step name="generate_requirements">
|
|
188
|
+
Create `.planning/REQUIREMENTS.md` using template.
|
|
189
|
+
|
|
190
|
+
**Structure:**
|
|
191
|
+
- Header with project name and date
|
|
192
|
+
- v1 Requirements grouped by category (checkboxes)
|
|
193
|
+
- v2 Requirements (deferred, no checkboxes yet)
|
|
194
|
+
- Out of Scope (explicit exclusions with reasoning)
|
|
195
|
+
- Traceability section (empty, filled by create-roadmap)
|
|
196
|
+
|
|
197
|
+
**Requirement format:**
|
|
198
|
+
```markdown
|
|
199
|
+
### [Category]
|
|
200
|
+
|
|
201
|
+
- [ ] **[REQ-ID]**: [Requirement description]
|
|
202
|
+
- [ ] **[REQ-ID]**: [Requirement description]
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
**REQ-ID format:** `[CATEGORY]-[NUMBER]`
|
|
206
|
+
- AUTH-01, AUTH-02
|
|
207
|
+
- CONTENT-01, CONTENT-02
|
|
208
|
+
- SOCIAL-01, SOCIAL-02
|
|
209
|
+
|
|
210
|
+
IDs enable traceability from roadmap phases.
|
|
211
|
+
</step>
|
|
212
|
+
|
|
213
|
+
<step name="summarize">
|
|
214
|
+
Present the FULL requirements list before committing — not counts, the actual requirements:
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
## v1 Requirements
|
|
218
|
+
|
|
219
|
+
### [Category 1]
|
|
220
|
+
- [ ] **[REQ-ID]**: [Full requirement description]
|
|
221
|
+
- [ ] **[REQ-ID]**: [Full requirement description]
|
|
222
|
+
- [ ] **[REQ-ID]**: [Full requirement description]
|
|
223
|
+
|
|
224
|
+
### [Category 2]
|
|
225
|
+
- [ ] **[REQ-ID]**: [Full requirement description]
|
|
226
|
+
- [ ] **[REQ-ID]**: [Full requirement description]
|
|
227
|
+
|
|
228
|
+
[... list ALL v1 requirements ...]
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## v2 (Deferred)
|
|
233
|
+
|
|
234
|
+
### [Category]
|
|
235
|
+
- [REQ-ID]: [Requirement description]
|
|
236
|
+
- [REQ-ID]: [Requirement description]
|
|
237
|
+
|
|
238
|
+
[... list ALL v2 requirements ...]
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
## Out of Scope
|
|
243
|
+
|
|
244
|
+
- [Feature]: [reason]
|
|
245
|
+
- [Feature]: [reason]
|
|
246
|
+
|
|
247
|
+
[... list ALL exclusions ...]
|
|
248
|
+
|
|
249
|
+
---
|
|
250
|
+
|
|
251
|
+
**Core Value:** [from PROJECT.md]
|
|
252
|
+
**Alignment:** ✓ Covered / ⚠️ Gaps noted
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
Does this capture what you're building? (yes / adjust)
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Critical:** Show every single requirement. The user must see exactly what they're committing to. Counts are useless — list the actual items.
|
|
260
|
+
|
|
261
|
+
If "adjust": Return to scope_categories or identify_gaps as appropriate.
|
|
262
|
+
</step>
|
|
263
|
+
|
|
264
|
+
<step name="git_commit">
|
|
265
|
+
Commit requirements:
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
git add .planning/REQUIREMENTS.md
|
|
269
|
+
git commit -m "$(cat <<'EOF'
|
|
270
|
+
docs: define v1 requirements
|
|
271
|
+
|
|
272
|
+
[X] requirements across [N] categories.
|
|
273
|
+
[Y] requirements deferred to v2.
|
|
274
|
+
|
|
275
|
+
Core value: [from PROJECT.md]
|
|
276
|
+
EOF
|
|
277
|
+
)"
|
|
278
|
+
```
|
|
279
|
+
</step>
|
|
280
|
+
|
|
281
|
+
<step name="offer_next">
|
|
282
|
+
```
|
|
283
|
+
Requirements defined:
|
|
284
|
+
|
|
285
|
+
- Requirements: .planning/REQUIREMENTS.md
|
|
286
|
+
- v1 scope: [X] requirements across [N] categories
|
|
287
|
+
- v2 deferred: [Y] requirements
|
|
288
|
+
- Out of scope: [Z] exclusions
|
|
289
|
+
|
|
290
|
+
---
|
|
291
|
+
|
|
292
|
+
## ▶ Next Up
|
|
293
|
+
|
|
294
|
+
**Create roadmap** — phases mapped to requirements
|
|
295
|
+
|
|
296
|
+
`/ms:create-roadmap`
|
|
297
|
+
|
|
298
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
```
|
|
302
|
+
</step>
|
|
303
|
+
|
|
304
|
+
</process>
|
|
305
|
+
|
|
306
|
+
<quality_criteria>
|
|
307
|
+
**Good requirements:**
|
|
308
|
+
- Specific and testable ("User can reset password via email link")
|
|
309
|
+
- User-centric ("User can X" not "System does Y")
|
|
310
|
+
- Atomic (one capability per requirement)
|
|
311
|
+
- Independent where possible (minimal dependencies)
|
|
312
|
+
|
|
313
|
+
**Bad requirements:**
|
|
314
|
+
- Vague ("Handle authentication")
|
|
315
|
+
- Technical implementation ("Use bcrypt for passwords")
|
|
316
|
+
- Compound ("User can login and manage profile and change settings")
|
|
317
|
+
- Dependent on unstated assumptions
|
|
318
|
+
</quality_criteria>
|
|
319
|
+
|
|
320
|
+
<success_criteria>
|
|
321
|
+
- [ ] PROJECT.md core value extracted
|
|
322
|
+
- [ ] Features gathered (from research OR conversation)
|
|
323
|
+
- [ ] All categories presented to user
|
|
324
|
+
- [ ] User scoped each category (v1/v2/out of scope)
|
|
325
|
+
- [ ] User had opportunity to add requirements
|
|
326
|
+
- [ ] Core value alignment validated
|
|
327
|
+
- [ ] REQUIREMENTS.md created with REQ-IDs
|
|
328
|
+
- [ ] v1, v2, and out of scope clearly separated
|
|
329
|
+
- [ ] Requirements committed to git
|
|
330
|
+
</success_criteria>
|