bmm-opencode 1.4.2 → 1.4.3

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 (126) hide show
  1. package/.opencode/agents/bmad-bmad-master.md +11 -0
  2. package/.opencode/agents/bmm-analyst.md +10 -32
  3. package/.opencode/agents/bmm-architect.md +6 -34
  4. package/.opencode/agents/bmm-dev.md +6 -32
  5. package/.opencode/agents/bmm-pm.md +10 -41
  6. package/.opencode/agents/bmm-qa.md +5 -31
  7. package/.opencode/agents/bmm-quick-flow-solo-dev.md +7 -32
  8. package/.opencode/agents/bmm-sm.md +8 -32
  9. package/.opencode/agents/bmm-tech-writer.md +12 -0
  10. package/.opencode/agents/bmm-ux-designer.md +5 -37
  11. package/.opencode/commands/bmad-bmm-check-implementation-readiness.md +7 -0
  12. package/.opencode/commands/bmad-bmm-code-review.md +7 -0
  13. package/.opencode/commands/bmad-bmm-correct-course.md +7 -0
  14. package/.opencode/commands/bmad-bmm-create-architecture.md +7 -0
  15. package/.opencode/commands/bmad-bmm-create-epics-and-stories.md +7 -0
  16. package/.opencode/commands/bmad-bmm-create-prd.md +7 -0
  17. package/.opencode/commands/bmad-bmm-create-product-brief.md +7 -0
  18. package/.opencode/commands/bmad-bmm-create-story.md +7 -0
  19. package/.opencode/commands/bmad-bmm-create-ux-design.md +7 -0
  20. package/.opencode/commands/bmad-bmm-dev-story.md +7 -0
  21. package/.opencode/commands/bmad-bmm-document-project.md +7 -0
  22. package/.opencode/commands/bmad-bmm-domain-research.md +7 -0
  23. package/.opencode/commands/bmad-bmm-edit-prd.md +7 -0
  24. package/.opencode/commands/bmad-bmm-generate-project-context.md +5 -0
  25. package/.opencode/commands/bmad-bmm-market-research.md +7 -0
  26. package/.opencode/commands/bmad-bmm-quick-dev.md +7 -0
  27. package/.opencode/commands/bmad-bmm-quick-spec.md +7 -0
  28. package/.opencode/commands/bmad-bmm-retrospective.md +7 -0
  29. package/.opencode/commands/bmad-bmm-sprint-planning.md +7 -0
  30. package/.opencode/commands/bmad-bmm-sprint-status.md +5 -0
  31. package/.opencode/commands/bmad-bmm-technical-research.md +7 -0
  32. package/.opencode/commands/bmad-bmm-validate-prd.md +7 -0
  33. package/.opencode/commands/bmad-brainstorming.md +7 -0
  34. package/.opencode/commands/bmad-editorial-review-prose.md +5 -0
  35. package/.opencode/commands/bmad-editorial-review-structure.md +5 -0
  36. package/.opencode/commands/bmad-help.md +5 -0
  37. package/.opencode/commands/bmad-index-docs.md +5 -0
  38. package/.opencode/commands/bmad-review-adversarial-general.md +5 -0
  39. package/.opencode/commands/bmad-shard-doc.md +5 -0
  40. package/.opencode/skills/bmad-bmad-master/SKILL.md +56 -0
  41. package/.opencode/skills/bmad-bmm-analyst/SKILL.md +65 -38
  42. package/.opencode/skills/bmad-bmm-architect/SKILL.md +49 -38
  43. package/.opencode/skills/bmad-bmm-check-implementation-readiness/SKILL.md +1092 -24
  44. package/.opencode/skills/bmad-bmm-code-review/SKILL.md +45 -13
  45. package/.opencode/skills/bmad-bmm-correct-course/SKILL.md +56 -94
  46. package/.opencode/skills/bmad-bmm-create-architecture/SKILL.md +2391 -27
  47. package/.opencode/skills/bmad-bmm-create-epics-and-stories/SKILL.md +927 -23
  48. package/.opencode/skills/bmad-bmm-create-prd/SKILL.md +9 -26
  49. package/.opencode/skills/bmad-bmm-create-product-brief/SKILL.md +1358 -22
  50. package/.opencode/skills/bmad-bmm-create-story/SKILL.md +61 -24
  51. package/.opencode/skills/bmad-bmm-create-ux-design/SKILL.md +3275 -26
  52. package/.opencode/skills/bmad-bmm-dev/SKILL.md +57 -43
  53. package/.opencode/skills/bmad-bmm-dev-story/SKILL.md +20 -13
  54. package/.opencode/skills/bmad-bmm-document-project/SKILL.md +22 -81
  55. package/.opencode/skills/bmad-bmm-domain-research/SKILL.md +53 -37
  56. package/.opencode/skills/bmad-bmm-edit-prd/SKILL.md +10 -27
  57. package/.opencode/skills/bmad-bmm-generate-project-context/SKILL.md +797 -28
  58. package/.opencode/skills/bmad-bmm-market-research/SKILL.md +53 -37
  59. package/.opencode/skills/bmad-bmm-pm/SKILL.md +60 -39
  60. package/.opencode/skills/bmad-bmm-qa/SKILL.md +77 -35
  61. package/.opencode/skills/bmad-bmm-qa-automate/SKILL.md +47 -129
  62. package/.opencode/skills/bmad-bmm-quick-dev/SKILL.md +802 -30
  63. package/.opencode/skills/bmad-bmm-quick-flow-solo-dev/SKILL.md +57 -36
  64. package/.opencode/skills/bmad-bmm-quick-spec/SKILL.md +684 -27
  65. package/.opencode/skills/bmad-bmm-retrospective/SKILL.md +55 -200
  66. package/.opencode/skills/bmad-bmm-sm/SKILL.md +57 -36
  67. package/.opencode/skills/bmad-bmm-sprint-planning/SKILL.md +51 -52
  68. package/.opencode/skills/bmad-bmm-sprint-status/SKILL.md +30 -99
  69. package/.opencode/skills/bmad-bmm-tech-writer/SKILL.md +70 -0
  70. package/.opencode/skills/bmad-bmm-technical-research/SKILL.md +53 -37
  71. package/.opencode/skills/bmad-bmm-ux-designer/SKILL.md +48 -37
  72. package/.opencode/skills/bmad-bmm-validate-prd/SKILL.md +10 -27
  73. package/.opencode/skills/bmad-brainstorming/SKILL.md +2048 -0
  74. package/.opencode/skills/bmad-editorial-review-prose/SKILL.md +107 -0
  75. package/.opencode/skills/bmad-editorial-review-structure/SKILL.md +214 -0
  76. package/.opencode/skills/bmad-help/SKILL.md +82 -0
  77. package/.opencode/skills/bmad-index-docs/SKILL.md +70 -0
  78. package/.opencode/skills/bmad-party-mode/SKILL.md +682 -0
  79. package/.opencode/skills/bmad-review-adversarial-general/SKILL.md +53 -0
  80. package/.opencode/skills/bmad-shard-doc/SKILL.md +113 -0
  81. package/README.md +28 -4
  82. package/dist/index.d.ts.map +1 -1
  83. package/dist/index.js +350 -47
  84. package/package.json +4 -3
  85. package/.opencode/agents/bmm-tech-writer-tech-writer.md +0 -44
  86. package/.opencode/agents/cis-brainstorming-coach.md +0 -38
  87. package/.opencode/agents/cis-creative-problem-solver.md +0 -38
  88. package/.opencode/agents/cis-design-thinking-coach.md +0 -38
  89. package/.opencode/agents/cis-innovation-strategist.md +0 -38
  90. package/.opencode/agents/cis-presentation-master.md +0 -54
  91. package/.opencode/agents/cis-storyteller-storyteller.md +0 -38
  92. package/.opencode/agents/core-bmad-master.md +0 -39
  93. package/.opencode/agents/gen-subagent.md +0 -311
  94. package/.opencode/agents/party-mode.md +0 -812
  95. package/.opencode/agents/tea-tea.md +0 -48
  96. package/.opencode/skills/bmad-bmm-dev-team-mode/SKILL.md +0 -300
  97. package/.opencode/skills/bmad-bmm-tech-writer-tech-writer/SKILL.md +0 -51
  98. package/.opencode/skills/bmad-cis-brainstorming-coach/SKILL.md +0 -46
  99. package/.opencode/skills/bmad-cis-creative-problem-solver/SKILL.md +0 -46
  100. package/.opencode/skills/bmad-cis-design-thinking/SKILL.md +0 -156
  101. package/.opencode/skills/bmad-cis-design-thinking-coach/SKILL.md +0 -46
  102. package/.opencode/skills/bmad-cis-innovation-strategist/SKILL.md +0 -46
  103. package/.opencode/skills/bmad-cis-innovation-strategy/SKILL.md +0 -238
  104. package/.opencode/skills/bmad-cis-presentation-master/SKILL.md +0 -52
  105. package/.opencode/skills/bmad-cis-problem-solving/SKILL.md +0 -212
  106. package/.opencode/skills/bmad-cis-storyteller-storyteller/SKILL.md +0 -48
  107. package/.opencode/skills/bmad-cis-storytelling/SKILL.md +0 -290
  108. package/.opencode/skills/bmad-core-bmad-master/SKILL.md +0 -48
  109. package/.opencode/skills/bmad-core-brainstorming/SKILL.md +0 -74
  110. package/.opencode/skills/bmad-core-party-mode/SKILL.md +0 -241
  111. package/.opencode/skills/bmad-core-task-editorial-review-prose/SKILL.md +0 -74
  112. package/.opencode/skills/bmad-core-task-editorial-review-structure/SKILL.md +0 -151
  113. package/.opencode/skills/bmad-core-task-help/SKILL.md +0 -100
  114. package/.opencode/skills/bmad-core-task-index-docs/SKILL.md +0 -46
  115. package/.opencode/skills/bmad-core-task-review-adversarial-general/SKILL.md +0 -36
  116. package/.opencode/skills/bmad-core-task-shard-doc/SKILL.md +0 -80
  117. package/.opencode/skills/bmad-tea-tea/SKILL.md +0 -57
  118. package/.opencode/skills/bmad-tea-teach-me-testing/SKILL.md +0 -106
  119. package/.opencode/skills/bmad-tea-testarch-atdd/SKILL.md +0 -62
  120. package/.opencode/skills/bmad-tea-testarch-automate/SKILL.md +0 -67
  121. package/.opencode/skills/bmad-tea-testarch-ci/SKILL.md +0 -62
  122. package/.opencode/skills/bmad-tea-testarch-framework/SKILL.md +0 -62
  123. package/.opencode/skills/bmad-tea-testarch-nfr/SKILL.md +0 -60
  124. package/.opencode/skills/bmad-tea-testarch-test-design/SKILL.md +0 -76
  125. package/.opencode/skills/bmad-tea-testarch-test-review/SKILL.md +0 -60
  126. package/.opencode/skills/bmad-tea-testarch-trace/SKILL.md +0 -60
