bmad-method 6.0.0-alpha.12 → 6.0.0-alpha.13

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 (491) hide show
  1. package/.github/workflows/bundle-latest.yaml +79 -27
  2. package/CHANGELOG.md +159 -1
  3. package/README.md +3 -1
  4. package/custom/src/agents/commit-poet/commit-poet.agent.yaml +129 -0
  5. package/custom/src/agents/commit-poet/installation-guide.md +36 -0
  6. package/custom/src/agents/toolsmith/installation-guide.md +36 -0
  7. package/custom/src/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
  8. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
  9. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
  10. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
  11. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
  12. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +161 -0
  13. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
  14. package/custom/src/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
  15. package/custom/src/agents/toolsmith/toolsmith.agent.yaml +108 -0
  16. package/docs/custom-agent-installation.md +31 -17
  17. package/docs/ide-info/rovo-dev.md +388 -0
  18. package/docs/index.md +6 -81
  19. package/docs/installers-bundlers/installers-modules-platforms-reference.md +1 -1
  20. package/package.json +1 -1
  21. package/src/core/agents/bmad-master.agent.yaml +1 -1
  22. package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
  23. package/src/core/tasks/advanced-elicitation-methods.csv +51 -21
  24. package/src/core/tasks/advanced-elicitation.xml +18 -8
  25. package/src/core/tasks/workflow.xml +36 -71
  26. package/src/core/workflows/brainstorming/brain-methods.csv +62 -36
  27. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
  28. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
  29. package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
  30. package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
  31. package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
  32. package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
  33. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
  34. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
  35. package/src/core/workflows/brainstorming/template.md +13 -104
  36. package/src/core/workflows/brainstorming/workflow.md +51 -0
  37. package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  38. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
  39. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
  40. package/src/core/workflows/party-mode/workflow.md +207 -0
  41. package/src/modules/bmb/README.md +153 -86
  42. package/src/modules/bmb/_module-installer/install-config.yaml +3 -3
  43. package/src/modules/bmb/agents/bmad-builder.agent.yaml +45 -31
  44. package/src/modules/bmb/docs/{agent-menu-patterns.md → agents/agent-menu-patterns.md} +1 -1
  45. package/src/modules/bmb/docs/agents/kb.csv +0 -0
  46. package/src/modules/bmb/docs/{module-agent-architecture.md → agents/module-agent-architecture.md} +1 -1
  47. package/src/modules/bmb/docs/{simple-agent-architecture.md → agents/simple-agent-architecture.md} +1 -1
  48. package/src/modules/bmb/docs/workflows/architecture.md +220 -0
  49. package/src/modules/bmb/docs/workflows/common-workflow-tools.csv +19 -0
  50. package/src/modules/bmb/docs/workflows/csv-data-file-standards.md +206 -0
  51. package/src/modules/bmb/docs/workflows/index.md +45 -0
  52. package/src/modules/bmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
  53. package/src/modules/bmb/docs/workflows/kb.csv +0 -0
  54. package/src/modules/bmb/docs/workflows/step-template.md +283 -0
  55. package/src/modules/bmb/docs/workflows/terms.md +97 -0
  56. package/src/modules/bmb/docs/workflows/workflow-template.md +152 -0
  57. package/src/modules/bmb/reference/agents/module-examples/README.md +1 -1
  58. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +2 -2
  59. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +1 -1
  60. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  61. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  62. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  63. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  64. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  65. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  66. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  67. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  68. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  69. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  70. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  71. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  72. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  73. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  74. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  75. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  76. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  77. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +17 -0
  78. package/src/modules/bmb/workflows/create-agent/data/reference/README.md +3 -0
  79. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  80. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  81. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  82. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  83. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  84. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  85. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
  86. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  87. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  88. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
  89. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  90. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  91. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  92. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  93. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  94. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  95. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  96. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  97. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  98. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  99. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  100. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  101. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  102. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  103. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  104. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  105. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  106. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  107. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +305 -0
  108. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
  109. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +210 -0
  110. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +260 -0
  111. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +237 -0
  112. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +231 -0
  113. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +224 -0
  114. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +234 -0
  115. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +179 -0
  116. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +197 -0
  117. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
  118. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
  119. package/src/modules/bmb/workflows/create-agent/templates/agent_commands.md +21 -0
  120. package/src/modules/bmb/workflows/create-agent/templates/agent_persona.md +25 -0
  121. package/src/modules/bmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
  122. package/src/modules/bmb/workflows/create-agent/workflow.md +91 -0
  123. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +168 -0
  124. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +233 -0
  125. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-overview.md +127 -0
  126. package/src/modules/bmb/workflows/create-workflow/steps/step-04-core-tools.md +145 -0
  127. package/src/modules/bmb/workflows/create-workflow/steps/step-05-memory-requirements.md +136 -0
  128. package/src/modules/bmb/workflows/create-workflow/steps/step-06-external-tools.md +154 -0
  129. package/src/modules/bmb/workflows/create-workflow/steps/step-07-installation-guidance.md +159 -0
  130. package/src/modules/bmb/workflows/create-workflow/steps/step-08-tools-summary.md +167 -0
  131. package/src/modules/bmb/workflows/create-workflow/steps/step-09-design.md +239 -0
  132. package/src/modules/bmb/workflows/create-workflow/steps/step-10-plan-review.md +215 -0
  133. package/src/modules/bmb/workflows/create-workflow/steps/step-11-build.md +262 -0
  134. package/src/modules/bmb/workflows/create-workflow/steps/step-12-review.md +270 -0
  135. package/src/modules/bmb/workflows/create-workflow/templates/build-summary.md +36 -0
  136. package/src/modules/bmb/workflows/create-workflow/templates/completion-section.md +39 -0
  137. package/src/modules/bmb/workflows/create-workflow/templates/content-template.md +21 -0
  138. package/src/modules/bmb/workflows/create-workflow/templates/design-section.md +53 -0
  139. package/src/modules/bmb/workflows/create-workflow/templates/project-info.md +18 -0
  140. package/src/modules/bmb/workflows/create-workflow/templates/requirements-section.md +47 -0
  141. package/src/modules/bmb/workflows/create-workflow/templates/review-section.md +56 -0
  142. package/src/modules/bmb/workflows/create-workflow/templates/step-file.md +139 -0
  143. package/src/modules/bmb/workflows/create-workflow/templates/workflow-plan.md +54 -0
  144. package/src/modules/bmb/workflows/create-workflow/templates/workflow.md +58 -0
  145. package/src/modules/bmb/workflows/create-workflow/workflow.md +58 -0
  146. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
  147. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
  148. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
  149. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
  150. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
  151. package/src/modules/bmb/workflows/edit-agent/workflow.md +58 -0
  152. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +221 -0
  153. package/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
  154. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
  155. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
  156. package/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
  157. package/src/modules/bmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
  158. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
  159. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
  160. package/src/modules/bmb/workflows/edit-workflow/templates/validation-results.md +51 -0
  161. package/src/modules/bmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
  162. package/src/modules/bmb/workflows/edit-workflow/workflow.md +58 -0
  163. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
  164. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
  165. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
  166. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
  167. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
  168. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
  169. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
  170. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
  171. package/src/modules/bmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
  172. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +58 -0
  173. package/src/modules/bmgd/agents/game-architect.agent.yaml +1 -1
  174. package/src/modules/bmgd/agents/game-designer.agent.yaml +1 -1
  175. package/src/modules/bmgd/agents/game-dev.agent.yaml +1 -1
  176. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +1 -1
  177. package/src/modules/bmm/_module-installer/install-config.yaml +9 -15
  178. package/src/modules/bmm/agents/analyst.agent.yaml +14 -14
  179. package/src/modules/bmm/agents/architect.agent.yaml +12 -10
  180. package/src/modules/bmm/agents/dev.agent.yaml +20 -16
  181. package/src/modules/bmm/agents/pm.agent.yaml +13 -31
  182. package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +36 -0
  183. package/src/modules/bmm/agents/sm.agent.yaml +13 -31
  184. package/src/modules/bmm/agents/tea.agent.yaml +10 -7
  185. package/src/modules/bmm/agents/tech-writer.agent.yaml +7 -20
  186. package/src/modules/bmm/agents/ux-designer.agent.yaml +12 -10
  187. package/src/modules/bmm/data/README.md +29 -0
  188. package/src/modules/bmm/data/project-context-template.md +40 -0
  189. package/src/modules/bmm/docs/README.md +21 -9
  190. package/src/modules/bmm/docs/agents-guide.md +69 -23
  191. package/src/modules/bmm/docs/bmad-quick-flow.md +528 -0
  192. package/src/modules/bmm/docs/brownfield-guide.md +9 -10
  193. package/src/modules/bmm/docs/enterprise-agentic-development.md +1 -1
  194. package/src/modules/bmm/docs/glossary.md +5 -5
  195. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +909 -1654
  196. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +2 -2
  197. package/src/modules/bmm/docs/quick-flow-solo-dev.md +337 -0
  198. package/src/modules/bmm/docs/scale-adaptive-system.md +5 -5
  199. package/src/modules/bmm/docs/test-architecture.md +84 -18
  200. package/src/modules/bmm/docs/workflows-analysis.md +36 -140
  201. package/src/modules/bmm/docs/workflows-implementation.md +32 -157
  202. package/src/modules/bmm/docs/workflows-planning.md +51 -212
  203. package/src/modules/bmm/docs/workflows-solutioning.md +24 -69
  204. package/src/modules/bmm/teams/default-party.csv +15 -14
  205. package/src/modules/bmm/teams/team-fullstack.yaml +0 -1
  206. package/src/modules/bmm/testarch/knowledge/api-request.md +303 -0
  207. package/src/modules/bmm/testarch/knowledge/auth-session.md +356 -0
  208. package/src/modules/bmm/testarch/knowledge/burn-in.md +273 -0
  209. package/src/modules/bmm/testarch/knowledge/file-utils.md +260 -0
  210. package/src/modules/bmm/testarch/knowledge/fixtures-composition.md +382 -0
  211. package/src/modules/bmm/testarch/knowledge/intercept-network-call.md +280 -0
  212. package/src/modules/bmm/testarch/knowledge/log.md +294 -0
  213. package/src/modules/bmm/testarch/knowledge/network-error-monitor.md +272 -0
  214. package/src/modules/bmm/testarch/knowledge/network-recorder.md +265 -0
  215. package/src/modules/bmm/testarch/knowledge/overview.md +284 -0
  216. package/src/modules/bmm/testarch/knowledge/recurse.md +296 -0
  217. package/src/modules/bmm/testarch/tea-index.csv +11 -0
  218. package/src/modules/bmm/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
  219. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
  220. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
  221. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
  222. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
  223. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
  224. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
  225. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
  226. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +58 -0
  227. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
  228. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
  229. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
  230. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
  231. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
  232. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  233. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  234. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +235 -0
  235. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +198 -0
  236. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +247 -0
  237. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +257 -0
  238. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +175 -0
  239. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  240. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +16 -0
  241. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
  242. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +237 -0
  243. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +246 -0
  244. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +200 -0
  245. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +237 -0
  246. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  247. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +198 -0
  248. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
  249. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
  250. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
  251. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
  252. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
  253. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
  254. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
  255. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
  256. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
  257. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
  258. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
  259. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
  260. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
  261. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
  262. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
  263. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +6 -138
  264. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +53 -0
  265. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +5 -200
  266. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +161 -0
  267. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +123 -0
  268. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +275 -0
  269. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +271 -0
  270. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +272 -0
  271. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +249 -0
  272. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +240 -0
  273. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +236 -0
  274. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +280 -0
  275. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +251 -0
  276. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +275 -0
  277. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +210 -0
  278. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +61 -0
  279. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
  280. package/src/modules/bmm/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
  281. package/src/modules/bmm/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
  282. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
  283. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
  284. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
  285. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
  286. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
  287. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
  288. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
  289. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
  290. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
  291. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +48 -0
  292. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +247 -476
  293. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +8 -18
  294. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +176 -0
  295. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +4 -11
  296. package/src/modules/bmm/workflows/4-implementation/create-story/checklist.md +332 -214
  297. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +324 -0
  298. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +21 -34
  299. package/src/modules/bmm/workflows/4-implementation/dev-story/checklist.md +65 -23
  300. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +406 -0
  301. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +6 -37
  302. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +4 -3
  303. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +2 -0
  304. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
  305. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
  306. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
  307. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +105 -0
  308. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +29 -0
  309. package/src/modules/bmm/workflows/generate-project-context/project-context-template.md +20 -0
  310. package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +193 -0
  311. package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +317 -0
  312. package/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +277 -0
  313. package/src/modules/bmm/workflows/generate-project-context/workflow.md +48 -0
  314. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +23 -3
  315. package/src/modules/bmm/workflows/testarch/automate/instructions.md +23 -2
  316. package/src/modules/bmm/workflows/testarch/ci/instructions.md +18 -1
  317. package/src/modules/bmm/workflows/testarch/framework/instructions.md +27 -1
  318. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +8 -2
  319. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +28 -8
  320. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +66 -54
  321. package/src/modules/bmm/workflows/workflow-status/instructions.md +11 -4
  322. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +3 -2
  323. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +3 -2
  324. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +3 -2
  325. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +3 -2
  326. package/src/modules/cis/agents/README.md +1 -1
  327. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +3 -2
  328. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -1
  329. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -1
  330. package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -1
  331. package/src/modules/cis/agents/presentation-master.agent.yaml +3 -2
  332. package/src/modules/cis/agents/storyteller.agent.yaml +2 -1
  333. package/src/modules/cis/teams/default-party.csv +6 -5
  334. package/src/utility/models/agent-activation-ide.xml +4 -4
  335. package/src/utility/models/agent-activation-web.xml +1 -11
  336. package/src/utility/models/fragments/activation-rules.xml +5 -6
  337. package/src/utility/models/fragments/handler-exec.xml +6 -5
  338. package/src/utility/models/fragments/handler-multi.xml +14 -0
  339. package/test/README.md +1 -1
  340. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +1 -3
  341. package/tools/cli/README.md +1 -0
  342. package/tools/cli/bundlers/web-bundler.js +3 -14
  343. package/tools/cli/commands/agent-install.js +8 -8
  344. package/tools/cli/commands/cleanup.js +141 -0
  345. package/tools/cli/commands/install.js +48 -3
  346. package/tools/cli/installers/lib/core/config-collector.js +24 -0
  347. package/tools/cli/installers/lib/core/installer.js +612 -43
  348. package/tools/cli/installers/lib/ide/antigravity.js +51 -7
  349. package/tools/cli/installers/lib/ide/auggie.js +53 -0
  350. package/tools/cli/installers/lib/ide/claude-code.js +1 -6
  351. package/tools/cli/installers/lib/ide/cline.js +49 -0
  352. package/tools/cli/installers/lib/ide/codex.js +2 -2
  353. package/tools/cli/installers/lib/ide/crush.js +47 -0
  354. package/tools/cli/installers/lib/ide/gemini.js +47 -0
  355. package/tools/cli/installers/lib/ide/github-copilot.js +59 -48
  356. package/tools/cli/installers/lib/ide/iflow.js +47 -0
  357. package/tools/cli/installers/lib/ide/kilo.js +74 -0
  358. package/tools/cli/installers/lib/ide/qwen.js +54 -0
  359. package/tools/cli/installers/lib/ide/roo.js +71 -0
  360. package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
  361. package/tools/cli/installers/lib/ide/trae.js +47 -0
  362. package/tools/cli/lib/agent/compiler.js +156 -22
  363. package/tools/cli/lib/agent/installer.js +13 -3
  364. package/tools/cli/lib/agent-analyzer.js +46 -18
  365. package/tools/cli/lib/ui.js +204 -9
  366. package/tools/cli/lib/yaml-xml-builder.js +123 -24
  367. package/tools/platform-codes.yaml +12 -0
  368. package/tools/schema/agent.js +169 -20
  369. package/src/core/tasks/adv-elicit-methods.csv +0 -39
  370. package/src/core/workflows/brainstorming/README.md +0 -261
  371. package/src/core/workflows/brainstorming/instructions.md +0 -315
  372. package/src/core/workflows/brainstorming/workflow.yaml +0 -38
  373. package/src/core/workflows/party-mode/instructions.md +0 -183
  374. package/src/core/workflows/party-mode/workflow.yaml +0 -28
  375. package/src/modules/bmb/workflows/audit-workflow/checklist.md +0 -142
  376. package/src/modules/bmb/workflows/audit-workflow/instructions.md +0 -341
  377. package/src/modules/bmb/workflows/audit-workflow/template.md +0 -118
  378. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +0 -25
  379. package/src/modules/bmb/workflows/convert-legacy/README.md +0 -262
  380. package/src/modules/bmb/workflows/convert-legacy/checklist.md +0 -205
  381. package/src/modules/bmb/workflows/convert-legacy/instructions.md +0 -377
  382. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +0 -30
  383. package/src/modules/bmb/workflows/create-agent/instructions.md +0 -519
  384. package/src/modules/bmb/workflows/create-agent/workflow.yaml +0 -55
  385. package/src/modules/bmb/workflows/create-workflow/README.md +0 -277
  386. package/src/modules/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  387. package/src/modules/bmb/workflows/create-workflow/checklist.md +0 -94
  388. package/src/modules/bmb/workflows/create-workflow/instructions.md +0 -725
  389. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1327
  390. package/src/modules/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  391. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -15
  392. package/src/modules/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  393. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -61
  394. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +0 -41
  395. package/src/modules/bmb/workflows/edit-agent/README.md +0 -239
  396. package/src/modules/bmb/workflows/edit-agent/instructions.md +0 -654
  397. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +0 -49
  398. package/src/modules/bmb/workflows/edit-workflow/README.md +0 -119
  399. package/src/modules/bmb/workflows/edit-workflow/checklist.md +0 -70
  400. package/src/modules/bmb/workflows/edit-workflow/instructions.md +0 -342
  401. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  402. package/src/modules/bmm/_module-installer/assets/bmm-kb.md +0 -1
  403. package/src/modules/bmm/_module-installer/assets/technical-decisions.md +0 -30
  404. package/src/modules/bmm/docs/quick-spec-flow.md +0 -652
  405. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  406. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  407. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -39
  408. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  409. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  410. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -56
  411. package/src/modules/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  412. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  413. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  414. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -61
  415. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  416. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  417. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +0 -299
  418. package/src/modules/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  419. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  420. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  421. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  422. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  423. package/src/modules/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  424. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +0 -347
  425. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  426. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +0 -62
  427. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  428. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  429. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -93
  430. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  431. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  432. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -78
  433. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  434. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  435. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  436. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  437. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  438. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  439. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
  440. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  441. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  442. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  443. package/src/modules/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  444. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  445. package/src/modules/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  446. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -100
  447. package/src/modules/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  448. package/src/modules/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  449. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  450. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  451. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  452. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  453. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  454. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  455. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
  456. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  457. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  458. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  459. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -63
  460. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  461. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -28
  462. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  463. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
  464. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  465. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  466. /package/src/modules/bmb/docs/{agent-compilation.md → agents/agent-compilation.md} +0 -0
  467. /package/src/modules/bmb/docs/{expert-agent-architecture.md → agents/expert-agent-architecture.md} +0 -0
  468. /package/src/modules/bmb/docs/{index.md → agents/index.md} +0 -0
  469. /package/src/modules/bmb/docs/{understanding-agent-types.md → agents/understanding-agent-types.md} +0 -0
  470. /package/src/modules/bmb/reference/{readme.md → README.md} +0 -0
  471. /package/src/modules/bmb/workflows/create-agent/{agent-validation-checklist.md → data/agent-validation-checklist.md} +0 -0
  472. /package/src/modules/bmb/workflows/create-agent/{brainstorm-context.md → data/brainstorm-context.md} +0 -0
  473. /package/src/modules/bmb/workflows/create-agent/{communication-presets.csv → data/communication-presets.csv} +0 -0
  474. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/README.md +0 -0
  475. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/brainstorm-context.md +0 -0
  476. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/checklist.md +0 -0
  477. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/install-config.yaml +0 -0
  478. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/installer.js +0 -0
  479. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/instructions.md +0 -0
  480. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/module-structure.md +0 -0
  481. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/workflow.yaml +0 -0
  482. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/README.md +0 -0
  483. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/checklist.md +0 -0
  484. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/instructions.md +0 -0
  485. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/workflow.yaml +0 -0
  486. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/README.md +0 -0
  487. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/checklist.md +0 -0
  488. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/instructions.md +0 -0
  489. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/template.md +0 -0
  490. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/workflow.yaml +0 -0
  491. /package/src/modules/bmm/{workflows/techdoc → data}/documentation-standards.md +0 -0
