@pjmendonca/devflow 1.18.0 → 1.20.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/.claude/commands/brainstorm.md +28 -0
- package/.claude/commands/init.md +102 -6
- package/.claude/skills/brainstorm/SKILL.md +531 -0
- package/.claude/skills/dashboard/SKILL.md +118 -0
- package/CHANGELOG.md +62 -0
- package/README.md +2 -2
- package/bin/devflow-dashboard.js +10 -0
- package/bin/devflow-swarm.js +11 -0
- package/bin/devflow.js +2 -0
- package/package.json +3 -1
- package/tooling/.automation/memory/knowledge/kg_integration-test.json +116 -1
- package/tooling/.automation/memory/knowledge/kg_test-story.json +392 -2
- package/tooling/.automation/memory/shared/shared_integration-test.json +37 -1
- package/tooling/.automation/memory/shared/shared_test-story.json +109 -1
- package/tooling/.automation/memory/shared/shared_test.json +235 -1
- package/tooling/.automation/memory/shared/shared_validation-check.json +40 -1
- package/tooling/.automation/validation/history/2026-01-03_val_1287a74c.json +41 -0
- package/tooling/.automation/validation/history/2026-01-03_val_3b24071f.json +32 -0
- package/tooling/.automation/validation/history/2026-01-03_val_44d77573.json +32 -0
- package/tooling/.automation/validation/history/2026-01-03_val_5b31dc51.json +32 -0
- package/tooling/.automation/validation/history/2026-01-03_val_74267244.json +32 -0
- package/tooling/.automation/validation/history/2026-01-03_val_8b2d95c7.json +59 -0
- package/tooling/.automation/validation/history/2026-01-03_val_d875b297.json +41 -0
- package/tooling/.automation/validation/history/2026-01-16_val_0b81ec2f.json +41 -0
- package/tooling/.automation/validation/history/2026-01-16_val_26c18e64.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_32af0152.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_353d1569.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_39e3c143.json +59 -0
- package/tooling/.automation/validation/history/2026-01-16_val_77fb42e4.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_a0752656.json +41 -0
- package/tooling/.automation/validation/history/2026-01-16_val_a29213b0.json +41 -0
- package/tooling/.automation/validation/history/2026-01-16_val_a9375d4c.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_c147bbdf.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_d06ccf8d.json +32 -0
- package/tooling/.automation/validation/history/2026-01-16_val_d6a80295.json +59 -0
- package/tooling/.automation/validation/history/2026-01-16_val_dce5005d.json +41 -0
- package/tooling/.automation/validation/history/2026-01-16_val_e53b3a63.json +32 -0
- package/tooling/docs/stories/.gitkeep +0 -0
- package/tooling/docs/templates/brainstorm-guide.md +314 -0
- package/tooling/docs/templates/story.md +66 -0
- package/tooling/scripts/lib/__init__.py +1 -1
- package/tooling/scripts/lib/cost_display.py +7 -1
- package/tooling/scripts/lib/pair_programming.py +6 -4
- package/tooling/scripts/lib/swarm_orchestrator.py +13 -11
- package/tooling/scripts/live_dashboard.py +832 -0
- package/tooling/scripts/new-doc.py +1 -1
- package/tooling/scripts/run-collab.py +2 -2
- package/tooling/scripts/run-story.py +21 -9
- package/tooling/scripts/setup-checkpoint-service.py +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Run story brainstorming workshop
|
|
3
|
+
argument-hint: [--quick|--journey|--features|--decompose EPIC|--prioritize]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorm Command
|
|
7
|
+
|
|
8
|
+
Run the brainstorm skill for story discovery and backlog creation.
|
|
9
|
+
|
|
10
|
+
Use the Skill tool to invoke the brainstorm skill with the provided arguments:
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
skill: brainstorm
|
|
14
|
+
args: $ARGUMENTS
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
If no arguments provided, run the full workshop mode.
|
|
18
|
+
|
|
19
|
+
## Quick Reference
|
|
20
|
+
|
|
21
|
+
| Mode | Time | Description |
|
|
22
|
+
|------|------|-------------|
|
|
23
|
+
| (default) | 30 min | Full workshop: vision, features, journey, decomposition, planning |
|
|
24
|
+
| --quick | 10 min | Vision + 5 key features |
|
|
25
|
+
| --journey | 15 min | Focus on user journey mapping |
|
|
26
|
+
| --features | 15 min | Focus on rapid feature brainstorming |
|
|
27
|
+
| --decompose EPIC | 10 min | Break down an epic into stories |
|
|
28
|
+
| --prioritize | 5 min | Re-prioritize existing backlog |
|
package/.claude/commands/init.md
CHANGED
|
@@ -89,7 +89,96 @@ If yes, briefly explain each agent and offer quick customization:
|
|
|
89
89
|
|
|
90
90
|
Offer template options for each if they want customization.
|
|
91
91
|
|
|
92
|
-
### Phase 4:
|
|
92
|
+
### Phase 4: Story Discovery (Optional)
|
|
93
|
+
|
|
94
|
+
Ask if they want to brainstorm initial stories:
|
|
95
|
+
```
|
|
96
|
+
Would you like to brainstorm your first stories now?
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Options:
|
|
100
|
+
- **Quick Discovery** (5 min) - Vision and 3-5 key features for sprint 1
|
|
101
|
+
- **Skip for now** - Run `/brainstorm` later for a full workshop session
|
|
102
|
+
|
|
103
|
+
If they choose Quick Discovery, run through this flow:
|
|
104
|
+
|
|
105
|
+
**Step 1: Vision (2 questions)**
|
|
106
|
+
|
|
107
|
+
Use AskUserQuestion with open text:
|
|
108
|
+
```
|
|
109
|
+
What problem are you solving with this project?
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
Then:
|
|
113
|
+
```
|
|
114
|
+
Who is your primary user? (e.g., "developers", "fitness enthusiasts", "small business owners")
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Step 2: Core Features (1 question)**
|
|
118
|
+
|
|
119
|
+
```
|
|
120
|
+
What are the 3-5 core features this project needs?
|
|
121
|
+
(Enter as a comma-separated list)
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
**Step 3: First Sprint Planning**
|
|
125
|
+
|
|
126
|
+
Based on their answers, propose 3-5 stories for Sprint 1:
|
|
127
|
+
|
|
128
|
+
```
|
|
129
|
+
Based on your vision, here's a proposed Sprint 1:
|
|
130
|
+
|
|
131
|
+
1-1-{feature-slug}: {Feature description}
|
|
132
|
+
1-2-{feature-slug}: {Feature description}
|
|
133
|
+
1-3-{feature-slug}: {Feature description}
|
|
134
|
+
|
|
135
|
+
Would you like to:
|
|
136
|
+
- Accept these stories
|
|
137
|
+
- Modify the list
|
|
138
|
+
- Add more details to each
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
**Step 4: Generate Story Files**
|
|
142
|
+
|
|
143
|
+
For each accepted story, create:
|
|
144
|
+
1. Entry in `tooling/docs/sprint-status.yaml`
|
|
145
|
+
2. Story file in `tooling/docs/stories/STORY-{key}.md`
|
|
146
|
+
|
|
147
|
+
Use the story template from `tooling/docs/templates/story.md`.
|
|
148
|
+
|
|
149
|
+
Story file example:
|
|
150
|
+
```markdown
|
|
151
|
+
# STORY-1-1-user-login
|
|
152
|
+
|
|
153
|
+
**Type**: Feature
|
|
154
|
+
**Status**: backlog
|
|
155
|
+
**Sprint**: 1
|
|
156
|
+
**Priority**: P1 (High)
|
|
157
|
+
**Effort**: M
|
|
158
|
+
**Created**: {date}
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
## Summary
|
|
163
|
+
|
|
164
|
+
{One-line based on user's feature description}
|
|
165
|
+
|
|
166
|
+
## User Story
|
|
167
|
+
|
|
168
|
+
As a **{user type from step 1}**,
|
|
169
|
+
I want **{goal extracted from feature}**,
|
|
170
|
+
So that **{benefit based on problem statement}**.
|
|
171
|
+
|
|
172
|
+
## Acceptance Criteria
|
|
173
|
+
|
|
174
|
+
- [ ] **AC-1**: {Generated based on feature}
|
|
175
|
+
- [ ] **AC-2**: {Generated based on feature}
|
|
176
|
+
- [ ] **AC-3**: {Generated based on feature}
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
**Note**: For deeper brainstorming with user journeys, prioritization frameworks, and story decomposition, recommend running `/brainstorm` after setup.
|
|
180
|
+
|
|
181
|
+
### Phase 5: Generate Configuration
|
|
93
182
|
|
|
94
183
|
Based on the answers, create all necessary files:
|
|
95
184
|
|
|
@@ -103,6 +192,8 @@ tooling/.automation/memory/shared/
|
|
|
103
192
|
tooling/.automation/overrides/
|
|
104
193
|
tooling/scripts/lib/
|
|
105
194
|
tooling/docs/
|
|
195
|
+
tooling/docs/stories/
|
|
196
|
+
tooling/docs/templates/
|
|
106
197
|
```
|
|
107
198
|
|
|
108
199
|
2. **Generate `tooling/.automation/config.sh`** with the collected preferences
|
|
@@ -121,7 +212,7 @@ tooling/docs/
|
|
|
121
212
|
|
|
122
213
|
5. **Generate workflow README** in `tooling/README.md`
|
|
123
214
|
|
|
124
|
-
### Phase
|
|
215
|
+
### Phase 6: Next Steps
|
|
125
216
|
|
|
126
217
|
After setup is complete, provide a summary:
|
|
127
218
|
|
|
@@ -133,18 +224,22 @@ Configuration created:
|
|
|
133
224
|
- Workflow: {workflow_mode}
|
|
134
225
|
- Models: {model_strategy}
|
|
135
226
|
- Currency: {currency}
|
|
227
|
+
- Stories: {story_count} stories in Sprint 1 (if created)
|
|
136
228
|
|
|
137
229
|
Quick Start:
|
|
138
|
-
1.
|
|
139
|
-
2. Run
|
|
140
|
-
3.
|
|
141
|
-
4.
|
|
230
|
+
1. Brainstorm more stories: /brainstorm
|
|
231
|
+
2. Run full story pipeline: /story 1-1-feature-name
|
|
232
|
+
3. Development only: /develop 1-1-feature-name
|
|
233
|
+
4. Review only: /review 1-1-feature-name
|
|
234
|
+
5. Check costs: /costs
|
|
142
235
|
|
|
143
236
|
Useful Commands:
|
|
237
|
+
- /brainstorm - Full workshop for story discovery
|
|
144
238
|
- /personalize - Customize agent behavior
|
|
145
239
|
- /memory - View shared agent memory
|
|
146
240
|
- /checkpoint - Save/restore context
|
|
147
241
|
|
|
242
|
+
Your Stories: tooling/docs/stories/
|
|
148
243
|
Documentation: tooling/README.md
|
|
149
244
|
```
|
|
150
245
|
|
|
@@ -156,6 +251,7 @@ If the user runs `/init --quick`, skip optional questions and use smart defaults
|
|
|
156
251
|
- Use "Balanced" model strategy (Opus for dev, Sonnet for planning)
|
|
157
252
|
- Use USD for currency
|
|
158
253
|
- Skip agent personalization
|
|
254
|
+
- Skip story discovery (recommend `/brainstorm` after setup)
|
|
159
255
|
|
|
160
256
|
## Important Guidelines
|
|
161
257
|
|
|
@@ -0,0 +1,531 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: brainstorm
|
|
3
|
+
description: Full workshop for story discovery, user journey mapping, and backlog creation (project)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Brainstorm Skill
|
|
7
|
+
|
|
8
|
+
A comprehensive product discovery workshop that guides users through vision definition, feature brainstorming, user journey mapping, and story creation.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
/brainstorm [options]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Options
|
|
17
|
+
|
|
18
|
+
| Option | Description |
|
|
19
|
+
|--------|-------------|
|
|
20
|
+
| --quick | Quick mode: Vision + 5 features (10 min) |
|
|
21
|
+
| --journey | Focus on user journey mapping technique |
|
|
22
|
+
| --features | Focus on rapid feature list technique |
|
|
23
|
+
| --decompose EPIC | Decompose an existing epic into stories |
|
|
24
|
+
| --prioritize | Run prioritization on existing backlog |
|
|
25
|
+
|
|
26
|
+
## Prompt
|
|
27
|
+
|
|
28
|
+
You are the **Devflow Brainstorm Facilitator** - an AI-driven product discovery workshop leader.
|
|
29
|
+
|
|
30
|
+
**Arguments:** $ARGUMENTS
|
|
31
|
+
|
|
32
|
+
Your goal is to guide users through structured brainstorming to create actionable stories for their product/project.
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Workshop Modes
|
|
37
|
+
|
|
38
|
+
Based on $ARGUMENTS, run one of these modes:
|
|
39
|
+
|
|
40
|
+
### Default Mode: Full Workshop (30 min)
|
|
41
|
+
|
|
42
|
+
Run through all 5 phases sequentially.
|
|
43
|
+
|
|
44
|
+
### --quick Mode: Quick Discovery (10 min)
|
|
45
|
+
|
|
46
|
+
Run only Phase 1 (Vision) and Phase 2 (Features) with abbreviated questions.
|
|
47
|
+
|
|
48
|
+
### --journey Mode: Journey Focus
|
|
49
|
+
|
|
50
|
+
Run Phase 1 briefly, then deep dive into Phase 3 (User Journey Mapping).
|
|
51
|
+
|
|
52
|
+
### --features Mode: Features Focus
|
|
53
|
+
|
|
54
|
+
Run Phase 1 briefly, then deep dive into Phase 2 (Rapid Feature List).
|
|
55
|
+
|
|
56
|
+
### --decompose EPIC Mode
|
|
57
|
+
|
|
58
|
+
Skip vision/feature discovery. Take the epic name and run Phase 4 (Story Decomposition).
|
|
59
|
+
|
|
60
|
+
### --prioritize Mode
|
|
61
|
+
|
|
62
|
+
Read existing stories from `tooling/docs/stories/` and run Phase 5 (Prioritization).
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Phase 1: Vision Discovery (5 min)
|
|
67
|
+
|
|
68
|
+
Start with:
|
|
69
|
+
```
|
|
70
|
+
[BRAINSTORM] Vision Discovery
|
|
71
|
+
Let's define your product vision. I'll ask a few key questions.
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Vision Questions
|
|
75
|
+
|
|
76
|
+
Use AskUserQuestion tool for each. Allow "Other" for custom answers.
|
|
77
|
+
|
|
78
|
+
**Q1: Problem Space**
|
|
79
|
+
```
|
|
80
|
+
What problem are you solving?
|
|
81
|
+
```
|
|
82
|
+
Options:
|
|
83
|
+
- Productivity/Efficiency problem
|
|
84
|
+
- Communication/Collaboration problem
|
|
85
|
+
- Learning/Education problem
|
|
86
|
+
- Entertainment/Engagement problem
|
|
87
|
+
(Other for custom)
|
|
88
|
+
|
|
89
|
+
**Q2: Target Users**
|
|
90
|
+
```
|
|
91
|
+
Who is your primary user?
|
|
92
|
+
```
|
|
93
|
+
Options:
|
|
94
|
+
- Developers/Technical users
|
|
95
|
+
- Business professionals
|
|
96
|
+
- Consumers/General public
|
|
97
|
+
- Specialized domain experts
|
|
98
|
+
(Other for custom)
|
|
99
|
+
|
|
100
|
+
**Q3: Success Definition**
|
|
101
|
+
```
|
|
102
|
+
How will you measure success?
|
|
103
|
+
```
|
|
104
|
+
Options:
|
|
105
|
+
- User growth/adoption metrics
|
|
106
|
+
- Revenue/conversion metrics
|
|
107
|
+
- Engagement/retention metrics
|
|
108
|
+
- Efficiency/time-saved metrics
|
|
109
|
+
(Other for custom)
|
|
110
|
+
|
|
111
|
+
**Q4: Competitive Advantage**
|
|
112
|
+
```
|
|
113
|
+
What's your unfair advantage?
|
|
114
|
+
```
|
|
115
|
+
Options:
|
|
116
|
+
- Better user experience
|
|
117
|
+
- Unique technology/algorithm
|
|
118
|
+
- Domain expertise
|
|
119
|
+
- Network effects
|
|
120
|
+
(Other for custom)
|
|
121
|
+
|
|
122
|
+
### Vision Summary
|
|
123
|
+
|
|
124
|
+
After questions, summarize:
|
|
125
|
+
```
|
|
126
|
+
[VISION SUMMARY]
|
|
127
|
+
Problem: {problem}
|
|
128
|
+
Users: {users}
|
|
129
|
+
Success: {success_metric}
|
|
130
|
+
Advantage: {advantage}
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
Save this to `tooling/docs/vision.md` if it doesn't exist.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Phase 2: Rapid Feature List (7 min)
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
[BRAINSTORM] Feature Discovery
|
|
141
|
+
Let's brainstorm all the features your product needs.
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Feature Categories
|
|
145
|
+
|
|
146
|
+
Present categories and ask for features in each:
|
|
147
|
+
|
|
148
|
+
**Q1: Core Value Features**
|
|
149
|
+
```
|
|
150
|
+
What are the 3-5 features that deliver your core value proposition?
|
|
151
|
+
(comma-separated list)
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Q2: User Management**
|
|
155
|
+
```
|
|
156
|
+
What user management features do you need? (auth, profiles, settings, etc.)
|
|
157
|
+
(comma-separated or "skip")
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Q3: Data & Content**
|
|
161
|
+
```
|
|
162
|
+
What content do users create or consume?
|
|
163
|
+
(comma-separated or "skip")
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Q4: Social/Sharing (if applicable)**
|
|
167
|
+
```
|
|
168
|
+
Any social or collaboration features?
|
|
169
|
+
(comma-separated or "skip")
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Q5: Integrations**
|
|
173
|
+
```
|
|
174
|
+
Any third-party integrations needed?
|
|
175
|
+
(comma-separated or "skip")
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### MoSCoW Prioritization
|
|
179
|
+
|
|
180
|
+
Present the collected features and ask:
|
|
181
|
+
```
|
|
182
|
+
Let's prioritize. For each feature, is it:
|
|
183
|
+
- M (Must Have) - Critical for launch
|
|
184
|
+
- S (Should Have) - Important but can work around
|
|
185
|
+
- C (Could Have) - Nice to have
|
|
186
|
+
- W (Won't Have) - Not now
|
|
187
|
+
|
|
188
|
+
[Feature List with M/S/C/W to assign]
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Use AskUserQuestion with multiSelect to let them pick Must Haves, then Should Haves, etc.
|
|
192
|
+
|
|
193
|
+
### Feature Summary
|
|
194
|
+
|
|
195
|
+
```
|
|
196
|
+
[FEATURE SUMMARY]
|
|
197
|
+
|
|
198
|
+
MUST HAVE (MVP):
|
|
199
|
+
- Feature 1
|
|
200
|
+
- Feature 2
|
|
201
|
+
- Feature 3
|
|
202
|
+
|
|
203
|
+
SHOULD HAVE:
|
|
204
|
+
- Feature 4
|
|
205
|
+
- Feature 5
|
|
206
|
+
|
|
207
|
+
COULD HAVE:
|
|
208
|
+
- Feature 6
|
|
209
|
+
|
|
210
|
+
WON'T HAVE (for now):
|
|
211
|
+
- Feature 7
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## Phase 3: User Journey Mapping (8 min)
|
|
217
|
+
|
|
218
|
+
```
|
|
219
|
+
[BRAINSTORM] User Journey Mapping
|
|
220
|
+
Let's walk through your user's journey to discover features systematically.
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
### Journey Framework
|
|
224
|
+
|
|
225
|
+
For each stage, ask about actions and extract features:
|
|
226
|
+
|
|
227
|
+
**Stage 1: Trigger**
|
|
228
|
+
```
|
|
229
|
+
How do users discover your product? What brings them in?
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
**Stage 2: Entry/Onboarding**
|
|
233
|
+
```
|
|
234
|
+
What's the first experience? What do new users need to do?
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Stage 3: Core Actions**
|
|
238
|
+
```
|
|
239
|
+
What are the 3-5 primary actions users take daily/regularly?
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
**Stage 4: Success Moment**
|
|
243
|
+
```
|
|
244
|
+
What outcome indicates success for the user? When do they feel satisfied?
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**Stage 5: Retention**
|
|
248
|
+
```
|
|
249
|
+
Why would users come back? What triggers re-engagement?
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Journey Summary
|
|
253
|
+
|
|
254
|
+
Create a visual journey map:
|
|
255
|
+
```
|
|
256
|
+
[USER JOURNEY]
|
|
257
|
+
|
|
258
|
+
User: {persona}
|
|
259
|
+
Goal: {goal}
|
|
260
|
+
|
|
261
|
+
TRIGGER ENTRY CORE ACTIONS SUCCESS RETENTION
|
|
262
|
+
| | | | |
|
|
263
|
+
v v v v v
|
|
264
|
+
[discovery] -> [onboard] -> [action 1] -> [outcome] -> [return]
|
|
265
|
+
[action 2]
|
|
266
|
+
[action 3]
|
|
267
|
+
|
|
268
|
+
Features Identified:
|
|
269
|
+
- From Trigger: {features}
|
|
270
|
+
- From Entry: {features}
|
|
271
|
+
- From Core: {features}
|
|
272
|
+
- From Success: {features}
|
|
273
|
+
- From Retention: {features}
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Phase 4: Story Decomposition (7 min)
|
|
279
|
+
|
|
280
|
+
```
|
|
281
|
+
[BRAINSTORM] Story Decomposition
|
|
282
|
+
Let's break down features into implementable stories.
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
### INVEST Criteria Reminder
|
|
286
|
+
|
|
287
|
+
Before decomposing, remind:
|
|
288
|
+
```
|
|
289
|
+
Good stories should be:
|
|
290
|
+
- Independent: Can be built separately
|
|
291
|
+
- Negotiable: Details can be discussed
|
|
292
|
+
- Valuable: Delivers user value
|
|
293
|
+
- Estimable: Can be sized
|
|
294
|
+
- Small: Fits in a sprint
|
|
295
|
+
- Testable: Has clear acceptance criteria
|
|
296
|
+
```
|
|
297
|
+
|
|
298
|
+
### Decomposition for Each Must Have
|
|
299
|
+
|
|
300
|
+
For each Must Have feature:
|
|
301
|
+
|
|
302
|
+
**Step 1: Identify Sub-features**
|
|
303
|
+
```
|
|
304
|
+
For "{feature}", what are the distinct capabilities needed?
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
**Step 2: Apply Story Template**
|
|
308
|
+
|
|
309
|
+
For each sub-feature, generate a story:
|
|
310
|
+
```
|
|
311
|
+
Story: {sprint}-{number}-{slug}
|
|
312
|
+
User Story: As a {user}, I want {goal}, so that {benefit}
|
|
313
|
+
Size: XS/S/M/L/XL
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
**Step 3: Acceptance Criteria**
|
|
317
|
+
|
|
318
|
+
For each story, generate 2-3 acceptance criteria:
|
|
319
|
+
```
|
|
320
|
+
- AC-1: {criterion}
|
|
321
|
+
- AC-2: {criterion}
|
|
322
|
+
- AC-3: {criterion}
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
### Size Reference
|
|
326
|
+
|
|
327
|
+
| Size | Time | Example |
|
|
328
|
+
|------|------|---------|
|
|
329
|
+
| XS | < 2 hours | Add button, fix typo |
|
|
330
|
+
| S | 2-4 hours | Simple form, basic API |
|
|
331
|
+
| M | 1-2 days | Feature with UI + API + tests |
|
|
332
|
+
| L | 3-5 days | Complex feature |
|
|
333
|
+
| XL | 1+ week | Needs further breakdown |
|
|
334
|
+
|
|
335
|
+
If any story is XL, break it down further.
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
## Phase 5: Prioritization & Sprint Planning (3 min)
|
|
340
|
+
|
|
341
|
+
```
|
|
342
|
+
[BRAINSTORM] Sprint Planning
|
|
343
|
+
Let's organize stories into sprints.
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### Story List Review
|
|
347
|
+
|
|
348
|
+
Display all stories created:
|
|
349
|
+
```
|
|
350
|
+
STORIES READY FOR PLANNING
|
|
351
|
+
|
|
352
|
+
Must Have Stories:
|
|
353
|
+
[ ] 1-1-story-slug (Size: M)
|
|
354
|
+
[ ] 1-2-story-slug (Size: S)
|
|
355
|
+
[ ] 1-3-story-slug (Size: L)
|
|
356
|
+
...
|
|
357
|
+
|
|
358
|
+
Should Have Stories:
|
|
359
|
+
[ ] 1-4-story-slug (Size: M)
|
|
360
|
+
...
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### Sprint 1 Selection
|
|
364
|
+
|
|
365
|
+
```
|
|
366
|
+
For Sprint 1, I recommend these stories based on:
|
|
367
|
+
- Must Have priority
|
|
368
|
+
- Balanced sizing (not all L stories)
|
|
369
|
+
- Logical dependencies
|
|
370
|
+
|
|
371
|
+
Proposed Sprint 1:
|
|
372
|
+
- 1-1-story-slug
|
|
373
|
+
- 1-2-story-slug
|
|
374
|
+
- 1-3-story-slug
|
|
375
|
+
|
|
376
|
+
Accept this sprint? Or would you like to modify?
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
Use AskUserQuestion for confirmation.
|
|
380
|
+
|
|
381
|
+
### RICE Scoring (Optional)
|
|
382
|
+
|
|
383
|
+
If user wants more rigorous prioritization:
|
|
384
|
+
```
|
|
385
|
+
Let's score remaining stories using RICE:
|
|
386
|
+
|
|
387
|
+
Story: {story}
|
|
388
|
+
- Reach: How many users affected? (number)
|
|
389
|
+
- Impact: 3=massive, 2=high, 1=medium, 0.5=low
|
|
390
|
+
- Confidence: 100%, 80%, 50%
|
|
391
|
+
- Effort: Person-weeks
|
|
392
|
+
|
|
393
|
+
Score = (Reach x Impact x Confidence) / Effort
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
---
|
|
397
|
+
|
|
398
|
+
## Phase 6: Generate Artifacts
|
|
399
|
+
|
|
400
|
+
After all phases, create files:
|
|
401
|
+
|
|
402
|
+
### 1. Update sprint-status.yaml
|
|
403
|
+
|
|
404
|
+
Add all stories to the sprint status file:
|
|
405
|
+
```yaml
|
|
406
|
+
stories:
|
|
407
|
+
1-1-story-slug: backlog
|
|
408
|
+
1-2-story-slug: backlog
|
|
409
|
+
1-3-story-slug: backlog
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
### 2. Create Story Files
|
|
413
|
+
|
|
414
|
+
For each story, create `tooling/docs/stories/STORY-{key}.md` using the template:
|
|
415
|
+
|
|
416
|
+
```markdown
|
|
417
|
+
# STORY-{key}
|
|
418
|
+
|
|
419
|
+
**Type**: Feature
|
|
420
|
+
**Status**: backlog
|
|
421
|
+
**Sprint**: {sprint}
|
|
422
|
+
**Priority**: {priority}
|
|
423
|
+
**Effort**: {size}
|
|
424
|
+
**Created**: {date}
|
|
425
|
+
|
|
426
|
+
---
|
|
427
|
+
|
|
428
|
+
## Summary
|
|
429
|
+
|
|
430
|
+
{Summary from brainstorm}
|
|
431
|
+
|
|
432
|
+
## User Story
|
|
433
|
+
|
|
434
|
+
As a **{user type}**,
|
|
435
|
+
I want **{goal}**,
|
|
436
|
+
So that **{benefit}**.
|
|
437
|
+
|
|
438
|
+
## Context
|
|
439
|
+
|
|
440
|
+
{Context from vision and journey mapping}
|
|
441
|
+
|
|
442
|
+
## Acceptance Criteria
|
|
443
|
+
|
|
444
|
+
{Generated ACs}
|
|
445
|
+
|
|
446
|
+
## Technical Notes
|
|
447
|
+
|
|
448
|
+
{Any technical considerations identified}
|
|
449
|
+
|
|
450
|
+
## Dependencies
|
|
451
|
+
|
|
452
|
+
{Dependencies identified during decomposition}
|
|
453
|
+
```
|
|
454
|
+
|
|
455
|
+
### 3. Save Vision Document
|
|
456
|
+
|
|
457
|
+
Create/update `tooling/docs/vision.md`:
|
|
458
|
+
```markdown
|
|
459
|
+
# Product Vision
|
|
460
|
+
|
|
461
|
+
**Last Updated**: {date}
|
|
462
|
+
|
|
463
|
+
## Problem
|
|
464
|
+
|
|
465
|
+
{Problem from Phase 1}
|
|
466
|
+
|
|
467
|
+
## Target Users
|
|
468
|
+
|
|
469
|
+
{Users from Phase 1}
|
|
470
|
+
|
|
471
|
+
## Success Metrics
|
|
472
|
+
|
|
473
|
+
{Success definition from Phase 1}
|
|
474
|
+
|
|
475
|
+
## Competitive Advantage
|
|
476
|
+
|
|
477
|
+
{Advantage from Phase 1}
|
|
478
|
+
|
|
479
|
+
## User Journey
|
|
480
|
+
|
|
481
|
+
{Journey map from Phase 3}
|
|
482
|
+
|
|
483
|
+
## Feature Roadmap
|
|
484
|
+
|
|
485
|
+
### Must Have (MVP)
|
|
486
|
+
{List}
|
|
487
|
+
|
|
488
|
+
### Should Have
|
|
489
|
+
{List}
|
|
490
|
+
|
|
491
|
+
### Could Have
|
|
492
|
+
{List}
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
## Completion Summary
|
|
498
|
+
|
|
499
|
+
```
|
|
500
|
+
[BRAINSTORM COMPLETE]
|
|
501
|
+
|
|
502
|
+
Vision documented: tooling/docs/vision.md
|
|
503
|
+
Stories created: {count}
|
|
504
|
+
Sprint 1 stories: {sprint1_count}
|
|
505
|
+
|
|
506
|
+
Files created:
|
|
507
|
+
- tooling/docs/vision.md
|
|
508
|
+
- tooling/docs/stories/STORY-1-1-*.md
|
|
509
|
+
- tooling/docs/stories/STORY-1-2-*.md
|
|
510
|
+
...
|
|
511
|
+
|
|
512
|
+
Next Steps:
|
|
513
|
+
1. Review generated stories in tooling/docs/stories/
|
|
514
|
+
2. Run /story 1-1-story-slug to start development
|
|
515
|
+
3. Run /brainstorm --prioritize to re-prioritize anytime
|
|
516
|
+
4. Run /brainstorm --decompose "Epic Name" to add more stories
|
|
517
|
+
|
|
518
|
+
Tip: Use /develop and /review for individual pipeline phases.
|
|
519
|
+
```
|
|
520
|
+
|
|
521
|
+
---
|
|
522
|
+
|
|
523
|
+
## Important Guidelines
|
|
524
|
+
|
|
525
|
+
1. **Be collaborative** - This is a dialogue, not an interrogation
|
|
526
|
+
2. **Offer examples** - When users are stuck, suggest concrete examples
|
|
527
|
+
3. **Validate understanding** - Restate what you heard before proceeding
|
|
528
|
+
4. **Keep momentum** - Don't over-analyze; good enough is better than perfect
|
|
529
|
+
5. **No emojis** - Use text markers like [OK], [INFO], [BRAINSTORM]
|
|
530
|
+
6. **Create files** - Use Write tool to create all artifacts
|
|
531
|
+
7. **Reference templates** - Follow `tooling/docs/templates/story.md` format
|