@@ -1,25 +1,8 @@
1
1
  ---
2
2
  name: bmad-bmm-create-epics-and-stories
3
3
  description: "Transform PRD requirements and Architecture decisions into comprehensive stories organized by user value. This workflow requires completed PRD + Architecture documents (UX recommended if UI exists) and breaks down requirements into implementation-ready epics and user stories that incorporate all available technical and design context. Creates detailed, actionable stories with complete acceptance criteria for development teams."
4
- license: MIT
5
- compatibility: opencode
6
- metadata:
7
- source: "bmad-method"
8
- module: "bmm"
9
- workflow: "create-epics-and-stories"
10
- standalone: false
11
4
  ---
12
5
 
13
- # create-epics-and-stories Workflow
14
-
15
- Transform PRD requirements and Architecture decisions into comprehensive stories organized by user value. This workflow requires completed PRD + Architecture documents (UX recommended if UI exists) and breaks down requirements into implementation-ready epics and user stories that incorporate all available technical and design context. Creates detailed, actionable stories with complete acceptance criteria for development teams.
16
-
17
- ## How to Use
18
-
19
- This skill provides a structured workflow. Follow the steps below:
20
-
21
- ## Instructions
22
-
23
6
  # Create Epics and Stories
24
7
 
25
8
  **Goal:** Transform PRD requirements and Architecture decisions into comprehensive stories organized by user value, creating detailed, actionable stories with complete acceptance criteria for development teams.