@@ -1,13 +1,11 @@
1
- # Epic and Story Decomposition - Intent-Based Implementation Planning
1
+ # Epic and Story Creation with Full Technical Context
2
2
 
3
3
  <critical>The workflow execution engine is governed by: {project-root}/{bmad_folder}/core/tasks/workflow.xml</critical>
4
4
  <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
5
- <critical>This workflow transforms requirements into BITE-SIZED STORIES for development agents</critical>
5
+ <critical>PREREQUISITES: PRD.md AND Architecture.md MUST be completed before running this workflow</critical>
6
+ <critical>UX Design.md is highly recommended if the product has user interfaces</critical>
6
7
  <critical>EVERY story must be completable by a single dev agent in one focused session</critical>
7
- <critical>⚠️ EPIC STRUCTURE PRINCIPLE: Each epic MUST deliver USER VALUE, not just technical capability. Epics are NOT organized by technical layers (database, API, frontend). Each epic should result in something USERS can actually use or benefit from. Exception: Foundation/setup stories at the start of first epic are acceptable. Another valid exception: API-first epic ONLY when the API itself has standalone value (e.g., will be consumed by third parties or multiple frontends).</critical>
8
- <critical>BMAD METHOD WORKFLOW POSITION: This workflow can be invoked at multiple points - after PRD only, after PRD+UX, after PRD+UX+Architecture, or to update existing epics. If epics.md already exists, ASK the user: (1) CONTINUING - previous run was incomplete, (2) REPLACING - starting fresh/discarding old, (3) UPDATING - new planning document created since last epic generation</critical>
9
- <critical>This is a LIVING DOCUMENT that evolves through the BMad Method workflow chain</critical>
10
- <critical>Phase 4 Implementation pulls context from: PRD + epics.md + UX + Architecture</critical>
8
+ <critical>⚠️ EPIC STRUCTURE PRINCIPLE: Each epic MUST deliver USER VALUE, not just technical capability. Epics are NOT organized by technical layers (database, API, frontend). Each epic should result in something USERS can actually use or benefit from. Exception: Foundation/setup stories at the start of first epic are acceptable.</critical>
11
9
  <critical>Communicate all responses in {communication_language} and adapt to {user_skill_level}</critical>
