@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.
Files changed (104) hide show
  1. package/LICENSE +31 -0
  2. package/NOTICE.md +6 -0
  3. package/README.md +64 -2
  4. package/dist/gui-experimental.cjs +64 -0
  5. package/docs/screenshots/artifact-storage.png +0 -0
  6. package/package.json +53 -4
  7. package/skills/bmad-code-review/SKILL.md +23 -0
  8. package/skills/bmad-code-review/reference/SKILL.md +90 -0
  9. package/skills/bmad-code-review/reference/customize.toml +41 -0
  10. package/skills/bmad-code-review/reference/steps/step-01-gather-context.md +85 -0
  11. package/skills/bmad-code-review/reference/steps/step-02-review.md +35 -0
  12. package/skills/bmad-code-review/reference/steps/step-03-triage.md +49 -0
  13. package/skills/bmad-code-review/reference/steps/step-04-present.md +132 -0
  14. package/skills/bmad-create-architecture/SKILL.md +23 -0
  15. package/skills/bmad-create-architecture/reference/SKILL.md +74 -0
  16. package/skills/bmad-create-architecture/reference/architecture-decision-template.md +12 -0
  17. package/skills/bmad-create-architecture/reference/customize.toml +41 -0
  18. package/skills/bmad-create-architecture/reference/data/domain-complexity.csv +13 -0
  19. package/skills/bmad-create-architecture/reference/data/project-types.csv +7 -0
  20. package/skills/bmad-create-architecture/reference/steps/step-01-init.md +153 -0
  21. package/skills/bmad-create-architecture/reference/steps/step-01b-continue.md +173 -0
  22. package/skills/bmad-create-architecture/reference/steps/step-02-context.md +224 -0
  23. package/skills/bmad-create-architecture/reference/steps/step-03-starter.md +329 -0
  24. package/skills/bmad-create-architecture/reference/steps/step-04-decisions.md +318 -0
  25. package/skills/bmad-create-architecture/reference/steps/step-05-patterns.md +359 -0
  26. package/skills/bmad-create-architecture/reference/steps/step-06-structure.md +379 -0
  27. package/skills/bmad-create-architecture/reference/steps/step-07-validation.md +361 -0
  28. package/skills/bmad-create-architecture/reference/steps/step-08-complete.md +82 -0
  29. package/skills/bmad-create-epics-and-stories/SKILL.md +23 -0
  30. package/skills/bmad-create-epics-and-stories/reference/SKILL.md +93 -0
  31. package/skills/bmad-create-epics-and-stories/reference/customize.toml +41 -0
  32. package/skills/bmad-create-epics-and-stories/reference/steps/step-01-validate-prerequisites.md +255 -0
  33. package/skills/bmad-create-epics-and-stories/reference/steps/step-02-design-epics.md +242 -0
  34. package/skills/bmad-create-epics-and-stories/reference/steps/step-03-create-stories.md +255 -0
  35. package/skills/bmad-create-epics-and-stories/reference/steps/step-04-final-validation.md +143 -0
  36. package/skills/bmad-create-epics-and-stories/reference/templates/epics-template.md +61 -0
  37. package/skills/bmad-create-story/SKILL.md +23 -0
  38. package/skills/bmad-create-story/reference/SKILL.md +429 -0
  39. package/skills/bmad-create-story/reference/checklist.md +357 -0
  40. package/skills/bmad-create-story/reference/customize.toml +41 -0
  41. package/skills/bmad-create-story/reference/discover-inputs.md +88 -0
  42. package/skills/bmad-create-story/reference/template.md +49 -0
  43. package/skills/bmad-dev-story/SKILL.md +23 -0
  44. package/skills/bmad-dev-story/reference/SKILL.md +500 -0
  45. package/skills/bmad-dev-story/reference/checklist.md +80 -0
  46. package/skills/bmad-dev-story/reference/customize.toml +41 -0
  47. package/skills/bmad-document-project/SKILL.md +23 -0
  48. package/skills/bmad-document-project/reference/SKILL.md +62 -0
  49. package/skills/bmad-document-project/reference/checklist.md +245 -0
  50. package/skills/bmad-document-project/reference/customize.toml +41 -0
  51. package/skills/bmad-document-project/reference/documentation-requirements.csv +12 -0
  52. package/skills/bmad-document-project/reference/instructions.md +128 -0
  53. package/skills/bmad-document-project/reference/templates/deep-dive-template.md +345 -0
  54. package/skills/bmad-document-project/reference/templates/index-template.md +169 -0
  55. package/skills/bmad-document-project/reference/templates/project-overview-template.md +103 -0
  56. package/skills/bmad-document-project/reference/templates/project-scan-report-schema.json +160 -0
  57. package/skills/bmad-document-project/reference/templates/source-tree-template.md +135 -0
  58. package/skills/bmad-document-project/reference/workflows/deep-dive-instructions.md +300 -0
  59. package/skills/bmad-document-project/reference/workflows/deep-dive-workflow.md +34 -0
  60. package/skills/bmad-document-project/reference/workflows/full-scan-instructions.md +1108 -0
  61. package/skills/bmad-document-project/reference/workflows/full-scan-workflow.md +34 -0
  62. package/skills/bmad-generate-project-context/SKILL.md +23 -0
  63. package/skills/bmad-generate-project-context/reference/SKILL.md +81 -0
  64. package/skills/bmad-generate-project-context/reference/customize.toml +41 -0
  65. package/skills/bmad-generate-project-context/reference/project-context-template.md +21 -0
  66. package/skills/bmad-generate-project-context/reference/steps/step-01-discover.md +186 -0
  67. package/skills/bmad-generate-project-context/reference/steps/step-02-generate.md +321 -0
  68. package/skills/bmad-generate-project-context/reference/steps/step-03-complete.md +284 -0
  69. package/skills/bmad-help/SKILL.md +19 -0
  70. package/skills/bmad-help/reference/SKILL.md +75 -0
  71. package/skills/bmad-prd/SKILL.md +23 -0
  72. package/skills/bmad-prd/reference/SKILL.md +92 -0
  73. package/skills/bmad-prd/reference/assets/headless-schemas.md +76 -0
  74. package/skills/bmad-prd/reference/assets/prd-template.md +165 -0
  75. package/skills/bmad-prd/reference/assets/prd-validation-checklist.md +135 -0
  76. package/skills/bmad-prd/reference/assets/validation-report-template.html +325 -0
  77. package/skills/bmad-prd/reference/customize.toml +147 -0
  78. package/skills/bmad-prd/reference/references/headless.md +39 -0
  79. package/skills/bmad-prd/reference/references/validate.md +97 -0
  80. package/skills/bmad-product-brief/SKILL.md +22 -0
  81. package/skills/bmad-product-brief/reference/SKILL.md +91 -0
  82. package/skills/bmad-product-brief/reference/assets/brief-template.md +41 -0
  83. package/skills/bmad-product-brief/reference/customize.toml +99 -0
  84. package/skills/bmad-quick-dev/SKILL.md +26 -0
  85. package/skills/bmad-quick-dev/reference/SKILL.md +111 -0
  86. package/skills/bmad-quick-dev/reference/compile-epic-context.md +62 -0
  87. package/skills/bmad-quick-dev/reference/customize.toml +41 -0
  88. package/skills/bmad-quick-dev/reference/spec-template.md +88 -0
  89. package/skills/bmad-quick-dev/reference/step-01-clarify-and-route.md +100 -0
  90. package/skills/bmad-quick-dev/reference/step-02-plan.md +47 -0
  91. package/skills/bmad-quick-dev/reference/step-03-implement.md +41 -0
  92. package/skills/bmad-quick-dev/reference/step-04-review.md +50 -0
  93. package/skills/bmad-quick-dev/reference/step-05-present.md +78 -0
  94. package/skills/bmad-quick-dev/reference/step-oneshot.md +71 -0
  95. package/skills/bmad-quick-dev/reference/sync-sprint-status.md +19 -0
  96. package/skills/bmad-sprint-planning/SKILL.md +23 -0
  97. package/skills/bmad-sprint-planning/reference/SKILL.md +300 -0
  98. package/skills/bmad-sprint-planning/reference/checklist.md +33 -0
  99. package/skills/bmad-sprint-planning/reference/customize.toml +41 -0
  100. package/skills/bmad-sprint-planning/reference/sprint-status-template.yaml +56 -0
  101. package/src/gui.tsx +127 -0
  102. package/src/index.ts +114 -0
  103. package/src/rpc.ts +27 -0
  104. package/src/storage.ts +21 -0