@@ -37,7 +20,7 @@ This uses **step-file architecture** for disciplined execution:
37
20
  - **Micro-file Design**: Each step of the overall goal is a self contained instruction file that you will adhere too 1 file as directed at a time
38
21
  - **Just-In-Time Loading**: Only 1 current step file will be loaded and followed to completion - never load future step files until told to do so
39
22
  - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
40
- - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
23
+ - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
41
24
  - **Append-Only Building**: Build documents by appending content as directed to the output file
42
25
 
43
26
  ### Step Processing Rules
@@ -45,8 +28,8 @@ This uses **step-file architecture** for disciplined execution:
45
28
  1. **READ COMPLETELY**: Always read the entire step file before taking any action
46
29
  2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
47
30
  3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
48
- 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
49
- 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
31
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
32
+ 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
50
33
  6. **LOAD NEXT**: When directed, read fully and follow the next step file
51
34
 
52
35
  ### Critical Rules (NO EXCEPTIONS)
@@ -67,9 +50,930 @@ This uses **step-file architecture** for disciplined execution:
67
50
 
68
51
  Load and read full config from {project-root}/_bmad/bmm/config.yaml and resolve:
69
52
 
70
- - `project_name`, `output_folder`, `planning_artifacts`, `user_name`, `communication_language`, `document_output_language`
71
- - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
53
+ - `project_name`, `output_folder`, `planning_artifacts`, `user_name`, `communication_language`, `document_output_language`
54
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
72
55
 
73
56
  ### 2. First Step EXECUTION
74
57
 