12
10
  <critical>Generate all documents in {document_output_language}</critical>
13
11
  <critical>LIVING DOCUMENT: Write to epics.md continuously as you work - never wait until the end</critical>
@@ -17,600 +15,373 @@
17
15
 
18
16
  <workflow>
19
17
 
20
- <step n="0" goal="Detect workflow mode and available context">
21
- <action>Determine if this is initial creation or update mode
18
+ <step n="0" goal="Validate prerequisites and load all context">
19
+ <action>Welcome {user_name} to comprehensive epic and story creation</action>
22
20
 
23
- **Check for existing epics.md:**
24
- </action>
25
-
26
- <action>Check if {default_output_file} exists (epics.md)</action>
27
-
28
- <check if="epics.md exists">
29
- <action>Load existing epics.md completely</action>
30
- <action>Extract existing:
31
- - Epic structure and titles
32
- - Story breakdown
33
- - FR coverage mapping
34
- - Existing acceptance criteria
35
- </action>
36
-
37
- <output>📝 **Existing epics.md found!**
38
-
39
- Current structure:
21
+ <action>**CRITICAL PREREQUISITE VALIDATION:**</action>
40
22
 
41
- - {{epic_count}} epics defined
42
- - {{story_count}} total stories
43
- </output>
23
+ <action>Verify required documents exist and are complete:
44
24
 
