@morozinc/opencode-bmad-plugin 0.0.0-stage → 0.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.
- package/LICENSE +31 -0
- package/NOTICE.md +6 -0
- package/README.md +64 -2
- package/dist/gui-experimental.cjs +64 -0
- package/docs/screenshots/artifact-storage.png +0 -0
- package/package.json +53 -4
- package/skills/bmad-code-review/SKILL.md +23 -0
- package/skills/bmad-code-review/reference/SKILL.md +90 -0
- package/skills/bmad-code-review/reference/customize.toml +41 -0
- package/skills/bmad-code-review/reference/steps/step-01-gather-context.md +85 -0
- package/skills/bmad-code-review/reference/steps/step-02-review.md +35 -0
- package/skills/bmad-code-review/reference/steps/step-03-triage.md +49 -0
- package/skills/bmad-code-review/reference/steps/step-04-present.md +132 -0
- package/skills/bmad-create-architecture/SKILL.md +23 -0
- package/skills/bmad-create-architecture/reference/SKILL.md +74 -0
- package/skills/bmad-create-architecture/reference/architecture-decision-template.md +12 -0
- package/skills/bmad-create-architecture/reference/customize.toml +41 -0
- package/skills/bmad-create-architecture/reference/data/domain-complexity.csv +13 -0
- package/skills/bmad-create-architecture/reference/data/project-types.csv +7 -0
- package/skills/bmad-create-architecture/reference/steps/step-01-init.md +153 -0
- package/skills/bmad-create-architecture/reference/steps/step-01b-continue.md +173 -0
- package/skills/bmad-create-architecture/reference/steps/step-02-context.md +224 -0
- package/skills/bmad-create-architecture/reference/steps/step-03-starter.md +329 -0
- package/skills/bmad-create-architecture/reference/steps/step-04-decisions.md +318 -0
- package/skills/bmad-create-architecture/reference/steps/step-05-patterns.md +359 -0
- package/skills/bmad-create-architecture/reference/steps/step-06-structure.md +379 -0
- package/skills/bmad-create-architecture/reference/steps/step-07-validation.md +361 -0
- package/skills/bmad-create-architecture/reference/steps/step-08-complete.md +82 -0
- package/skills/bmad-create-epics-and-stories/SKILL.md +23 -0
- package/skills/bmad-create-epics-and-stories/reference/SKILL.md +93 -0
- package/skills/bmad-create-epics-and-stories/reference/customize.toml +41 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-01-validate-prerequisites.md +255 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-02-design-epics.md +242 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-03-create-stories.md +255 -0
- package/skills/bmad-create-epics-and-stories/reference/steps/step-04-final-validation.md +143 -0
- package/skills/bmad-create-epics-and-stories/reference/templates/epics-template.md +61 -0
- package/skills/bmad-create-story/SKILL.md +23 -0
- package/skills/bmad-create-story/reference/SKILL.md +429 -0
- package/skills/bmad-create-story/reference/checklist.md +357 -0
- package/skills/bmad-create-story/reference/customize.toml +41 -0
- package/skills/bmad-create-story/reference/discover-inputs.md +88 -0
- package/skills/bmad-create-story/reference/template.md +49 -0
- package/skills/bmad-dev-story/SKILL.md +23 -0
- package/skills/bmad-dev-story/reference/SKILL.md +500 -0
- package/skills/bmad-dev-story/reference/checklist.md +80 -0
- package/skills/bmad-dev-story/reference/customize.toml +41 -0
- package/skills/bmad-document-project/SKILL.md +23 -0
- package/skills/bmad-document-project/reference/SKILL.md +62 -0
- package/skills/bmad-document-project/reference/checklist.md +245 -0
- package/skills/bmad-document-project/reference/customize.toml +41 -0
- package/skills/bmad-document-project/reference/documentation-requirements.csv +12 -0
- package/skills/bmad-document-project/reference/instructions.md +128 -0
- package/skills/bmad-document-project/reference/templates/deep-dive-template.md +345 -0
- package/skills/bmad-document-project/reference/templates/index-template.md +169 -0
- package/skills/bmad-document-project/reference/templates/project-overview-template.md +103 -0
- package/skills/bmad-document-project/reference/templates/project-scan-report-schema.json +160 -0
- package/skills/bmad-document-project/reference/templates/source-tree-template.md +135 -0
- package/skills/bmad-document-project/reference/workflows/deep-dive-instructions.md +300 -0
- package/skills/bmad-document-project/reference/workflows/deep-dive-workflow.md +34 -0
- package/skills/bmad-document-project/reference/workflows/full-scan-instructions.md +1108 -0
- package/skills/bmad-document-project/reference/workflows/full-scan-workflow.md +34 -0
- package/skills/bmad-generate-project-context/SKILL.md +23 -0
- package/skills/bmad-generate-project-context/reference/SKILL.md +81 -0
- package/skills/bmad-generate-project-context/reference/customize.toml +41 -0
- package/skills/bmad-generate-project-context/reference/project-context-template.md +21 -0
- package/skills/bmad-generate-project-context/reference/steps/step-01-discover.md +186 -0
- package/skills/bmad-generate-project-context/reference/steps/step-02-generate.md +321 -0
- package/skills/bmad-generate-project-context/reference/steps/step-03-complete.md +284 -0
- package/skills/bmad-help/SKILL.md +19 -0
- package/skills/bmad-help/reference/SKILL.md +75 -0
- package/skills/bmad-prd/SKILL.md +23 -0
- package/skills/bmad-prd/reference/SKILL.md +92 -0
- package/skills/bmad-prd/reference/assets/headless-schemas.md +76 -0
- package/skills/bmad-prd/reference/assets/prd-template.md +165 -0
- package/skills/bmad-prd/reference/assets/prd-validation-checklist.md +135 -0
- package/skills/bmad-prd/reference/assets/validation-report-template.html +325 -0
- package/skills/bmad-prd/reference/customize.toml +147 -0
- package/skills/bmad-prd/reference/references/headless.md +39 -0
- package/skills/bmad-prd/reference/references/validate.md +97 -0
- package/skills/bmad-product-brief/SKILL.md +22 -0
- package/skills/bmad-product-brief/reference/SKILL.md +91 -0
- package/skills/bmad-product-brief/reference/assets/brief-template.md +41 -0
- package/skills/bmad-product-brief/reference/customize.toml +99 -0
- package/skills/bmad-quick-dev/SKILL.md +26 -0
- package/skills/bmad-quick-dev/reference/SKILL.md +111 -0
- package/skills/bmad-quick-dev/reference/compile-epic-context.md +62 -0
- package/skills/bmad-quick-dev/reference/customize.toml +41 -0
- package/skills/bmad-quick-dev/reference/spec-template.md +88 -0
- package/skills/bmad-quick-dev/reference/step-01-clarify-and-route.md +100 -0
- package/skills/bmad-quick-dev/reference/step-02-plan.md +47 -0
- package/skills/bmad-quick-dev/reference/step-03-implement.md +41 -0
- package/skills/bmad-quick-dev/reference/step-04-review.md +50 -0
- package/skills/bmad-quick-dev/reference/step-05-present.md +78 -0
- package/skills/bmad-quick-dev/reference/step-oneshot.md +71 -0
- package/skills/bmad-quick-dev/reference/sync-sprint-status.md +19 -0
- package/skills/bmad-sprint-planning/SKILL.md +23 -0
- package/skills/bmad-sprint-planning/reference/SKILL.md +300 -0
- package/skills/bmad-sprint-planning/reference/checklist.md +33 -0
- package/skills/bmad-sprint-planning/reference/customize.toml +41 -0
- package/skills/bmad-sprint-planning/reference/sprint-status-template.yaml +56 -0
- package/src/gui.tsx +127 -0
- package/src/index.ts +114 -0
- package/src/rpc.ts +27 -0
- package/src/storage.ts +21 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
# Step 3: Generate Epics and Stories
|
|
2
|
+
|
|
3
|
+
## STEP GOAL:
|
|
4
|
+
|
|
5
|
+
To generate all epics with their stories based on the approved epics_list, following the template structure exactly.
|
|
6
|
+
|
|
7
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
8
|
+
|
|
9
|
+
### Universal Rules:
|
|
10
|
+
|
|
11
|
+
- 🛑 NEVER generate content without user input
|
|
12
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
13
|
+
- 🔄 CRITICAL: Process epics sequentially
|
|
14
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
15
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
16
|
+
|
|
17
|
+
### Role Reinforcement:
|
|
18
|
+
|
|
19
|
+
- ✅ You are a product strategist and technical specifications writer
|
|
20
|
+
- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
|
|
21
|
+
- ✅ We engage in collaborative dialogue, not command-response
|
|
22
|
+
- ✅ You bring story creation and acceptance criteria expertise
|
|
23
|
+
- ✅ User brings their implementation priorities and constraints
|
|
24
|
+
|
|
25
|
+
### Step-Specific Rules:
|
|
26
|
+
|
|
27
|
+
- 🎯 Generate stories for each epic following the template exactly
|
|
28
|
+
- 🚫 FORBIDDEN to deviate from template structure
|
|
29
|
+
- 💬 Each story must have clear acceptance criteria
|
|
30
|
+
- 🚪 ENSURE each story is completable by a single dev agent
|
|
31
|
+
- 🔗 **CRITICAL: Stories MUST NOT depend on future stories within the same epic**
|
|
32
|
+
|
|
33
|
+
## EXECUTION PROTOCOLS:
|
|
34
|
+
|
|
35
|
+
- 🎯 Generate stories collaboratively with user input
|
|
36
|
+
- 💾 Append epics and stories to {planning_artifacts}/epics.md following template
|
|
37
|
+
- 📖 Process epics one at a time in sequence
|
|
38
|
+
- 🚫 FORBIDDEN to skip any epic or rush through stories
|
|
39
|
+
|
|
40
|
+
## STORY GENERATION PROCESS:
|
|
41
|
+
|
|
42
|
+
### 1. Load Approved Epic Structure
|
|
43
|
+
|
|
44
|
+
Load {planning_artifacts}/epics.md and review:
|
|
45
|
+
|
|
46
|
+
- Approved epics_list from Step 2
|
|
47
|
+
- FR coverage map
|
|
48
|
+
- All requirements (FRs, NFRs, additional, **UX Design requirements if present**)
|
|
49
|
+
- Template structure at the end of the document
|
|
50
|
+
|
|
51
|
+
**UX Design Integration**: If UX Design Requirements (UX-DRs) were extracted in Step 1, ensure they are visible during story creation. UX-DRs must be covered by stories — either within existing epics (e.g., accessibility fixes for a feature epic) or in a dedicated "Design System / UX Polish" epic.
|
|
52
|
+
|
|
53
|
+
### 2. Explain Story Creation Approach
|
|
54
|
+
|
|
55
|
+
**STORY CREATION GUIDELINES:**
|
|
56
|
+
|
|
57
|
+
For each epic, create stories that:
|
|
58
|
+
|
|
59
|
+
- Follow the exact template structure
|
|
60
|
+
- Are sized for single dev agent completion
|
|
61
|
+
- Have clear user value
|
|
62
|
+
- Include specific acceptance criteria
|
|
63
|
+
- Reference requirements being fulfilled
|
|
64
|
+
|
|
65
|
+
**🚨 DATABASE/ENTITY CREATION PRINCIPLE:**
|
|
66
|
+
Create tables/entities ONLY when needed by the story:
|
|
67
|
+
|
|
68
|
+
- ❌ WRONG: Epic 1 Story 1 creates all 50 database tables
|
|
69
|
+
- ✅ RIGHT: Each story creates/alters ONLY the tables it needs
|
|
70
|
+
|
|
71
|
+
**🔗 STORY DEPENDENCY PRINCIPLE:**
|
|
72
|
+
Stories must be independently completable in sequence:
|
|
73
|
+
|
|
74
|
+
- ❌ WRONG: Story 1.2 requires Story 1.3 to be completed first
|
|
75
|
+
- ✅ RIGHT: Each story can be completed based only on previous stories
|
|
76
|
+
- ❌ WRONG: "Wait for Story 1.4 to be implemented before this works"
|
|
77
|
+
- ✅ RIGHT: "This story works independently and enables future stories"
|
|
78
|
+
|
|
79
|
+
**STORY FORMAT (from template):**
|
|
80
|
+
|
|
81
|
+
```
|
|
82
|
+
### Story {N}.{M}: {story_title}
|
|
83
|
+
|
|
84
|
+
As a {user_type},
|
|
85
|
+
I want {capability},
|
|
86
|
+
So that {value_benefit}.
|
|
87
|
+
|
|
88
|
+
**Acceptance Criteria:**
|
|
89
|
+
|
|
90
|
+
**Given** {precondition}
|
|
91
|
+
**When** {action}
|
|
92
|
+
**Then** {expected_outcome}
|
|
93
|
+
**And** {additional_criteria}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**✅ GOOD STORY EXAMPLES:**
|
|
97
|
+
|
|
98
|
+
_Epic 1: User Authentication_
|
|
99
|
+
|
|
100
|
+
- Story 1.1: User Registration with Email
|
|
101
|
+
- Story 1.2: User Login with Password
|
|
102
|
+
- Story 1.3: Password Reset via Email
|
|
103
|
+
|
|
104
|
+
_Epic 2: Content Creation_
|
|
105
|
+
|
|
106
|
+
- Story 2.1: Create New Blog Post
|
|
107
|
+
- Story 2.2: Edit Existing Blog Post
|
|
108
|
+
- Story 2.3: Publish Blog Post
|
|
109
|
+
|
|
110
|
+
**❌ BAD STORY EXAMPLES:**
|
|
111
|
+
|
|
112
|
+
- Story: "Set up database" (no user value)
|
|
113
|
+
- Story: "Create all models" (too large, no user value)
|
|
114
|
+
- Story: "Build authentication system" (too large)
|
|
115
|
+
- Story: "Login UI (depends on Story 1.3 API endpoint)" (future dependency!)
|
|
116
|
+
- Story: "Edit post (requires Story 1.4 to be implemented first)" (wrong order!)
|
|
117
|
+
|
|
118
|
+
### 3. Process Epics Sequentially
|
|
119
|
+
|
|
120
|
+
For each epic in the approved epics_list:
|
|
121
|
+
|
|
122
|
+
#### A. Epic Overview
|
|
123
|
+
|
|
124
|
+
Display:
|
|
125
|
+
|
|
126
|
+
- Epic number and title
|
|
127
|
+
- Epic goal statement
|
|
128
|
+
- FRs covered by this epic
|
|
129
|
+
- Any NFRs or additional requirements relevant
|
|
130
|
+
- Any UX Design Requirements (UX-DRs) relevant to this epic
|
|
131
|
+
|
|
132
|
+
#### B. Story Breakdown
|
|
133
|
+
|
|
134
|
+
Work with user to break down the epic into stories:
|
|
135
|
+
|
|
136
|
+
- Identify distinct user capabilities
|
|
137
|
+
- Ensure logical flow within the epic
|
|
138
|
+
- Size stories appropriately
|
|
139
|
+
|
|
140
|
+
#### C. Generate Each Story
|
|
141
|
+
|
|
142
|
+
For each story in the epic:
|
|
143
|
+
|
|
144
|
+
1. **Story Title**: Clear, action-oriented
|
|
145
|
+
2. **User Story**: Complete the As a/I want/So that format
|
|
146
|
+
3. **Acceptance Criteria**: Write specific, testable criteria
|
|
147
|
+
|
|
148
|
+
**AC Writing Guidelines:**
|
|
149
|
+
|
|
150
|
+
- Use Given/When/Then format
|
|
151
|
+
- Each AC should be independently testable
|
|
152
|
+
- Include edge cases and error conditions
|
|
153
|
+
- Reference specific requirements when applicable
|
|
154
|
+
|
|
155
|
+
#### D. Collaborative Review
|
|
156
|
+
|
|
157
|
+
After writing each story:
|
|
158
|
+
|
|
159
|
+
- Present the story to user
|
|
160
|
+
- Ask: "Does this story capture the requirement correctly?"
|
|
161
|
+
- "Is the scope appropriate for a single dev session?"
|
|
162
|
+
- "Are the acceptance criteria complete and testable?"
|
|
163
|
+
|
|
164
|
+
#### E. Append to Document
|
|
165
|
+
|
|
166
|
+
When story is approved:
|
|
167
|
+
|
|
168
|
+
- Append it to {planning_artifacts}/epics.md following template structure
|
|
169
|
+
- Use correct numbering (Epic N, Story M)
|
|
170
|
+
- Maintain proper markdown formatting
|
|
171
|
+
|
|
172
|
+
### 4. Epic Completion
|
|
173
|
+
|
|
174
|
+
After all stories for an epic are complete:
|
|
175
|
+
|
|
176
|
+
- Display epic summary
|
|
177
|
+
- Show count of stories created
|
|
178
|
+
- Verify all FRs for the epic are covered
|
|
179
|
+
- Get user confirmation to proceed to next epic
|
|
180
|
+
|
|
181
|
+
### 5. Repeat for All Epics
|
|
182
|
+
|
|
183
|
+
Continue the process for each epic in the approved list, processing them in order (Epic 1, Epic 2, etc.).
|
|
184
|
+
|
|
185
|
+
### 6. Final Document Completion
|
|
186
|
+
|
|
187
|
+
After all epics and stories are generated:
|
|
188
|
+
|
|
189
|
+
- Verify the document follows template structure exactly
|
|
190
|
+
- Ensure all placeholders are replaced
|
|
191
|
+
- Confirm all FRs are covered
|
|
192
|
+
- **Confirm all UX Design Requirements (UX-DRs) are covered by at least one story** (if UX document was an input)
|
|
193
|
+
- Check formatting consistency
|
|
194
|
+
|
|
195
|
+
## TEMPLATE STRUCTURE COMPLIANCE:
|
|
196
|
+
|
|
197
|
+
The final {planning_artifacts}/epics.md must follow this structure exactly:
|
|
198
|
+
|
|
199
|
+
1. **Overview** section with project name
|
|
200
|
+
2. **Requirements Inventory** with all three subsections populated
|
|
201
|
+
3. **FR Coverage Map** showing requirement to epic mapping
|
|
202
|
+
4. **Epic List** with approved epic structure
|
|
203
|
+
5. **Epic sections** for each epic (N = 1, 2, 3...)
|
|
204
|
+
- Epic title and goal
|
|
205
|
+
- All stories for that epic (M = 1, 2, 3...)
|
|
206
|
+
- Story title and user story
|
|
207
|
+
- Acceptance Criteria using Given/When/Then format
|
|
208
|
+
|
|
209
|
+
### 7. Present FINAL MENU OPTIONS
|
|
210
|
+
|
|
211
|
+
After all epics and stories are complete:
|
|
212
|
+
|
|
213
|
+
Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue"
|
|
214
|
+
|
|
215
|
+
#### Menu Handling Logic:
|
|
216
|
+
|
|
217
|
+
- IF A: Invoke the `bmad-advanced-elicitation` skill
|
|
218
|
+
- IF P: Invoke the `bmad-party-mode` skill
|
|
219
|
+
- IF C: Save content to {planning_artifacts}/epics.md, update frontmatter, then read fully and follow: ./step-04-final-validation.md
|
|
220
|
+
- IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-final-menu-options)
|
|
221
|
+
|
|
222
|
+
#### EXECUTION RULES:
|
|
223
|
+
|
|
224
|
+
- ALWAYS halt and wait for user input after presenting menu
|
|
225
|
+
- ONLY proceed to next step when user selects 'C'
|
|
226
|
+
- After other menu items execution, return to this menu
|
|
227
|
+
- User can chat or ask questions - always respond and then end with display again of the menu options
|
|
228
|
+
|
|
229
|
+
## CRITICAL STEP COMPLETION NOTE
|
|
230
|
+
|
|
231
|
+
ONLY WHEN [C continue option] is selected and [all epics and stories saved to document following the template structure exactly], will you then read fully and follow: `./step-04-final-validation.md` to begin final validation phase.
|
|
232
|
+
|
|
233
|
+
---
|
|
234
|
+
|
|
235
|
+
## 🚨 SYSTEM SUCCESS/FAILURE METRICS
|
|
236
|
+
|
|
237
|
+
### ✅ SUCCESS:
|
|
238
|
+
|
|
239
|
+
- All epics processed in sequence
|
|
240
|
+
- Stories created for each epic
|
|
241
|
+
- Template structure followed exactly
|
|
242
|
+
- All FRs covered by stories
|
|
243
|
+
- Stories appropriately sized
|
|
244
|
+
- Acceptance criteria are specific and testable
|
|
245
|
+
- Document is complete and ready for development
|
|
246
|
+
|
|
247
|
+
### ❌ SYSTEM FAILURE:
|
|
248
|
+
|
|
249
|
+
- Deviating from template structure
|
|
250
|
+
- Missing epics or stories
|
|
251
|
+
- Stories too large or unclear
|
|
252
|
+
- Missing acceptance criteria
|
|
253
|
+
- Not following proper formatting
|
|
254
|
+
|
|
255
|
+
**Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
# Step 4: Final Validation
|
|
2
|
+
|
|
3
|
+
## STEP GOAL:
|
|
4
|
+
|
|
5
|
+
To validate complete coverage of all requirements and ensure stories are ready for development.
|
|
6
|
+
|
|
7
|
+
## MANDATORY EXECUTION RULES (READ FIRST):
|
|
8
|
+
|
|
9
|
+
### Universal Rules:
|
|
10
|
+
|
|
11
|
+
- 🛑 NEVER generate content without user input
|
|
12
|
+
- 📖 CRITICAL: Read the complete step file before taking any action
|
|
13
|
+
- 🔄 CRITICAL: Process validation sequentially without skipping
|
|
14
|
+
- 📋 YOU ARE A FACILITATOR, not a content generator
|
|
15
|
+
- ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
|
|
16
|
+
|
|
17
|
+
### Role Reinforcement:
|
|
18
|
+
|
|
19
|
+
- ✅ You are a product strategist and technical specifications writer
|
|
20
|
+
- ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
|
|
21
|
+
- ✅ We engage in collaborative dialogue, not command-response
|
|
22
|
+
- ✅ You bring validation expertise and quality assurance
|
|
23
|
+
- ✅ User brings their implementation priorities and final review
|
|
24
|
+
|
|
25
|
+
### Step-Specific Rules:
|
|
26
|
+
|
|
27
|
+
- 🎯 Focus ONLY on validating complete requirements coverage
|
|
28
|
+
- 🚫 FORBIDDEN to skip any validation checks
|
|
29
|
+
- 💬 Validate FR coverage, story completeness, and dependencies
|
|
30
|
+
- 🚪 ENSURE all stories are ready for development
|
|
31
|
+
|
|
32
|
+
## EXECUTION PROTOCOLS:
|
|
33
|
+
|
|
34
|
+
- 🎯 Validate every requirement has story coverage
|
|
35
|
+
- 💾 Check story dependencies and flow
|
|
36
|
+
- 📖 Verify architecture compliance
|
|
37
|
+
- 🚫 FORBIDDEN to approve incomplete coverage
|
|
38
|
+
|
|
39
|
+
## CONTEXT BOUNDARIES:
|
|
40
|
+
|
|
41
|
+
- Available context: Complete epic and story breakdown from previous steps
|
|
42
|
+
- Focus: Final validation of requirements coverage and story readiness
|
|
43
|
+
- Limits: Validation only, no new content creation
|
|
44
|
+
- Dependencies: Completed story generation from Step 3
|
|
45
|
+
|
|
46
|
+
## VALIDATION PROCESS:
|
|
47
|
+
|
|
48
|
+
### 1. FR Coverage Validation
|
|
49
|
+
|
|
50
|
+
Review the complete epic and story breakdown to ensure EVERY FR is covered:
|
|
51
|
+
|
|
52
|
+
**CRITICAL CHECK:**
|
|
53
|
+
|
|
54
|
+
- Go through each FR from the Requirements Inventory
|
|
55
|
+
- Verify it appears in at least one story
|
|
56
|
+
- Check that acceptance criteria fully address the FR
|
|
57
|
+
- No FRs should be left uncovered
|
|
58
|
+
|
|
59
|
+
### 2. Architecture Implementation Validation
|
|
60
|
+
|
|
61
|
+
**Check for Starter Template Setup:**
|
|
62
|
+
|
|
63
|
+
- Does Architecture document specify a starter template?
|
|
64
|
+
- If YES: Epic 1 Story 1 must be "Set up initial project from starter template"
|
|
65
|
+
- This includes cloning, installing dependencies, initial configuration
|
|
66
|
+
|
|
67
|
+
**Database/Entity Creation Validation:**
|
|
68
|
+
|
|
69
|
+
- Are database tables/entities created ONLY when needed by stories?
|
|
70
|
+
- ❌ WRONG: Epic 1 creates all tables upfront
|
|
71
|
+
- ✅ RIGHT: Tables created as part of the first story that needs them
|
|
72
|
+
- Each story should create/modify ONLY what it needs
|
|
73
|
+
|
|
74
|
+
### 3. Story Quality Validation
|
|
75
|
+
|
|
76
|
+
**Each story must:**
|
|
77
|
+
|
|
78
|
+
- Be completable by a single dev agent
|
|
79
|
+
- Have clear acceptance criteria
|
|
80
|
+
- Reference specific FRs it implements
|
|
81
|
+
- Include necessary technical details
|
|
82
|
+
- **Not have forward dependencies** (can only depend on PREVIOUS stories)
|
|
83
|
+
- Be implementable without waiting for future stories
|
|
84
|
+
|
|
85
|
+
### 4. Epic Structure Validation
|
|
86
|
+
|
|
87
|
+
**Check that:**
|
|
88
|
+
|
|
89
|
+
- Epics deliver user value, not technical milestones
|
|
90
|
+
- Dependencies flow naturally
|
|
91
|
+
- Foundation stories only setup what's needed
|
|
92
|
+
- No big upfront technical work
|
|
93
|
+
- **File Churn Check:** Do multiple epics repeatedly modify the same core files?
|
|
94
|
+
- Assess whether the overlap pattern suggests unnecessary churn or is incidental
|
|
95
|
+
- If overlap is significant: Validate that splitting provides genuine value (risk mitigation, feedback loops, context size limits)
|
|
96
|
+
- If no justification for the split: Recommend consolidation into fewer epics
|
|
97
|
+
- ❌ WRONG: Multiple epics each modify the same core files with no feedback loop between them
|
|
98
|
+
- ✅ RIGHT: Epics target distinct files/components, OR consolidation was explicitly considered and rejected with rationale
|
|
99
|
+
|
|
100
|
+
### 5. Dependency Validation (CRITICAL)
|
|
101
|
+
|
|
102
|
+
**Epic Independence Check:**
|
|
103
|
+
|
|
104
|
+
- Does each epic deliver COMPLETE functionality for its domain?
|
|
105
|
+
- Can Epic 2 function without Epic 3 being implemented?
|
|
106
|
+
- Can Epic 3 function standalone using Epic 1 & 2 outputs?
|
|
107
|
+
- ❌ WRONG: Epic 2 requires Epic 3 features to work
|
|
108
|
+
- ✅ RIGHT: Each epic is independently valuable
|
|
109
|
+
|
|
110
|
+
**Within-Epic Story Dependency Check:**
|
|
111
|
+
For each epic, review stories in order:
|
|
112
|
+
|
|
113
|
+
- Can Story N.1 be completed without Stories N.2, N.3, etc.?
|
|
114
|
+
- Can Story N.2 be completed using only Story N.1 output?
|
|
115
|
+
- Can Story N.3 be completed using only Stories N.1 & N.2 outputs?
|
|
116
|
+
- ❌ WRONG: "This story depends on a future story"
|
|
117
|
+
- ❌ WRONG: Story references features not yet implemented
|
|
118
|
+
- ✅ RIGHT: Each story builds only on previous stories
|
|
119
|
+
|
|
120
|
+
### 6. Complete and Save
|
|
121
|
+
|
|
122
|
+
If all validations pass:
|
|
123
|
+
|
|
124
|
+
- Update any remaining placeholders in the document
|
|
125
|
+
- Ensure proper formatting
|
|
126
|
+
- Save the final epics.md
|
|
127
|
+
|
|
128
|
+
**Present Final Menu:**
|
|
129
|
+
**All validations complete!** [C] Complete Workflow
|
|
130
|
+
|
|
131
|
+
HALT — wait for user input before proceeding.
|
|
132
|
+
|
|
133
|
+
When C is selected, the workflow is complete and the epics.md is ready for development.
|
|
134
|
+
|
|
135
|
+
Epics and Stories complete. Invoke the `bmad-help` skill.
|
|
136
|
+
|
|
137
|
+
Upon Completion of task output: offer to answer any questions about the Epics and Stories.
|
|
138
|
+
|
|
139
|
+
## On Complete
|
|
140
|
+
|
|
141
|
+
Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
|
|
142
|
+
|
|
143
|
+
If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
---
|
|
2
|
+
stepsCompleted: []
|
|
3
|
+
inputDocuments: []
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# {{project_name}} - Epic Breakdown
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
This document provides the complete epic and story breakdown for {{project_name}}, decomposing the requirements from the PRD, UX Design if it exists, and Architecture requirements into implementable stories.
|
|
11
|
+
|
|
12
|
+
## Requirements Inventory
|
|
13
|
+
|
|
14
|
+
### Functional Requirements
|
|
15
|
+
|
|
16
|
+
{{fr_list}}
|
|
17
|
+
|
|
18
|
+
### NonFunctional Requirements
|
|
19
|
+
|
|
20
|
+
{{nfr_list}}
|
|
21
|
+
|
|
22
|
+
### Additional Requirements
|
|
23
|
+
|
|
24
|
+
{{additional_requirements}}
|
|
25
|
+
|
|
26
|
+
### UX Design Requirements
|
|
27
|
+
|
|
28
|
+
{{ux_design_requirements}}
|
|
29
|
+
|
|
30
|
+
### FR Coverage Map
|
|
31
|
+
|
|
32
|
+
{{requirements_coverage_map}}
|
|
33
|
+
|
|
34
|
+
## Epic List
|
|
35
|
+
|
|
36
|
+
{{epics_list}}
|
|
37
|
+
|
|
38
|
+
<!-- Repeat for each epic in epics_list (N = 1, 2, 3...) -->
|
|
39
|
+
|
|
40
|
+
## Epic {{N}}: {{epic_title_N}}
|
|
41
|
+
|
|
42
|
+
{{epic_goal_N}}
|
|
43
|
+
|
|
44
|
+
<!-- Repeat for each story (M = 1, 2, 3...) within epic N -->
|
|
45
|
+
|
|
46
|
+
### Story {{N}}.{{M}}: {{story_title_N_M}}
|
|
47
|
+
|
|
48
|
+
As a {{user_type}},
|
|
49
|
+
I want {{capability}},
|
|
50
|
+
So that {{value_benefit}}.
|
|
51
|
+
|
|
52
|
+
**Acceptance Criteria:**
|
|
53
|
+
|
|
54
|
+
<!-- for each AC on this story -->
|
|
55
|
+
|
|
56
|
+
**Given** {{precondition}}
|
|
57
|
+
**When** {{action}}
|
|
58
|
+
**Then** {{expected_outcome}}
|
|
59
|
+
**And** {{additional_criteria}}
|
|
60
|
+
|
|
61
|
+
<!-- End story repeat -->
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: bmad-create-story
|
|
3
|
+
description: 'Creates a dedicated story document with all the context the agent will need to implement it later. Use when the user says "create the next story" or "create story [story identifier]"'
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# bmad-create-story · OpenCode edition
|
|
7
|
+
|
|
8
|
+
## Artifact storage
|
|
9
|
+
|
|
10
|
+
Use the **BMAD artifact storage** contract injected by the OpenCode BMAD plugin for this project. It names the selected backend, project root and exact artifact prefix. Call `bmad_storage` if the contract is missing or you need to refresh it. Read existing artifacts before editing, write complete Markdown, then read back and verify. Keep each artifact's logical name stable. Do not switch storage backends silently. The plugin is installed globally; project artifacts are scoped to the current repository. Source code changes remain in the repository. Bundled references may mention upstream project-local `_bmad` setup, config or scripts; use their methodology without requiring those files in the project. The selected storage contract overrides artifact paths in references.
|
|
11
|
+
|
|
12
|
+
## Workflow
|
|
13
|
+
|
|
14
|
+
1. Read `epics-and-stories.md`, `sprint-status.md`, and the requested story if present. Use the user's story ID or the next eligible backlog story; preserve its ID.
|
|
15
|
+
2. Retrieve only relevant PRD and architecture sections, previous story lessons, and inspect affected source code. Resolve prerequisites before marking ready for development.
|
|
16
|
+
3. Create a self-contained story with goal, acceptance criteria, implementation tasks, exact code locations, constraints, test expectations, dependencies and source artifact paths.
|
|
17
|
+
4. Check completeness using the checklist. Save the story with `ready-for-dev` or a truthful blocked/draft status, then update its entry in `sprint-status.md` after reading the latest version.
|
|
18
|
+
|
|
19
|
+
**Primary artifact:** `stories/<story-id>.md`. Use a stable descriptive `<story-id>`, `<review-id>` or `<change-id>` where shown, and return its full verified artifact path.
|
|
20
|
+
|
|
21
|
+
## Optional method references
|
|
22
|
+
|
|
23
|
+
Read only the template or checklist needed for the current step, relative to this skill directory: `reference/template.md`; `reference/checklist.md`. The references preserve upstream methodology; their filesystem writes, activation scripts and local artifact discovery are replaced by the BMAD artifact storage contract above. Do not load the entire upstream workflow or unrelated artifacts.
|