75
- Read fully and follow: `{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md` to begin the workflow.
58
+ Read fully and follow: `{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md` to begin the workflow.
59
+
60
+ ---
61
+ name: 'step-01-validate-prerequisites'
62
+ description: 'Validate required documents exist and extract all requirements for epic and story creation'
63
+
64
+ # Path Definitions
65
+ workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
66
+
67
+ # File References
68
+ thisStepFile: './step-01-validate-prerequisites.md'
69
+ nextStepFile: './step-02-design-epics.md'
70
+ workflowFile: '{workflow_path}/workflow.md'
71
+ outputFile: '{planning_artifacts}/epics.md'
72
+ epicsTemplate: '{workflow_path}/templates/epics-template.md'
73
+
74
+ # Task References
75
+ advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
76
+ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
77
+
78
+ # Template References
79
+ epicsTemplate: '{workflow_path}/templates/epics-template.md'
80
+ ---
81
+
82
+ # Step 1: Validate Prerequisites and Extract Requirements
83
+
84
+ ## STEP GOAL:
85
+
86
+ To validate that all required input documents exist and extract all requirements (FRs, NFRs, and additional requirements from UX/Architecture) needed for epic and story creation.
87
+
88
+ ## MANDATORY EXECUTION RULES (READ FIRST):
89
+
90
+ ### Universal Rules:
91
+
92
+ - 🛑 NEVER generate content without user input
93
+ - 📖 CRITICAL: Read the complete step file before taking any action
94
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
95
+ - 📋 YOU ARE A FACILITATOR, not a content generator
96
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
97
+
98
+ ### Role Reinforcement:
99
+
100
+ - ✅ You are a product strategist and technical specifications writer
101
+ - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
102
+ - ✅ We engage in collaborative dialogue, not command-response
103
+ - ✅ You bring requirements extraction expertise
104
+ - ✅ User brings their product vision and context
105
+
106
+ ### Step-Specific Rules:
107
+
108
+ - 🎯 Focus ONLY on extracting and organizing requirements
109
+ - 🚫 FORBIDDEN to start creating epics or stories in this step
110
+ - 💬 Extract requirements from ALL available documents
111
+ - 🚪 POPULATE the template sections exactly as needed
112
+
113
+ ## EXECUTION PROTOCOLS:
114
+
115
+ - 🎯 Extract requirements systematically from all documents
116
+ - 💾 Populate {outputFile} with extracted requirements
117
+ - 📖 Update frontmatter with extraction progress
118
+ - 🚫 FORBIDDEN to load next step until user selects 'C' and requirements are extracted
119
+
120
+ ## REQUIREMENTS EXTRACTION PROCESS:
121
+
122
+ ### 1. Welcome and Overview
123
+
124
+ Welcome {user_name} to comprehensive epic and story creation!
125
+
126
+ **CRITICAL PREREQUISITE VALIDATION:**
127
+
128
+ Verify required documents exist and are complete:
129
+
130
+ 1. **PRD.md** - Contains requirements (FRs and NFRs) and product scope
131
+ 2. **Architecture.md** - Contains technical decisions, API contracts, data models
132
+ 3. **UX Design.md** (if UI exists) - Contains interaction patterns, mockups, user flows
133
+
134
+ ### 2. Document Discovery and Validation
135
+
136
+ Search for required documents using these patterns (sharded means a large document was split into multiple small files with an index.md into a folder) - if the whole document is found, use that instead of the sharded version:
137
+
138
+ **PRD Document Search Priority:**
139
+
140
+ 1. `{planning_artifacts}/*prd*.md` (whole document)
141
+ 2. `{planning_artifacts}/*prd*/index.md` (sharded version)
142
+
143
+ **Architecture Document Search Priority:**
144
+
145
+ 1. `{planning_artifacts}/*architecture*.md` (whole document)
146
+ 2. `{planning_artifacts}/*architecture*/index.md` (sharded version)
147
+
148
+ **UX Design Document Search (Optional):**
149
+
150
+ 1. `{planning_artifacts}/*ux*.md` (whole document)
151
+ 2. `{planning_artifacts}/*ux*/index.md` (sharded version)
152
+
153
+ Before proceeding, Ask the user if there are any other documents to include for analysis, and if anything found should be excluded. Wait for user confirmation. Once confirmed, create the {outputFile} from the {epicsTemplate} and in the front matter list the files in the array of `inputDocuments: []`.
154
+
155
+ ### 3. Extract Functional Requirements (FRs)
156
+
157
+ From the PRD document (full or sharded), read then entire document and extract ALL functional requirements:
158
+
159
+ **Extraction Method:**
160
+
161
+ - Look for numbered items like "FR1:", "Functional Requirement 1:", or similar
162
+ - Identify requirement statements that describe what the system must DO
163
+ - Include user actions, system behaviors, and business rules
164
+
165
+ **Format the FR list as:**
166
+
167
+ ```
168
+ FR1: [Clear, testable requirement description]
169
+ FR2: [Clear, testable requirement description]
170
+ ...
171
+ ```
172
+
173
+ ### 4. Extract Non-Functional Requirements (NFRs)
174
+
175
+ From the PRD document, extract ALL non-functional requirements:
176
+
177
+ **Extraction Method:**
178
+
179
+ - Look for performance, security, usability, reliability requirements
180
+ - Identify constraints and quality attributes
181
+ - Include technical standards and compliance requirements
182
+
183
+ **Format the NFR list as:**
184
+
185
+ ```
186
+ NFR1: [Performance/Security/Usability requirement]
187
+ NFR2: [Performance/Security/Usability requirement]
188
+ ...
189
+ ```
190
+
191
+ ### 5. Extract Additional Requirements from Architecture
192
+
193
+ Review the Architecture document for technical requirements that impact epic and story creation:
194
+
195
+ **Look for:**
196
+
197
+ - **Starter Template**: Does Architecture specify a starter/greenfield template? If YES, document this for Epic 1 Story 1
198
+ - Infrastructure and deployment requirements
199
+ - Integration requirements with external systems
200
+ - Data migration or setup requirements
201
+ - Monitoring and logging requirements
202
+ - API versioning or compatibility requirements
203
+ - Security implementation requirements
204
+
205
+ **IMPORTANT**: If a starter template is mentioned in Architecture, note it prominently. This will impact Epic 1 Story 1.
206
+
207
+ **Format Additional Requirements as:**
208
+
209
+ ```
210
+ - [Technical requirement from Architecture that affects implementation]
211
+ - [Infrastructure setup requirement]
212
+ - [Integration requirement]
213
+ ...
214
+ ```
215
+
216
+ ### 6. Extract Additional Requirements from UX (if exists)
217
+
218
+ Review the UX document for requirements that affect epic and story creation:
219
+
220
+ **Look for:**
221
+
222
+ - Responsive design requirements
223
+ - Accessibility requirements
224
+ - Browser/device compatibility
225
+ - User interaction patterns that need implementation
226
+ - Animation or transition requirements
227
+ - Error handling UX requirements
228
+
229
+ **Add these to Additional Requirements list.**
230
+
231
+ ### 7. Load and Initialize Template
232
+
233
+ Load {epicsTemplate} and initialize {outputFile}:
234
+
235
+ 1. Copy the entire template to {outputFile}
236
+ 2. Replace {{project_name}} with the actual project name
237
+ 3. Replace placeholder sections with extracted requirements:
238
+ - {{fr_list}} → extracted FRs
239
+ - {{nfr_list}} → extracted NFRs
240
+ - {{additional_requirements}} → extracted additional requirements
241
+ 4. Leave {{requirements_coverage_map}} and {{epics_list}} as placeholders for now
242
+
243
+ ### 8. Present Extracted Requirements
244
+
245
+ Display to user:
246
+
247
+ **Functional Requirements Extracted:**
248
+
249
+ - Show count of FRs found
250
+ - Display the first few FRs as examples
251
+ - Ask if any FRs are missing or incorrectly captured
252
+
253
+ **Non-Functional Requirements Extracted:**
254
+
255
+ - Show count of NFRs found
256
+ - Display key NFRs
257
+ - Ask if any constraints were missed
258
+
259
+ **Additional Requirements:**
260
+
261
+ - Summarize technical requirements from Architecture
262
+ - Summarize UX requirements (if applicable)
263
+ - Verify completeness
264
+
265
+ ### 9. Get User Confirmation
266
+
267
+ Ask: "Do these extracted requirements accurately represent what needs to be built? Any additions or corrections?"
268
+
269
+ Update the requirements based on user feedback until confirmation is received.
270
+
271
+ ## CONTENT TO SAVE TO DOCUMENT:
272
+
273
+ After extraction and confirmation, update {outputFile} with:
274
+
275
+ - Complete FR list in {{fr_list}} section
276
+ - Complete NFR list in {{nfr_list}} section
277
+ - All additional requirements in {{additional_requirements}} section
278
+
279
+ ### 10. Present MENU OPTIONS
280
+
281
+ Display: `**Confirm the Requirements are complete and correct to [C] continue:**`
282
+
283
+ #### EXECUTION RULES:
284
+
285
+ - ALWAYS halt and wait for user input after presenting menu
286
+ - ONLY proceed to next step when user selects 'C'
287
+ - User can chat or ask questions - always respond and then end with display again of the menu option
288
+
289
+ #### Menu Handling Logic:
290
+
291
+ - IF C: Save all to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
292
+ - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#10-present-menu-options)
293
+
294
+ ## CRITICAL STEP COMPLETION NOTE
295
+
296
+ ONLY WHEN C is selected and all requirements are saved to document and frontmatter is updated, will you then read fully and follow: {nextStepFile} to begin epic design step.
297
+
298
+ ---
299
+
300
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
301
+
302
+ ### ✅ SUCCESS:
303
+
304
+ - All required documents found and validated
305
+ - All FRs extracted and formatted correctly
306
+ - All NFRs extracted and formatted correctly
307
+ - Additional requirements from Architecture/UX identified
308
+ - Template initialized with requirements
309
+ - User confirms requirements are complete and accurate
310
+
311
+ ### ❌ SYSTEM FAILURE:
312
+
313
+ - Missing required documents
314
+ - Incomplete requirements extraction
315
+ - Template not properly initialized
316
+ - Not saving requirements to output file
317
+
318
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
319
+
320
+
321
+ ---
322
+ name: 'step-02-design-epics'
323
+ description: 'Design and approve the epics_list that will organize all requirements into user-value-focused epics'
324
+
325
+ # Path Definitions
326
+ workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
327
+
328
+ # File References
329
+ thisStepFile: './step-02-design-epics.md'
330
+ nextStepFile: './step-03-create-stories.md'
331
+ workflowFile: '{workflow_path}/workflow.md'
332
+ outputFile: '{planning_artifacts}/epics.md'
333
+
334
+ # Task References
335
+ advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
336
+ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
337
+
338
+ # Template References
339
+ epicsTemplate: '{workflow_path}/templates/epics-template.md'
340
+ ---
341
+
342
+ # Step 2: Design Epic List
343
+
344
+ ## STEP GOAL:
345
+
346
+ To design and get approval for the epics_list that will organize all requirements into user-value-focused epics.
347
+
348
+ ## MANDATORY EXECUTION RULES (READ FIRST):
349
+
350
+ ### Universal Rules:
351
+
352
+ - 🛑 NEVER generate content without user input
353
+ - 📖 CRITICAL: Read the complete step file before taking any action
354
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
355
+ - 📋 YOU ARE A FACILITATOR, not a content generator
356
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
357
+
358
+ ### Role Reinforcement:
359
+
360
+ - ✅ You are a product strategist and technical specifications writer
361
+ - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
362
+ - ✅ We engage in collaborative dialogue, not command-response
363
+ - ✅ You bring product strategy and epic design expertise
364
+ - ✅ User brings their product vision and priorities
365
+
366
+ ### Step-Specific Rules:
367
+
368
+ - 🎯 Focus ONLY on creating the epics_list
369
+ - 🚫 FORBIDDEN to create individual stories in this step
370
+ - 💬 Organize epics around user value, not technical layers
371
+ - 🚪 GET explicit approval for the epics_list
372
+ - 🔗 **CRITICAL: Each epic must be standalone and enable future epics without requiring future epics to function**
373
+
374
+ ## EXECUTION PROTOCOLS:
375
+
376
+ - 🎯 Design epics collaboratively based on extracted requirements
377
+ - 💾 Update {{epics_list}} in {outputFile}
378
+ - 📖 Document the FR coverage mapping
379
+ - 🚫 FORBIDDEN to load next step until user approves epics_list
380
+
381
+ ## EPIC DESIGN PROCESS:
382
+
383
+ ### 1. Review Extracted Requirements
384
+
385
+ Load {outputFile} and review:
386
+
387
+ - **Functional Requirements:** Count and review FRs from Step 1
388
+ - **Non-Functional Requirements:** Review NFRs that need to be addressed
389
+ - **Additional Requirements:** Review technical and UX requirements
390
+
391
+ ### 2. Explain Epic Design Principles
392
+
393
+ **EPIC DESIGN PRINCIPLES:**
394
+
395
+ 1. **User-Value First**: Each epic must enable users to accomplish something meaningful
396
+ 2. **Requirements Grouping**: Group related FRs that deliver cohesive user outcomes
397
+ 3. **Incremental Delivery**: Each epic should deliver value independently
398
+ 4. **Logical Flow**: Natural progression from user's perspective
399
+ 5. **🔗 Dependency-Free Within Epic**: Stories within an epic must NOT depend on future stories
400
+
401
+ **⚠️ CRITICAL PRINCIPLE:**
402
+ Organize by USER VALUE, not technical layers:
403
+
404
+ **✅ CORRECT Epic Examples (Standalone & Enable Future Epics):**
405
+
406
+ - Epic 1: User Authentication & Profiles (users can register, login, manage profiles) - **Standalone: Complete auth system**
407
+ - Epic 2: Content Creation (users can create, edit, publish content) - **Standalone: Uses auth, creates content**
408
+ - Epic 3: Social Interaction (users can follow, comment, like content) - **Standalone: Uses auth + content**
409
+ - Epic 4: Search & Discovery (users can find content and other users) - **Standalone: Uses all previous**
410
+
411
+ **❌ WRONG Epic Examples (Technical Layers or Dependencies):**
412
+
413
+ - Epic 1: Database Setup (creates all tables upfront) - **No user value**
414
+ - Epic 2: API Development (builds all endpoints) - **No user value**
415
+ - Epic 3: Frontend Components (creates reusable components) - **No user value**
416
+ - Epic 4: Deployment Pipeline (CI/CD setup) - **No user value**
417
+
418
+ **🔗 DEPENDENCY RULES:**
419
+
420
+ - Each epic must deliver COMPLETE functionality for its domain
421
+ - Epic 2 must not require Epic 3 to function
422
+ - Epic 3 can build upon Epic 1 & 2 but must stand alone
423
+
424
+ ### 3. Design Epic Structure Collaboratively
425
+
426
+ **Step A: Identify User Value Themes**
427
+
428
+ - Look for natural groupings in the FRs
429
+ - Identify user journeys or workflows
430
+ - Consider user types and their goals
431
+
432
+ **Step B: Propose Epic Structure**
433
+ For each proposed epic:
434
+
435
+ 1. **Epic Title**: User-centric, value-focused
436
+ 2. **User Outcome**: What users can accomplish after this epic
437
+ 3. **FR Coverage**: Which FR numbers this epic addresses
438
+ 4. **Implementation Notes**: Any technical or UX considerations
439
+
440
+ **Step C: Create the epics_list**
441
+
442
+ Format the epics_list as:
443
+
444
+ ```
445
+ ## Epic List
446
+
447
+ ### Epic 1: [Epic Title]
448
+ [Epic goal statement - what users can accomplish]
449
+ **FRs covered:** FR1, FR2, FR3, etc.
450
+
451
+ ### Epic 2: [Epic Title]
452
+ [Epic goal statement - what users can accomplish]
453
+ **FRs covered:** FR4, FR5, FR6, etc.
454
+
455
+ [Continue for all epics]
456
+ ```
457
+
458
+ ### 4. Present Epic List for Review
459
+
460
+ Display the complete epics_list to user with:
461
+
462
+ - Total number of epics
463
+ - FR coverage per epic
464
+ - User value delivered by each epic
465
+ - Any natural dependencies
466
+
467
+ ### 5. Create Requirements Coverage Map
468
+
469
+ Create {{requirements_coverage_map}} showing how each FR maps to an epic:
470
+
471
+ ```
472
+ ### FR Coverage Map
473
+
474
+ FR1: Epic 1 - [Brief description]
475
+ FR2: Epic 1 - [Brief description]
476
+ FR3: Epic 2 - [Brief description]
477
+ ...
478
+ ```
479
+
480
+ This ensures no FRs are missed.
481
+
482
+ ### 6. Collaborative Refinement
483
+
484
+ Ask user:
485
+
486
+ - "Does this epic structure align with your product vision?"
487
+ - "Are all user outcomes properly captured?"
488
+ - "Should we adjust any epic groupings?"
489
+ - "Are there natural dependencies we've missed?"
490
+
491
+ ### 7. Get Final Approval
492
+
493
+ **CRITICAL:** Must get explicit user approval:
494
+ "Do you approve this epic structure for proceeding to story creation?"
495
+
496
+ If user wants changes:
497
+
498
+ - Make the requested adjustments
499
+ - Update the epics_list
500
+ - Re-present for approval
501
+ - Repeat until approval is received
502
+
503
+ ## CONTENT TO UPDATE IN DOCUMENT:
504
+
505
+ After approval, update {outputFile}:
506
+
507
+ 1. Replace {{epics_list}} placeholder with the approved epic list
508
+ 2. Replace {{requirements_coverage_map}} with the coverage map
509
+ 3. Ensure all FRs are mapped to epics
510
+
511
+ ### 8. Present MENU OPTIONS
512
+
513
+ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue"
514
+
515
+ #### Menu Handling Logic:
516
+
517
+ - IF A: Read fully and follow: {advancedElicitationTask}
518
+ - IF P: Read fully and follow: {partyModeWorkflow}
519
+ - IF C: Save approved epics_list to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
520
+ - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#8-present-menu-options)
521
+
522
+ #### EXECUTION RULES:
523
+
524
+ - ALWAYS halt and wait for user input after presenting menu
525
+ - ONLY proceed to next step when user selects 'C'
526
+ - After other menu items execution completes, redisplay the menu
527
+ - User can chat or ask questions - always respond when conversation ends, redisplay the menu options
528
+
529
+ ## CRITICAL STEP COMPLETION NOTE
530
+
531
+ ONLY WHEN C is selected and the approved epics_list is saved to document, will you then read fully and follow: {nextStepFile} to begin story creation step.
532
+
533
+ ---
534
+
535
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
536
+
537
+ ### ✅ SUCCESS:
538
+
539
+ - Epics designed around user value
540
+ - All FRs mapped to specific epics
541
+ - epics_list created and formatted correctly
542
+ - Requirements coverage map completed
543
+ - User gives explicit approval for epic structure
544
+ - Document updated with approved epics
545
+
546
+ ### ❌ SYSTEM FAILURE:
547
+
548
+ - Epics organized by technical layers
549
+ - Missing FRs in coverage map
550
+ - No user approval obtained
551
+ - epics_list not saved to document
552
+
553
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
554
+
555
+
556
+ ---
557
+ name: 'step-03-create-stories'
558
+ description: 'Generate all epics with their stories following the template structure'
559
+
560
+ # Path Definitions
561
+ workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
562
+
563
+ # File References
564
+ thisStepFile: './step-03-create-stories.md'
565
+ nextStepFile: './step-04-final-validation.md'
566
+ workflowFile: '{workflow_path}/workflow.md'
567
+ outputFile: '{planning_artifacts}/epics.md'
568
+
569
+ # Task References
570
+ advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
571
+ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
572
+
573
+ # Template References
574
+ epicsTemplate: '{workflow_path}/templates/epics-template.md'
575
+ ---
576
+
577
+ # Step 3: Generate Epics and Stories
578
+
579
+ ## STEP GOAL:
580
+
581
+ To generate all epics with their stories based on the approved epics_list, following the template structure exactly.
582
+
583
+ ## MANDATORY EXECUTION RULES (READ FIRST):
584
+
585
+ ### Universal Rules:
586
+
587
+ - 🛑 NEVER generate content without user input
588
+ - 📖 CRITICAL: Read the complete step file before taking any action
589
+ - 🔄 CRITICAL: Process epics sequentially
590
+ - 📋 YOU ARE A FACILITATOR, not a content generator
591
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
592
+
593
+ ### Role Reinforcement:
594
+
595
+ - ✅ You are a product strategist and technical specifications writer
596
+ - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
597
+ - ✅ We engage in collaborative dialogue, not command-response
598
+ - ✅ You bring story creation and acceptance criteria expertise
599
+ - ✅ User brings their implementation priorities and constraints
600
+
601
+ ### Step-Specific Rules:
602
+
603
+ - 🎯 Generate stories for each epic following the template exactly
604
+ - 🚫 FORBIDDEN to deviate from template structure
605
+ - 💬 Each story must have clear acceptance criteria
606
+ - 🚪 ENSURE each story is completable by a single dev agent
607
+ - 🔗 **CRITICAL: Stories MUST NOT depend on future stories within the same epic**
608
+
609
+ ## EXECUTION PROTOCOLS:
610
+
611
+ - 🎯 Generate stories collaboratively with user input
612
+ - 💾 Append epics and stories to {outputFile} following template
613
+ - 📖 Process epics one at a time in sequence
614
+ - 🚫 FORBIDDEN to skip any epic or rush through stories
615
+
616
+ ## STORY GENERATION PROCESS:
617
+
618
+ ### 1. Load Approved Epic Structure
619
+
620
+ Load {outputFile} and review:
621
+
622
+ - Approved epics_list from Step 2
623
+ - FR coverage map
624
+ - All requirements (FRs, NFRs, additional)
625
+ - Template structure at the end of the document
626
+
627
+ ### 2. Explain Story Creation Approach
628
+
629
+ **STORY CREATION GUIDELINES:**
630
+
631
+ For each epic, create stories that:
632
+
633
+ - Follow the exact template structure
634
+ - Are sized for single dev agent completion
635
+ - Have clear user value
636
+ - Include specific acceptance criteria
637
+ - Reference requirements being fulfilled
638
+
639
+ **🚨 DATABASE/ENTITY CREATION PRINCIPLE:**
640
+ Create tables/entities ONLY when needed by the story:
641
+
642
+ - ❌ WRONG: Epic 1 Story 1 creates all 50 database tables
643
+ - ✅ RIGHT: Each story creates/alters ONLY the tables it needs
644
+
645
+ **🔗 STORY DEPENDENCY PRINCIPLE:**
646
+ Stories must be independently completable in sequence:
647
+
648
+ - ❌ WRONG: Story 1.2 requires Story 1.3 to be completed first
649
+ - ✅ RIGHT: Each story can be completed based only on previous stories
650
+ - ❌ WRONG: "Wait for Story 1.4 to be implemented before this works"
651
+ - ✅ RIGHT: "This story works independently and enables future stories"
652
+
653
+ **STORY FORMAT (from template):**
654
+
655
+ ```
656
+ ### Story {N}.{M}: {story_title}
657
+
658
+ As a {user_type},
659
+ I want {capability},
660
+ So that {value_benefit}.
661
+
662
+ **Acceptance Criteria:**
663
+
664
+ **Given** {precondition}
665
+ **When** {action}
666
+ **Then** {expected_outcome}
667
+ **And** {additional_criteria}
668
+ ```
669
+
670
+ **✅ GOOD STORY EXAMPLES:**
671
+
672
+ _Epic 1: User Authentication_
673
+
674
+ - Story 1.1: User Registration with Email
675
+ - Story 1.2: User Login with Password
676
+ - Story 1.3: Password Reset via Email
677
+
678
+ _Epic 2: Content Creation_
679
+
680
+ - Story 2.1: Create New Blog Post
681
+ - Story 2.2: Edit Existing Blog Post
682
+ - Story 2.3: Publish Blog Post
683
+
684
+ **❌ BAD STORY EXAMPLES:**
685
+
686
+ - Story: "Set up database" (no user value)
687
+ - Story: "Create all models" (too large, no user value)
688
+ - Story: "Build authentication system" (too large)
689
+ - Story: "Login UI (depends on Story 1.3 API endpoint)" (future dependency!)
690
+ - Story: "Edit post (requires Story 1.4 to be implemented first)" (wrong order!)
691
+
692
+ ### 3. Process Epics Sequentially
693
+
694
+ For each epic in the approved epics_list:
695
+
696
+ #### A. Epic Overview
697
+
698
+ Display:
699
+
700
+ - Epic number and title
701
+ - Epic goal statement
702
+ - FRs covered by this epic
703
+ - Any NFRs or additional requirements relevant
704
+
705
+ #### B. Story Breakdown
706
+
707
+ Work with user to break down the epic into stories:
708
+
709
+ - Identify distinct user capabilities
710
+ - Ensure logical flow within the epic
711
+ - Size stories appropriately
712
+
713
+ #### C. Generate Each Story
714
+
715
+ For each story in the epic:
716
+
717
+ 1. **Story Title**: Clear, action-oriented
718
+ 2. **User Story**: Complete the As a/I want/So that format
719
+ 3. **Acceptance Criteria**: Write specific, testable criteria
720
+
721
+ **AC Writing Guidelines:**
722
+
723
+ - Use Given/When/Then format
724
+ - Each AC should be independently testable
725
+ - Include edge cases and error conditions
726
+ - Reference specific requirements when applicable
727
+
728
+ #### D. Collaborative Review
729
+
730
+ After writing each story:
731
+
732
+ - Present the story to user
733
+ - Ask: "Does this story capture the requirement correctly?"
734
+ - "Is the scope appropriate for a single dev session?"
735
+ - "Are the acceptance criteria complete and testable?"
736
+
737
+ #### E. Append to Document
738
+
739
+ When story is approved:
740
+
741
+ - Append it to {outputFile} following template structure
742
+ - Use correct numbering (Epic N, Story M)
743
+ - Maintain proper markdown formatting
744
+
745
+ ### 4. Epic Completion
746
+
747
+ After all stories for an epic are complete:
748
+
749
+ - Display epic summary
750
+ - Show count of stories created
751
+ - Verify all FRs for the epic are covered
752
+ - Get user confirmation to proceed to next epic
753
+
754
+ ### 5. Repeat for All Epics
755
+
756
+ Continue the process for each epic in the approved list, processing them in order (Epic 1, Epic 2, etc.).
757
+
758
+ ### 6. Final Document Completion
759
+
760
+ After all epics and stories are generated:
761
+
762
+ - Verify the document follows template structure exactly
763
+ - Ensure all placeholders are replaced
764
+ - Confirm all FRs are covered
765
+ - Check formatting consistency
766
+
767
+ ## TEMPLATE STRUCTURE COMPLIANCE:
768
+
769
+ The final {outputFile} must follow this structure exactly:
770
+
771
+ 1. **Overview** section with project name
772
+ 2. **Requirements Inventory** with all three subsections populated
773
+ 3. **FR Coverage Map** showing requirement to epic mapping
774
+ 4. **Epic List** with approved epic structure
775
+ 5. **Epic sections** for each epic (N = 1, 2, 3...)
776
+ - Epic title and goal
777
+ - All stories for that epic (M = 1, 2, 3...)
778
+ - Story title and user story
779
+ - Acceptance Criteria using Given/When/Then format
780
+
781
+ ### 7. Present FINAL MENU OPTIONS
782
+
783
+ After all epics and stories are complete:
784
+
785
+ Display: "**Select an Option:** [A] Advanced Elicitation [P] Party Mode [C] Continue"
786
+
787
+ #### Menu Handling Logic:
788
+
789
+ - IF A: Read fully and follow: {advancedElicitationTask}
790
+ - IF P: Read fully and follow: {partyModeWorkflow}
791
+ - IF C: Save content to {outputFile}, update frontmatter, then read fully and follow: {nextStepFile}
792
+ - IF Any other comments or queries: help user respond then [Redisplay Menu Options](#7-present-final-menu-options)
793
+
794
+ #### EXECUTION RULES:
795
+
796
+ - ALWAYS halt and wait for user input after presenting menu
797
+ - ONLY proceed to next step when user selects 'C'
798
+ - After other menu items execution, return to this menu
799
+ - User can chat or ask questions - always respond and then end with display again of the menu options
800
+
801
+ ## CRITICAL STEP COMPLETION NOTE
802
+
803
+ 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: `{nextStepFile}` to begin final validation phase.
804
+
805
+ ---
806
+
807
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
808
+
809
+ ### ✅ SUCCESS:
810
+
811
+ - All epics processed in sequence
812
+ - Stories created for each epic
813
+ - Template structure followed exactly
814
+ - All FRs covered by stories
815
+ - Stories appropriately sized
816
+ - Acceptance criteria are specific and testable
817
+ - Document is complete and ready for development
818
+
819
+ ### ❌ SYSTEM FAILURE:
820
+
821
+ - Deviating from template structure
822
+ - Missing epics or stories
823
+ - Stories too large or unclear
824
+ - Missing acceptance criteria
825
+ - Not following proper formatting
826
+
827
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
828
+
829
+
830
+ ---
831
+ name: 'step-04-final-validation'
832
+ description: 'Validate complete coverage of all requirements and ensure implementation readiness'
833
+
834
+ # Path Definitions
835
+ workflow_path: '{project-root}/_bmad/bmm/workflows/3-solutioning/create-epics-and-stories'
836
+
837
+ # File References
838
+ thisStepFile: './step-04-final-validation.md'
839
+ workflowFile: '{workflow_path}/workflow.md'
840
+ outputFile: '{planning_artifacts}/epics.md'
841
+
842
+ # Task References
843
+ advancedElicitationTask: '{project-root}/_bmad/core/workflows/advanced-elicitation/workflow.xml'
844
+ partyModeWorkflow: '{project-root}/_bmad/core/workflows/party-mode/workflow.md'
845
+
846
+ # Template References
847
+ epicsTemplate: '{workflow_path}/templates/epics-template.md'
848
+ ---
849
+
850
+ # Step 4: Final Validation
851
+
852
+ ## STEP GOAL:
853
+
854
+ To validate complete coverage of all requirements and ensure stories are ready for development.
855
+
856
+ ## MANDATORY EXECUTION RULES (READ FIRST):
857
+
858
+ ### Universal Rules:
859
+
860
+ - 🛑 NEVER generate content without user input
861
+ - 📖 CRITICAL: Read the complete step file before taking any action
862
+ - 🔄 CRITICAL: Process validation sequentially without skipping
863
+ - 📋 YOU ARE A FACILITATOR, not a content generator
864
+ - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
865
+
866
+ ### Role Reinforcement:
867
+
868
+ - ✅ You are a product strategist and technical specifications writer
869
+ - ✅ If you already have been given communication or persona patterns, continue to use those while playing this new role
870
+ - ✅ We engage in collaborative dialogue, not command-response
871
+ - ✅ You bring validation expertise and quality assurance
872
+ - ✅ User brings their implementation priorities and final review
873
+
874
+ ### Step-Specific Rules:
875
+
876
+ - 🎯 Focus ONLY on validating complete requirements coverage
877
+ - 🚫 FORBIDDEN to skip any validation checks
878
+ - 💬 Validate FR coverage, story completeness, and dependencies
879
+ - 🚪 ENSURE all stories are ready for development
880
+
881
+ ## EXECUTION PROTOCOLS:
882
+
883
+ - 🎯 Validate every requirement has story coverage
884
+ - 💾 Check story dependencies and flow
885
+ - 📖 Verify architecture compliance
886
+ - 🚫 FORBIDDEN to approve incomplete coverage
887
+
888
+ ## CONTEXT BOUNDARIES:
889
+
890
+ - Available context: Complete epic and story breakdown from previous steps
891
+ - Focus: Final validation of requirements coverage and story readiness
892
+ - Limits: Validation only, no new content creation
893
+ - Dependencies: Completed story generation from Step 3
894
+
895
+ ## VALIDATION PROCESS:
896
+
897
+ ### 1. FR Coverage Validation
898
+
899
+ Review the complete epic and story breakdown to ensure EVERY FR is covered:
900
+
901
+ **CRITICAL CHECK:**
902
+
903
+ - Go through each FR from the Requirements Inventory
904
+ - Verify it appears in at least one story
905
+ - Check that acceptance criteria fully address the FR
906
+ - No FRs should be left uncovered
907
+
908
+ ### 2. Architecture Implementation Validation
909
+
910
+ **Check for Starter Template Setup:**
911
+
912
+ - Does Architecture document specify a starter template?
913
+ - If YES: Epic 1 Story 1 must be "Set up initial project from starter template"
914
+ - This includes cloning, installing dependencies, initial configuration
915
+
916
+ **Database/Entity Creation Validation:**
917
+
918
+ - Are database tables/entities created ONLY when needed by stories?
919
+ - ❌ WRONG: Epic 1 creates all tables upfront
920
+ - ✅ RIGHT: Tables created as part of the first story that needs them
921
+ - Each story should create/modify ONLY what it needs
922
+
923
+ ### 3. Story Quality Validation
924
+
925
+ **Each story must:**
926
+
927
+ - Be completable by a single dev agent
928
+ - Have clear acceptance criteria
929
+ - Reference specific FRs it implements
930
+ - Include necessary technical details
931
+ - **Not have forward dependencies** (can only depend on PREVIOUS stories)
932
+ - Be implementable without waiting for future stories
933
+
934
+ ### 4. Epic Structure Validation
935
+
936
+ **Check that:**
937
+
938
+ - Epics deliver user value, not technical milestones
939
+ - Dependencies flow naturally
940
+ - Foundation stories only setup what's needed
941
+ - No big upfront technical work
942
+
943
+ ### 5. Dependency Validation (CRITICAL)
944
+
945
+ **Epic Independence Check:**
946
+
947
+ - Does each epic deliver COMPLETE functionality for its domain?
948
+ - Can Epic 2 function without Epic 3 being implemented?
949
+ - Can Epic 3 function standalone using Epic 1 & 2 outputs?
950
+ - ❌ WRONG: Epic 2 requires Epic 3 features to work
951
+ - ✅ RIGHT: Each epic is independently valuable
952
+
953
+ **Within-Epic Story Dependency Check:**
954
+ For each epic, review stories in order:
955
+
956
+ - Can Story N.1 be completed without Stories N.2, N.3, etc.?
957
+ - Can Story N.2 be completed using only Story N.1 output?
958
+ - Can Story N.3 be completed using only Stories N.1 & N.2 outputs?
959
+ - ❌ WRONG: "This story depends on a future story"
960
+ - ❌ WRONG: Story references features not yet implemented
961
+ - ✅ RIGHT: Each story builds only on previous stories
962
+
963
+ ### 6. Complete and Save
964
+
965
+ If all validations pass:
966
+
967
+ - Update any remaining placeholders in the document
968
+ - Ensure proper formatting
969
+ - Save the final epics.md
970
+
971
+ **Present Final Menu:**
972
+ **All validations complete!** [C] Complete Workflow
973
+
974
+ When C is selected, the workflow is complete and the epics.md is ready for development.
975
+
976
+ Epics and Stories complete. Read fully and follow: `_bmad/core/tasks/bmad-help.md` with argument `Create Epics and Stories`.
977
+
978
+ Upon Completion of task output: offer to answer any questions about the Epics and Stories.
979
+