45
- <ask>What would you like to do?
25
+ 1. **PRD.md** - Contains functional requirements (FRs) and product scope
26
+ 2. **Architecture.md** - Contains technical decisions, API contracts, data models
27
+ 3. **UX Design.md** (if UI exists) - Contains interaction patterns, mockups, user flows
46
28
 
47
- 1. **CONTINUING** - Previous run was incomplete, continue where we left off
48
- 2. **REPLACING** - Start fresh, discard existing epic structure
49
- 3. **UPDATING** - New planning document created (UX/Architecture), enhance existing epics
29
+ Missing any required document means this workflow cannot proceed successfully.</action>
50
30
 
51
- Enter your choice (1-3):</ask>
31
+ <check if="!prd_content">
32
+ <output>❌ **PREREQUISITE FAILED: PRD.md not found**
52
33
 
53
- <action>Set mode based on user choice:
34
+ The PRD is required to define what functionality needs to be built.
54
35
 
55
- - Choice 1: mode = "CONTINUE" (resume incomplete work)
56
- - Choice 2: mode = "CREATE" (start fresh, ignore existing)
57
- - Choice 3: mode = "UPDATE" (enhance with new context)
58
- </action>
59
- </check>
36
+ Please complete the PRD workflow first, then run this workflow again.</output>
60
37
 
61
- <check if="epics.md does not exist">
62
- <action>Set mode = "CREATE"</action>
63
- <output>🆕 **INITIAL CREATION MODE**
64
-
65
- No existing epics found - I'll create the initial epic breakdown.
66
- </output>
38
+ <exit workflow="Missing required PRD document"/>
67
39
  </check>
68
40
 
69
- <action>**Detect available context documents:**</action>
70
-
71
- <action>Check which documents exist:
72
-
73
- - UX Design specification ({ux_design_content})
74
- - Architecture document ({architecture_content})
75
- - Domain brief ({domain_brief_content})
76
- - Product brief ({product_brief_content})
77
- </action>
78
-
79
- <check if="mode == 'UPDATE'">
80
- <action>Identify what's NEW since last epic update:
41
+ <check if="!architecture_content">
42
+ <output>❌ **PREREQUISITE FAILED: Architecture.md not found**
81
43
 
82
- - If UX exists AND not previously incorporated:
83
- - Flag: "ADD_UX_DETAILS = true"
84
- - Note UX sections to extract (interaction patterns, mockup references, responsive breakpoints)
44
+ The Architecture document is required to provide technical implementation context for stories.
85
45
 
86
- - If Architecture exists AND not previously incorporated:
87
- - Flag: "ADD_ARCH_DETAILS = true"
88
- - Note Architecture sections to extract (tech stack, API contracts, data models)
89
- </action>
46
+ Please complete the Architecture workflow first, then run this workflow again.</output>
90
47
 
91
- <output>**Context Analysis:**
92
- {{if ADD_UX_DETAILS}}
93
- ✅ UX Design found - will add interaction details to stories
94
- {{/if}}
95
- {{if ADD_ARCH_DETAILS}}
96
- ✅ Architecture found - will add technical implementation notes
97
- {{/if}}
98
- {{if !ADD_UX_DETAILS && !ADD_ARCH_DETAILS}}
99
- ⚠️ No new context documents found - reviewing for any PRD changes
100
- {{/if}}
101
- </output>
102
- </check>
103
-
104
- <check if="mode == 'CREATE'">
105
- <output>**Available Context:**
106
- - ✅ PRD (required)
107
- {{if ux_design_content}}
108
- - ✅ UX Design (will incorporate interaction patterns)
109
- {{/if}}
110
- {{if architecture_content}}
111
- - ✅ Architecture (will incorporate technical decisions)
112
- {{/if}}
113
- {{if !ux_design_content && !architecture_content}}
114
- - ℹ️ Creating basic epic structure (can be enhanced later with UX/Architecture)
115
- {{/if}}
116
- </output>
48
+ <exit workflow="Missing required Architecture document"/>
117
49
  </check>
118
50
 
119
- <template-output>workflow_mode</template-output>
120
- <template-output>available_context</template-output>
121
- </step>
51
+ <action>List the documents loaded</action>
122
52
 
123
- <step n="1" goal="Load PRD and extract requirements">
124
- <action>
125
- <check if="mode == 'CREATE'">
126
- Welcome {user_name} to epic and story planning
127
- </check>
128
- <check if="mode == 'UPDATE'">
129
- Welcome back {user_name} - let's enhance your epic breakdown with new context
130
- </check>
53
+ <action>**LOAD ALL CONTEXT DOCUMENTS:**</action>
131
54
 
132
- Load required documents (fuzzy match, handle both whole and sharded):
55
+ <action>Load and analyze PRD.md:
133
56
 
134
- - PRD.md (required)
135
- - domain-brief.md (if exists)
136
- - product-brief.md (if exists)
57
+ Extract ALL functional requirements:
137
58
 
138
- **CRITICAL - PRD FRs Are Now Flat and Strategic:**
59
+ - Complete FR inventory (FR1, FR2, FR3...)
60
+ - Non-functional requirements and constraints
61
+ - Project scope boundaries (MVP vs growth vs vision)
62
+ - User types and their goals
63
+ - Success criteria
64
+ - Technical constraints
65
+ - Compliance requirements
139
66
 