@@ -0,0 +1,361 @@
1
+ # Step 7: Architecture Validation & Completion
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - πŸ›‘ NEVER generate content without user input
6
+
7
+ - πŸ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
+ - πŸ”„ CRITICAL: When loading next step with 'C', ensure the entire file is read and understood before proceeding
9
+ - βœ… ALWAYS treat this as collaborative discovery between architectural peers
10
+ - πŸ“‹ YOU ARE A FACILITATOR, not a content generator
11
+ - πŸ’¬ FOCUS on validating architectural coherence and completeness
12
+ - βœ… VALIDATE all requirements are covered by architectural decisions
13
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
14
+ - βœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
15
+
16
+ ## EXECUTION PROTOCOLS:
17
+
18
+ - 🎯 Show your analysis before taking any action
19
+ - βœ… Run comprehensive validation checks on the complete architecture
20
+ - ⚠️ Present A/P/C menu after generating validation results
21
+ - πŸ’Ύ ONLY save when user chooses C (Continue)
22
+ - πŸ“– Update frontmatter `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]` before loading next step
23
+ - 🚫 FORBIDDEN to load next step until C is selected
24
+
25
+ ## COLLABORATION MENUS (A/P/C):
26
+
27
+ This step will generate content and present choices:
28
+
29
+ - **A (Advanced Elicitation)**: Use discovery protocols to address complex architectural issues found during validation
30
+ - **P (Party Mode)**: Bring multiple perspectives to resolve validation concerns
31
+ - **C (Continue)**: Save the validation results and complete the architecture
32
+
33
+ ## PROTOCOL INTEGRATION:
34
+
35
+ - When 'A' selected: Invoke the `bmad-advanced-elicitation` skill
36
+ - When 'P' selected: Invoke the `bmad-party-mode` skill
37
+ - PROTOCOLS always return to display this step's A/P/C menu after the A or P have completed
38
+ - User accepts/rejects protocol changes before proceeding
39
+
40
+ ## CONTEXT BOUNDARIES:
41
+
42
+ - Complete architecture document with all sections is available
43
+ - All architectural decisions, patterns, and structure are defined
44
+ - Focus on validation, gap analysis, and coherence checking
45
+ - Prepare for handoff to implementation phase
46
+
47
+ ## YOUR TASK:
48
+
49
+ Validate the complete architecture for coherence, completeness, and readiness to guide AI agents through consistent implementation.
50
+
51
+ ## VALIDATION SEQUENCE:
52
+
53
+ ### 1. Coherence Validation
54
+
55
+ Check that all architectural decisions work together:
56
+
57
+ **Decision Compatibility:**
58
+
59
+ - Do all technology choices work together without conflicts?
60
+ - Are all versions compatible with each other?
61
+ - Do patterns align with technology choices?
62
+ - Are there any contradictory decisions?
63
+
64
+ **Pattern Consistency:**
65
+
66
+ - Do implementation patterns support the architectural decisions?
67
+ - Are naming conventions consistent across all areas?
68
+ - Do structure patterns align with technology stack?
69
+ - Are communication patterns coherent?
70
+
71
+ **Structure Alignment:**
72
+
73
+ - Does the project structure support all architectural decisions?
74
+ - Are boundaries properly defined and respected?
75
+ - Does the structure enable the chosen patterns?
76
+ - Are integration points properly structured?
77
+
78
+ ### 2. Requirements Coverage Validation
79
+
80
+ Verify all project requirements are architecturally supported:
81
+
82
+ **From Epics (if available):**
83
+
84
+ - Does every epic have architectural support?
85
+ - Are all user stories implementable with these decisions?
86
+ - Are cross-epic dependencies handled architecturally?
87
+ - Are there any gaps in epic coverage?
88
+
89
+ **From FR Categories (if no epics):**
90
+
91
+ - Does every functional requirement have architectural support?
92
+ - Are all FR categories fully covered by architectural decisions?
93
+ - Are cross-cutting FRs properly addressed?
94
+ - Are there any missing architectural capabilities?
95
+
96
+ **Non-Functional Requirements:**
97
+
98
+ - Are performance requirements addressed architecturally?
99
+ - Are security requirements fully covered?
100
+ - Are scalability considerations properly handled?
101
+ - Are compliance requirements architecturally supported?
102
+
103
+ ### 3. Implementation Readiness Validation
104
+
105
+ Assess if AI agents can implement consistently:
106
+
107
+ **Decision Completeness:**
108
+
109
+ - Are all critical decisions documented with versions?
110
+ - Are implementation patterns comprehensive enough?
111
+ - Are consistency rules clear and enforceable?
112
+ - Are examples provided for all major patterns?
113
+
114
+ **Structure Completeness:**
115
+
116
+ - Is the project structure complete and specific?
117
+ - Are all files and directories defined?
118
+ - Are integration points clearly specified?
119
+ - Are component boundaries well-defined?
120
+
121
+ **Pattern Completeness:**
122
+
123
+ - Are all potential conflict points addressed?
124
+ - Are naming conventions comprehensive?
125
+ - Are communication patterns fully specified?
126
+ - Are process patterns (error handling, etc.) complete?
127
+
128
+ ### 4. Gap Analysis
129
+
130
+ Identify and document any missing elements:
131
+
132
+ **Critical Gaps:**
133
+
134
+ - Missing architectural decisions that block implementation
135
+ - Incomplete patterns that could cause conflicts
136
+ - Missing structural elements needed for development
137
+ - Undefined integration points
138
+
139
+ **Important Gaps:**
140
+
141
+ - Areas that need more detailed specification
142
+ - Patterns that could be more comprehensive
143
+ - Documentation that would help implementation
144
+ - Examples that would clarify complex decisions
145
+
146
+ **Nice-to-Have Gaps:**
147
+
148
+ - Additional patterns that would be helpful
149
+ - Supplementary documentation
150
+ - Tooling recommendations
151
+ - Development workflow optimizations
152
+
153
+ ### 5. Address Validation Issues
154
+
155
+ For any issues found, facilitate resolution:
156
+
157
+ **Critical Issues:**
158
+ "I found some issues that need to be addressed before implementation:
159
+
160
+ {{critical_issue_description}}
161
+
162
+ These could cause implementation problems. How would you like to resolve this?"
163
+
164
+ **Important Issues:**
165
+ "I noticed a few areas that could be improved:
166
+
167
+ {{important_issue_description}}
168
+
169
+ These aren't blocking, but addressing them would make implementation smoother. Should we work on these?"
170
+
171
+ **Minor Issues:**
172
+ "Here are some minor suggestions for improvement:
173
+
174
+ {{minor_issue_description}}
175
+
176
+ These are optional refinements. Would you like to address any of these?"
177
+
178
+ ### 6. Generate Validation Content
179
+
180
+ Prepare the content to append to the document:
181
+
182
+ #### Content Structure:
183
+
184
+ ```markdown
185
+ ## Architecture Validation Results
186
+
187
+ ### Coherence Validation βœ…
188
+
189
+ **Decision Compatibility:**
190
+ {{assessment_of_how_all_decisions_work_together}}
191
+
192
+ **Pattern Consistency:**
193
+ {{verification_that_patterns_support_decisions}}
194
+
195
+ **Structure Alignment:**
196
+ {{confirmation_that_structure_supports_architecture}}
197
+
198
+ ### Requirements Coverage Validation βœ…
199
+
200
+ **Epic/Feature Coverage:**
201
+ {{verification_that_all_epics_or_features_are_supported}}
202
+
203
+ **Functional Requirements Coverage:**
204
+ {{confirmation_that_all_FRs_are_architecturally_supported}}
205
+
206
+ **Non-Functional Requirements Coverage:**
207
+ {{verification_that_NFRs_are_addressed}}
208
+
209
+ ### Implementation Readiness Validation βœ…
210
+
211
+ **Decision Completeness:**
212
+ {{assessment_of_decision_documentation_completeness}}
213
+
214
+ **Structure Completeness:**
215
+ {{evaluation_of_project_structure_completeness}}
216
+
217
+ **Pattern Completeness:**
218
+ {{verification_of_implementation_patterns_completeness}}
219
+
220
+ ### Gap Analysis Results
221
+
222
+ {{gap_analysis_findings_with_priority_levels}}
223
+
224
+ ### Validation Issues Addressed
225
+
226
+ {{description_of_any_issues_found_and_resolutions}}
227
+
228
+ ### Architecture Completeness Checklist
229
+
230
+ Mark each item `[x]` only if validation confirms it; leave `[ ]` if it is missing, partial, or unverified. Any unchecked item must be reflected in the Gap Analysis above and in the Overall Status below.
231
+
232
+ **Requirements Analysis**
233
+
234
+ - [ ] Project context thoroughly analyzed
235
+ - [ ] Scale and complexity assessed
236
+ - [ ] Technical constraints identified
237
+ - [ ] Cross-cutting concerns mapped
238
+
239
+ **Architectural Decisions**
240
+
241
+ - [ ] Critical decisions documented with versions
242
+ - [ ] Technology stack fully specified
243
+ - [ ] Integration patterns defined
244
+ - [ ] Performance considerations addressed
245
+
246
+ **Implementation Patterns**
247
+
248
+ - [ ] Naming conventions established
249
+ - [ ] Structure patterns defined
250
+ - [ ] Communication patterns specified
251
+ - [ ] Process patterns documented
252
+
253
+ **Project Structure**
254
+
255
+ - [ ] Complete directory structure defined
256
+ - [ ] Component boundaries established
257
+ - [ ] Integration points mapped
258
+ - [ ] Requirements to structure mapping complete
259
+
260
+ ### Architecture Readiness Assessment
261
+
262
+ **Overall Status:** {{READY FOR IMPLEMENTATION | READY WITH MINOR GAPS | NOT READY}} (choose READY FOR IMPLEMENTATION only when all 16 checklist items are `[x]` and no Critical Gaps remain; choose NOT READY when any Critical Gap is open or any Requirements Analysis or Architectural Decisions item is unchecked; otherwise READY WITH MINOR GAPS)
263
+
264
+ **Confidence Level:** {{high/medium/low}} based on validation results
265
+
266
+ **Key Strengths:**
267
+ {{list_of_architecture_strengths}}
268
+
269
+ **Areas for Future Enhancement:**
270
+ {{areas_that_could_be_improved_later}}
271
+
272
+ ### Implementation Handoff
273
+
274
+ **AI Agent Guidelines:**
275
+
276
+ - Follow all architectural decisions exactly as documented
277
+ - Use implementation patterns consistently across all components
278
+ - Respect project structure and boundaries
279
+ - Refer to this document for all architectural questions
280
+
281
+ **First Implementation Priority:**
282
+ {{starter_template_command_or_first_architectural_step}}
283
+ ```
284
+
285
+ ### 7. Present Content and Menu
286
+
287
+ Show the validation results and present choices:
288
+
289
+ "I've completed a comprehensive validation of your architecture.
290
+
291
+ **Validation Summary:**
292
+
293
+ - βœ… Coherence: All decisions work together
294
+ - βœ… Coverage: All requirements are supported
295
+ - βœ… Readiness: AI agents can implement consistently
296
+
297
+ **Here's what I'll add to complete the architecture document:**
298
+
299
+ [Show the complete markdown content from step 6]
300
+
301
+ **What would you like to do?**
302
+ [A] Advanced Elicitation - Address any complex architectural concerns
303
+ [P] Party Mode - Review validation from different implementation perspectives
304
+ [C] Continue - Complete the architecture and finish workflow
305
+
306
+ ### 8. Handle Menu Selection
307
+
308
+ #### If 'A' (Advanced Elicitation):
309
+
310
+ - Invoke the `bmad-advanced-elicitation` skill with validation issues
311
+ - Process enhanced solutions for complex concerns
312
+ - Ask user: "Accept these architectural improvements? (y/n)"
313
+ - If yes: Update content, then return to A/P/C menu
314
+ - If no: Keep original content, then return to A/P/C menu
315
+
316
+ #### If 'P' (Party Mode):
317
+
318
+ - Invoke the `bmad-party-mode` skill with validation context
319
+ - Process collaborative insights on implementation readiness
320
+ - Ask user: "Accept these changes to the validation results? (y/n)"
321
+ - If yes: Update content, then return to A/P/C menu
322
+ - If no: Keep original content, then return to A/P/C menu
323
+
324
+ #### If 'C' (Continue):
325
+
326
+ - Append the final content to `{planning_artifacts}/architecture.md`
327
+ - Update frontmatter: `stepsCompleted: [1, 2, 3, 4, 5, 6, 7]`
328
+ - Load `./step-08-complete.md`
329
+
330
+ ## APPEND TO DOCUMENT:
331
+
332
+ When user selects 'C', append the content directly to the document using the structure from step 6.
333
+
334
+ ## SUCCESS METRICS:
335
+
336
+ βœ… All architectural decisions validated for coherence
337
+ βœ… Complete requirements coverage verified
338
+ βœ… Implementation readiness confirmed
339
+ βœ… All gaps identified and addressed
340
+ βœ… Comprehensive validation checklist completed
341
+ βœ… A/P/C menu presented and handled correctly
342
+ βœ… Content properly appended to document when C selected
343
+
344
+ ## FAILURE MODES:
345
+
346
+ ❌ Skipping validation of decision compatibility
347
+ ❌ Not verifying all requirements are architecturally supported
348
+ ❌ Missing potential implementation conflicts
349
+ ❌ Not addressing gaps found during validation
350
+ ❌ Providing incomplete validation checklist
351
+ ❌ Not presenting A/P/C menu after content generation
352
+
353
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
354
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
355
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
356
+
357
+ ## NEXT STEP:
358
+
359
+ After user selects 'C' and content is saved to document, load `./step-08-complete.md` to complete the workflow and provide implementation guidance.
360
+
361
+ Remember: Do NOT proceed to step-08 until user explicitly selects 'C' from the A/P/C menu and content is saved!
@@ -0,0 +1,82 @@
1
+ # Step 8: Architecture Completion & Handoff
2
+
3
+ ## MANDATORY EXECUTION RULES (READ FIRST):
4
+
5
+ - πŸ›‘ NEVER generate content without user input
6
+
7
+ - πŸ“– CRITICAL: ALWAYS read the complete step file before taking any action - partial understanding leads to incomplete decisions
8
+ - βœ… ALWAYS treat this as collaborative completion between architectural peers
9
+ - πŸ“‹ YOU ARE A FACILITATOR, not a content generator
10
+ - πŸ’¬ FOCUS on successful workflow completion and implementation handoff
11
+ - 🎯 PROVIDE clear next steps for implementation phase
12
+ - ⚠️ ABSOLUTELY NO TIME ESTIMATES - AI development speed has fundamentally changed
13
+ - βœ… YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
14
+
15
+ ## EXECUTION PROTOCOLS:
16
+
17
+ - 🎯 Show your analysis before taking any action
18
+ - 🎯 Present completion summary and implementation guidance
19
+ - πŸ“– Update frontmatter with final workflow state
20
+ - 🚫 THIS IS THE FINAL STEP IN THIS WORKFLOW
21
+
22
+ ## YOUR TASK:
23
+
24
+ Complete the architecture workflow, provide a comprehensive completion summary, and guide the user to the next phase of their project development.
25
+
26
+ ## COMPLETION SEQUENCE:
27
+
28
+ ### 1. Congratulate the User on Completion
29
+
30
+ Both you and the User completed something amazing here - give a summary of what you achieved together and really congratulate the user on a job well done.
31
+
32
+ ### 2. Update the created document's frontmatter
33
+
34
+ ```yaml
35
+ stepsCompleted: [1, 2, 3, 4, 5, 6, 7, 8]
36
+ workflowType: 'architecture'
37
+ lastStep: 8
38
+ status: 'complete'
39
+ completedAt: '{{current_date}}'
40
+ ```
41
+
42
+ ### 3. Next Steps Guidance
43
+
44
+ Architecture complete. Invoke the `bmad-help` skill.
45
+
46
+ Upon Completion of task output: offer to answer any questions about the Architecture Document.
47
+
48
+
49
+ ## SUCCESS METRICS:
50
+
51
+ βœ… Complete architecture document delivered with all sections
52
+ βœ… All architectural decisions documented and validated
53
+ βœ… Implementation patterns and consistency rules finalized
54
+ βœ… Project structure complete with all files and directories
55
+ βœ… User provided with clear next steps and implementation guidance
56
+ βœ… Workflow status properly updated
57
+ βœ… User collaboration maintained throughout completion process
58
+
59
+ ## FAILURE MODES:
60
+
61
+ ❌ Not providing clear implementation guidance
62
+ ❌ Missing final validation of document completeness
63
+ ❌ Not updating workflow status appropriately
64
+ ❌ Failing to celebrate the successful completion
65
+ ❌ Not providing specific next steps for the user
66
+ ❌ Rushing completion without proper summary
67
+
68
+ ❌ **CRITICAL**: Reading only partial step file - leads to incomplete understanding and poor decisions
69
+ ❌ **CRITICAL**: Proceeding with 'C' without fully reading and understanding the next step file
70
+ ❌ **CRITICAL**: Making decisions without complete understanding of step requirements and protocols
71
+
72
+ ## WORKFLOW COMPLETE:
73
+
74
+ This is the final step of the Architecture workflow. The user now has a complete, validated architecture document ready for AI agent implementation.
75
+
76
+ The architecture will serve as the single source of truth for all technical decisions, ensuring consistent implementation across the entire project development lifecycle.
77
+
78
+ ## On Complete
79
+
80
+ Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow.on_complete`
81
+
82
+ If the resolved `workflow.on_complete` is non-empty, follow it as the final terminal instruction before exiting.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: bmad-create-epics-and-stories
3
+ description: 'Break requirements into epics and user stories. Use when the user says "create the epics and stories list"'
4
+ ---
5
+
6
+ # bmad-create-epics-and-stories Β· 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 the current PRD, architecture and any UX requirements from artifact storage. Identify stable requirement IDs and implementation constraints.
15
+ 2. Group work into user-valued epics with explicit dependencies. Split each epic into independently testable stories sized for one implementation run.
16
+ 3. Give every story a stable ID, goal, acceptance criteria in observable terms, prerequisites and relevant requirement links. Preserve existing IDs and completion state during updates.
17
+ 4. Validate requirement coverage, sequencing and testability. Link to detailed `stories/<story-id>.md` documents when they exist.
18
+
19
+ **Primary artifact:** `epics-and-stories.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/templates/epics-template.md`; `reference/steps/step-04-final-validation.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.
@@ -0,0 +1,93 @@
1
+ ---
2
+ name: bmad-create-epics-and-stories
3
+ description: 'Break requirements into epics and user stories. Use when the user says "create the epics and stories list"'
4
+ ---
5
+
6
+ # Create Epics and Stories
7
+
8
+ **Goal:** Transform PRD requirements and Architecture decisions into comprehensive stories organized by user value, creating detailed, actionable stories with complete acceptance criteria for the Developer agent.
9
+
10
+ **Your Role:** In addition to your name, communication_style, and persona, you are also a product strategist and technical specifications writer collaborating with a product owner. This is a partnership, not a client-vendor relationship. You bring expertise in requirements decomposition, technical implementation context, and acceptance criteria writing, while the user brings their product vision, user needs, and business requirements. Work together as equals.
11
+
12
+ ## Conventions
13
+
14
+ - Bare paths (e.g. `steps/step-01-validate-prerequisites.md`) resolve from the skill root.
15
+ - `{skill-root}` resolves to this skill's installed directory (where `customize.toml` lives).
16
+ - `{project-root}`-prefixed paths resolve from the project working directory.
17
+ - `{skill-name}` resolves to the skill directory's basename.
18
+
19
+ ## WORKFLOW ARCHITECTURE
20
+
21
+ This uses **step-file architecture** for disciplined execution:
22
+
23
+ ### Core Principles
24
+
25
+ - **Micro-file Design**: Each step toward the overall goal is a self-contained instruction file; adhere to one file at a time, as directed
26
+ - **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
27
+ - **Sequential Enforcement**: Sequence within the step files must be completed in order, no skipping or optimization allowed
28
+ - **State Tracking**: Document progress in output file frontmatter using `stepsCompleted` array when a workflow produces a document
29
+ - **Append-Only Building**: Build documents by appending content as directed to the output file
30
+
31
+ ### Step Processing Rules
32
+
33
+ 1. **READ COMPLETELY**: Always read the entire step file before taking any action
34
+ 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
35
+ 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
36
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
37
+ 5. **SAVE STATE**: Update `stepsCompleted` in frontmatter before loading next step
38
+ 6. **LOAD NEXT**: When directed, read fully and follow the next step file
39
+
40
+ ### Critical Rules (NO EXCEPTIONS)
41
+
42
+ - πŸ›‘ **NEVER** load multiple step files simultaneously
43
+ - πŸ“– **ALWAYS** read entire step file before execution
44
+ - 🚫 **NEVER** skip steps or optimize the sequence
45
+ - πŸ’Ύ **ALWAYS** update frontmatter of output files when writing the final output for a specific step
46
+ - 🎯 **ALWAYS** follow the exact instructions in the step file
47
+ - ⏸️ **ALWAYS** halt at menus and wait for user input
48
+ - πŸ“‹ **NEVER** create mental todo lists from future steps
49
+
50
+ ## On Activation
51
+
52
+ ### Step 1: Resolve the Workflow Block
53
+
54
+ Run: `python3 {project-root}/_bmad/scripts/resolve_customization.py --skill {skill-root} --key workflow`
55
+
56
+ **If the script fails**, resolve the `workflow` block yourself by reading these three files in base β†’ team β†’ user order and applying the same structural merge rules as the resolver:
57
+
58
+ 1. `{skill-root}/customize.toml` β€” defaults
59
+ 2. `{project-root}/_bmad/custom/{skill-name}.toml` β€” team overrides
60
+ 3. `{project-root}/_bmad/custom/{skill-name}.user.toml` β€” personal overrides
61
+
62
+ Any missing file is skipped. Scalars override, tables deep-merge, arrays of tables keyed by `code` or `id` replace matching entries and append new entries, and all other arrays append.
63
+
64
+ ### Step 2: Execute Prepend Steps
65
+
66
+ Execute each entry in `{workflow.activation_steps_prepend}` in order before proceeding.
67
+
68
+ ### Step 3: Load Persistent Facts
69
+
70
+ Treat every entry in `{workflow.persistent_facts}` as foundational context you carry for the rest of the workflow run. Entries prefixed `file:` are paths or globs under `{project-root}` β€” load the referenced contents as facts. All other entries are facts verbatim.
71
+
72
+ ### Step 4: Load Config
73
+
74
+ Load config from `{project-root}/_bmad/bmm/config.yaml` and resolve:
75
+ - Use `{user_name}` for greeting
76
+ - Use `{communication_language}` for all communications
77
+ - Use `{document_output_language}` for output documents
78
+ - Use `{planning_artifacts}` for output location and artifact scanning
79
+ - Use `{project_knowledge}` for additional context scanning
80
+
81
+ ### Step 5: Greet the User
82
+
83
+ Greet `{user_name}`, speaking in `{communication_language}`.
84
+
85
+ ### Step 6: Execute Append Steps
86
+
87
+ Execute each entry in `{workflow.activation_steps_append}` in order.
88
+
89
+ Activation is complete. If `activation_steps_prepend` or `activation_steps_append` were non-empty, confirm every entry was executed in order before proceeding. Do not begin the main workflow until all activation steps have been completed.
90
+
91
+ ## Execution
92
+
93
+ Read fully and follow: `./steps/step-01-validate-prerequisites.md` to begin the workflow.
@@ -0,0 +1,41 @@
1
+ # DO NOT EDIT -- overwritten on every update.
2
+ #
3
+ # Workflow customization surface for bmad-create-epics-and-stories. Mirrors the
4
+ # agent customization shape under the [workflow] namespace.
5
+
6
+ [workflow]
7
+
8
+ # --- Configurable below. Overrides merge per BMad structural rules: ---
9
+ # scalars: override wins β€’ arrays (persistent_facts, activation_steps_*): append
10
+ # arrays-of-tables with `code`/`id`: replace matching items, append new ones.
11
+
12
+ # Steps to run before the standard activation (config load, greet).
13
+ # Overrides append. Use for pre-flight loads, compliance checks, etc.
14
+
15
+ activation_steps_prepend = []
16
+
17
+ # Steps to run after greet but before the workflow begins.
18
+ # Overrides append. Use for context-heavy setup that should happen
19
+ # once the user has been acknowledged.
20
+
21
+ activation_steps_append = []
22
+
23
+ # Persistent facts the workflow keeps in mind for the whole run
24
+ # (standards, compliance constraints, stylistic guardrails).
25
+ # Distinct from the runtime memory sidecar β€” these are static context
26
+ # loaded on activation. Overrides append.
27
+ #
28
+ # Each entry is either:
29
+ # - a literal sentence, e.g. "All epics must deliver complete end-to-end user value."
30
+ # - a file reference prefixed with `file:`, e.g. "file:{project-root}/docs/standards.md"
31
+ # (glob patterns are supported; the file's contents are loaded and treated as facts).
32
+
33
+ persistent_facts = [
34
+ "file:{project-root}/**/project-context.md",
35
+ ]
36
+
37
+ # Scalar: executed when the workflow reaches Step 4 (Final Validation) and the
38
+ # user confirms [C] Complete β€” after the epics.md is saved and bmad-help is invoked.
39
+ # Override wins. Leave empty for no custom post-completion behavior.
40
+
41
+ on_complete = ""