140
- The PRD contains FLAT, capability-level functional requirements (FR1, FR2, FR3...).
141
- These are STRATEGIC (WHAT capabilities exist), NOT tactical (HOW they're implemented).
67
+ **FR Inventory Creation:**
68
+ List every functional requirement with description for coverage tracking.
69
+ </action>
142
70
 
143
- Example PRD FRs:
71
+ <action>Load and analyze Architecture.md:
144
72
 
145
- - FR1: Users can create accounts with email or social authentication
146
- - FR2: Users can log in securely and maintain sessions
147
- - FR6: Users can create, edit, and delete content items
73
+ Extract ALL technical implementation context relevant to the PRD functional requirements and project needs:
148
74
 
149
- **Your job in THIS workflow:**
75
+ Scan comprehensively for any technical details needed to create complete user stories, including but not limited to:
150
76
 
151
- 1. Map each FR to one or more epics
152
- 2. Break each FR into stories with DETAILED acceptance criteria
153
- 3. Add ALL the implementation details that were intentionally left out of PRD
77
+ - Technology stack decisions and framework choices
78
+ - API design, contracts, and integration patterns
79
+ - Data models, schemas, and relationships
80
+ - Authentication, authorization, and security patterns
81
+ - Performance requirements and scaling approaches
82
+ - Error handling, logging, and monitoring strategies
83
+ - Deployment architecture and infrastructure considerations
84
+ - Any other technical decisions, patterns, or constraints that impact implementation
154
85
 
155
- Extract from PRD:
86
+ Focus on extracting whatever technical context exists in the Architecture document that will be needed to create comprehensive, actionable user stories for all PRD requirements.
87
+ </action>
156
88
 
157
- - ALL functional requirements (flat numbered list)
158
- - Non-functional requirements
159
- - Domain considerations and compliance needs
160
- - Project type and complexity
161
- - MVP vs growth vs vision scope boundaries
162
- - Product differentiator (what makes it special)
163
- - Technical constraints
164
- - User types and their goals
165
- - Success criteria
89
+ <action if="UX Design Exists">
90
+ Load and analyze UX Design.md:
166
91
 
167
- **Create FR Inventory:**
92
+ Extract ALL user experience context relevant to the PRD functional requirements and project needs:
168
93
 
169
- List all FRs to ensure coverage:
94
+ Scan comprehensively for any user experience details needed to create complete user stories, including but not limited to:
170
95
 
171
- - FR1: [description]
172
- - FR2: [description]
173
- - ...
174
- - FRN: [description]
96
+ - User flows, journey patterns, and interaction design
97
+ - Screen layouts, components, and visual specifications
98
+ - Interaction patterns, behaviors, and micro-interactions
99
+ - Responsive design and mobile-first considerations
100
+ - Accessibility requirements and inclusive design patterns
101
+ - Animations, transitions, and feedback mechanisms
102
+ - Error states, validation patterns, and user guidance
103
+ - Any other UX/UI decisions, patterns, or specifications that impact implementation
175
104
 
176
- This inventory will be used to validate complete coverage in Step 4.
105
+ Focus on extracting whatever user experience context exists in the UX document that will be needed to create comprehensive, actionable user stories for all PRD requirements.
177
106
  </action>
178
107
 
108
+ <template-output>context_validation</template-output>
179
109
  <template-output>fr_inventory</template-output>
180
110
  </step>
181
111
 
182
- <step n="2" goal="Propose epic structure from natural groupings">
183
-
184
- <check if="mode == 'UPDATE'">
185
- <action>**MAINTAIN existing epic structure:**
186
-
187
- Use the epic structure already defined in epics.md:
188
-
189
- - Keep all existing epic titles and goals
190
- - Preserve epic sequencing
191
- - Maintain FR coverage mapping
112
+ <step n="1" goal="Design epic structure with full technical context">
113
+ <action>**STRATEGIC EPIC PLANNING WITH COMPLETE CONTEXT:**</action>
192
114
 
193
- Note: We're enhancing stories within existing epics, not restructuring.
194
- </action>
195
-
196
- <output>**Using existing epic structure:**
197
- {{list_existing_epics_with_titles}}
115
+ <action>Now that you have ALL available context (PRD + Architecture + UX), design epics that deliver incremental user value while leveraging the technical design decisions.
198
116
 
199
- Will enhance stories within these epics using new context.
200
- </output>
117
+ **EPIC DESIGN PRINCIPLES:**
201
118
 
202
- <template-output>epics_summary</template-output>
203
- <template-output>fr_coverage_map</template-output>
204
-
205
- <goto step="3">Skip to story enhancement</goto>
206
- </check>
119
+ 1. **User-Value First**: Each epic must enable users to accomplish something meaningful
120
+ 2. **Leverage Architecture**: Build upon the technical decisions already made
121
+ 3. **Incremental Delivery**: Each epic should be independently valuable
122
+ 4. **Logical Dependencies**: Dependencies should flow naturally, not artificially
207
123
 
208
- <check if="mode == 'CREATE'">
209
- <action>Analyze requirements and identify natural epic boundaries
124
+ **USE YOUR FULL CONTEXT:**
210
125
 
211
- INTENT: Find organic groupings that make sense for THIS product
126
+ From PRD: Group related functional requirements that deliver user outcomes
127
+ From Architecture: Respect technical boundaries and integration points
128
+ From UX: Design around user journeys and interaction flows
212
129
 
213
- Look for natural patterns:
130
+ **VALID EPIC EXAMPLES:**
214
131
 
215
- - Features that work together cohesively
216
- - User journeys that connect
217
- - Business capabilities that cluster
218
- - Domain requirements that relate (compliance, validation, security)
219
- - Technical systems that should be built together
132
+ ✅ **CORRECT - User Value with Technical Context:**
220
133
 
221
- Name epics based on VALUE, not technical layers:
222
-
223
- - Good: "User Onboarding", "Content Discovery", "Compliance Framework"
224
- - Avoid: "Database Layer", "API Endpoints", "Frontend"
225
-
226
- **⚠️ ANTI-PATTERN EXAMPLES (DO NOT DO THIS):**
134
+ - Epic 1: Foundation Setup (infrastructure, deployment, core services)
135
+ - Epic 2: User Authentication & Profile Management (register, login, profile management)
136
+ - Epic 3: Content Creation & Management (create, edit, publish, organize content)
137
+ - Epic 4: Content Discovery & Interaction (browse, search, share, comment)
227
138
 
228
139
  ❌ **WRONG - Technical Layer Breakdown:**
229
140
 
230
141
  - Epic 1: Database Schema & Models
231
- - Epic 2: API Layer / Backend Services
232
- - Epic 3: Frontend UI Components
233
- - Epic 4: Integration & Testing
234
-
235
- WHY IT'S WRONG: User gets ZERO value until ALL epics complete. No incremental delivery.
142
+ - Epic 2: REST API Endpoints
143
+ - Epic 3: Frontend Components
144
+ - Epic 4: Authentication Service
236
145
 
237
- **CORRECT - User Value Breakdown:**
146
+ **PRESENT YOUR EPIC STRUCTURE:**
238
147
 
239
- - Epic 1: Foundation (project setup - necessary exception)
240
- - Epic 2: User Authentication (user can register/login - VALUE DELIVERED)
241
- - Epic 3: Content Management (user can create/edit content - VALUE DELIVERED)
242
- - Epic 4: Social Features (user can share/interact - VALUE DELIVERED)
148
+ For each proposed epic, provide:
243
149
 
244
- WHY IT'S RIGHT: Each epic delivers something users can USE. Incremental value.
150
+ - **Epic Title**: Value-based, not technical
151
+ - **User Value Statement**: What users can accomplish after this epic
152
+ - **PRD Coverage**: Which FRs this epic addresses
153
+ - **Technical Context**: How this leverages Architecture decisions
154
+ - **UX Integration**: How this incorporates user experience patterns (if available)
155
+ - **Dependencies**: What must come before (natural dependencies only)
245
156
 
246
- **Valid Exceptions:**
157
+ **FOUNDATION EPIC GUIDELINES:**
247
158
 
248
- 1. **Foundation Epic**: First epic CAN be setup/infrastructure (greenfield projects need this)
249
- 2. **API-First Epic**: ONLY valid if the API has standalone value (third-party consumers, multiple frontends, API-as-product). If it's just "backend for our frontend", that's the WRONG pattern.
159
+ For Epic 1, include technical foundation based on Architecture:
250
160
 
251
- Each epic should:
161
+ - Project setup and build system
162
+ - Core infrastructure and deployment pipeline
163
+ - Database schema setup
164
+ - Basic authentication foundation
165
+ - API framework setup
252
166
 
253
- - Have clear business goal and user value
254
- - Be independently valuable
255
- - Contain 3-8 related capabilities
256
- - Be deliverable in cohesive phase
257
-
258
- For greenfield projects:
167
+ This enables all subsequent user-facing epics.
168
+ </action>
259
169
 
260
- - First epic MUST establish foundation (project setup, core infrastructure, deployment pipeline)
261
- - Foundation enables all subsequent work
170
+ <template-output>epics_structure_plan</template-output>
171
+ <template-output>epics_technical_context</template-output>
172
+ </step>
262
173
 
263
- For complex domains:
174
+ <step n="2" goal="Create detailed stories with complete implementation context" repeat="for-each-epic">
175
+ <action>**EPIC {{N}} - COMPREHENSIVE STORY CREATION:**</action>
264
176
 
265
- - Consider dedicated compliance/regulatory epics
266
- - Group validation and safety requirements logically
267
- - Note expertise requirements
177
+ <action>For Epic {{N}}: {{epic_title}}, create bite-sized stories that incorporate ALL available context.
268
178
 
269
- Present proposed epic structure showing:
179
+ **STORY CREATION WITH FULL CONTEXT:**
270
180
 
271
- - Epic titles with clear value statements
272
- - High-level scope of each epic
273
- - **FR COVERAGE MAP: Which FRs does each epic address?**
274
- - Example: "Epic 1 (Foundation): Covers infrastructure needs for all FRs"
275
- - Example: "Epic 2 (User Management): FR1, FR2, FR3, FR4, FR5"
276
- - Example: "Epic 3 (Content System): FR6, FR7, FR8, FR9"
277
- - Suggested sequencing
278
- - Why this grouping makes sense
181
+ For each story, you now have the complete picture:
279
182
 
280
- **Validate FR Coverage:**
183
+ - **WHAT to build** (from PRD FRs)
184
+ - **HOW to build it** (from Architecture decisions)
185
+ - **HOW users interact** (from UX patterns, if available)
281
186
 
282
- Check that EVERY FR from Step 1 inventory is mapped to at least one epic.
283
- If any FRs are unmapped, add them now or explain why they're deferred.
284
- </action>
187
+ **TRANSFORM STRATEGIC REQUIREMENTS INTO TACTICAL IMPLEMENTATION:**
285
188
 
286
- <template-output>epics_summary</template-output>
287
- <template-output>fr_coverage_map</template-output>
288
- </check>
289
- </step>
189
+ PRD says: "Users can create accounts"
190
+ Architecture says: "Use PostgreSQL with bcrypt hashing, JWT tokens, rate limiting"
191
+ UX says: "Modal dialog with email/password fields, real-time validation, loading states"
290
192
 
291
- <step n="3" goal="Decompose each epic into bite-sized stories with DETAILED AC" repeat="for-each-epic">
292
-
293
- <check if="mode == 'UPDATE'">
294
- <action>**ENHANCE Epic {{N}} stories with new context:**
295
-
296
- For each existing story in Epic {{N}}:
297
-
298
- 1. Preserve core story structure (title, user story statement)
299
- 2. Add/enhance based on available NEW context:
300
-
301
- <check if="ADD_UX_DETAILS">
302
- **Add from UX Design:**
303
- - Specific mockup/wireframe references
304
- - Exact interaction patterns
305
- - Animation/transition specifications
306
- - Responsive breakpoints
307
- - Component specifications
308
- - Error states and feedback patterns
309
- - Accessibility requirements (WCAG compliance)
310
-
311
- Example enhancement:
312
- BEFORE: "User can log in"
313
- AFTER: "User can log in via modal (UX pg 12-15) with email/password fields,
314
- password visibility toggle, remember me checkbox,
315
- loading state during auth (spinner overlay),
316
- error messages below fields (red, 14px),
317
- success redirects to dashboard with fade transition"
318
-
319
- </check>
320
-
321
- <check if="ADD_ARCH_DETAILS">
322
- **Add from Architecture:**
323
- - Specific API endpoints and contracts
324
- - Data model references
325
- - Tech stack implementation details
326
- - Performance requirements
327
- - Security implementation notes
328
- - Cache strategies
329
- - Error handling patterns
330
-
331
- Example enhancement:
332
- BEFORE: "System authenticates user"
333
- AFTER: "System authenticates user via POST /api/v1/auth/login,
334
- validates against users table (see Arch section 6.2),
335
- returns JWT token (expires 7d) + refresh token (30d),
336
- rate limited to 5 attempts/hour/IP,
337
- logs failures to security_events table"
338
-
339
- </check>
340
-
341
- 3. Update acceptance criteria with new details
342
- 4. Preserve existing prerequisites
343
- 5. Enhance technical notes with new context
344
- </action>
345
- </check>
193
+ Your story becomes: Specific implementation details with exact acceptance criteria
346
194
 
347
- <check if="mode == 'CREATE'">
348
- <action>Break down Epic {{N}} into small, implementable stories
195
+ **STORY PATTERN FOR EACH EPIC {{N}}:**
349
196
 
350
- INTENT: Create stories sized for single dev agent completion
197
+ **Epic Goal:** {{epic_goal}}
351
198
 
352
- **CRITICAL - ALTITUDE SHIFT FROM PRD:**
199
+ For each story M in Epic {{N}}:
353
200
 
354
- PRD FRs are STRATEGIC (WHAT capabilities):
201
+ - **User Story**: As a [user type], I want [specific capability], So that [value/benefit]
202
+ - **Acceptance Criteria**: BDD format with COMPLETE implementation details
203
+ - **Technical Implementation**: Specific guidance from Architecture
204
+ - **User Experience**: Exact interaction patterns from UX (if available)
205
+ - **Prerequisites**: Only previous stories, never forward dependencies
355
206
 
356
- - "Users can create accounts"
207
+ **DETAILED ACCEPTANCE CRITERIA GUIDELINES:**
357
208
 
358
- Epic Stories are TACTICAL (HOW it's implemented):
209
+ Include ALL implementation specifics:
359
210
 
360
- - Email field with RFC 5322 validation
361
- - Password requirements: 8+ chars, 1 uppercase, 1 number, 1 special
362
- - Password strength meter with visual feedback
363
- - Email verification within 15 minutes
364
- - reCAPTCHA v3 integration
365
- - Account creation completes in < 2 seconds
366
- - Mobile responsive with 44x44px touch targets
367
- - WCAG 2.1 AA compliant
211
+ **From Architecture:**
368
212
 
369
- **THIS IS WHERE YOU ADD ALL THE DETAILS LEFT OUT OF PRD:**
213
+ - Exact API endpoints and contracts
214
+ - Database operations and validations
215
+ - Authentication/authorization requirements
216
+ - Error handling patterns
217
+ - Performance requirements
218
+ - Security considerations
219
+ - Integration points with other systems
370
220
 
371
- - UI specifics (exact field counts, validation rules, layout details)
372
- - Performance targets (< 2s, 60fps, etc.)
373
- - Technical implementation hints (libraries, patterns, APIs)
374
- - Edge cases (what happens when...)
375
- - Validation rules (regex patterns, constraints)
376
- - Error handling (specific error messages, retry logic)
377
- - Accessibility requirements (ARIA labels, keyboard nav, screen readers)
378
- - Platform specifics (mobile responsive, browser support)
221
+ **From UX (if available):**
379
222
 
380
- For each epic, generate:
223
+ - Specific screen/page references
224
+ - Interaction patterns and behaviors
225
+ - Form validation rules and error messages
226
+ - Responsive behavior
227
+ - Accessibility requirements
228
+ - Loading states and transitions
229
+ - Success/error feedback patterns
381
230
 
382
- - Epic title as `epic_title_{{N}}`
383
- - Epic goal/value as `epic_goal_{{N}}`
384
- - All stories as repeated pattern `story_title_{{N}}_{{M}}` for each story M
231
+ **From PRD:**
385
232
 
386
- CRITICAL for Epic 1 (Foundation):
233
+ - Business rules and constraints
234
+ - User types and permissions
235
+ - Compliance requirements
236
+ - Success criteria
387
237
 
388
- - Story 1.1 MUST be project setup/infrastructure initialization
389
- - Sets up: repo structure, build system, deployment pipeline basics, core dependencies
390
- - Creates foundation for all subsequent stories
391
- - Note: Architecture workflow will flesh out technical details
238
+ **STORY SIZING PRINCIPLE:**
392
239
 
393
- Each story should follow BDD-style acceptance criteria:
240
+ Each story must be completable by a single dev agent in one focused session. If a story becomes too large, break it down further while maintaining user value.
394
241
 
395
- **Story Pattern:**
396
- As a [user type],
397
- I want [specific capability],
398
- So that [clear value/benefit].
242
+ **EXAMPLE RICH STORY:**
399
243
 
400
- **Acceptance Criteria using BDD:**
401
- Given [precondition or initial state]
402
- When [action or trigger]
403
- Then [expected outcome]
244
+ **Story:** User Registration with Email Verification
404
245
 
405
- And [additional criteria as needed]
246
+ As a new user, I want to create an account using my email address, So that I can access the platform's features.
406
247
 
407
- **Prerequisites:** Only previous stories (never forward dependencies)
248
+ **Acceptance Criteria:**
249
+ Given I am on the landing page
250
+ When I click the "Sign Up" button
251
+ Then the registration modal opens (UX Mockup 3.2)
408
252
 
409
- **Technical Notes:** Implementation guidance, affected components, compliance requirements
253
+ And I see email and password fields with proper labels
254
+ And the email field validates RFC 5322 format in real-time
255
+ And the password field shows strength meter (red→yellow→green)
256
+ And I see "Password must be 8+ chars with 1 uppercase, 1 number, 1 special"
410
257
 
411
- Ensure stories are:
258
+ When I submit valid registration data
259
+ Then POST /api/v1/auth/register is called (Architecture section 4.1)
260
+ And the user record is created in users table with bcrypt hash (Architecture 6.2)
261
+ And a verification email is sent via SendGrid (Architecture 7.3)
262
+ And I see "Check your email for verification link" message
263
+ And I cannot log in until email is verified
412
264
 
413
- - Vertically sliced (deliver complete functionality, not just one layer)
414
- - Sequentially ordered (logical progression, no forward dependencies)
415
- - Independently valuable when possible
416
- - Small enough for single-session completion
417
- - Clear enough for autonomous implementation
265
+ **Technical Notes:**
418
266
 
419
- For each story in epic {{N}}, output variables following this pattern:
267
+ - Use PostgreSQL users table (Architecture section 6.2)
268
+ - Implement rate limiting: 3 attempts per hour per IP (Architecture 8.1)
269
+ - Return JWT token on successful verification (Architecture 5.2)
270
+ - Log registration events to audit_events table (Architecture 9.4)
271
+ - Form validation follows UX Design patterns (UX section 4.1)
420
272
 
421
- - story*title*{{N}}_1, story_title_{{N}}\*2, etc.
422
- - Each containing: user story, BDD acceptance criteria, prerequisites, technical notes</action>
273
+ **Prerequisites:** Epic 1.1 - Foundation Setup Complete
274
+ </action>
423
275
 
276
+ <action>**Generate all stories for Epic {{N}}**</action>
424
277
  <template-output>epic*title*{{N}}</template-output>
425
278
  <template-output>epic*goal*{{N}}</template-output>
426
279
 
427
280
  <action>For each story M in epic {{N}}, generate story content</action>
428
- <template-output>story-title-{{N}}-{{M}}</template-output>
429
- </check>
430
-
431
- <action>**EPIC {{N}} REVIEW - Present for Checkpoint:**
432
-
433
- Summarize the COMPLETE epic breakdown:
281
+ <template-output>story*{{N}}*{{M}}</template-output>
434
282
 
435
- **Epic {{N}}: {{epic_title}}**
436
- Goal: {{epic_goal}}
283
+ <action>**EPIC {{N}} COMPLETION REVIEW:**</action>
437
284
 
438
- Stories ({{count}} total):
439
- {{for each story, show:}}
285
+ <output>**Epic {{N}} Complete: {{epic_title}}**
440
286
 
441
- - Story {{N}}.{{M}}: {{story_title}}
442
- - User Story: As a... I want... So that...
443
- - Acceptance Criteria: (BDD format summary)
444
- - Prerequisites: {{list}}
287
+ Stories Created: {{count}}
445
288
 
446
- **Review Questions to Consider:**
289
+ **FR Coverage:** {{list of FRs covered by this epic}}
447
290
 
448
- - Is the story sequence logical?
449
- - Are acceptance criteria clear and testable?
450
- - Are there any missing stories for the FRs this epic covers?
451
- - Are the stories sized appropriately (single dev agent session)?
452
- - FRs covered by this epic: {{FR_list}}
291
+ **Technical Context Used:** {{Architecture sections referenced}}
453
292
 
454
- **NOTE:** At the checkpoint prompt, select [a] for Advanced Elicitation if you want to refine stories, add missing ones, or reorder. Select [c] to approve this epic and continue to the next one.
455
- </action>
293
+ {{if ux_design_content}}
294
+ **UX Patterns Incorporated:** {{UX sections referenced}}
295
+ {{/if}}
456
296
 
457
- <template-output>epic\_{{N}}\_complete_breakdown</template-output>
297
+ Ready for checkpoint validation.</output>
458
298
 
299
+ <template-output>epic\_{{N}}\_complete</template-output>
459
300
  </step>
460
301
 
461
- <step n="4" goal="Review epic breakdown and completion">
302
+ <step n="3" goal="Final validation and coverage matrix">
303
+ <action>**COMPREHENSIVE VALIDATION WITH FULL CONTEXT:**</action>
462
304
 
463
- <check if="mode == 'UPDATE'">
464
- <action>Review the ENHANCED epic breakdown for completeness
305
+ <action>Review the complete epic and story breakdown for quality and completeness using ALL available context.
465
306
 
466
- **Validate Enhancements:**
307
+ **FR COVERAGE VALIDATION:**
467
308
 
468
- - All stories now have context-appropriate details
469
- - UX references added where applicable
470
- - Architecture decisions incorporated where applicable
471
- - Acceptance criteria updated with new specifics
472
- - Technical notes enhanced with implementation details
309
+ Create complete FR Coverage Matrix showing every PRD functional requirement mapped to specific stories:
473
310
 
474
- **Quality Check:**
311
+ - **FR1:** [description] → Epic X, Story X.Y (with implementation details)
312
+ - **FR2:** [description] → Epic Y, Story Y.A (with implementation details)
313
+ - **FR3:** [description] → Epic Z, Story Z.B (with implementation details)
314
+ - ...
475
315
 
476
- - Stories remain bite-sized for single dev agent sessions
477
- - No forward dependencies introduced
478
- - All new context properly integrated
479
- </action>
316
+ **CRITICAL VALIDATION:** Every single FR from the PRD must be covered by at least one story with complete acceptance criteria.
480
317
 
481
- <template-output>epic_breakdown_summary</template-output>
482
- <template-output>enhancement_summary</template-output>
318
+ **ARCHITECTURE INTEGRATION VALIDATION:**
483
319
 
484
- <output>✅ **Epic Enhancement Complete!**
320
+ Verify that Architecture decisions are properly implemented:
485
321
 
486
- **Updated:** epics.md with enhanced context
322
+ - All API endpoints from Architecture are covered in stories
323
+ - Data models from Architecture are properly created and populated
324
+ - Authentication/authorization patterns are consistently applied
325
+ - Performance requirements are addressed in relevant stories
326
+ - Security measures are implemented where required
327
+ - Error handling follows Architecture patterns
328
+ - Integration points between systems are properly handled
487
329
 
488
- **Enhancements Applied:**
489
- {{if ADD_UX_DETAILS}}
330
+ **UX INTEGRATION VALIDATION** {{if ux_design_content}}:
490
331
 
491
- - UX interaction patterns and mockup references added
492
- {{/if}}
493
- {{if ADD_ARCH_DETAILS}}
494
- - ✅ Architecture technical decisions and API contracts added
495
- {{/if}}
332
+ Verify that UX design patterns are properly implemented:
496
333
 
497
- The epic breakdown now includes all available context for Phase 4 implementation.
498
-
499
- **Next Steps:**
500
- {{if !architecture_content}}
501
-
502
- - Run Architecture workflow for technical decisions
503
- {{/if}}
504
- {{if architecture_content}}
505
- - Ready for Phase 4: Sprint Planning
334
+ - User flows follow the designed journey
335
+ - Screen layouts and components match specifications
336
+ - Interaction patterns work as designed
337
+ - Responsive behavior matches breakpoints
338
+ - Accessibility requirements are met
339
+ - Error states and feedback patterns are implemented
340
+ - Form validation follows UX guidelines
341
+ - Loading states and transitions are implemented
506
342
  {{/if}}
507
- </output>
508
- </check>
509
-
510
- <check if="mode == 'CREATE'">
511
- <action>Review the complete epic breakdown for quality and completeness
512
-
513
- **Validate Epic Structure (USER VALUE CHECK):**
514
343
 
515
- For each epic, answer: "What can USERS do after this epic is complete that they couldn't do before?"
344
+ **STORY QUALITY VALIDATION:**
516
345
 
517
- - Epic 1: [Must have clear user value OR be Foundation exception]
518
- - Epic 2: [Must deliver user-facing capability]
519
- - Epic N: [Must deliver user-facing capability]
346
+ - All stories are sized for single dev agent completion
347
+ - Acceptance criteria are specific and testable
348
+ - Technical implementation guidance is clear
349
+ - User experience details are incorporated
350
+ - No forward dependencies exist
351
+ - Epic sequence delivers incremental value
352
+ - Foundation epic properly enables subsequent work
520
353
 
521
- ⚠️ RED FLAG: If an epic only delivers technical infrastructure (database layer, API without users, component library without features), RESTRUCTURE IT. Each epic should enable users to accomplish something.
354
+ **FINAL QUALITY CHECK:**
522
355
 
523
- Exception validation:
356
+ Answer these critical questions:
524
357
 
525
- - Foundation epic: Acceptable as first epic for greenfield projects
526
- - API-first epic: Acceptable ONLY if API has standalone consumers (third-party integrations, multiple frontends, API-as-product)
527
-
528
- If any epic fails this check, restructure before proceeding.
529
-
530
- **Validate FR Coverage:**
358
+ 1. **User Value:** Does each epic deliver something users can actually do/use?
359
+ 2. **Completeness:** Are ALL PRD functional requirements covered?
360
+ 3. **Technical Soundness:** Do stories properly implement Architecture decisions?
361
+ 4. **User Experience:** {{if ux_design_content}} Do stories follow UX design patterns? {{/if}}
362
+ 5. **Implementation Ready:** Can dev agents implement these stories autonomously?
363
+ </action>
531
364
 
532
- Create FR Coverage Matrix showing each FR mapped to epic(s) and story(ies):
365
+ <output>**✅ EPIC AND STORY CREATION COMPLETE**
533
366
 
534
- - FR1: [description] Epic X, Story X.Y
535
- - FR2: [description] → Epic X, Story X.Z
536
- - FR3: [description] → Epic Y, Story Y.A
537
- - ...
538
- - FRN: [description] → Epic Z, Story Z.B
539
-
540
- Confirm: EVERY FR from Step 1 inventory is covered by at least one story.
541
- If any FRs are missing, add stories now.
542
-
543
- **Validate Story Quality:**
544
-
545
- - All functional requirements from PRD are covered by stories
546
- - Epic 1 establishes proper foundation (if greenfield)
547
- - All stories are vertically sliced (deliver complete functionality, not just one layer)
548
- - No forward dependencies exist (only backward references)
549
- - Story sizing is appropriate for single-session completion
550
- - BDD acceptance criteria are clear and testable
551
- - Details added (what was missing from PRD FRs: UI specifics, performance targets, etc.)
552
- - Domain/compliance requirements are properly distributed
553
- - Sequencing enables incremental value delivery
554
-
555
- Confirm with {user_name}:
556
-
557
- - Epic structure makes sense
558
- - All FRs covered by stories (validated via coverage matrix)
559
- - Story breakdown is actionable
560
- <check if="ux_design_content && architecture_content">
561
- - All available context has been incorporated (PRD + UX + Architecture)
562
- - Ready for Phase 4 Implementation
563
- </check>
564
- <check if="ux_design_content && !architecture_content">
565
- - UX context has been incorporated
566
- - Ready for Architecture workflow (recommended next step)
567
- </check>
568
- <check if="!ux_design_content && architecture_content">
569
- - Architecture context has been incorporated
570
- - Consider running UX Design workflow if UI exists
571
- </check>
572
- <check if="!ux_design_content && !architecture_content">
573
- - Basic epic structure created from PRD
574
- - Ready for next planning phase (UX Design or Architecture)
575
- </check>
576
- </action>
577
-
578
- <template-output>epic_breakdown_summary</template-output>
579
- <template-output>fr_coverage_matrix</template-output>
367
+ **Output Generated:** epics.md with comprehensive implementation details
580
368
 
581
- <check if="mode == 'CREATE'">
582
- <output>**✅ Epic Breakdown Complete**
369
+ **Full Context Incorporated:**
583
370
 
584
- **Created:** epics.md with epic and story breakdown
371
+ - PRD functional requirements and scope
372
+ - ✅ Architecture technical decisions and contracts
373
+ {{if ux_design_content}}
374
+ - ✅ UX Design interaction patterns and specifications
375
+ {{/if}}
585
376
 
586
- **FR Coverage:** All functional requirements from PRD mapped to stories
377
+ **FR Coverage:** {{count}} functional requirements mapped to {{story_count}} stories
378
+ **Epic Structure:** {{epic_count}} epics delivering incremental user value
587
379
 
588
- **Context Incorporated:**
589
- {{if ux_design_content && architecture_content}}
380
+ **Ready for Phase 4:** Sprint Planning and Development Implementation
381
+ </output>
590
382
 
591
- - ✅ PRD requirements
592
- - ✅ UX interaction patterns
593
- - ✅ Architecture technical decisions
594
- **Status:** COMPLETE - Ready for Phase 4 Implementation!
595
- {{/if}}
596
- {{if ux_design_content && !architecture_content}}
597
- - ✅ PRD requirements
598
- - ✅ UX interaction patterns
599
- **Next:** Run Architecture workflow for technical decisions
600
- {{/if}}
601
- {{if !ux_design_content && architecture_content}}
602
- - ✅ PRD requirements
603
- - ✅ Architecture technical decisions
604
- **Next:** Consider UX Design workflow if UI needed
605
- {{/if}}
606
- {{if !ux_design_content && !architecture_content}}
607
- - ✅ PRD requirements (basic structure)
608
- **Next:** Run UX Design (if UI) or Architecture workflow
609
- **Note:** Epics will be enhanced with additional context later
610
- {{/if}}
611
- </output>
612
- </check>
613
- </check>
614
- </step>
383
+ <template-output>final_validation</template-output>
384
+ <template-output>fr_coverage_matrix</template-output>
385
+ </step>
615
386
 
616
387
  </workflow>