bmad-method 6.0.0-alpha.8 โ†’ 6.0.0-alpha.9

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 (539) hide show
  1. package/.github/ISSUE_TEMPLATE/idea_submission.md +1 -1
  2. package/.github/workflows/bundle-latest.yaml +277 -0
  3. package/.github/workflows/manual-release.yaml +55 -16
  4. package/CHANGELOG.md +439 -1
  5. package/README.md +12 -4
  6. package/docs/BUNDLE_DISTRIBUTION_SETUP.md +95 -0
  7. package/docs/agent-customization-guide.md +208 -0
  8. package/docs/ide-info/crush.md +1 -1
  9. package/docs/ide-info/cursor.md +7 -7
  10. package/docs/ide-info/iflow.md +3 -3
  11. package/docs/ide-info/opencode.md +1 -1
  12. package/docs/index.md +3 -1
  13. package/docs/installers-bundlers/ide-injections.md +2 -2
  14. package/docs/installers-bundlers/installers-modules-platforms-reference.md +23 -23
  15. package/docs/v4-to-v6-upgrade.md +12 -12
  16. package/docs/web-bundles-gemini-gpt-guide.md +473 -0
  17. package/package.json +1 -1
  18. package/src/core/_module-installer/install-config.yaml +2 -1
  19. package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
  20. package/src/core/tasks/{adv-elicit.xml โ†’ advanced-elicitation.xml} +3 -3
  21. package/src/core/tasks/workflow.xml +124 -10
  22. package/src/core/tools/shard-doc.xml +44 -0
  23. package/src/core/workflows/brainstorming/README.md +5 -15
  24. package/src/core/workflows/brainstorming/instructions.md +4 -3
  25. package/src/core/workflows/brainstorming/template.md +4 -0
  26. package/src/modules/bmb/workflows/audit-workflow/checklist.md +3 -4
  27. package/src/modules/bmb/workflows/convert-legacy/README.md +1 -1
  28. package/src/modules/bmb/workflows/convert-legacy/checklist.md +1 -1
  29. package/src/modules/bmb/workflows/convert-legacy/instructions.md +2 -2
  30. package/src/modules/bmb/workflows/create-agent/agent-architecture.md +0 -4
  31. package/src/modules/bmb/workflows/create-agent/instructions.md +13 -16
  32. package/src/modules/bmb/workflows/create-module/checklist.md +0 -9
  33. package/src/modules/bmb/workflows/create-module/instructions.md +5 -10
  34. package/src/modules/bmb/workflows/create-module/module-structure.md +3 -3
  35. package/src/modules/bmb/workflows/create-workflow/instructions.md +1 -1
  36. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -2
  37. package/src/modules/bmb/workflows/module-brief/checklist.md +2 -2
  38. package/src/modules/bmgd/_module-installer/install-config.yaml +4 -17
  39. package/src/modules/bmgd/agents/game-architect.agent.yaml +2 -2
  40. package/src/modules/bmgd/agents/game-designer.agent.yaml +2 -2
  41. package/src/modules/bmgd/agents/game-dev.agent.yaml +2 -2
  42. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +2 -2
  43. package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +1 -6
  44. package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +0 -5
  45. package/src/modules/bmgd/workflows/3-technical/game-architecture/architecture-patterns.yaml +0 -26
  46. package/src/modules/bmgd/workflows/3-technical/game-architecture/checklist.md +2 -6
  47. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +1 -6
  48. package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +21 -43
  49. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +11 -21
  50. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +5 -0
  51. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +29 -22
  52. package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +18 -45
  53. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +14 -22
  54. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +6 -1
  55. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +28 -3
  56. package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +8 -33
  57. package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +14 -22
  58. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +16 -34
  59. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +13 -34
  60. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +9 -13
  61. package/src/modules/bmgd/workflows/4-production/sprint-planning/sprint-status-template.yaml +1 -1
  62. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +6 -5
  63. package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +18 -43
  64. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +13 -15
  65. package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +3 -2
  66. package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +5 -5
  67. package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +3 -5
  68. package/src/modules/bmm/_module-installer/install-config.yaml +3 -8
  69. package/src/modules/bmm/_module-installer/installer.js +2 -2
  70. package/src/modules/bmm/agents/analyst.agent.yaml +2 -2
  71. package/src/modules/bmm/agents/architect.agent.yaml +2 -2
  72. package/src/modules/bmm/agents/pm.agent.yaml +2 -2
  73. package/src/modules/bmm/agents/sm.agent.yaml +2 -2
  74. package/src/modules/bmm/agents/tea.agent.yaml +2 -2
  75. package/src/modules/bmm/agents/tech-writer.agent.yaml +3 -3
  76. package/src/modules/bmm/agents/ux-designer.agent.yaml +2 -2
  77. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -13
  78. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +9 -11
  79. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +4 -0
  80. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +2 -2
  81. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +2 -2
  82. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +2 -2
  83. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -2
  84. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +1 -6
  85. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -5
  86. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +6 -1
  87. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +6 -0
  88. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +8 -12
  89. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +28 -0
  90. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +145 -22
  91. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +1 -3
  92. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +151 -34
  93. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +2 -2
  94. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +6 -2
  95. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +12 -9
  96. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -6
  97. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +434 -0
  98. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +128 -265
  99. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +13 -35
  100. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -26
  101. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +3 -7
  102. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +29 -37
  103. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +9 -27
  104. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +7 -13
  105. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +55 -58
  106. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +8 -8
  107. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +10 -32
  108. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +11 -13
  109. package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +5 -0
  110. package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +29 -22
  111. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +12 -37
  112. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +12 -7
  113. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +6 -1
  114. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +28 -3
  115. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +7 -30
  116. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +13 -9
  117. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +8 -26
  118. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +13 -31
  119. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +5 -0
  120. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +1 -1
  121. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +6 -6
  122. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +12 -36
  123. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +12 -6
  124. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +3 -2
  125. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +5 -5
  126. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +3 -5
  127. package/src/modules/bmm/workflows/document-project/checklist.md +1 -1
  128. package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +4 -4
  129. package/src/modules/bmm/workflows/document-project/workflows/full-scan-instructions.md +13 -13
  130. package/src/modules/bmm/workflows/testarch/ci/checklist.md +4 -4
  131. package/src/modules/bmm/workflows/testarch/framework/checklist.md +4 -4
  132. package/src/modules/bmm/workflows/testarch/test-design/checklist.md +4 -4
  133. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +173 -12
  134. package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +3 -3
  135. package/src/modules/bmm/workflows/testarch/test-design/workflow.yaml +5 -1
  136. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +9 -9
  137. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +1 -1
  138. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +9 -16
  139. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +11 -18
  140. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +8 -1
  141. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +9 -2
  142. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +2 -9
  143. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +2 -2
  144. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -2
  145. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -2
  146. package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -2
  147. package/src/modules/cis/agents/storyteller.agent.yaml +2 -2
  148. package/tools/cli/README.md +50 -32
  149. package/tools/cli/bundlers/web-bundler.js +1 -1
  150. package/tools/cli/installers/lib/core/installer.js +17 -10
  151. package/tools/cli/lib/ui.js +14 -4
  152. package/tools/cli/lib/yaml-xml-builder.js +20 -2
  153. package/.bmad/_cfg/agent-manifest.csv +0 -11
  154. package/.bmad/_cfg/agents/bmb-bmad-builder.customize.yaml +0 -42
  155. package/.bmad/_cfg/agents/bmm-analyst.customize.yaml +0 -42
  156. package/.bmad/_cfg/agents/bmm-architect.customize.yaml +0 -42
  157. package/.bmad/_cfg/agents/bmm-dev.customize.yaml +0 -42
  158. package/.bmad/_cfg/agents/bmm-pm.customize.yaml +0 -42
  159. package/.bmad/_cfg/agents/bmm-sm.customize.yaml +0 -42
  160. package/.bmad/_cfg/agents/bmm-tea.customize.yaml +0 -42
  161. package/.bmad/_cfg/agents/bmm-tech-writer.customize.yaml +0 -42
  162. package/.bmad/_cfg/agents/bmm-ux-designer.customize.yaml +0 -42
  163. package/.bmad/_cfg/agents/core-bmad-master.customize.yaml +0 -42
  164. package/.bmad/_cfg/files-manifest.csv +0 -289
  165. package/.bmad/_cfg/ides/claude-code.yaml +0 -7
  166. package/.bmad/_cfg/manifest.yaml +0 -10
  167. package/.bmad/_cfg/task-manifest.csv +0 -6
  168. package/.bmad/_cfg/tool-manifest.csv +0 -2
  169. package/.bmad/_cfg/workflow-manifest.csv +0 -44
  170. package/.bmad/bmb/README.md +0 -194
  171. package/.bmad/bmb/agents/bmad-builder.md +0 -70
  172. package/.bmad/bmb/config.yaml +0 -16
  173. package/.bmad/bmb/workflows/audit-workflow/checklist.md +0 -143
  174. package/.bmad/bmb/workflows/audit-workflow/instructions.md +0 -341
  175. package/.bmad/bmb/workflows/audit-workflow/template.md +0 -118
  176. package/.bmad/bmb/workflows/audit-workflow/workflow.yaml +0 -23
  177. package/.bmad/bmb/workflows/convert-legacy/README.md +0 -262
  178. package/.bmad/bmb/workflows/convert-legacy/checklist.md +0 -205
  179. package/.bmad/bmb/workflows/convert-legacy/instructions.md +0 -377
  180. package/.bmad/bmb/workflows/convert-legacy/workflow.yaml +0 -32
  181. package/.bmad/bmb/workflows/create-agent/README.md +0 -203
  182. package/.bmad/bmb/workflows/create-agent/agent-architecture.md +0 -419
  183. package/.bmad/bmb/workflows/create-agent/agent-command-patterns.md +0 -759
  184. package/.bmad/bmb/workflows/create-agent/agent-types.md +0 -292
  185. package/.bmad/bmb/workflows/create-agent/brainstorm-context.md +0 -174
  186. package/.bmad/bmb/workflows/create-agent/checklist.md +0 -62
  187. package/.bmad/bmb/workflows/create-agent/communication-styles.md +0 -202
  188. package/.bmad/bmb/workflows/create-agent/instructions.md +0 -459
  189. package/.bmad/bmb/workflows/create-agent/workflow.yaml +0 -37
  190. package/.bmad/bmb/workflows/create-module/README.md +0 -229
  191. package/.bmad/bmb/workflows/create-module/brainstorm-context.md +0 -137
  192. package/.bmad/bmb/workflows/create-module/checklist.md +0 -244
  193. package/.bmad/bmb/workflows/create-module/installer-templates/install-config.yaml +0 -92
  194. package/.bmad/bmb/workflows/create-module/installer-templates/installer.js +0 -231
  195. package/.bmad/bmb/workflows/create-module/instructions.md +0 -581
  196. package/.bmad/bmb/workflows/create-module/module-structure.md +0 -400
  197. package/.bmad/bmb/workflows/create-module/workflow.yaml +0 -42
  198. package/.bmad/bmb/workflows/create-workflow/README.md +0 -277
  199. package/.bmad/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  200. package/.bmad/bmb/workflows/create-workflow/checklist.md +0 -94
  201. package/.bmad/bmb/workflows/create-workflow/instructions.md +0 -724
  202. package/.bmad/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1308
  203. package/.bmad/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  204. package/.bmad/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -13
  205. package/.bmad/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  206. package/.bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -39
  207. package/.bmad/bmb/workflows/create-workflow/workflow.yaml +0 -40
  208. package/.bmad/bmb/workflows/edit-agent/README.md +0 -112
  209. package/.bmad/bmb/workflows/edit-agent/checklist.md +0 -112
  210. package/.bmad/bmb/workflows/edit-agent/instructions.md +0 -290
  211. package/.bmad/bmb/workflows/edit-agent/workflow.yaml +0 -33
  212. package/.bmad/bmb/workflows/edit-module/README.md +0 -187
  213. package/.bmad/bmb/workflows/edit-module/checklist.md +0 -165
  214. package/.bmad/bmb/workflows/edit-module/instructions.md +0 -339
  215. package/.bmad/bmb/workflows/edit-module/workflow.yaml +0 -34
  216. package/.bmad/bmb/workflows/edit-workflow/README.md +0 -119
  217. package/.bmad/bmb/workflows/edit-workflow/checklist.md +0 -70
  218. package/.bmad/bmb/workflows/edit-workflow/instructions.md +0 -342
  219. package/.bmad/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  220. package/.bmad/bmb/workflows/module-brief/README.md +0 -264
  221. package/.bmad/bmb/workflows/module-brief/checklist.md +0 -116
  222. package/.bmad/bmb/workflows/module-brief/instructions.md +0 -267
  223. package/.bmad/bmb/workflows/module-brief/template.md +0 -275
  224. package/.bmad/bmb/workflows/module-brief/workflow.yaml +0 -29
  225. package/.bmad/bmb/workflows/redoc/README.md +0 -87
  226. package/.bmad/bmb/workflows/redoc/checklist.md +0 -99
  227. package/.bmad/bmb/workflows/redoc/instructions.md +0 -265
  228. package/.bmad/bmb/workflows/redoc/workflow.yaml +0 -32
  229. package/.bmad/bmm/README.md +0 -128
  230. package/.bmad/bmm/agents/analyst.md +0 -75
  231. package/.bmad/bmm/agents/architect.md +0 -80
  232. package/.bmad/bmm/agents/dev.md +0 -69
  233. package/.bmad/bmm/agents/pm.md +0 -84
  234. package/.bmad/bmm/agents/sm.md +0 -93
  235. package/.bmad/bmm/agents/tea.md +0 -80
  236. package/.bmad/bmm/agents/tech-writer.md +0 -90
  237. package/.bmad/bmm/agents/ux-designer.md +0 -79
  238. package/.bmad/bmm/config.yaml +0 -18
  239. package/.bmad/bmm/docs/README.md +0 -235
  240. package/.bmad/bmm/docs/agents-guide.md +0 -1056
  241. package/.bmad/bmm/docs/brownfield-guide.md +0 -754
  242. package/.bmad/bmm/docs/enterprise-agentic-development.md +0 -680
  243. package/.bmad/bmm/docs/faq.md +0 -587
  244. package/.bmad/bmm/docs/glossary.md +0 -320
  245. package/.bmad/bmm/docs/party-mode.md +0 -224
  246. package/.bmad/bmm/docs/quick-spec-flow.md +0 -652
  247. package/.bmad/bmm/docs/quick-start.md +0 -366
  248. package/.bmad/bmm/docs/scale-adaptive-system.md +0 -599
  249. package/.bmad/bmm/docs/test-architecture.md +0 -394
  250. package/.bmad/bmm/docs/workflow-architecture-reference.md +0 -371
  251. package/.bmad/bmm/docs/workflow-document-project-reference.md +0 -487
  252. package/.bmad/bmm/docs/workflows-analysis.md +0 -370
  253. package/.bmad/bmm/docs/workflows-implementation.md +0 -284
  254. package/.bmad/bmm/docs/workflows-planning.md +0 -601
  255. package/.bmad/bmm/docs/workflows-solutioning.md +0 -501
  256. package/.bmad/bmm/tasks/daily-standup.xml +0 -85
  257. package/.bmad/bmm/teams/default-party.csv +0 -19
  258. package/.bmad/bmm/teams/team-fullstack.yaml +0 -12
  259. package/.bmad/bmm/testarch/knowledge/ci-burn-in.md +0 -675
  260. package/.bmad/bmm/testarch/knowledge/component-tdd.md +0 -486
  261. package/.bmad/bmm/testarch/knowledge/contract-testing.md +0 -957
  262. package/.bmad/bmm/testarch/knowledge/data-factories.md +0 -500
  263. package/.bmad/bmm/testarch/knowledge/email-auth.md +0 -721
  264. package/.bmad/bmm/testarch/knowledge/error-handling.md +0 -725
  265. package/.bmad/bmm/testarch/knowledge/feature-flags.md +0 -750
  266. package/.bmad/bmm/testarch/knowledge/fixture-architecture.md +0 -401
  267. package/.bmad/bmm/testarch/knowledge/network-first.md +0 -486
  268. package/.bmad/bmm/testarch/knowledge/nfr-criteria.md +0 -670
  269. package/.bmad/bmm/testarch/knowledge/playwright-config.md +0 -730
  270. package/.bmad/bmm/testarch/knowledge/probability-impact.md +0 -601
  271. package/.bmad/bmm/testarch/knowledge/risk-governance.md +0 -615
  272. package/.bmad/bmm/testarch/knowledge/selective-testing.md +0 -732
  273. package/.bmad/bmm/testarch/knowledge/selector-resilience.md +0 -527
  274. package/.bmad/bmm/testarch/knowledge/test-healing-patterns.md +0 -644
  275. package/.bmad/bmm/testarch/knowledge/test-levels-framework.md +0 -473
  276. package/.bmad/bmm/testarch/knowledge/test-priorities-matrix.md +0 -373
  277. package/.bmad/bmm/testarch/knowledge/test-quality.md +0 -664
  278. package/.bmad/bmm/testarch/knowledge/timing-debugging.md +0 -372
  279. package/.bmad/bmm/testarch/knowledge/visual-debugging.md +0 -524
  280. package/.bmad/bmm/testarch/tea-index.csv +0 -22
  281. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -110
  282. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  283. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -26
  284. package/.bmad/bmm/workflows/1-analysis/domain-research/instructions.md +0 -423
  285. package/.bmad/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  286. package/.bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -40
  287. package/.bmad/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  288. package/.bmad/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  289. package/.bmad/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  290. package/.bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -45
  291. package/.bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  292. package/.bmad/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  293. package/.bmad/bmm/workflows/1-analysis/research/checklist.md +0 -299
  294. package/.bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  295. package/.bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -439
  296. package/.bmad/bmm/workflows/1-analysis/research/instructions-market.md +0 -679
  297. package/.bmad/bmm/workflows/1-analysis/research/instructions-router.md +0 -133
  298. package/.bmad/bmm/workflows/1-analysis/research/instructions-technical.md +0 -538
  299. package/.bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  300. package/.bmad/bmm/workflows/1-analysis/research/template-market.md +0 -347
  301. package/.bmad/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  302. package/.bmad/bmm/workflows/1-analysis/research/workflow.yaml +0 -44
  303. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  304. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1301
  305. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -145
  306. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -60
  307. package/.bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -350
  308. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +0 -52
  309. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +0 -169
  310. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +0 -45
  311. package/.bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +0 -13
  312. package/.bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -408
  313. package/.bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +0 -237
  314. package/.bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +0 -11
  315. package/.bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -46
  316. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -214
  317. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -80
  318. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +0 -200
  319. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +0 -451
  320. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -1115
  321. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  322. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  323. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
  324. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -347
  325. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  326. package/.bmad/bmm/workflows/3-solutioning/architecture/checklist.md +0 -244
  327. package/.bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  328. package/.bmad/bmm/workflows/3-solutioning/architecture/instructions.md +0 -704
  329. package/.bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  330. package/.bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -68
  331. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +0 -175
  332. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +0 -305
  333. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/template.md +0 -146
  334. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +0 -189
  335. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +0 -64
  336. package/.bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  337. package/.bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  338. package/.bmad/bmm/workflows/4-implementation/code-review/instructions.md +0 -420
  339. package/.bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -65
  340. package/.bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -279
  341. package/.bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -201
  342. package/.bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -43
  343. package/.bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -240
  344. package/.bmad/bmm/workflows/4-implementation/create-story/instructions.md +0 -283
  345. package/.bmad/bmm/workflows/4-implementation/create-story/template.md +0 -51
  346. package/.bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -74
  347. package/.bmad/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +0 -367
  348. package/.bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -38
  349. package/.bmad/bmm/workflows/4-implementation/dev-story/instructions.md +0 -262
  350. package/.bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -26
  351. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  352. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -189
  353. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  354. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
  355. package/.bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1460
  356. package/.bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -71
  357. package/.bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
  358. package/.bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -238
  359. package/.bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
  360. package/.bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -47
  361. package/.bmad/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  362. package/.bmad/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  363. package/.bmad/bmm/workflows/4-implementation/story-context/instructions.md +0 -234
  364. package/.bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -57
  365. package/.bmad/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  366. package/.bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -25
  367. package/.bmad/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  368. package/.bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
  369. package/.bmad/bmm/workflows/document-project/checklist.md +0 -245
  370. package/.bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
  371. package/.bmad/bmm/workflows/document-project/instructions.md +0 -222
  372. package/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
  373. package/.bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
  374. package/.bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
  375. package/.bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
  376. package/.bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
  377. package/.bmad/bmm/workflows/document-project/workflow.yaml +0 -34
  378. package/.bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
  379. package/.bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
  380. package/.bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
  381. package/.bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
  382. package/.bmad/bmm/workflows/techdoc/documentation-standards.md +0 -262
  383. package/.bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +0 -363
  384. package/.bmad/bmm/workflows/testarch/atdd/checklist.md +0 -373
  385. package/.bmad/bmm/workflows/testarch/atdd/instructions.md +0 -785
  386. package/.bmad/bmm/workflows/testarch/atdd/workflow.yaml +0 -52
  387. package/.bmad/bmm/workflows/testarch/automate/checklist.md +0 -580
  388. package/.bmad/bmm/workflows/testarch/automate/instructions.md +0 -1303
  389. package/.bmad/bmm/workflows/testarch/automate/workflow.yaml +0 -61
  390. package/.bmad/bmm/workflows/testarch/ci/checklist.md +0 -246
  391. package/.bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +0 -165
  392. package/.bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +0 -128
  393. package/.bmad/bmm/workflows/testarch/ci/instructions.md +0 -517
  394. package/.bmad/bmm/workflows/testarch/ci/workflow.yaml +0 -53
  395. package/.bmad/bmm/workflows/testarch/framework/checklist.md +0 -321
  396. package/.bmad/bmm/workflows/testarch/framework/instructions.md +0 -455
  397. package/.bmad/bmm/workflows/testarch/framework/workflow.yaml +0 -53
  398. package/.bmad/bmm/workflows/testarch/nfr-assess/checklist.md +0 -405
  399. package/.bmad/bmm/workflows/testarch/nfr-assess/instructions.md +0 -722
  400. package/.bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +0 -443
  401. package/.bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +0 -56
  402. package/.bmad/bmm/workflows/testarch/test-design/checklist.md +0 -234
  403. package/.bmad/bmm/workflows/testarch/test-design/instructions.md +0 -621
  404. package/.bmad/bmm/workflows/testarch/test-design/test-design-template.md +0 -285
  405. package/.bmad/bmm/workflows/testarch/test-design/workflow.yaml +0 -52
  406. package/.bmad/bmm/workflows/testarch/test-review/checklist.md +0 -470
  407. package/.bmad/bmm/workflows/testarch/test-review/instructions.md +0 -608
  408. package/.bmad/bmm/workflows/testarch/test-review/test-review-template.md +0 -388
  409. package/.bmad/bmm/workflows/testarch/test-review/workflow.yaml +0 -53
  410. package/.bmad/bmm/workflows/testarch/trace/checklist.md +0 -654
  411. package/.bmad/bmm/workflows/testarch/trace/instructions.md +0 -1045
  412. package/.bmad/bmm/workflows/testarch/trace/trace-template.md +0 -673
  413. package/.bmad/bmm/workflows/testarch/trace/workflow.yaml +0 -66
  414. package/.bmad/bmm/workflows/workflow-status/init/instructions.md +0 -822
  415. package/.bmad/bmm/workflows/workflow-status/init/workflow.yaml +0 -27
  416. package/.bmad/bmm/workflows/workflow-status/instructions.md +0 -387
  417. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +0 -127
  418. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +0 -115
  419. package/.bmad/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
  420. package/.bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +0 -97
  421. package/.bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +0 -88
  422. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  423. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  424. package/.bmad/bmm/workflows/workflow-status/project-levels.yaml +0 -59
  425. package/.bmad/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +0 -49
  426. package/.bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +0 -31
  427. package/.bmad/bmm/workflows/workflow-status/workflow.yaml +0 -28
  428. package/.bmad/core/agents/bmad-master.md +0 -71
  429. package/.bmad/core/agents/bmad-web-orchestrator.agent.xml +0 -113
  430. package/.bmad/core/config.yaml +0 -11
  431. package/.bmad/core/tasks/adv-elicit-methods.csv +0 -39
  432. package/.bmad/core/tasks/adv-elicit.xml +0 -106
  433. package/.bmad/core/tasks/index-docs.xml +0 -65
  434. package/.bmad/core/tasks/validate-workflow.xml +0 -89
  435. package/.bmad/core/tasks/workflow.xml +0 -156
  436. package/.bmad/core/tools/shard-doc.xml +0 -65
  437. package/.bmad/core/workflows/brainstorming/README.md +0 -271
  438. package/.bmad/core/workflows/brainstorming/brain-methods.csv +0 -36
  439. package/.bmad/core/workflows/brainstorming/instructions.md +0 -314
  440. package/.bmad/core/workflows/brainstorming/template.md +0 -102
  441. package/.bmad/core/workflows/brainstorming/workflow.yaml +0 -43
  442. package/.bmad/core/workflows/party-mode/instructions.md +0 -183
  443. package/.bmad/core/workflows/party-mode/workflow.yaml +0 -27
  444. package/.bmad/docs/claude-code-instructions.md +0 -25
  445. package/.claude/commands/bmad/bmb/agents/bmad-builder.md +0 -70
  446. package/.claude/commands/bmad/bmb/workflows/audit-workflow.md +0 -15
  447. package/.claude/commands/bmad/bmb/workflows/convert-legacy.md +0 -15
  448. package/.claude/commands/bmad/bmb/workflows/create-agent.md +0 -15
  449. package/.claude/commands/bmad/bmb/workflows/create-module.md +0 -15
  450. package/.claude/commands/bmad/bmb/workflows/create-workflow.md +0 -15
  451. package/.claude/commands/bmad/bmb/workflows/edit-agent.md +0 -15
  452. package/.claude/commands/bmad/bmb/workflows/edit-module.md +0 -15
  453. package/.claude/commands/bmad/bmb/workflows/edit-workflow.md +0 -15
  454. package/.claude/commands/bmad/bmb/workflows/module-brief.md +0 -15
  455. package/.claude/commands/bmad/bmb/workflows/redoc.md +0 -15
  456. package/.claude/commands/bmad/bmm/agents/analyst.md +0 -75
  457. package/.claude/commands/bmad/bmm/agents/architect.md +0 -80
  458. package/.claude/commands/bmad/bmm/agents/dev.md +0 -69
  459. package/.claude/commands/bmad/bmm/agents/pm.md +0 -84
  460. package/.claude/commands/bmad/bmm/agents/sm.md +0 -93
  461. package/.claude/commands/bmad/bmm/agents/tea.md +0 -80
  462. package/.claude/commands/bmad/bmm/agents/tech-writer.md +0 -90
  463. package/.claude/commands/bmad/bmm/agents/ux-designer.md +0 -79
  464. package/.claude/commands/bmad/bmm/workflows/architecture.md +0 -15
  465. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +0 -15
  466. package/.claude/commands/bmad/bmm/workflows/code-review.md +0 -15
  467. package/.claude/commands/bmad/bmm/workflows/correct-course.md +0 -15
  468. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +0 -15
  469. package/.claude/commands/bmad/bmm/workflows/create-story.md +0 -15
  470. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +0 -15
  471. package/.claude/commands/bmad/bmm/workflows/dev-story.md +0 -15
  472. package/.claude/commands/bmad/bmm/workflows/document-project.md +0 -15
  473. package/.claude/commands/bmad/bmm/workflows/domain-research.md +0 -15
  474. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +0 -15
  475. package/.claude/commands/bmad/bmm/workflows/prd.md +0 -15
  476. package/.claude/commands/bmad/bmm/workflows/product-brief.md +0 -15
  477. package/.claude/commands/bmad/bmm/workflows/research.md +0 -15
  478. package/.claude/commands/bmad/bmm/workflows/retrospective.md +0 -15
  479. package/.claude/commands/bmad/bmm/workflows/solutioning-gate-check.md +0 -15
  480. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +0 -15
  481. package/.claude/commands/bmad/bmm/workflows/story-context.md +0 -15
  482. package/.claude/commands/bmad/bmm/workflows/story-done.md +0 -15
  483. package/.claude/commands/bmad/bmm/workflows/story-ready.md +0 -15
  484. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +0 -15
  485. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +0 -15
  486. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +0 -15
  487. package/.claude/commands/bmad/core/agents/bmad-master.md +0 -71
  488. package/.claude/commands/bmad/core/tasks/adv-elicit.md +0 -9
  489. package/.claude/commands/bmad/core/tasks/index-docs.md +0 -9
  490. package/.claude/commands/bmad/core/tools/shard-doc.md +0 -9
  491. package/.claude/commands/bmad/core/workflows/brainstorming.md +0 -15
  492. package/.claude/commands/bmad/core/workflows/party-mode.md +0 -15
  493. package/.claude/settings.local.json +0 -16
  494. package/src/modules/bmgd/workflows/4-production/dev-story/AUDIT-REPORT.md +0 -367
  495. package/src/modules/bmm/sub-modules/claude-code/README.md +0 -87
  496. package/src/modules/bmm/sub-modules/claude-code/config.yaml +0 -5
  497. package/src/modules/bmm/sub-modules/claude-code/injections.yaml +0 -242
  498. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +0 -102
  499. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +0 -82
  500. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +0 -101
  501. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +0 -84
  502. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +0 -83
  503. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +0 -81
  504. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +0 -61
  505. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +0 -168
  506. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +0 -115
  507. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +0 -123
  508. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +0 -72
  509. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +0 -51
  510. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +0 -106
  511. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +0 -102
  512. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +0 -68
  513. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +0 -108
  514. package/src/modules/bmm/tasks/daily-standup.xml +0 -85
  515. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +0 -200
  516. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +0 -451
  517. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +0 -189
  518. package/src/modules/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +0 -367
  519. package/src/modules/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +0 -49
  520. package/web-bundles/bmgd/agents/game-architect.xml +0 -664
  521. package/web-bundles/bmgd/agents/game-designer.xml +0 -5489
  522. package/web-bundles/bmgd/agents/game-dev.xml +0 -595
  523. package/web-bundles/bmgd/agents/game-scrum-master.xml +0 -699
  524. package/web-bundles/bmgd/teams/team-gamedev.xml +0 -6588
  525. package/web-bundles/bmm/agents/analyst.xml +0 -5263
  526. package/web-bundles/bmm/agents/architect.xml +0 -2378
  527. package/web-bundles/bmm/agents/dev.xml +0 -248
  528. package/web-bundles/bmm/agents/pm.xml +0 -4137
  529. package/web-bundles/bmm/agents/sm.xml +0 -708
  530. package/web-bundles/bmm/agents/tea.xml +0 -759
  531. package/web-bundles/bmm/agents/tech-writer.xml +0 -624
  532. package/web-bundles/bmm/agents/ux-designer.xml +0 -2492
  533. package/web-bundles/bmm/teams/team-fullstack.xml +0 -12369
  534. package/web-bundles/cis/agents/brainstorming-coach.xml +0 -1069
  535. package/web-bundles/cis/agents/creative-problem-solver.xml +0 -1060
  536. package/web-bundles/cis/agents/design-thinking-coach.xml +0 -955
  537. package/web-bundles/cis/agents/innovation-strategist.xml +0 -1108
  538. package/web-bundles/cis/agents/storyteller.xml +0 -598
  539. package/web-bundles/cis/teams/creative-squad.xml +0 -3449
@@ -1,4137 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <agent-bundle>
3
- <!-- Agent Definition -->
4
- <agent id="bmad/bmm/agents/pm.md" name="John" title="Product Manager" icon="๐Ÿ“‹">
5
- <activation critical="MANDATORY">
6
- <step n="1">Load persona from this current agent XML block containing this activation you are reading now</step>
7
-
8
- <step n="4">Show greeting + numbered list of ALL commands IN ORDER from current agent's menu section</step>
9
- <step n="5">CRITICAL HALT. AWAIT user input. NEVER continue without it.</step>
10
- <step n="6">On user input: Number โ†’ execute menu item[n] | Text โ†’ case-insensitive substring match | Multiple matches โ†’ ask user
11
- to clarify | No match โ†’ show "Not recognized"</step>
12
- <step n="7">When executing a menu item: Check menu-handlers section below - extract any attributes from the selected menu item
13
- (workflow, exec, tmpl, data, action, validate-workflow) and follow the corresponding handler instructions</step>
14
-
15
- <bundled-files critical="MANDATORY">
16
- <access-method>
17
- All dependencies are bundled within this XML file as &lt;file&gt; elements with CDATA content.
18
- When you need to access a file path like "bmad/core/tasks/workflow.xml":
19
- 1. Find the &lt;file id="bmad/core/tasks/workflow.xml"&gt; element in this document
20
- 2. Extract the content from within the CDATA section
21
- 3. Use that content as if you read it from the filesystem
22
- </access-method>
23
- <rules>
24
- <rule>NEVER attempt to read files from filesystem - all files are bundled in this XML</rule>
25
- <rule>File paths starting with "bmad/" refer to &lt;file id="..."&gt; elements</rule>
26
- <rule>When instructions reference a file path, locate the corresponding &lt;file&gt; element by matching the id attribute</rule>
27
- <rule>YAML files are bundled with only their web_bundle section content (flattened to root level)</rule>
28
- </rules>
29
- </bundled-files>
30
-
31
- <rules>
32
- Stay in character until *exit
33
- Number all option lists, use letters for sub-options
34
- All file content is bundled in &lt;file&gt; elements - locate by id attribute
35
- NEVER attempt filesystem operations - everything is in this XML
36
- Menu triggers use asterisk (*) - display exactly as shown
37
- </rules>
38
-
39
- <menu-handlers>
40
- <handlers>
41
- <handler type="workflow">
42
- When menu item has: workflow="path/to/workflow.yaml"
43
- 1. CRITICAL: Always LOAD bmad/core/tasks/workflow.xml
44
- 2. Read the complete file - this is the CORE OS for executing BMAD workflows
45
- 3. Pass the yaml path as 'workflow-config' parameter to those instructions
46
- 4. Execute workflow.xml instructions precisely following all steps
47
- 5. Save outputs after completing EACH workflow step (never batch multiple steps together)
48
- 6. If workflow.yaml path is "todo", inform user the workflow hasn't been implemented yet
49
- </handler>
50
- <handler type="validate-workflow">
51
- When command has: validate-workflow="path/to/workflow.yaml"
52
- 1. You MUST LOAD the file at: bmad/core/tasks/validate-workflow.xml
53
- 2. READ its entire contents and EXECUTE all instructions in that file
54
- 3. Pass the workflow, and also check the workflow yaml validation property to find and load the validation schema to pass as the checklist
55
- 4. The workflow should try to identify the file to validate based on checklist context or else you will ask the user to specify
56
- </handler>
57
- <handler type="exec">
58
- When menu item has: exec="path/to/file.md"
59
- Actually LOAD and EXECUTE the file at that path - do not improvise
60
- Read the complete file and follow all instructions within it
61
- </handler>
62
-
63
- </handlers>
64
- </menu-handlers>
65
-
66
- </activation>
67
- <persona>
68
- <role>Investigative Product Strategist + Market-Savvy PM</role>
69
- <identity>Product management veteran with 8+ years launching B2B and consumer products. Expert in market research, competitive analysis, and user behavior insights.</identity>
70
- <communication_style>Direct and analytical. Asks WHY relentlessly. Backs claims with data and user insights. Cuts straight to what matters for the product.</communication_style>
71
- <principles>Uncover the deeper WHY behind every requirement. Ruthless prioritization to achieve MVP goals. Proactively identify risks. Align efforts with measurable business impact.</principles>
72
- </persona>
73
- <menu>
74
- <item cmd="*help">Show numbered menu</item><item cmd="*create-prd" workflow="bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml">Create Product Requirements Document (PRD) for Level 2-4 projects</item>
75
- <item cmd="*create-epics-and-stories" workflow="bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml">Break PRD requirements into implementable epics and stories</item>
76
- <item cmd="*validate-prd" validate-workflow="bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml">Validate PRD + Epics + Stories completeness and quality</item>
77
- <item cmd="*tech-spec" workflow="bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml">Create Tech Spec for Level 0-1 (sometimes Level 2) projects</item>
78
- <item cmd="*validate-tech-spec" validate-workflow="bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml">Validate Technical Specification Document</item><item cmd="*party-mode" workflow="bmad/core/workflows/party-mode/workflow.yaml">Consult with other expert agents from the party</item>
79
- <item cmd="*adv-elicit" exec="bmad/core/tasks/adv-elicit.xml">Advanced elicitation techniques to challenge the LLM to get better results</item>
80
- <item cmd="*exit">Exit with confirmation</item>
81
- </menu>
82
- </agent>
83
-
84
- <!-- Dependencies -->
85
- <file id="bmad/core/tasks/adv-elicit.xml" type="xml">
86
- <task id="bmad/core/tasks/adv-elicit.xml" name="Advanced Elicitation" standalone="true"
87
- methods="bmad/core/tasks/adv-elicit-methods.csv"
88
- agent-party="bmad/_cfg/agent-manifest.csv">
89
- <llm critical="true">
90
- <i>MANDATORY: Execute ALL steps in the flow section IN EXACT ORDER</i>
91
- <i>DO NOT skip steps or change the sequence</i>
92
- <i>HALT immediately when halt-conditions are met</i>
93
- <i>Each action xml tag within step xml tag is a REQUIRED action to complete that step</i>
94
- <i>Sections outside flow (validation, output, critical-context) provide essential context - review and apply throughout execution</i>
95
- </llm>
96
-
97
- <integration description="When called from workflow">
98
- <desc>When called during template workflow processing:</desc>
99
- <i>1. Receive or review the current section content that was just generated or</i>
100
- <i>2. Apply elicitation methods iteratively to enhance that specific content</i>
101
- <i>3. Return the enhanced version back when user selects 'x' to proceed and return back</i>
102
- <i>4. The enhanced content replaces the original section content in the output document</i>
103
- </integration>
104
-
105
- <flow>
106
- <step n="1" title="Method Registry Loading">
107
- <action>Load and read {{methods}} and {{agent-party}}</action>
108
-
109
- <csv-structure>
110
- <i>category: Method grouping (core, structural, risk, etc.)</i>
111
- <i>method_name: Display name for the method</i>
112
- <i>description: Rich explanation of what the method does, when to use it, and why it's valuable</i>
113
- <i>output_pattern: Flexible flow guide using โ†’ arrows (e.g., "analysis โ†’ insights โ†’ action")</i>
114
- </csv-structure>
115
-
116
- <context-analysis>
117
- <i>Use conversation history</i>
118
- <i>Analyze: content type, complexity, stakeholder needs, risk level, and creative potential</i>
119
- </context-analysis>
120
-
121
- <smart-selection>
122
- <i>1. Analyze context: Content type, complexity, stakeholder needs, risk level, creative potential</i>
123
- <i>2. Parse descriptions: Understand each method's purpose from the rich descriptions in CSV</i>
124
- <i>3. Select 5 methods: Choose methods that best match the context based on their descriptions</i>
125
- <i>4. Balance approach: Include mix of foundational and specialized techniques as appropriate</i>
126
- </smart-selection>
127
- </step>
128
-
129
- <step n="2" title="Present Options and Handle Responses">
130
-
131
- <format>
132
- **Advanced Elicitation Options**
133
- Choose a number (1-5), r to shuffle, or x to proceed:
134
-
135
- 1. [Method Name]
136
- 2. [Method Name]
137
- 3. [Method Name]
138
- 4. [Method Name]
139
- 5. [Method Name]
140
- r. Reshuffle the list with 5 new options
141
- x. Proceed / No Further Actions
142
- </format>
143
-
144
- <response-handling>
145
- <case n="1-5">
146
- <i>Execute the selected method using its description from the CSV</i>
147
- <i>Adapt the method's complexity and output format based on the current context</i>
148
- <i>Apply the method creatively to the current section content being enhanced</i>
149
- <i>Display the enhanced version showing what the method revealed or improved</i>
150
- <i>CRITICAL: Ask the user if they would like to apply the changes to the doc (y/n/other) and HALT to await response.</i>
151
- <i>CRITICAL: ONLY if Yes, apply the changes. IF No, discard your memory of the proposed changes. If any other reply, try best to
152
- follow the instructions given by the user.</i>
153
- <i>CRITICAL: Re-present the same 1-5,r,x prompt to allow additional elicitations</i>
154
- </case>
155
- <case n="r">
156
- <i>Select 5 different methods from adv-elicit-methods.csv, present new list with same prompt format</i>
157
- </case>
158
- <case n="x">
159
- <i>Complete elicitation and proceed</i>
160
- <i>Return the fully enhanced content back to create-doc.md</i>
161
- <i>The enhanced content becomes the final version for that section</i>
162
- <i>Signal completion back to create-doc.md to continue with next section</i>
163
- </case>
164
- <case n="direct-feedback">
165
- <i>Apply changes to current section content and re-present choices</i>
166
- </case>
167
- <case n="multiple-numbers">
168
- <i>Execute methods in sequence on the content, then re-offer choices</i>
169
- </case>
170
- </response-handling>
171
- </step>
172
-
173
- <step n="3" title="Execution Guidelines">
174
- <i>Method execution: Use the description from CSV to understand and apply each method</i>
175
- <i>Output pattern: Use the pattern as a flexible guide (e.g., "paths โ†’ evaluation โ†’ selection")</i>
176
- <i>Dynamic adaptation: Adjust complexity based on content needs (simple to sophisticated)</i>
177
- <i>Creative application: Interpret methods flexibly based on context while maintaining pattern consistency</i>
178
- <i>Be concise: Focus on actionable insights</i>
179
- <i>Stay relevant: Tie elicitation to specific content being analyzed (the current section from create-doc)</i>
180
- <i>Identify personas: For multi-persona methods, clearly identify viewpoints</i>
181
- <i>Critical loop behavior: Always re-offer the 1-5,r,x choices after each method execution</i>
182
- <i>Continue until user selects 'x' to proceed with enhanced content</i>
183
- <i>Each method application builds upon previous enhancements</i>
184
- <i>Content preservation: Track all enhancements made during elicitation</i>
185
- <i>Iterative enhancement: Each selected method (1-5) should:</i>
186
- <i> 1. Apply to the current enhanced version of the content</i>
187
- <i> 2. Show the improvements made</i>
188
- <i> 3. Return to the prompt for additional elicitations or completion</i>
189
- </step>
190
- </flow>
191
- </task>
192
- </file>
193
- <file id="bmad/core/tasks/adv-elicit-methods.csv" type="xml">
194
- <file-index id="bmad/core/tasks/adv-elicit-methods.csv">
195
- <items>
196
- <item>
197
- <category>advanced</category>
198
- <method_name>Tree of Thoughts</method_name>
199
- <description>Explore multiple reasoning paths simultaneously then evaluate and select the best - perfect for complex problems with multiple valid approaches where finding the optimal path matters</description>
200
- <output_pattern>paths โ†’ evaluation โ†’ selection</output_pattern>
201
- </item>
202
- <item>
203
- <category>advanced</category>
204
- <method_name>Graph of Thoughts</method_name>
205
- <description>Model reasoning as an interconnected network of ideas to reveal hidden relationships - ideal for systems thinking and discovering emergent patterns in complex multi-factor situations</description>
206
- <output_pattern>nodes โ†’ connections โ†’ patterns</output_pattern>
207
- </item>
208
- <item>
209
- <category>advanced</category>
210
- <method_name>Thread of Thought</method_name>
211
- <description>Maintain coherent reasoning across long contexts by weaving a continuous narrative thread - essential for RAG systems and maintaining consistency in lengthy analyses</description>
212
- <output_pattern>context โ†’ thread โ†’ synthesis</output_pattern>
213
- </item>
214
- <item>
215
- <category>advanced</category>
216
- <method_name>Self-Consistency Validation</method_name>
217
- <description>Generate multiple independent approaches then compare for consistency - crucial for high-stakes decisions where verification and consensus building matter</description>
218
- <output_pattern>approaches โ†’ comparison โ†’ consensus</output_pattern>
219
- </item>
220
- <item>
221
- <category>advanced</category>
222
- <method_name>Meta-Prompting Analysis</method_name>
223
- <description>Step back to analyze the approach structure and methodology itself - valuable for optimizing prompts and improving problem-solving strategies</description>
224
- <output_pattern>current โ†’ analysis โ†’ optimization</output_pattern>
225
- </item>
226
- <item>
227
- <category>advanced</category>
228
- <method_name>Reasoning via Planning</method_name>
229
- <description>Build a reasoning tree guided by world models and goal states - excellent for strategic planning and sequential decision-making tasks</description>
230
- <output_pattern>model โ†’ planning โ†’ strategy</output_pattern>
231
- </item>
232
- <item>
233
- <category>collaboration</category>
234
- <method_name>Stakeholder Round Table</method_name>
235
- <description>Convene multiple personas to contribute diverse perspectives - essential for requirements gathering and finding balanced solutions across competing interests</description>
236
- <output_pattern>perspectives โ†’ synthesis โ†’ alignment</output_pattern>
237
- </item>
238
- <item>
239
- <category>collaboration</category>
240
- <method_name>Expert Panel Review</method_name>
241
- <description>Assemble domain experts for deep specialized analysis - ideal when technical depth and peer review quality are needed</description>
242
- <output_pattern>expert views โ†’ consensus โ†’ recommendations</output_pattern>
243
- </item>
244
- <item>
245
- <category>competitive</category>
246
- <method_name>Red Team vs Blue Team</method_name>
247
- <description>Adversarial attack-defend analysis to find vulnerabilities - critical for security testing and building robust solutions through adversarial thinking</description>
248
- <output_pattern>defense โ†’ attack โ†’ hardening</output_pattern>
249
- </item>
250
- <item>
251
- <category>core</category>
252
- <method_name>Expand or Contract for Audience</method_name>
253
- <description>Dynamically adjust detail level and technical depth for target audience - essential when content needs to match specific reader capabilities</description>
254
- <output_pattern>audience โ†’ adjustments โ†’ refined content</output_pattern>
255
- </item>
256
- <item>
257
- <category>core</category>
258
- <method_name>Critique and Refine</method_name>
259
- <description>Systematic review to identify strengths and weaknesses then improve - standard quality check for drafts needing polish and enhancement</description>
260
- <output_pattern>strengths/weaknesses โ†’ improvements โ†’ refined version</output_pattern>
261
- </item>
262
- <item>
263
- <category>core</category>
264
- <method_name>Explain Reasoning</method_name>
265
- <description>Walk through step-by-step thinking to show how conclusions were reached - crucial for transparency and helping others understand complex logic</description>
266
- <output_pattern>steps โ†’ logic โ†’ conclusion</output_pattern>
267
- </item>
268
- <item>
269
- <category>core</category>
270
- <method_name>First Principles Analysis</method_name>
271
- <description>Strip away assumptions to rebuild from fundamental truths - breakthrough technique for innovation and solving seemingly impossible problems</description>
272
- <output_pattern>assumptions โ†’ truths โ†’ new approach</output_pattern>
273
- </item>
274
- <item>
275
- <category>core</category>
276
- <method_name>5 Whys Deep Dive</method_name>
277
- <description>Repeatedly ask why to drill down to root causes - simple but powerful for understanding failures and fixing problems at their source</description>
278
- <output_pattern>why chain โ†’ root cause โ†’ solution</output_pattern>
279
- </item>
280
- <item>
281
- <category>core</category>
282
- <method_name>Socratic Questioning</method_name>
283
- <description>Use targeted questions to reveal hidden assumptions and guide discovery - excellent for teaching and helping others reach insights themselves</description>
284
- <output_pattern>questions โ†’ revelations โ†’ understanding</output_pattern>
285
- </item>
286
- <item>
287
- <category>creative</category>
288
- <method_name>Reverse Engineering</method_name>
289
- <description>Work backwards from desired outcome to find implementation path - powerful for goal achievement and understanding how to reach specific endpoints</description>
290
- <output_pattern>end state โ†’ steps backward โ†’ path forward</output_pattern>
291
- </item>
292
- <item>
293
- <category>creative</category>
294
- <method_name>What If Scenarios</method_name>
295
- <description>Explore alternative realities to understand possibilities and implications - valuable for contingency planning and creative exploration</description>
296
- <output_pattern>scenarios โ†’ implications โ†’ insights</output_pattern>
297
- </item>
298
- <item>
299
- <category>creative</category>
300
- <method_name>SCAMPER Method</method_name>
301
- <description>Apply seven creativity lenses (Substitute/Combine/Adapt/Modify/Put/Eliminate/Reverse) - systematic ideation for product innovation and improvement</description>
302
- <output_pattern>Sโ†’Cโ†’Aโ†’Mโ†’Pโ†’Eโ†’R</output_pattern>
303
- </item>
304
- <item>
305
- <category>learning</category>
306
- <method_name>Feynman Technique</method_name>
307
- <description>Explain complex concepts simply as if teaching a child - the ultimate test of true understanding and excellent for knowledge transfer</description>
308
- <output_pattern>complex โ†’ simple โ†’ gaps โ†’ mastery</output_pattern>
309
- </item>
310
- <item>
311
- <category>learning</category>
312
- <method_name>Active Recall Testing</method_name>
313
- <description>Test understanding without references to verify true knowledge - essential for identifying gaps and reinforcing mastery</description>
314
- <output_pattern>test โ†’ gaps โ†’ reinforcement</output_pattern>
315
- </item>
316
- <item>
317
- <category>narrative</category>
318
- <method_name>Unreliable Narrator Mode</method_name>
319
- <description>Question assumptions and biases by adopting skeptical perspective - crucial for detecting hidden agendas and finding balanced truth</description>
320
- <output_pattern>perspective โ†’ biases โ†’ balanced view</output_pattern>
321
- </item>
322
- <item>
323
- <category>optimization</category>
324
- <method_name>Speedrun Optimization</method_name>
325
- <description>Find the fastest most efficient path by eliminating waste - perfect when time pressure demands maximum efficiency</description>
326
- <output_pattern>current โ†’ bottlenecks โ†’ optimized</output_pattern>
327
- </item>
328
- <item>
329
- <category>optimization</category>
330
- <method_name>New Game Plus</method_name>
331
- <description>Revisit challenges with enhanced capabilities from prior experience - excellent for iterative improvement and mastery building</description>
332
- <output_pattern>initial โ†’ enhanced โ†’ improved</output_pattern>
333
- </item>
334
- <item>
335
- <category>optimization</category>
336
- <method_name>Roguelike Permadeath</method_name>
337
- <description>Treat decisions as irreversible to force careful high-stakes analysis - ideal for critical decisions with no second chances</description>
338
- <output_pattern>decision โ†’ consequences โ†’ execution</output_pattern>
339
- </item>
340
- <item>
341
- <category>philosophical</category>
342
- <method_name>Occam's Razor Application</method_name>
343
- <description>Find the simplest sufficient explanation by eliminating unnecessary complexity - essential for debugging and theory selection</description>
344
- <output_pattern>options โ†’ simplification โ†’ selection</output_pattern>
345
- </item>
346
- <item>
347
- <category>philosophical</category>
348
- <method_name>Trolley Problem Variations</method_name>
349
- <description>Explore ethical trade-offs through moral dilemmas - valuable for understanding values and making difficult ethical decisions</description>
350
- <output_pattern>dilemma โ†’ analysis โ†’ decision</output_pattern>
351
- </item>
352
- <item>
353
- <category>quantum</category>
354
- <method_name>Observer Effect Consideration</method_name>
355
- <description>Analyze how the act of measurement changes what's being measured - important for understanding metrics impact and self-aware systems</description>
356
- <output_pattern>unmeasured โ†’ observation โ†’ impact</output_pattern>
357
- </item>
358
- <item>
359
- <category>retrospective</category>
360
- <method_name>Hindsight Reflection</method_name>
361
- <description>Imagine looking back from the future to gain perspective - powerful for project reviews and extracting wisdom from experience</description>
362
- <output_pattern>future view โ†’ insights โ†’ application</output_pattern>
363
- </item>
364
- <item>
365
- <category>retrospective</category>
366
- <method_name>Lessons Learned Extraction</method_name>
367
- <description>Systematically identify key takeaways and actionable improvements - essential for knowledge transfer and continuous improvement</description>
368
- <output_pattern>experience โ†’ lessons โ†’ actions</output_pattern>
369
- </item>
370
- <item>
371
- <category>risk</category>
372
- <method_name>Identify Potential Risks</method_name>
373
- <description>Brainstorm what could go wrong across all categories - fundamental for project planning and deployment preparation</description>
374
- <output_pattern>categories โ†’ risks โ†’ mitigations</output_pattern>
375
- </item>
376
- <item>
377
- <category>risk</category>
378
- <method_name>Challenge from Critical Perspective</method_name>
379
- <description>Play devil's advocate to stress-test ideas and find weaknesses - essential for overcoming groupthink and building robust solutions</description>
380
- <output_pattern>assumptions โ†’ challenges โ†’ strengthening</output_pattern>
381
- </item>
382
- <item>
383
- <category>risk</category>
384
- <method_name>Failure Mode Analysis</method_name>
385
- <description>Systematically explore how each component could fail - critical for reliability engineering and safety-critical systems</description>
386
- <output_pattern>components โ†’ failures โ†’ prevention</output_pattern>
387
- </item>
388
- <item>
389
- <category>risk</category>
390
- <method_name>Pre-mortem Analysis</method_name>
391
- <description>Imagine future failure then work backwards to prevent it - powerful technique for risk mitigation before major launches</description>
392
- <output_pattern>failure scenario โ†’ causes โ†’ prevention</output_pattern>
393
- </item>
394
- <item>
395
- <category>scientific</category>
396
- <method_name>Peer Review Simulation</method_name>
397
- <description>Apply rigorous academic evaluation standards - ensures quality through methodology review and critical assessment</description>
398
- <output_pattern>methodology โ†’ analysis โ†’ recommendations</output_pattern>
399
- </item>
400
- <item>
401
- <category>scientific</category>
402
- <method_name>Reproducibility Check</method_name>
403
- <description>Verify results can be replicated independently - fundamental for reliability and scientific validity</description>
404
- <output_pattern>method โ†’ replication โ†’ validation</output_pattern>
405
- </item>
406
- <item>
407
- <category>structural</category>
408
- <method_name>Dependency Mapping</method_name>
409
- <description>Visualize interconnections to understand requirements and impacts - essential for complex systems and integration planning</description>
410
- <output_pattern>components โ†’ dependencies โ†’ impacts</output_pattern>
411
- </item>
412
- <item>
413
- <category>structural</category>
414
- <method_name>Information Architecture Review</method_name>
415
- <description>Optimize organization and hierarchy for better user experience - crucial for fixing navigation and findability problems</description>
416
- <output_pattern>current โ†’ pain points โ†’ restructure</output_pattern>
417
- </item>
418
- <item>
419
- <category>structural</category>
420
- <method_name>Skeleton of Thought</method_name>
421
- <description>Create structure first then expand branches in parallel - efficient for generating long content quickly with good organization</description>
422
- <output_pattern>skeleton โ†’ branches โ†’ integration</output_pattern>
423
- </item>
424
- </items>
425
- </file-index>
426
- </file>
427
- <file id="bmad/core/tasks/workflow.xml" type="xml">
428
- <task id="bmad/core/tasks/workflow.xml" name="Execute Workflow">
429
- <objective>Execute given workflow by loading its configuration, following instructions, and producing output</objective>
430
-
431
- <llm critical="true">
432
- <mandate>Always read COMPLETE files - NEVER use offset/limit when reading any workflow related files</mandate>
433
- <mandate>Instructions are MANDATORY - either as file path, steps or embedded list in YAML, XML or markdown</mandate>
434
- <mandate>Execute ALL steps in instructions IN EXACT ORDER</mandate>
435
- <mandate>Save to template output file after EVERY "template-output" tag</mandate>
436
- <mandate>NEVER delegate a step - YOU are responsible for every steps execution</mandate>
437
- </llm>
438
-
439
- <WORKFLOW-RULES critical="true">
440
- <rule n="1">Steps execute in exact numerical order (1, 2, 3...)</rule>
441
- <rule n="2">Optional steps: Ask user unless #yolo mode active</rule>
442
- <rule n="3">Template-output tags: Save content โ†’ Show user โ†’ Get approval before continuing</rule>
443
- <rule n="4">User must approve each major section before continuing UNLESS #yolo mode active</rule>
444
- </WORKFLOW-RULES>
445
-
446
- <flow>
447
- <step n="1" title="Load and Initialize Workflow">
448
- <substep n="1a" title="Load Configuration and Resolve Variables">
449
- <action>Read workflow.yaml from provided path</action>
450
- <mandate>Load config_source (REQUIRED for all modules)</mandate>
451
- <phase n="1">Load external config from config_source path</phase>
452
- <phase n="2">Resolve all {config_source}: references with values from config</phase>
453
- <phase n="3">Resolve system variables (date:system-generated) and paths (, {installed_path})</phase>
454
- <phase n="4">Ask user for input of any variables that are still unknown</phase>
455
- </substep>
456
-
457
- <substep n="1b" title="Load Required Components">
458
- <mandate>Instructions: Read COMPLETE file from path OR embedded list (REQUIRED)</mandate>
459
- <check>If template path โ†’ Read COMPLETE template file</check>
460
- <check>If validation path โ†’ Note path for later loading when needed</check>
461
- <check>If template: false โ†’ Mark as action-workflow (else template-workflow)</check>
462
- <note>Data files (csv, json) โ†’ Store paths only, load on-demand when instructions reference them</note>
463
- </substep>
464
-
465
- <substep n="1c" title="Initialize Output" if="template-workflow">
466
- <action>Resolve default_output_file path with all variables and {{date}}</action>
467
- <action>Create output directory if doesn't exist</action>
468
- <action>If template-workflow โ†’ Write template to output file with placeholders</action>
469
- <action>If action-workflow โ†’ Skip file creation</action>
470
- </substep>
471
- </step>
472
-
473
- <step n="2" title="Process Each Instruction Step">
474
- <iterate>For each step in instructions:</iterate>
475
-
476
- <substep n="2a" title="Handle Step Attributes">
477
- <check>If optional="true" and NOT #yolo โ†’ Ask user to include</check>
478
- <check>If if="condition" โ†’ Evaluate condition</check>
479
- <check>If for-each="item" โ†’ Repeat step for each item</check>
480
- <check>If repeat="n" โ†’ Repeat step n times</check>
481
- </substep>
482
-
483
- <substep n="2b" title="Execute Step Content">
484
- <action>Process step instructions (markdown or XML tags)</action>
485
- <action>Replace {{variables}} with values (ask user if unknown)</action>
486
- <execute-tags>
487
- <tag>action xml tag โ†’ Perform the action</tag>
488
- <tag>check if="condition" xml tag โ†’ Conditional block wrapping actions (requires closing &lt;/check&gt;)</tag>
489
- <tag>ask xml tag โ†’ Prompt user and WAIT for response</tag>
490
- <tag>invoke-workflow xml tag โ†’ Execute another workflow with given inputs</tag>
491
- <tag>invoke-task xml tag โ†’ Execute specified task</tag>
492
- <tag>goto step="x" โ†’ Jump to specified step</tag>
493
- </execute-tags>
494
- </substep>
495
-
496
- <substep n="2c" title="Handle Special Output Tags">
497
- <if tag="template-output">
498
- <mandate>Generate content for this section</mandate>
499
- <mandate>Save to file (Write first time, Edit subsequent)</mandate>
500
- <action>Show checkpoint separator: โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”</action>
501
- <action>Display generated content</action>
502
- <ask>Continue [c] or Edit [e]? WAIT for response</ask>
503
- </if>
504
- </substep>
505
-
506
- <substep n="2d" title="Step Completion">
507
- <check>If no special tags and NOT #yolo:</check>
508
- <ask>Continue to next step? (y/n/edit)</ask>
509
- </substep>
510
- </step>
511
-
512
- <step n="3" title="Completion">
513
- <check>If checklist exists โ†’ Run validation</check>
514
- <check>If template: false โ†’ Confirm actions completed</check>
515
- <check>Else โ†’ Confirm document saved to output path</check>
516
- <action>Report workflow completion</action>
517
- </step>
518
- </flow>
519
-
520
- <execution-modes>
521
- <mode name="normal">Full user interaction at all decision points</mode>
522
- <mode name="#yolo">Skip optional sections, skip all elicitation, minimize prompts</mode>
523
- </execution-modes>
524
-
525
- <supported-tags desc="Instructions can use these tags">
526
- <structural>
527
- <tag>step n="X" goal="..." - Define step with number and goal</tag>
528
- <tag>optional="true" - Step can be skipped</tag>
529
- <tag>if="condition" - Conditional execution</tag>
530
- <tag>for-each="collection" - Iterate over items</tag>
531
- <tag>repeat="n" - Repeat n times</tag>
532
- </structural>
533
- <execution>
534
- <tag>action - Required action to perform</tag>
535
- <tag>action if="condition" - Single conditional action (inline, no closing tag needed)</tag>
536
- <tag>check if="condition"&gt;...&lt;/check&gt; - Conditional block wrapping multiple items (closing tag required)</tag>
537
- <tag>ask - Get user input (wait for response)</tag>
538
- <tag>goto - Jump to another step</tag>
539
- <tag>invoke-workflow - Call another workflow</tag>
540
- <tag>invoke-task - Call a task</tag>
541
- </execution>
542
- <output>
543
- <tag>template-output - Save content checkpoint</tag>
544
- <tag>critical - Cannot be skipped</tag>
545
- <tag>example - Show example output</tag>
546
- </output>
547
- </supported-tags>
548
-
549
- <conditional-execution-patterns desc="When to use each pattern">
550
- <pattern type="single-action">
551
- <use-case>One action with a condition</use-case>
552
- <syntax>&lt;action if="condition"&gt;Do something&lt;/action&gt;</syntax>
553
- <example>&lt;action if="file exists"&gt;Load the file&lt;/action&gt;</example>
554
- <rationale>Cleaner and more concise for single items</rationale>
555
- </pattern>
556
-
557
- <pattern type="multi-action-block">
558
- <use-case>Multiple actions/tags under same condition</use-case>
559
- <syntax>&lt;check if="condition"&gt;
560
- &lt;action&gt;First action&lt;/action&gt;
561
- &lt;action&gt;Second action&lt;/action&gt;
562
- &lt;/check&gt;</syntax>
563
- <example>&lt;check if="validation fails"&gt;
564
- &lt;action&gt;Log error&lt;/action&gt;
565
- &lt;goto step="1"&gt;Retry&lt;/goto&gt;
566
- &lt;/check&gt;</example>
567
- <rationale>Explicit scope boundaries prevent ambiguity</rationale>
568
- </pattern>
569
-
570
- <pattern type="nested-conditions">
571
- <use-case>Else/alternative branches</use-case>
572
- <syntax>&lt;check if="condition A"&gt;...&lt;/check&gt;
573
- &lt;check if="else"&gt;...&lt;/check&gt;</syntax>
574
- <rationale>Clear branching logic with explicit blocks</rationale>
575
- </pattern>
576
- </conditional-execution-patterns>
577
-
578
- <llm final="true">
579
- <mandate>This is the complete workflow execution engine</mandate>
580
- <mandate>You MUST Follow instructions exactly as written and maintain conversation context between steps</mandate>
581
- <mandate>If confused, re-read this task, the workflow yaml, and any yaml indicated files</mandate>
582
- </llm>
583
- </task>
584
- </file>
585
- <file id="bmad/core/tasks/validate-workflow.xml" type="xml">
586
- <task id="bmad/core/tasks/validate-workflow.xml" name="Validate Workflow Output">
587
- <objective>Run a checklist against a document with thorough analysis and produce a validation report</objective>
588
-
589
- <inputs>
590
- <input name="workflow" desc="Workflow path containing checklist.md" />
591
- <input name="checklist" desc="Checklist to validate against (defaults to workflow's checklist.md)" />
592
- <input name="document" desc="Document to validate (ask user if not specified)" />
593
- </inputs>
594
-
595
- <flow>
596
- <step n="1" title="Setup">
597
- <action>If checklist not provided, load checklist.md from workflow location</action>
598
- <action>Try to fuzzy match for files similar to the input document name or if user did not provide the document. If document not
599
- provided or unsure, ask user: "Which document should I validate?"</action>
600
- <action>Load both the checklist and document</action>
601
- </step>
602
-
603
- <step n="2" title="Validate" critical="true">
604
- <mandate>For EVERY checklist item, WITHOUT SKIPPING ANY:</mandate>
605
-
606
- <for-each-item>
607
- <action>Read requirement carefully</action>
608
- <action>Search document for evidence along with any ancillary loaded documents or artifacts (quotes with line numbers)</action>
609
- <action>Analyze deeply - look for explicit AND implied coverage</action>
610
-
611
- <mark-as>
612
- โœ“ PASS - Requirement fully met (provide evidence)
613
- โš  PARTIAL - Some coverage but incomplete (explain gaps)
614
- โœ— FAIL - Not met or severely deficient (explain why)
615
- โž– N/A - Not applicable (explain reason)
616
- </mark-as>
617
- </for-each-item>
618
-
619
- <critical>DO NOT SKIP ANY SECTIONS OR ITEMS</critical>
620
- </step>
621
-
622
- <step n="3" title="Generate Report">
623
- <action>Create validation-report-{timestamp}.md in document's folder</action>
624
-
625
- <report-format>
626
- # Validation Report
627
-
628
- **Document:** {document-path}
629
- **Checklist:** {checklist-path}
630
- **Date:** {timestamp}
631
-
632
- ## Summary
633
- - Overall: X/Y passed (Z%)
634
- - Critical Issues: {count}
635
-
636
- ## Section Results
637
-
638
- ### {Section Name}
639
- Pass Rate: X/Y (Z%)
640
-
641
- {For each item:}
642
- [MARK] {Item description}
643
- Evidence: {Quote with line# or explanation}
644
- {If FAIL/PARTIAL: Impact: {why this matters}}
645
-
646
- ## Failed Items
647
- {All โœ— items with recommendations}
648
-
649
- ## Partial Items
650
- {All โš  items with what's missing}
651
-
652
- ## Recommendations
653
- 1. Must Fix: {critical failures}
654
- 2. Should Improve: {important gaps}
655
- 3. Consider: {minor improvements}
656
- </report-format>
657
- </step>
658
-
659
- <step n="4" title="Summary for User">
660
- <action>Present section-by-section summary</action>
661
- <action>Highlight all critical issues</action>
662
- <action>Provide path to saved report</action>
663
- <action>HALT - do not continue unless user asks</action>
664
- </step>
665
- </flow>
666
-
667
- <critical-rules>
668
- <rule>NEVER skip sections - validate EVERYTHING</rule>
669
- <rule>ALWAYS provide evidence (quotes + line numbers) for marks</rule>
670
- <rule>Think deeply about each requirement - don't rush</rule>
671
- <rule>Save report to document's folder automatically</rule>
672
- <rule>HALT after presenting summary - wait for user</rule>
673
- </critical-rules>
674
- </task>
675
- </file>
676
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml" type="yaml"><![CDATA[name: prd
677
- description: >-
678
- Unified PRD workflow for BMad Method and Enterprise Method tracks. Produces
679
- strategic PRD and tactical epic breakdown. Hands off to architecture workflow
680
- for technical design. Note: Quick Flow track uses tech-spec workflow.
681
- author: BMad
682
- instructions: 'bmad/bmm/workflows/2-plan-workflows/prd/instructions.md'
683
- validation: 'bmad/bmm/workflows/2-plan-workflows/prd/checklist.md'
684
- web_bundle_files:
685
- - 'bmad/bmm/workflows/2-plan-workflows/prd/instructions.md'
686
- - 'bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md'
687
- - 'bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv'
688
- - 'bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv'
689
- - 'bmad/bmm/workflows/2-plan-workflows/prd/checklist.md'
690
- - >-
691
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml
692
- - >-
693
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md
694
- - >-
695
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md
696
- - 'bmad/core/tasks/workflow.xml'
697
- - 'bmad/core/tasks/adv-elicit.xml'
698
- - 'bmad/core/tasks/adv-elicit-methods.csv'
699
- child_workflows:
700
- - create-epics-and-stories: >-
701
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml
702
- ]]></file>
703
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/instructions.md" type="md"><![CDATA[# PRD Workflow - Intent-Driven Product Planning
704
-
705
- <critical>The workflow execution engine is governed by: bmad/core/tasks/workflow.xml</critical>
706
- <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
707
- <critical>This workflow uses INTENT-DRIVEN PLANNING - adapt organically to product type and context</critical>
708
- <critical>Communicate all responses in {communication_language} and adapt deeply to {user_skill_level}</critical>
709
- <critical>Generate all documents in {document_output_language}</critical>
710
- <critical>LIVING DOCUMENT: Write to PRD.md continuously as you discover - never wait until the end</critical>
711
- <critical>GUIDING PRINCIPLE: Find and weave the product's magic throughout - what makes it special should inspire every section</critical>
712
- <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
713
-
714
- <workflow>
715
-
716
- <step n="0" goal="Validate workflow readiness" tag="workflow-status">
717
- <action>Check if {status_file} exists</action>
718
-
719
- <action if="status file not found">Set standalone_mode = true</action>
720
-
721
- <check if="status file found">
722
- <action>Load the FULL file: {status_file}</action>
723
- <action>Parse workflow_status section</action>
724
- <action>Check status of "prd" workflow</action>
725
- <action>Get project_track from YAML metadata</action>
726
- <action>Find first non-completed workflow (next expected workflow)</action>
727
-
728
- <check if="project_track is Quick Flow">
729
- <output>**Quick Flow Track - Redirecting**
730
-
731
- Quick Flow projects use tech-spec workflow for implementation-focused planning.
732
- PRD is for BMad Method and Enterprise Method tracks that need comprehensive requirements.</output>
733
- <action>Exit and suggest tech-spec workflow</action>
734
- </check>
735
-
736
- <check if="prd status is file path (already completed)">
737
- <output>โš ๏ธ PRD already completed: {{prd status}}</output>
738
- <ask>Re-running will overwrite the existing PRD. Continue? (y/n)</ask>
739
- <check if="n">
740
- <output>Exiting. Use workflow-status to see your next step.</output>
741
- <action>Exit workflow</action>
742
- </check>
743
- </check>
744
-
745
- <action>Set standalone_mode = false</action>
746
- </check>
747
- </step>
748
-
749
- <step n="1" goal="Discovery - Project, Domain, and Vision">
750
- <action>Welcome {user_name} and begin comprehensive discovery, and then start to GATHER ALL CONTEXT:
751
- 1. Check workflow-status.yaml for project_context (if exists)
752
- 2. Look for existing documents (Product Brief, Domain Brief, research)
753
- 3. Detect project type AND domain complexity
754
-
755
- Load references:
756
- {installed_path}/project-types.csv
757
- {installed_path}/domain-complexity.csv
758
-
759
- Through natural conversation:
760
- "Tell me about what you want to build - what problem does it solve and for whom?"
761
-
762
- DUAL DETECTION:
763
- Project type signals: API, mobile, web, CLI, SDK, SaaS
764
- Domain complexity signals: medical, finance, government, education, aerospace
765
-
766
- SPECIAL ROUTING:
767
- If game detected โ†’ Inform user that game development requires the BMGD module (BMad Game Development)
768
- If complex domain detected โ†’ Offer domain research options:
769
- A) Run domain-research workflow (thorough)
770
- B) Quick web search (basic)
771
- C) User provides context
772
- D) Continue with general knowledge
773
-
774
- CAPTURE THE MAGIC EARLY with a few questions such as for example: "What excites you most about this product?", "What would make users love this?", "What's the moment that will make people go 'wow'?"
775
-
776
- This excitement becomes the thread woven throughout the PRD.</action>
777
-
778
- <template-output>vision_alignment</template-output>
779
- <template-output>project_classification</template-output>
780
- <template-output>project_type</template-output>
781
- <template-output>domain_type</template-output>
782
- <template-output>complexity_level</template-output>
783
- <check if="complex domain">
784
- <template-output>domain_context_summary</template-output>
785
- </check>
786
- <template-output>product_magic_essence</template-output>
787
- <template-output>product_brief_path</template-output>
788
- <template-output>domain_brief_path</template-output>
789
- <template-output>research_documents</template-output>
790
- </step>
791
-
792
- <step n="2" goal="Success Definition">
793
- <action>Define what winning looks like for THIS specific product
794
-
795
- INTENT: Meaningful success criteria, not generic metrics
796
-
797
- Adapt to context:
798
-
799
- - Consumer: User love, engagement, retention
800
- - B2B: ROI, efficiency, adoption
801
- - Developer tools: Developer experience, community
802
- - Regulated: Compliance, safety, validation
803
-
804
- Make it specific:
805
-
806
- - NOT: "10,000 users"
807
- - BUT: "100 power users who rely on it daily"
808
-
809
- - NOT: "99.9% uptime"
810
- - BUT: "Zero data loss during critical operations"
811
-
812
- Weave in the magic:
813
-
814
- - "Success means users experience [that special moment] and [desired outcome]"</action>
815
-
816
- <template-output>success_criteria</template-output>
817
- <check if="business focus">
818
- <template-output>business_metrics</template-output>
819
- </check>
820
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
821
- </step>
822
-
823
- <step n="3" goal="Scope Definition">
824
- <action>Smart scope negotiation - find the sweet spot
825
-
826
- The Scoping Game:
827
-
828
- 1. "What must work for this to be useful?" โ†’ MVP
829
- 2. "What makes it competitive?" โ†’ Growth
830
- 3. "What's the dream version?" โ†’ Vision
831
-
832
- Challenge scope creep conversationally:
833
-
834
- - "Could that wait until after launch?"
835
- - "Is that essential for proving the concept?"
836
-
837
- For complex domains:
838
-
839
- - Include compliance minimums in MVP
840
- - Note regulatory gates between phases</action>
841
-
842
- <template-output>mvp_scope</template-output>
843
- <template-output>growth_features</template-output>
844
- <template-output>vision_features</template-output>
845
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
846
- </step>
847
-
848
- <step n="4" goal="Domain-Specific Exploration" optional="true">
849
- <action>Only if complex domain detected or domain-brief exists
850
-
851
- Synthesize domain requirements that will shape everything:
852
-
853
- - Regulatory requirements
854
- - Compliance needs
855
- - Industry standards
856
- - Safety/risk factors
857
- - Required validations
858
- - Special expertise needed
859
-
860
- These inform:
861
-
862
- - What features are mandatory
863
- - What NFRs are critical
864
- - How to sequence development
865
- - What validation is required</action>
866
-
867
- <check if="complex domain">
868
- <template-output>domain_considerations</template-output>
869
- </check>
870
- </step>
871
-
872
- <step n="5" goal="Innovation Discovery" optional="true">
873
- <action>Identify truly novel patterns if applicable
874
-
875
- Listen for innovation signals:
876
-
877
- - "Nothing like this exists"
878
- - "We're rethinking how [X] works"
879
- - "Combining [A] with [B] for the first time"
880
-
881
- Explore deeply:
882
-
883
- - What makes it unique?
884
- - What assumption are you challenging?
885
- - How do we validate it?
886
- - What's the fallback?
887
-
888
- <WebSearch if="novel">{concept} innovations {date}</WebSearch></action>
889
-
890
- <check if="innovation detected">
891
- <template-output>innovation_patterns</template-output>
892
- <template-output>validation_approach</template-output>
893
- </check>
894
- </step>
895
-
896
- <step n="6" goal="Project-Specific Deep Dive">
897
- <action>Based on detected project type, dive deep into specific needs
898
-
899
- Load project type requirements from CSV and expand naturally.
900
-
901
- FOR API/BACKEND:
902
-
903
- - Map out endpoints, methods, parameters
904
- - Define authentication and authorization
905
- - Specify error codes and rate limits
906
- - Document data schemas
907
-
908
- FOR MOBILE:
909
-
910
- - Platform requirements (iOS/Android/both)
911
- - Device features needed
912
- - Offline capabilities
913
- - Store compliance
914
-
915
- FOR SAAS B2B:
916
-
917
- - Multi-tenant architecture
918
- - Permission models
919
- - Subscription tiers
920
- - Critical integrations
921
-
922
- [Continue for other types...]
923
-
924
- Always relate back to the product magic:
925
- "How does [requirement] enhance [the special thing]?"</action>
926
-
927
- <template-output>project_type_requirements</template-output>
928
-
929
- <!-- Dynamic sections based on project type -->
930
- <check if="API/Backend project">
931
- <template-output>endpoint_specification</template-output>
932
- <template-output>authentication_model</template-output>
933
- </check>
934
-
935
- <check if="Mobile project">
936
- <template-output>platform_requirements</template-output>
937
- <template-output>device_features</template-output>
938
- </check>
939
-
940
- <check if="SaaS B2B project">
941
- <template-output>tenant_model</template-output>
942
- <template-output>permission_matrix</template-output>
943
- </check>
944
- </step>
945
-
946
- <step n="7" goal="UX Principles" if="project has UI or UX">
947
- <action>Only if product has a UI
948
-
949
- Light touch on UX - not full design:
950
-
951
- - Visual personality
952
- - Key interaction patterns
953
- - Critical user flows
954
-
955
- "How should this feel to use?"
956
- "What's the vibe - professional, playful, minimal?"
957
-
958
- Connect to the magic:
959
- "The UI should reinforce [the special moment] through [design approach]"</action>
960
-
961
- <check if="has UI">
962
- <template-output>ux_principles</template-output>
963
- <template-output>key_interactions</template-output>
964
- </check>
965
- </step>
966
-
967
- <step n="8" goal="Functional Requirements Synthesis">
968
- <action>Transform everything discovered into clear functional requirements
969
-
970
- Pull together:
971
-
972
- - Core features from scope
973
- - Domain-mandated features
974
- - Project-type specific needs
975
- - Innovation requirements
976
-
977
- Organize by capability, not technology:
978
-
979
- - User Management (not "auth system")
980
- - Content Discovery (not "search algorithm")
981
- - Team Collaboration (not "websockets")
982
-
983
- Each requirement should:
984
-
985
- - Be specific and measurable
986
- - Connect to user value
987
- - Include acceptance criteria
988
- - Note domain constraints
989
-
990
- The magic thread:
991
- Highlight which requirements deliver the special experience</action>
992
-
993
- <template-output>functional_requirements_complete</template-output>
994
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
995
- </step>
996
-
997
- <step n="9" goal="Non-Functional Requirements Discovery">
998
- <action>Only document NFRs that matter for THIS product
999
-
1000
- Performance: Only if user-facing impact
1001
- Security: Only if handling sensitive data
1002
- Scale: Only if growth expected
1003
- Accessibility: Only if broad audience
1004
- Integration: Only if connecting systems
1005
-
1006
- For each NFR:
1007
-
1008
- - Why it matters for THIS product
1009
- - Specific measurable criteria
1010
- - Domain-driven requirements
1011
-
1012
- Skip categories that don't apply!</action>
1013
-
1014
- <!-- Only output sections that were discussed -->
1015
- <check if="performance matters">
1016
- <template-output>performance_requirements</template-output>
1017
- </check>
1018
- <check if="security matters">
1019
- <template-output>security_requirements</template-output>
1020
- </check>
1021
- <check if="scale matters">
1022
- <template-output>scalability_requirements</template-output>
1023
- </check>
1024
- <check if="accessibility matters">
1025
- <template-output>accessibility_requirements</template-output>
1026
- </check>
1027
- <check if="integration matters">
1028
- <template-output>integration_requirements</template-output>
1029
- </check>
1030
- </step>
1031
-
1032
- <step n="10" goal="Review PRD and transition to epics">
1033
- <action>Review the PRD we've built together
1034
-
1035
- "Let's review what we've captured:
1036
-
1037
- - Vision: [summary]
1038
- - Success: [key metrics]
1039
- - Scope: [MVP highlights]
1040
- - Requirements: [count] functional, [count] non-functional
1041
- - Special considerations: [domain/innovation]
1042
-
1043
- Does this capture your product vision?"</action>
1044
-
1045
- <template-output>prd_summary</template-output>
1046
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
1047
-
1048
- <action>After PRD review and refinement complete:
1049
-
1050
- "Excellent! Now we need to break these requirements into implementable epics and stories.
1051
-
1052
- For the epic breakdown, you have two options:
1053
-
1054
- 1. Start a new session focused on epics (recommended for complex projects)
1055
- 2. Continue here (I'll transform requirements into epics now)
1056
-
1057
- Which would you prefer?"
1058
-
1059
- If new session:
1060
- "To start epic planning in a new session:
1061
-
1062
- 1. Save your work here
1063
- 2. Start fresh and run: workflow epics-stories
1064
- 3. It will load your PRD and create the epic breakdown
1065
-
1066
- This keeps each session focused and manageable."
1067
-
1068
- If continue:
1069
- "Let's continue with epic breakdown here..."
1070
- [Proceed with epics-stories subworkflow]
1071
- Set project_track based on workflow status (BMad Method or Enterprise Method)
1072
- Generate epic_details for the epics breakdown document</action>
1073
-
1074
- <template-output>project_track</template-output>
1075
- <template-output>epic_details</template-output>
1076
- </step>
1077
-
1078
- <step n="11" goal="Complete PRD and suggest next steps">
1079
- <template-output>product_magic_summary</template-output>
1080
-
1081
- <check if="standalone_mode != true">
1082
- <action>Load the FULL file: {status_file}</action>
1083
- <action>Update workflow_status["prd"] = "{default_output_file}"</action>
1084
- <action>Save file, preserving ALL comments and structure</action>
1085
- </check>
1086
-
1087
- <output>**โœ… PRD Complete, {user_name}!**
1088
-
1089
- Your product requirements are documented and ready for implementation.
1090
-
1091
- **Created:**
1092
-
1093
- - **PRD.md** - Complete requirements adapted to {project_type} and {domain}
1094
-
1095
- **Next Steps:**
1096
-
1097
- 1. **Epic Breakdown** (Required)
1098
- Run: `workflow create-epics-and-stories` to decompose requirements into implementable stories
1099
-
1100
- 2. **UX Design** (If UI exists)
1101
- Run: `workflow ux-design` for detailed user experience design
1102
-
1103
- 3. **Architecture** (Recommended)
1104
- Run: `workflow create-architecture` for technical architecture decisions
1105
-
1106
- The magic of your product - {product_magic_summary} - is woven throughout the PRD and will guide all subsequent work.
1107
- </output>
1108
- </step>
1109
-
1110
- </workflow>
1111
- ]]></file>
1112
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md" type="md"><![CDATA[# {{project_name}} - Product Requirements Document
1113
-
1114
- **Author:** {{user_name}}
1115
- **Date:** {{date}}
1116
- **Version:** 1.0
1117
-
1118
- ---
1119
-
1120
- ## Executive Summary
1121
-
1122
- {{vision_alignment}}
1123
-
1124
- ### What Makes This Special
1125
-
1126
- {{product_magic_essence}}
1127
-
1128
- ---
1129
-
1130
- ## Project Classification
1131
-
1132
- **Technical Type:** {{project_type}}
1133
- **Domain:** {{domain_type}}
1134
- **Complexity:** {{complexity_level}}
1135
-
1136
- {{project_classification}}
1137
-
1138
- {{#if domain_context_summary}}
1139
-
1140
- ### Domain Context
1141
-
1142
- {{domain_context_summary}}
1143
- {{/if}}
1144
-
1145
- ---
1146
-
1147
- ## Success Criteria
1148
-
1149
- {{success_criteria}}
1150
-
1151
- {{#if business_metrics}}
1152
-
1153
- ### Business Metrics
1154
-
1155
- {{business_metrics}}
1156
- {{/if}}
1157
-
1158
- ---
1159
-
1160
- ## Product Scope
1161
-
1162
- ### MVP - Minimum Viable Product
1163
-
1164
- {{mvp_scope}}
1165
-
1166
- ### Growth Features (Post-MVP)
1167
-
1168
- {{growth_features}}
1169
-
1170
- ### Vision (Future)
1171
-
1172
- {{vision_features}}
1173
-
1174
- ---
1175
-
1176
- {{#if domain_considerations}}
1177
-
1178
- ## Domain-Specific Requirements
1179
-
1180
- {{domain_considerations}}
1181
-
1182
- This section shapes all functional and non-functional requirements below.
1183
- {{/if}}
1184
-
1185
- ---
1186
-
1187
- {{#if innovation_patterns}}
1188
-
1189
- ## Innovation & Novel Patterns
1190
-
1191
- {{innovation_patterns}}
1192
-
1193
- ### Validation Approach
1194
-
1195
- {{validation_approach}}
1196
- {{/if}}
1197
-
1198
- ---
1199
-
1200
- {{#if project_type_requirements}}
1201
-
1202
- ## {{project_type}} Specific Requirements
1203
-
1204
- {{project_type_requirements}}
1205
-
1206
- {{#if endpoint_specification}}
1207
-
1208
- ### API Specification
1209
-
1210
- {{endpoint_specification}}
1211
- {{/if}}
1212
-
1213
- {{#if authentication_model}}
1214
-
1215
- ### Authentication & Authorization
1216
-
1217
- {{authentication_model}}
1218
- {{/if}}
1219
-
1220
- {{#if platform_requirements}}
1221
-
1222
- ### Platform Support
1223
-
1224
- {{platform_requirements}}
1225
- {{/if}}
1226
-
1227
- {{#if device_features}}
1228
-
1229
- ### Device Capabilities
1230
-
1231
- {{device_features}}
1232
- {{/if}}
1233
-
1234
- {{#if tenant_model}}
1235
-
1236
- ### Multi-Tenancy Architecture
1237
-
1238
- {{tenant_model}}
1239
- {{/if}}
1240
-
1241
- {{#if permission_matrix}}
1242
-
1243
- ### Permissions & Roles
1244
-
1245
- {{permission_matrix}}
1246
- {{/if}}
1247
- {{/if}}
1248
-
1249
- ---
1250
-
1251
- {{#if ux_principles}}
1252
-
1253
- ## User Experience Principles
1254
-
1255
- {{ux_principles}}
1256
-
1257
- ### Key Interactions
1258
-
1259
- {{key_interactions}}
1260
- {{/if}}
1261
-
1262
- ---
1263
-
1264
- ## Functional Requirements
1265
-
1266
- {{functional_requirements_complete}}
1267
-
1268
- ---
1269
-
1270
- ## Non-Functional Requirements
1271
-
1272
- {{#if performance_requirements}}
1273
-
1274
- ### Performance
1275
-
1276
- {{performance_requirements}}
1277
- {{/if}}
1278
-
1279
- {{#if security_requirements}}
1280
-
1281
- ### Security
1282
-
1283
- {{security_requirements}}
1284
- {{/if}}
1285
-
1286
- {{#if scalability_requirements}}
1287
-
1288
- ### Scalability
1289
-
1290
- {{scalability_requirements}}
1291
- {{/if}}
1292
-
1293
- {{#if accessibility_requirements}}
1294
-
1295
- ### Accessibility
1296
-
1297
- {{accessibility_requirements}}
1298
- {{/if}}
1299
-
1300
- {{#if integration_requirements}}
1301
-
1302
- ### Integration
1303
-
1304
- {{integration_requirements}}
1305
- {{/if}}
1306
-
1307
- {{#if no_nfrs}}
1308
- _No specific non-functional requirements identified for this project type._
1309
- {{/if}}
1310
-
1311
- ---
1312
-
1313
- ## Implementation Planning
1314
-
1315
- ### Epic Breakdown Required
1316
-
1317
- Requirements must be decomposed into epics and bite-sized stories (200k context limit).
1318
-
1319
- **Next Step:** Run `workflow epics-stories` to create the implementation breakdown.
1320
-
1321
- ---
1322
-
1323
- ## References
1324
-
1325
- {{#if product_brief_path}}
1326
-
1327
- - Product Brief: {{product_brief_path}}
1328
- {{/if}}
1329
- {{#if domain_brief_path}}
1330
- - Domain Brief: {{domain_brief_path}}
1331
- {{/if}}
1332
- {{#if research_documents}}
1333
- - Research: {{research_documents}}
1334
- {{/if}}
1335
-
1336
- ---
1337
-
1338
- ## Next Steps
1339
-
1340
- 1. **Epic & Story Breakdown** - Run: `workflow epics-stories`
1341
- 2. **UX Design** (if UI) - Run: `workflow ux-design`
1342
- 3. **Architecture** - Run: `workflow create-architecture`
1343
-
1344
- ---
1345
-
1346
- _This PRD captures the essence of {{project_name}} - {{product_magic_summary}}_
1347
-
1348
- _Created through collaborative discovery between {{user_name}} and AI facilitator._
1349
- ]]></file>
1350
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv" type="csv"><![CDATA[project_type,detection_signals,key_questions,required_sections,skip_sections,web_search_triggers,innovation_signals
1351
- api_backend,"API,REST,GraphQL,backend,service,endpoints","Endpoints needed?;Authentication method?;Data formats?;Rate limits?;Versioning?;SDK needed?","endpoint_specs;auth_model;data_schemas;error_codes;rate_limits;api_docs","ux_ui;visual_design;user_journeys","framework best practices;OpenAPI standards","API composition;New protocol"
1352
- mobile_app,"iOS,Android,app,mobile,iPhone,iPad","Native or cross-platform?;Offline needed?;Push notifications?;Device features?;Store compliance?","platform_reqs;device_permissions;offline_mode;push_strategy;store_compliance","desktop_features;cli_commands","app store guidelines;platform requirements","Gesture innovation;AR/VR features"
1353
- saas_b2b,"SaaS,B2B,platform,dashboard,teams,enterprise","Multi-tenant?;Permission model?;Subscription tiers?;Integrations?;Compliance?","tenant_model;rbac_matrix;subscription_tiers;integration_list;compliance_reqs","cli_interface;mobile_first","compliance requirements;integration guides","Workflow automation;AI agents"
1354
- developer_tool,"SDK,library,package,npm,pip,framework","Language support?;Package managers?;IDE integration?;Documentation?;Examples?","language_matrix;installation_methods;api_surface;code_examples;migration_guide","visual_design;store_compliance","package manager best practices;API design patterns","New paradigm;DSL creation"
1355
- cli_tool,"CLI,command,terminal,bash,script","Interactive or scriptable?;Output formats?;Config method?;Shell completion?","command_structure;output_formats;config_schema;scripting_support","visual_design;ux_principles;touch_interactions","CLI design patterns;shell integration","Natural language CLI;AI commands"
1356
- web_app,"website,webapp,browser,SPA,PWA","SPA or MPA?;Browser support?;SEO needed?;Real-time?;Accessibility?","browser_matrix;responsive_design;performance_targets;seo_strategy;accessibility_level","native_features;cli_commands","web standards;WCAG guidelines","New interaction;WebAssembly use"
1357
- game,"game,player,gameplay,level,character","REDIRECT TO GAME WORKFLOWS","game-brief;GDD","most_sections","game design patterns","Novel mechanics;Genre mixing"
1358
- desktop_app,"desktop,Windows,Mac,Linux,native","Cross-platform?;Auto-update?;System integration?;Offline?","platform_support;system_integration;update_strategy;offline_capabilities","web_seo;mobile_features","desktop guidelines;platform requirements","Desktop AI;System automation"
1359
- iot_embedded,"IoT,embedded,device,sensor,hardware","Hardware specs?;Connectivity?;Power constraints?;Security?;OTA updates?","hardware_reqs;connectivity_protocol;power_profile;security_model;update_mechanism","visual_ui;browser_support","IoT standards;protocol specs","Edge AI;New sensors"
1360
- blockchain_web3,"blockchain,crypto,DeFi,NFT,smart contract","Chain selection?;Wallet integration?;Gas optimization?;Security audit?","chain_specs;wallet_support;smart_contracts;security_audit;gas_optimization","traditional_auth;centralized_db","blockchain standards;security patterns","Novel tokenomics;DAO structure"]]></file>
1361
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv" type="csv"><![CDATA[domain,signals,complexity,key_concerns,required_knowledge,suggested_workflow,web_searches,special_sections
1362
- healthcare,"medical,diagnostic,clinical,FDA,patient,treatment,HIPAA,therapy,pharma,drug",high,"FDA approval;Clinical validation;HIPAA compliance;Patient safety;Medical device classification;Liability","Regulatory pathways;Clinical trial design;Medical standards;Data privacy;Integration requirements","domain-research","FDA software medical device guidance {date};HIPAA compliance software requirements;Medical software standards {date};Clinical validation software","clinical_requirements;regulatory_pathway;validation_methodology;safety_measures"
1363
- fintech,"payment,banking,trading,investment,crypto,wallet,transaction,KYC,AML,funds,fintech",high,"Regional compliance;Security standards;Audit requirements;Fraud prevention;Data protection","KYC/AML requirements;PCI DSS;Open banking;Regional laws (US/EU/APAC);Crypto regulations","domain-research","fintech regulations {date};payment processing compliance {date};open banking API standards;cryptocurrency regulations {date}","compliance_matrix;security_architecture;audit_requirements;fraud_prevention"
1364
- govtech,"government,federal,civic,public sector,citizen,municipal,voting",high,"Procurement rules;Security clearance;Accessibility (508);FedRAMP;Privacy;Transparency","Government procurement;Security frameworks;Accessibility standards;Privacy laws;Open data requirements","domain-research","government software procurement {date};FedRAMP compliance requirements;section 508 accessibility;government security standards","procurement_compliance;security_clearance;accessibility_standards;transparency_requirements"
1365
- edtech,"education,learning,student,teacher,curriculum,assessment,K-12,university,LMS",medium,"Student privacy (COPPA/FERPA);Accessibility;Content moderation;Age verification;Curriculum standards","Educational privacy laws;Learning standards;Accessibility requirements;Content guidelines;Assessment validity","domain-research","educational software privacy {date};COPPA FERPA compliance;WCAG education requirements;learning management standards","privacy_compliance;content_guidelines;accessibility_features;curriculum_alignment"
1366
- aerospace,"aircraft,spacecraft,aviation,drone,satellite,propulsion,flight,radar,navigation",high,"Safety certification;DO-178C compliance;Performance validation;Simulation accuracy;Export controls","Aviation standards;Safety analysis;Simulation validation;ITAR/export controls;Performance requirements","domain-research + technical-model","DO-178C software certification;aerospace simulation standards {date};ITAR export controls software;aviation safety requirements","safety_certification;simulation_validation;performance_requirements;export_compliance"
1367
- automotive,"vehicle,car,autonomous,ADAS,automotive,driving,EV,charging",high,"Safety standards;ISO 26262;V2X communication;Real-time requirements;Certification","Automotive standards;Functional safety;V2X protocols;Real-time systems;Testing requirements","domain-research","ISO 26262 automotive software;automotive safety standards {date};V2X communication protocols;EV charging standards","safety_standards;functional_safety;communication_protocols;certification_requirements"
1368
- scientific,"research,algorithm,simulation,modeling,computational,analysis,data science,ML,AI",medium,"Reproducibility;Validation methodology;Peer review;Performance;Accuracy;Computational resources","Scientific method;Statistical validity;Computational requirements;Domain expertise;Publication standards","technical-model","scientific computing best practices {date};research reproducibility standards;computational modeling validation;peer review software","validation_methodology;accuracy_metrics;reproducibility_plan;computational_requirements"
1369
- legaltech,"legal,law,contract,compliance,litigation,patent,attorney,court",high,"Legal ethics;Bar regulations;Data retention;Attorney-client privilege;Court system integration","Legal practice rules;Ethics requirements;Court filing systems;Document standards;Confidentiality","domain-research","legal technology ethics {date};law practice management software requirements;court filing system standards;attorney client privilege technology","ethics_compliance;data_retention;confidentiality_measures;court_integration"
1370
- insuretech,"insurance,claims,underwriting,actuarial,policy,risk,premium",high,"Insurance regulations;Actuarial standards;Data privacy;Fraud detection;State compliance","Insurance regulations by state;Actuarial methods;Risk modeling;Claims processing;Regulatory reporting","domain-research","insurance software regulations {date};actuarial standards software;insurance fraud detection;state insurance compliance","regulatory_requirements;risk_modeling;fraud_detection;reporting_compliance"
1371
- energy,"energy,utility,grid,solar,wind,power,electricity,oil,gas",high,"Grid compliance;NERC standards;Environmental regulations;Safety requirements;Real-time operations","Energy regulations;Grid standards;Environmental compliance;Safety protocols;SCADA systems","domain-research","energy sector software compliance {date};NERC CIP standards;smart grid requirements;renewable energy software standards","grid_compliance;safety_protocols;environmental_compliance;operational_requirements"
1372
- gaming,"game,player,gameplay,level,character,multiplayer,quest",redirect,"REDIRECT TO GAME WORKFLOWS","Game design","game-brief","NA","NA"
1373
- general,"",low,"Standard requirements;Basic security;User experience;Performance","General software practices","continue","software development best practices {date}","standard_requirements"]]></file>
1374
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/checklist.md" type="md"><![CDATA[# PRD + Epics + Stories Validation Checklist
1375
-
1376
- **Purpose**: Comprehensive validation that PRD, epics, and stories form a complete, implementable product plan.
1377
-
1378
- **Scope**: Validates the complete planning output (PRD.md + epics.md) for Levels 2-4 software projects
1379
-
1380
- **Expected Outputs**:
1381
-
1382
- - PRD.md with complete requirements
1383
- - epics.md with detailed epic and story breakdown
1384
- - Updated bmm-workflow-status.yaml
1385
-
1386
- ---
1387
-
1388
- ## 1. PRD Document Completeness
1389
-
1390
- ### Core Sections Present
1391
-
1392
- - [ ] Executive Summary with vision alignment
1393
- - [ ] Product magic essence clearly articulated
1394
- - [ ] Project classification (type, domain, complexity)
1395
- - [ ] Success criteria defined
1396
- - [ ] Product scope (MVP, Growth, Vision) clearly delineated
1397
- - [ ] Functional requirements comprehensive and numbered
1398
- - [ ] Non-functional requirements (when applicable)
1399
- - [ ] References section with source documents
1400
-
1401
- ### Project-Specific Sections
1402
-
1403
- - [ ] **If complex domain:** Domain context and considerations documented
1404
- - [ ] **If innovation:** Innovation patterns and validation approach documented
1405
- - [ ] **If API/Backend:** Endpoint specification and authentication model included
1406
- - [ ] **If Mobile:** Platform requirements and device features documented
1407
- - [ ] **If SaaS B2B:** Tenant model and permission matrix included
1408
- - [ ] **If UI exists:** UX principles and key interactions documented
1409
-
1410
- ### Quality Checks
1411
-
1412
- - [ ] No unfilled template variables ({{variable}})
1413
- - [ ] All variables properly populated with meaningful content
1414
- - [ ] Product magic woven throughout (not just stated once)
1415
- - [ ] Language is clear, specific, and measurable
1416
- - [ ] Project type correctly identified and sections match
1417
- - [ ] Domain complexity appropriately addressed
1418
-
1419
- ---
1420
-
1421
- ## 2. Functional Requirements Quality
1422
-
1423
- ### FR Format and Structure
1424
-
1425
- - [ ] Each FR has unique identifier (FR-001, FR-002, etc.)
1426
- - [ ] FRs describe WHAT capabilities, not HOW to implement
1427
- - [ ] FRs are specific and measurable
1428
- - [ ] FRs are testable and verifiable
1429
- - [ ] FRs focus on user/business value
1430
- - [ ] No technical implementation details in FRs (those belong in architecture)
1431
-
1432
- ### FR Completeness
1433
-
1434
- - [ ] All MVP scope features have corresponding FRs
1435
- - [ ] Growth features documented (even if deferred)
1436
- - [ ] Vision features captured for future reference
1437
- - [ ] Domain-mandated requirements included
1438
- - [ ] Innovation requirements captured with validation needs
1439
- - [ ] Project-type specific requirements complete
1440
-
1441
- ### FR Organization
1442
-
1443
- - [ ] FRs organized by capability/feature area (not by tech stack)
1444
- - [ ] Related FRs grouped logically
1445
- - [ ] Dependencies between FRs noted when critical
1446
- - [ ] Priority/phase indicated (MVP vs Growth vs Vision)
1447
-
1448
- ---
1449
-
1450
- ## 3. Epics Document Completeness
1451
-
1452
- ### Required Files
1453
-
1454
- - [ ] epics.md exists in output folder
1455
- - [ ] Epic list in PRD.md matches epics in epics.md (titles and count)
1456
- - [ ] All epics have detailed breakdown sections
1457
-
1458
- ### Epic Quality
1459
-
1460
- - [ ] Each epic has clear goal and value proposition
1461
- - [ ] Each epic includes complete story breakdown
1462
- - [ ] Stories follow proper user story format: "As a [role], I want [goal], so that [benefit]"
1463
- - [ ] Each story has numbered acceptance criteria
1464
- - [ ] Prerequisites/dependencies explicitly stated per story
1465
- - [ ] Stories are AI-agent sized (completable in 2-4 hour session)
1466
-
1467
- ---
1468
-
1469
- ## 4. FR Coverage Validation (CRITICAL)
1470
-
1471
- ### Complete Traceability
1472
-
1473
- - [ ] **Every FR from PRD.md is covered by at least one story in epics.md**
1474
- - [ ] Each story references relevant FR numbers
1475
- - [ ] No orphaned FRs (requirements without stories)
1476
- - [ ] No orphaned stories (stories without FR connection)
1477
- - [ ] Coverage matrix verified (can trace FR โ†’ Epic โ†’ Stories)
1478
-
1479
- ### Coverage Quality
1480
-
1481
- - [ ] Stories sufficiently decompose FRs into implementable units
1482
- - [ ] Complex FRs broken into multiple stories appropriately
1483
- - [ ] Simple FRs have appropriately scoped single stories
1484
- - [ ] Non-functional requirements reflected in story acceptance criteria
1485
- - [ ] Domain requirements embedded in relevant stories
1486
-
1487
- ---
1488
-
1489
- ## 5. Story Sequencing Validation (CRITICAL)
1490
-
1491
- ### Epic 1 Foundation Check
1492
-
1493
- - [ ] **Epic 1 establishes foundational infrastructure**
1494
- - [ ] Epic 1 delivers initial deployable functionality
1495
- - [ ] Epic 1 creates baseline for subsequent epics
1496
- - [ ] Exception: If adding to existing app, foundation requirement adapted appropriately
1497
-
1498
- ### Vertical Slicing
1499
-
1500
- - [ ] **Each story delivers complete, testable functionality** (not horizontal layers)
1501
- - [ ] No "build database" or "create UI" stories in isolation
1502
- - [ ] Stories integrate across stack (data + logic + presentation when applicable)
1503
- - [ ] Each story leaves system in working/deployable state
1504
-
1505
- ### No Forward Dependencies
1506
-
1507
- - [ ] **No story depends on work from a LATER story or epic**
1508
- - [ ] Stories within each epic are sequentially ordered
1509
- - [ ] Each story builds only on previous work
1510
- - [ ] Dependencies flow backward only (can reference earlier stories)
1511
- - [ ] Parallel tracks clearly indicated if stories are independent
1512
-
1513
- ### Value Delivery Path
1514
-
1515
- - [ ] Each epic delivers significant end-to-end value
1516
- - [ ] Epic sequence shows logical product evolution
1517
- - [ ] User can see value after each epic completion
1518
- - [ ] MVP scope clearly achieved by end of designated epics
1519
-
1520
- ---
1521
-
1522
- ## 6. Scope Management
1523
-
1524
- ### MVP Discipline
1525
-
1526
- - [ ] MVP scope is genuinely minimal and viable
1527
- - [ ] Core features list contains only true must-haves
1528
- - [ ] Each MVP feature has clear rationale for inclusion
1529
- - [ ] No obvious scope creep in "must-have" list
1530
-
1531
- ### Future Work Captured
1532
-
1533
- - [ ] Growth features documented for post-MVP
1534
- - [ ] Vision features captured to maintain long-term direction
1535
- - [ ] Out-of-scope items explicitly listed
1536
- - [ ] Deferred features have clear reasoning for deferral
1537
-
1538
- ### Clear Boundaries
1539
-
1540
- - [ ] Stories marked as MVP vs Growth vs Vision
1541
- - [ ] Epic sequencing aligns with MVP โ†’ Growth progression
1542
- - [ ] No confusion about what's in vs out of initial scope
1543
-
1544
- ---
1545
-
1546
- ## 7. Research and Context Integration
1547
-
1548
- ### Source Document Integration
1549
-
1550
- - [ ] **If product brief exists:** Key insights incorporated into PRD
1551
- - [ ] **If domain brief exists:** Domain requirements reflected in FRs and stories
1552
- - [ ] **If research documents exist:** Research findings inform requirements
1553
- - [ ] **If competitive analysis exists:** Differentiation strategy clear in PRD
1554
- - [ ] All source documents referenced in PRD References section
1555
-
1556
- ### Research Continuity to Architecture
1557
-
1558
- - [ ] Domain complexity considerations documented for architects
1559
- - [ ] Technical constraints from research captured
1560
- - [ ] Regulatory/compliance requirements clearly stated
1561
- - [ ] Integration requirements with existing systems documented
1562
- - [ ] Performance/scale requirements informed by research data
1563
-
1564
- ### Information Completeness for Next Phase
1565
-
1566
- - [ ] PRD provides sufficient context for architecture decisions
1567
- - [ ] Epics provide sufficient detail for technical design
1568
- - [ ] Stories have enough acceptance criteria for implementation
1569
- - [ ] Non-obvious business rules documented
1570
- - [ ] Edge cases and special scenarios captured
1571
-
1572
- ---
1573
-
1574
- ## 8. Cross-Document Consistency
1575
-
1576
- ### Terminology Consistency
1577
-
1578
- - [ ] Same terms used across PRD and epics for concepts
1579
- - [ ] Feature names consistent between documents
1580
- - [ ] Epic titles match between PRD and epics.md
1581
- - [ ] No contradictions between PRD and epics
1582
-
1583
- ### Alignment Checks
1584
-
1585
- - [ ] Success metrics in PRD align with story outcomes
1586
- - [ ] Product magic articulated in PRD reflected in epic goals
1587
- - [ ] Technical preferences in PRD align with story implementation hints
1588
- - [ ] Scope boundaries consistent across all documents
1589
-
1590
- ---
1591
-
1592
- ## 9. Readiness for Implementation
1593
-
1594
- ### Architecture Readiness (Next Phase)
1595
-
1596
- - [ ] PRD provides sufficient context for architecture workflow
1597
- - [ ] Technical constraints and preferences documented
1598
- - [ ] Integration points identified
1599
- - [ ] Performance/scale requirements specified
1600
- - [ ] Security and compliance needs clear
1601
-
1602
- ### Development Readiness
1603
-
1604
- - [ ] Stories are specific enough to estimate
1605
- - [ ] Acceptance criteria are testable
1606
- - [ ] Technical unknowns identified and flagged
1607
- - [ ] Dependencies on external systems documented
1608
- - [ ] Data requirements specified
1609
-
1610
- ### Track-Appropriate Detail
1611
-
1612
- **If BMad Method:**
1613
-
1614
- - [ ] PRD supports full architecture workflow
1615
- - [ ] Epic structure supports phased delivery
1616
- - [ ] Scope appropriate for product/platform development
1617
- - [ ] Clear value delivery through epic sequence
1618
-
1619
- **If Enterprise Method:**
1620
-
1621
- - [ ] PRD addresses enterprise requirements (security, compliance, multi-tenancy)
1622
- - [ ] Epic structure supports extended planning phases
1623
- - [ ] Scope includes security, devops, and test strategy considerations
1624
- - [ ] Clear value delivery with enterprise gates
1625
-
1626
- ---
1627
-
1628
- ## 10. Quality and Polish
1629
-
1630
- ### Writing Quality
1631
-
1632
- - [ ] Language is clear and free of jargon (or jargon is defined)
1633
- - [ ] Sentences are concise and specific
1634
- - [ ] No vague statements ("should be fast", "user-friendly")
1635
- - [ ] Measurable criteria used throughout
1636
- - [ ] Professional tone appropriate for stakeholder review
1637
-
1638
- ### Document Structure
1639
-
1640
- - [ ] Sections flow logically
1641
- - [ ] Headers and numbering consistent
1642
- - [ ] Cross-references accurate (FR numbers, section references)
1643
- - [ ] Formatting consistent throughout
1644
- - [ ] Tables/lists formatted properly
1645
-
1646
- ### Completeness Indicators
1647
-
1648
- - [ ] No [TODO] or [TBD] markers remain
1649
- - [ ] No placeholder text
1650
- - [ ] All sections have substantive content
1651
- - [ ] Optional sections either complete or omitted (not half-done)
1652
-
1653
- ---
1654
-
1655
- ## Critical Failures (Auto-Fail)
1656
-
1657
- If ANY of these are true, validation FAILS:
1658
-
1659
- - [ ] โŒ **No epics.md file exists** (two-file output required)
1660
- - [ ] โŒ **Epic 1 doesn't establish foundation** (violates core sequencing principle)
1661
- - [ ] โŒ **Stories have forward dependencies** (breaks sequential implementation)
1662
- - [ ] โŒ **Stories not vertically sliced** (horizontal layers block value delivery)
1663
- - [ ] โŒ **Epics don't cover all FRs** (orphaned requirements)
1664
- - [ ] โŒ **FRs contain technical implementation details** (should be in architecture)
1665
- - [ ] โŒ **No FR traceability to stories** (can't validate coverage)
1666
- - [ ] โŒ **Template variables unfilled** (incomplete document)
1667
-
1668
- ---
1669
-
1670
- ## Validation Summary
1671
-
1672
- **Total Validation Points:** ~85
1673
-
1674
- ### Scoring Guide
1675
-
1676
- - **Pass Rate โ‰ฅ 95% (81+/85):** โœ… EXCELLENT - Ready for architecture phase
1677
- - **Pass Rate 85-94% (72-80/85):** โš ๏ธ GOOD - Minor fixes needed
1678
- - **Pass Rate 70-84% (60-71/85):** โš ๏ธ FAIR - Important issues to address
1679
- - **Pass Rate < 70% (<60/85):** โŒ POOR - Significant rework required
1680
-
1681
- ### Critical Issue Threshold
1682
-
1683
- - **0 Critical Failures:** Proceed to fixes
1684
- - **1+ Critical Failures:** STOP - Must fix critical issues first
1685
-
1686
- ---
1687
-
1688
- ## Validation Execution Notes
1689
-
1690
- **When validating:**
1691
-
1692
- 1. **Load ALL documents:**
1693
- - PRD.md (required)
1694
- - epics.md (required)
1695
- - product-brief.md (if exists)
1696
- - domain-brief.md (if exists)
1697
- - research documents (if referenced)
1698
-
1699
- 2. **Validate in order:**
1700
- - Check critical failures first (immediate stop if any found)
1701
- - Verify PRD completeness
1702
- - Verify epics completeness
1703
- - Cross-reference FR coverage (most important)
1704
- - Check sequencing (second most important)
1705
- - Validate research integration
1706
- - Check polish and quality
1707
-
1708
- 3. **Report findings:**
1709
- - List critical failures prominently
1710
- - Group issues by severity
1711
- - Provide specific line numbers/sections
1712
- - Suggest concrete fixes
1713
- - Highlight what's working well
1714
-
1715
- 4. **Provide actionable next steps:**
1716
- - If validation passes: "Ready for architecture workflow"
1717
- - If minor issues: "Fix [X] items then re-validate"
1718
- - If major issues: "Rework [sections] then re-validate"
1719
- - If critical failures: "Must fix critical items before proceeding"
1720
-
1721
- ---
1722
-
1723
- **Remember:** This validation ensures the entire planning phase is complete and the implementation phase has everything needed to succeed. Be thorough but fair - the goal is quality, not perfection.
1724
- ]]></file>
1725
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml" type="yaml"><![CDATA[name: create-epics-and-stories
1726
- description: >-
1727
- Transform PRD requirements into bite-sized stories organized in epics for 200k
1728
- context dev agents
1729
- author: BMad
1730
- instructions: >-
1731
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md
1732
- template: >-
1733
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md
1734
- web_bundle_files:
1735
- - >-
1736
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md
1737
- - >-
1738
- bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md
1739
- ]]></file>
1740
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md" type="md"><![CDATA[# Epic and Story Decomposition - Intent-Based Implementation Planning
1741
-
1742
- <critical>The workflow execution engine is governed by: bmad/core/tasks/workflow.xml</critical>
1743
- <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
1744
- <critical>This workflow transforms requirements into BITE-SIZED STORIES for development agents</critical>
1745
- <critical>EVERY story must be completable by a single dev agent in one focused session</critical>
1746
- <critical>Communicate all responses in {communication_language} and adapt to {user_skill_level}</critical>
1747
- <critical>Generate all documents in {document_output_language}</critical>
1748
- <critical>LIVING DOCUMENT: Write to epics.md continuously as you work - never wait until the end</critical>
1749
- <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
1750
-
1751
- <workflow>
1752
-
1753
- <step n="1" goal="Load PRD and extract requirements">
1754
- <action>Welcome {user_name} to epic and story planning
1755
-
1756
- Load required documents (fuzzy match, handle both whole and sharded):
1757
-
1758
- - PRD.md (required)
1759
- - domain-brief.md (if exists)
1760
- - product-brief.md (if exists)
1761
-
1762
- Extract from PRD:
1763
-
1764
- - All functional requirements
1765
- - Non-functional requirements
1766
- - Domain considerations and compliance needs
1767
- - Project type and complexity
1768
- - MVP vs growth vs vision scope boundaries
1769
-
1770
- Understand the context:
1771
-
1772
- - What makes this product special (the magic)
1773
- - Technical constraints
1774
- - User types and their goals
1775
- - Success criteria</action>
1776
- </step>
1777
-
1778
- <step n="2" goal="Propose epic structure from natural groupings">
1779
- <action>Analyze requirements and identify natural epic boundaries
1780
-
1781
- INTENT: Find organic groupings that make sense for THIS product
1782
-
1783
- Look for natural patterns:
1784
-
1785
- - Features that work together cohesively
1786
- - User journeys that connect
1787
- - Business capabilities that cluster
1788
- - Domain requirements that relate (compliance, validation, security)
1789
- - Technical systems that should be built together
1790
-
1791
- Name epics based on VALUE, not technical layers:
1792
-
1793
- - Good: "User Onboarding", "Content Discovery", "Compliance Framework"
1794
- - Avoid: "Database Layer", "API Endpoints", "Frontend"
1795
-
1796
- Each epic should:
1797
-
1798
- - Have clear business goal and user value
1799
- - Be independently valuable
1800
- - Contain 3-8 related capabilities
1801
- - Be deliverable in cohesive phase
1802
-
1803
- For greenfield projects:
1804
-
1805
- - First epic MUST establish foundation (project setup, core infrastructure, deployment pipeline)
1806
- - Foundation enables all subsequent work
1807
-
1808
- For complex domains:
1809
-
1810
- - Consider dedicated compliance/regulatory epics
1811
- - Group validation and safety requirements logically
1812
- - Note expertise requirements
1813
-
1814
- Present proposed epic structure showing:
1815
-
1816
- - Epic titles with clear value statements
1817
- - High-level scope of each epic
1818
- - Suggested sequencing
1819
- - Why this grouping makes sense</action>
1820
-
1821
- <template-output>epics_summary</template-output>
1822
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
1823
- </step>
1824
-
1825
- <step n="3" goal="Decompose each epic into bite-sized stories" repeat="for-each-epic">
1826
- <action>Break down Epic {{N}} into small, implementable stories
1827
-
1828
- INTENT: Create stories sized for single dev agent completion
1829
-
1830
- For each epic, generate:
1831
-
1832
- - Epic title as `epic_title_{{N}}`
1833
- - Epic goal/value as `epic_goal_{{N}}`
1834
- - All stories as repeated pattern `story_title_{{N}}_{{M}}` for each story M
1835
-
1836
- CRITICAL for Epic 1 (Foundation):
1837
-
1838
- - Story 1.1 MUST be project setup/infrastructure initialization
1839
- - Sets up: repo structure, build system, deployment pipeline basics, core dependencies
1840
- - Creates foundation for all subsequent stories
1841
- - Note: Architecture workflow will flesh out technical details
1842
-
1843
- Each story should follow BDD-style acceptance criteria:
1844
-
1845
- **Story Pattern:**
1846
- As a [user type],
1847
- I want [specific capability],
1848
- So that [clear value/benefit].
1849
-
1850
- **Acceptance Criteria using BDD:**
1851
- Given [precondition or initial state]
1852
- When [action or trigger]
1853
- Then [expected outcome]
1854
-
1855
- And [additional criteria as needed]
1856
-
1857
- **Prerequisites:** Only previous stories (never forward dependencies)
1858
-
1859
- **Technical Notes:** Implementation guidance, affected components, compliance requirements
1860
-
1861
- Ensure stories are:
1862
-
1863
- - Vertically sliced (deliver complete functionality, not just one layer)
1864
- - Sequentially ordered (logical progression, no forward dependencies)
1865
- - Independently valuable when possible
1866
- - Small enough for single-session completion
1867
- - Clear enough for autonomous implementation
1868
-
1869
- For each story in epic {{N}}, output variables following this pattern:
1870
-
1871
- - story*title*{{N}}_1, story_title_{{N}}\_2, etc.
1872
- - Each containing: user story, BDD acceptance criteria, prerequisites, technical notes</action>
1873
-
1874
- <template-output>epic*title*{{N}}</template-output>
1875
- <template-output>epic*goal*{{N}}</template-output>
1876
-
1877
- <action>For each story M in epic {{N}}, generate story content</action>
1878
- <template-output>story*title*{{N}}\_{{M}}</template-output>
1879
-
1880
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
1881
- </step>
1882
-
1883
- <step n="4" goal="Review and finalize epic breakdown">
1884
- <action>Review the complete epic breakdown for quality and completeness
1885
-
1886
- Validate:
1887
-
1888
- - All functional requirements from PRD are covered by stories
1889
- - Epic 1 establishes proper foundation
1890
- - All stories are vertically sliced
1891
- - No forward dependencies exist
1892
- - Story sizing is appropriate for single-session completion
1893
- - BDD acceptance criteria are clear and testable
1894
- - Domain/compliance requirements are properly distributed
1895
- - Sequencing enables incremental value delivery
1896
-
1897
- Confirm with {user_name}:
1898
-
1899
- - Epic structure makes sense
1900
- - Story breakdown is actionable
1901
- - Dependencies are clear
1902
- - BDD format provides clarity
1903
- - Ready for architecture and implementation phases</action>
1904
-
1905
- <template-output>epic_breakdown_summary</template-output>
1906
- </step>
1907
-
1908
- </workflow>
1909
- ]]></file>
1910
- <file id="bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md" type="md"><![CDATA[# {{project_name}} - Epic Breakdown
1911
-
1912
- **Author:** {{user_name}}
1913
- **Date:** {{date}}
1914
- **Project Level:** {{project_level}}
1915
- **Target Scale:** {{target_scale}}
1916
-
1917
- ---
1918
-
1919
- ## Overview
1920
-
1921
- This document provides the complete epic and story breakdown for {{project_name}}, decomposing the requirements from the [PRD](./PRD.md) into implementable stories.
1922
-
1923
- {{epics_summary}}
1924
-
1925
- ---
1926
-
1927
- <!-- Repeat for each epic (N = 1, 2, 3...) -->
1928
-
1929
- ## Epic {{N}}: {{epic_title_N}}
1930
-
1931
- {{epic_goal_N}}
1932
-
1933
- <!-- Repeat for each story (M = 1, 2, 3...) within epic N -->
1934
-
1935
- ### Story {{N}}.{{M}}: {{story_title_N_M}}
1936
-
1937
- As a {{user_type}},
1938
- I want {{capability}},
1939
- So that {{value_benefit}}.
1940
-
1941
- **Acceptance Criteria:**
1942
-
1943
- **Given** {{precondition}}
1944
- **When** {{action}}
1945
- **Then** {{expected_outcome}}
1946
-
1947
- **And** {{additional_criteria}}
1948
-
1949
- **Prerequisites:** {{dependencies_on_previous_stories}}
1950
-
1951
- **Technical Notes:** {{implementation_guidance}}
1952
-
1953
- <!-- End story repeat -->
1954
-
1955
- ---
1956
-
1957
- <!-- End epic repeat -->
1958
-
1959
- ---
1960
-
1961
- _For implementation: Use the `create-story` workflow to generate individual story implementation plans from this epic breakdown._
1962
- ]]></file>
1963
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml" type="yaml"><![CDATA[name: tech-spec-sm
1964
- description: >-
1965
- Technical specification workflow for Level 0-1 projects. Creates focused tech
1966
- spec with story generation. Level 0: tech-spec + user story. Level 1:
1967
- tech-spec + epic/stories.
1968
- author: BMad
1969
- instructions: 'bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md'
1970
- web_bundle_files:
1971
- - 'bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md'
1972
- - >-
1973
- bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md
1974
- - >-
1975
- bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md
1976
- - 'bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md'
1977
- - >-
1978
- bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md
1979
- - 'bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md'
1980
- - 'bmad/core/tasks/workflow.xml'
1981
- - 'bmad/core/tasks/adv-elicit.xml'
1982
- - 'bmad/core/tasks/adv-elicit-methods.csv'
1983
- ]]></file>
1984
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md" type="md"><![CDATA[# Tech-Spec Workflow - Context-Aware Technical Planning (Level 0-1)
1985
-
1986
- <workflow>
1987
-
1988
- <critical>The workflow execution engine is governed by: bmad/core/tasks/workflow.xml</critical>
1989
- <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
1990
- <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
1991
- <critical>Generate all documents in {document_output_language}</critical>
1992
- <critical>This is for Level 0-1 projects - tech-spec with context-rich story generation</critical>
1993
- <critical>Level 0: tech-spec + single user story | Level 1: tech-spec + epic/stories</critical>
1994
- <critical>LIVING DOCUMENT: Write to tech-spec.md continuously as you discover - never wait until the end</critical>
1995
- <critical>CONTEXT IS KING: Gather ALL available context before generating specs</critical>
1996
- <critical>DOCUMENT OUTPUT: Technical, precise, definitive. Specific versions only. User skill level ({user_skill_level}) affects conversation style ONLY, not document content.</critical>
1997
- <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
1998
-
1999
- <step n="0" goal="Validate workflow readiness and detect project level" tag="workflow-status">
2000
- <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
2001
-
2002
- <check if="status file not found">
2003
- <output>No workflow status file found. Tech-spec workflow can run standalone or as part of BMM workflow path.</output>
2004
- <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
2005
- <output>**Quick Start:** Continue in standalone mode - perfect for rapid prototyping and quick changes!</output>
2006
- <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
2007
- <check if="continue">
2008
- <action>Set standalone_mode = true</action>
2009
-
2010
- <output>Great! Let's quickly configure your project...</output>
2011
-
2012
- <ask>What level is this project?
2013
-
2014
- **Level 0** - Single atomic change (bug fix, small isolated feature, single file change)
2015
- โ†’ Generates: 1 tech-spec + 1 story
2016
- โ†’ Example: "Fix login validation bug" or "Add email field to user form"
2017
-
2018
- **Level 1** - Coherent feature (multiple related changes, small feature set)
2019
- โ†’ Generates: 1 tech-spec + 1 epic + 2-3 stories
2020
- โ†’ Example: "Add OAuth integration" or "Build user profile page"
2021
-
2022
- Enter **0** or **1**:</ask>
2023
-
2024
- <action>Capture user response as project_level (0 or 1)</action>
2025
- <action>Validate: If not 0 or 1, ask again</action>
2026
-
2027
- <ask>Is this a **greenfield** (new/empty codebase) or **brownfield** (existing codebase) project?
2028
-
2029
- **Greenfield** - Starting fresh, no existing code
2030
- **Brownfield** - Adding to or modifying existing code
2031
-
2032
- Enter **greenfield** or **brownfield**:</ask>
2033
-
2034
- <action>Capture user response as field_type (greenfield or brownfield)</action>
2035
- <action>Validate: If not greenfield or brownfield, ask again</action>
2036
-
2037
- <output>Perfect! Running as:
2038
-
2039
- - **Project Level:** {{project_level}}
2040
- - **Field Type:** {{field_type}}
2041
- - **Mode:** Standalone (no status file tracking)
2042
-
2043
- Let's build your tech-spec!</output>
2044
- </check>
2045
- <check if="exit">
2046
- <action>Exit workflow</action>
2047
- </check>
2048
- </check>
2049
-
2050
- <check if="status file found">
2051
- <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
2052
- <action>Parse workflow_status section</action>
2053
- <action>Check status of "tech-spec" workflow</action>
2054
- <action>Get project_level from YAML metadata</action>
2055
- <action>Get field_type from YAML metadata (greenfield or brownfield)</action>
2056
- <action>Find first non-completed workflow (next expected workflow)</action>
2057
-
2058
- <check if="project_level >= 2">
2059
- <output>**Incorrect Workflow for Level {{project_level}}**
2060
-
2061
- Tech-spec is for Level 0-1 projects. Level 2-4 should use PRD workflow.
2062
-
2063
- **Correct workflow:** `create-prd` (PM agent)
2064
- </output>
2065
- <action>Exit and redirect to prd</action>
2066
- </check>
2067
-
2068
- <check if="tech-spec status is file path (already completed)">
2069
- <output>โš ๏ธ Tech-spec already completed: {{tech-spec status}}</output>
2070
- <ask>Re-running will overwrite the existing tech-spec. Continue? (y/n)</ask>
2071
- <check if="n">
2072
- <output>Exiting. Use workflow-status to see your next step.</output>
2073
- <action>Exit workflow</action>
2074
- </check>
2075
- </check>
2076
-
2077
- <check if="tech-spec is not the next expected workflow">
2078
- <output>โš ๏ธ Next expected workflow: {{next_workflow}}. Tech-spec is out of sequence.</output>
2079
- <ask>Continue with tech-spec anyway? (y/n)</ask>
2080
- <check if="n">
2081
- <output>Exiting. Run {{next_workflow}} instead.</output>
2082
- <action>Exit workflow</action>
2083
- </check>
2084
- </check>
2085
-
2086
- <action>Set standalone_mode = false</action>
2087
- </check>
2088
- </step>
2089
-
2090
- <step n="1" goal="Comprehensive context discovery - gather everything available">
2091
-
2092
- <action>Welcome {user_name} warmly and explain what we're about to do:
2093
-
2094
- "I'm going to gather all available context about your project before we dive into the technical spec. This includes:
2095
-
2096
- - Any existing documentation (product briefs, research)
2097
- - Brownfield codebase analysis (if applicable)
2098
- - Your project's tech stack and dependencies
2099
- - Existing code patterns and structure
2100
-
2101
- This ensures the tech-spec is grounded in reality and gives developers everything they need."
2102
- </action>
2103
-
2104
- <action>**PHASE 1: Load Existing Documents**
2105
-
2106
- Search for and load (using dual-strategy: whole first, then sharded):
2107
-
2108
- 1. **Product Brief:**
2109
- - Search pattern: {output*folder}/\_brief*.md
2110
- - Sharded: {output*folder}/\_brief*/index.md
2111
- - If found: Load completely and extract key context
2112
-
2113
- 2. **Research Documents:**
2114
- - Search pattern: {output*folder}/\_research*.md
2115
- - Sharded: {output*folder}/\_research*/index.md
2116
- - If found: Load completely and extract insights
2117
-
2118
- 3. **Document-Project Output (CRITICAL for brownfield):**
2119
- - Always check: {output_folder}/docs/index.md
2120
- - If found: This is the brownfield codebase map - load ALL shards!
2121
- - Extract: File structure, key modules, existing patterns, naming conventions
2122
-
2123
- Create a summary of what was found:
2124
-
2125
- - List of loaded documents
2126
- - Key insights from each
2127
- - Brownfield vs greenfield determination
2128
- </action>
2129
-
2130
- <action>**PHASE 2: Detect Project Type from Setup Files**
2131
-
2132
- Search for project setup files in :
2133
-
2134
- **Node.js/JavaScript:**
2135
-
2136
- - package.json โ†’ Parse for framework, dependencies, scripts
2137
-
2138
- **Python:**
2139
-
2140
- - requirements.txt โ†’ Parse for packages
2141
- - pyproject.toml โ†’ Parse for modern Python projects
2142
- - Pipfile โ†’ Parse for pipenv projects
2143
-
2144
- **Ruby:**
2145
-
2146
- - Gemfile โ†’ Parse for gems and versions
2147
-
2148
- **Java:**
2149
-
2150
- - pom.xml โ†’ Parse for Maven dependencies
2151
- - build.gradle โ†’ Parse for Gradle dependencies
2152
-
2153
- **Go:**
2154
-
2155
- - go.mod โ†’ Parse for modules
2156
-
2157
- **Rust:**
2158
-
2159
- - Cargo.toml โ†’ Parse for crates
2160
-
2161
- **PHP:**
2162
-
2163
- - composer.json โ†’ Parse for packages
2164
-
2165
- If setup file found, extract:
2166
-
2167
- 1. Framework name and EXACT version (e.g., "React 18.2.0", "Django 4.2.1")
2168
- 2. All production dependencies with versions
2169
- 3. Dev dependencies and tools (TypeScript, Jest, ESLint, pytest, etc.)
2170
- 4. Available scripts (npm run test, npm run build, etc.)
2171
- 5. Project type indicators (is it an API? Web app? CLI tool?)
2172
- 6. **Test framework** (Jest, pytest, RSpec, JUnit, Mocha, etc.)
2173
-
2174
- **Check for Outdated Dependencies:**
2175
- <check if="major framework version > 2 years old">
2176
- <action>Use WebSearch to find current recommended version</action>
2177
- <example>
2178
- If package.json shows "react": "16.14.0" (from 2020):
2179
- <WebSearch query="React latest stable version 2025 migration guide" />
2180
- Note both current version AND migration complexity in stack summary
2181
- </example>
2182
- </check>
2183
-
2184
- **For Greenfield Projects:**
2185
- <check if="field_type == greenfield">
2186
- <action>Use WebSearch for current best practices AND starter templates</action>
2187
- <example>
2188
- <WebSearch query="{detected_framework} best practices {current_year}" />
2189
- <WebSearch query="{detected_framework} recommended packages {current_year}" />
2190
- <WebSearch query="{detected_framework} official starter template {current_year}" />
2191
- <WebSearch query="{project_type} {detected_framework} boilerplate {current_year}" />
2192
- </example>
2193
-
2194
- **RECOMMEND STARTER TEMPLATES:**
2195
- Look for official or well-maintained starter templates:
2196
-
2197
- - React: Create React App, Vite, Next.js starter
2198
- - Vue: create-vue, Nuxt starter
2199
- - Python: cookiecutter templates, FastAPI template
2200
- - Node.js: express-generator, NestJS CLI
2201
- - Ruby: Rails new, Sinatra template
2202
- - Go: go-blueprint, standard project layout
2203
-
2204
- Benefits of starters:
2205
-
2206
- - โœ… Modern best practices baked in
2207
- - โœ… Proper project structure
2208
- - โœ… Build tooling configured
2209
- - โœ… Testing framework set up
2210
- - โœ… Linting/formatting included
2211
- - โœ… Faster time to first feature
2212
-
2213
- **Present recommendations to user:**
2214
- "I found these starter templates for {{framework}}:
2215
-
2216
- 1. {{official_template}} - Official, well-maintained
2217
- 2. {{community_template}} - Popular community template
2218
-
2219
- These provide {{benefits}}. Would you like to use one? (yes/no/show-me-more)"
2220
-
2221
- <action>Capture user preference on starter template</action>
2222
- <action>If yes, include starter setup in implementation stack</action>
2223
- </check>
2224
-
2225
- Store this as {{project_stack_summary}}
2226
- </action>
2227
-
2228
- <action>**PHASE 3: Brownfield Codebase Reconnaissance** (if applicable)
2229
-
2230
- <check if="field_type == brownfield OR document-project output found">
2231
-
2232
- Analyze the existing project structure:
2233
-
2234
- 1. **Directory Structure:**
2235
- - Identify main code directories (src/, lib/, app/, components/, services/)
2236
- - Note organization patterns (feature-based, layer-based, domain-driven)
2237
- - Identify test directories and patterns
2238
-
2239
- 2. **Code Patterns:**
2240
- - Look for dominant patterns (class-based, functional, MVC, microservices)
2241
- - Identify naming conventions (camelCase, snake_case, PascalCase)
2242
- - Note file organization patterns
2243
-
2244
- 3. **Key Modules/Services:**
2245
- - Identify major modules or services already in place
2246
- - Note entry points (main.js, app.py, index.ts)
2247
- - Document important utilities or shared code
2248
-
2249
- 4. **Testing Patterns & Standards (CRITICAL):**
2250
- - Identify test framework in use (from package.json/requirements.txt)
2251
- - Note test file naming patterns (.test.js, \_test.py, .spec.ts, Test.java)
2252
- - Document test organization (tests/, **tests**, spec/, test/)
2253
- - Look for test configuration files (jest.config.js, pytest.ini, .rspec)
2254
- - Check for coverage requirements (in CI config, test scripts)
2255
- - Identify mocking/stubbing libraries (jest.mock, unittest.mock, sinon)
2256
- - Note assertion styles (expect, assert, should)
2257
-
2258
- 5. **Code Style & Conventions (MUST CONFORM):**
2259
- - Check for linter config (.eslintrc, .pylintrc, rubocop.yml)
2260
- - Check for formatter config (.prettierrc, .black, .editorconfig)
2261
- - Identify code style:
2262
- - Semicolons: yes/no (JavaScript/TypeScript)
2263
- - Quotes: single/double
2264
- - Indentation: spaces/tabs, size
2265
- - Line length limits
2266
- - Import/export patterns (named vs default, organization)
2267
- - Error handling patterns (try/catch, Result types, error classes)
2268
- - Logging patterns (console, winston, logging module, specific formats)
2269
- - Documentation style (JSDoc, docstrings, YARD, JavaDoc)
2270
-
2271
- Store this as {{existing_structure_summary}}
2272
-
2273
- **CRITICAL: Confirm Conventions with User**
2274
- <ask>I've detected these conventions in your codebase:
2275
-
2276
- **Code Style:**
2277
- {{detected_code_style}}
2278
-
2279
- **Test Patterns:**
2280
- {{detected_test_patterns}}
2281
-
2282
- **File Organization:**
2283
- {{detected_file_organization}}
2284
-
2285
- Should I follow these existing conventions for the new code?
2286
-
2287
- Enter **yes** to conform to existing patterns, or **no** if you want to establish new standards:</ask>
2288
-
2289
- <action>Capture user response as conform_to_conventions (yes/no)</action>
2290
-
2291
- <check if="conform_to_conventions == no">
2292
- <ask>What conventions would you like to use instead? (Or should I suggest modern best practices?)</ask>
2293
- <action>Capture new conventions or use WebSearch for current best practices</action>
2294
- </check>
2295
-
2296
- <action>Store confirmed conventions as {{existing_conventions}}</action>
2297
-
2298
- </check>
2299
-
2300
- <check if="field_type == greenfield">
2301
- <action>Note: Greenfield project - no existing code to analyze</action>
2302
- <action>Set {{existing_structure_summary}} = "Greenfield project - new codebase"</action>
2303
- </check>
2304
-
2305
- </action>
2306
-
2307
- <action>**PHASE 4: Synthesize Context Summary**
2308
-
2309
- Create {{loaded_documents_summary}} that includes:
2310
-
2311
- - Documents found and loaded
2312
- - Brownfield vs greenfield status
2313
- - Tech stack detected (or "To be determined" if greenfield)
2314
- - Existing patterns identified (or "None - greenfield" if applicable)
2315
-
2316
- Present this summary to {user_name} conversationally:
2317
-
2318
- "Here's what I found about your project:
2319
-
2320
- **Documents Available:**
2321
- [List what was found]
2322
-
2323
- **Project Type:**
2324
- [Brownfield with X framework Y version OR Greenfield - new project]
2325
-
2326
- **Existing Stack:**
2327
- [Framework and dependencies OR "To be determined"]
2328
-
2329
- **Code Structure:**
2330
- [Existing patterns OR "New codebase"]
2331
-
2332
- This gives me a solid foundation for creating a context-rich tech spec!"
2333
- </action>
2334
-
2335
- <template-output>loaded_documents_summary</template-output>
2336
- <template-output>project_stack_summary</template-output>
2337
- <template-output>existing_structure_summary</template-output>
2338
-
2339
- </step>
2340
-
2341
- <step n="2" goal="Conversational discovery of the change/feature">
2342
-
2343
- <action>Now engage in natural conversation to understand what needs to be built.
2344
-
2345
- Adapt questioning based on project_level:
2346
- </action>
2347
-
2348
- <check if="project_level == 0">
2349
- <action>**Level 0: Atomic Change Discovery**
2350
-
2351
- Engage warmly and get specific details:
2352
-
2353
- "Let's talk about this change. I need to understand it deeply so the tech-spec gives developers everything they need."
2354
-
2355
- **Core Questions (adapt naturally, don't interrogate):**
2356
-
2357
- 1. "What problem are you solving?"
2358
- - Listen for: Bug fix, missing feature, technical debt, improvement
2359
- - Capture as {{change_type}}
2360
-
2361
- 2. "Where in the codebase should this live?"
2362
- - If brownfield: "I see you have [existing modules]. Does this fit in any of those?"
2363
- - If greenfield: "Let's figure out the right structure for this."
2364
- - Capture affected areas
2365
-
2366
- 3. <check if="brownfield">
2367
- "Are there existing patterns or similar code I should follow?"
2368
- - Look for consistency requirements
2369
- - Identify reference implementations
2370
- </check>
2371
-
2372
- 4. "What's the expected behavior after this change?"
2373
- - Get specific success criteria
2374
- - Understand edge cases
2375
-
2376
- 5. "Any constraints or gotchas I should know about?"
2377
- - Technical limitations
2378
- - Dependencies on other systems
2379
- - Performance requirements
2380
-
2381
- **Discovery Goals:**
2382
-
2383
- - Understand the WHY (problem)
2384
- - Understand the WHAT (solution)
2385
- - Understand the WHERE (location in code)
2386
- - Understand the HOW (approach and patterns)
2387
-
2388
- Synthesize into clear problem statement and solution overview.
2389
- </action>
2390
- </check>
2391
-
2392
- <check if="project_level == 1">
2393
- <action>**Level 1: Feature Discovery**
2394
-
2395
- Engage in deeper feature exploration:
2396
-
2397
- "This is a Level 1 feature - coherent but focused. Let's explore what you're building."
2398
-
2399
- **Core Questions (natural conversation):**
2400
-
2401
- 1. "What user need are you addressing?"
2402
- - Get to the core value
2403
- - Understand the user's pain point
2404
-
2405
- 2. "How should this integrate with existing code?"
2406
- - If brownfield: "I saw [existing features]. How does this relate?"
2407
- - Identify integration points
2408
- - Note dependencies
2409
-
2410
- 3. <check if="brownfield AND similar features exist">
2411
- "Can you point me to similar features I can reference for patterns?"
2412
- - Get example implementations
2413
- - Understand established patterns
2414
- </check>
2415
-
2416
- 4. "What's IN scope vs OUT of scope for this feature?"
2417
- - Define clear boundaries
2418
- - Identify MVP vs future enhancements
2419
- - Keep it focused (remind: Level 1 = 2-3 stories max)
2420
-
2421
- 5. "Are there dependencies on other systems or services?"
2422
- - External APIs
2423
- - Databases
2424
- - Third-party libraries
2425
-
2426
- 6. "What does success look like?"
2427
- - Measurable outcomes
2428
- - User-facing impact
2429
- - Technical validation
2430
-
2431
- **Discovery Goals:**
2432
-
2433
- - Feature purpose and value
2434
- - Integration strategy
2435
- - Scope boundaries
2436
- - Success criteria
2437
- - Dependencies
2438
-
2439
- Synthesize into comprehensive feature description.
2440
- </action>
2441
- </check>
2442
-
2443
- <template-output>problem_statement</template-output>
2444
- <template-output>solution_overview</template-output>
2445
- <template-output>change_type</template-output>
2446
- <template-output>scope_in</template-output>
2447
- <template-output>scope_out</template-output>
2448
-
2449
- </step>
2450
-
2451
- <step n="3" goal="Generate context-aware, definitive technical specification">
2452
-
2453
- <critical>ALL TECHNICAL DECISIONS MUST BE DEFINITIVE - NO AMBIGUITY ALLOWED</critical>
2454
- <critical>Use existing stack info to make SPECIFIC decisions</critical>
2455
- <critical>Reference brownfield code to guide implementation</critical>
2456
-
2457
- <action>Initialize tech-spec.md with the rich template</action>
2458
-
2459
- <action>**Generate Context Section (already captured):**
2460
-
2461
- These template variables are already populated from Step 1:
2462
-
2463
- - {{loaded_documents_summary}}
2464
- - {{project_stack_summary}}
2465
- - {{existing_structure_summary}}
2466
-
2467
- Just save them to the file.
2468
- </action>
2469
-
2470
- <template-output file="tech-spec.md">loaded_documents_summary</template-output>
2471
- <template-output file="tech-spec.md">project_stack_summary</template-output>
2472
- <template-output file="tech-spec.md">existing_structure_summary</template-output>
2473
-
2474
- <action>**Generate The Change Section:**
2475
-
2476
- Already captured from Step 2:
2477
-
2478
- - {{problem_statement}}
2479
- - {{solution_overview}}
2480
- - {{scope_in}}
2481
- - {{scope_out}}
2482
-
2483
- Save to file.
2484
- </action>
2485
-
2486
- <template-output file="tech-spec.md">problem_statement</template-output>
2487
- <template-output file="tech-spec.md">solution_overview</template-output>
2488
- <template-output file="tech-spec.md">scope_in</template-output>
2489
- <template-output file="tech-spec.md">scope_out</template-output>
2490
-
2491
- <action>**Generate Implementation Details:**
2492
-
2493
- Now make DEFINITIVE technical decisions using all the context gathered.
2494
-
2495
- **Source Tree Changes - BE SPECIFIC:**
2496
-
2497
- Bad (NEVER do this):
2498
-
2499
- - "Update some files in the services folder"
2500
- - "Add tests somewhere"
2501
-
2502
- Good (ALWAYS do this):
2503
-
2504
- - "src/services/UserService.ts - MODIFY - Add validateEmail() method at line 45"
2505
- - "src/routes/api/users.ts - MODIFY - Add POST /users/validate endpoint"
2506
- - "tests/services/UserService.test.ts - CREATE - Test suite for email validation"
2507
-
2508
- Include:
2509
-
2510
- - Exact file paths
2511
- - Action: CREATE, MODIFY, DELETE
2512
- - Specific what changes (methods, classes, endpoints, components)
2513
-
2514
- **Use brownfield context:**
2515
-
2516
- - If modifying existing files, reference current structure
2517
- - Follow existing naming patterns
2518
- - Place new code logically based on current organization
2519
- </action>
2520
-
2521
- <template-output file="tech-spec.md">source_tree_changes</template-output>
2522
-
2523
- <action>**Technical Approach - BE DEFINITIVE:**
2524
-
2525
- Bad (ambiguous):
2526
-
2527
- - "Use a logging library like winston or pino"
2528
- - "Use Python 2 or 3"
2529
- - "Set up some kind of validation"
2530
-
2531
- Good (definitive):
2532
-
2533
- - "Use winston v3.8.2 (already in package.json) for logging"
2534
- - "Implement using Python 3.11 as specified in pyproject.toml"
2535
- - "Use Joi v17.9.0 for request validation following pattern in UserController.ts"
2536
-
2537
- **Use detected stack:**
2538
-
2539
- - Reference exact versions from package.json/requirements.txt
2540
- - Specify frameworks already in use
2541
- - Make decisions based on what's already there
2542
-
2543
- **For greenfield:**
2544
-
2545
- - Make definitive choices and justify them
2546
- - Specify exact versions
2547
- - No "or" statements allowed
2548
- </action>
2549
-
2550
- <template-output file="tech-spec.md">technical_approach</template-output>
2551
-
2552
- <action>**Existing Patterns to Follow:**
2553
-
2554
- <check if="brownfield">
2555
- Document patterns from the existing codebase:
2556
- - Class structure patterns
2557
- - Function naming conventions
2558
- - Error handling approach
2559
- - Testing patterns
2560
- - Documentation style
2561
-
2562
- Example:
2563
- "Follow the service pattern established in UserService.ts:
2564
-
2565
- - Export class with constructor injection
2566
- - Use async/await for all asynchronous operations
2567
- - Throw ServiceError with error codes
2568
- - Include JSDoc comments for all public methods"
2569
- </check>
2570
-
2571
- <check if="greenfield">
2572
- "Greenfield project - establishing new patterns:
2573
- - [Define the patterns to establish]"
2574
- </check>
2575
-
2576
- </action>
2577
-
2578
- <template-output file="tech-spec.md">existing_patterns</template-output>
2579
-
2580
- <action>**Integration Points:**
2581
-
2582
- Identify how this change connects:
2583
-
2584
- - Internal modules it depends on
2585
- - External APIs or services
2586
- - Database interactions
2587
- - Event emitters/listeners
2588
- - State management
2589
-
2590
- Be specific about interfaces and contracts.
2591
- </action>
2592
-
2593
- <template-output file="tech-spec.md">integration_points</template-output>
2594
-
2595
- <action>**Development Context:**
2596
-
2597
- **Relevant Existing Code:**
2598
- <check if="brownfield">
2599
- Reference specific files or code sections developers should review:
2600
-
2601
- - "See UserService.ts lines 120-150 for similar validation pattern"
2602
- - "Reference AuthMiddleware.ts for authentication approach"
2603
- - "Follow error handling in PaymentService.ts"
2604
- </check>
2605
-
2606
- **Framework/Libraries:**
2607
- List with EXACT versions from detected stack:
2608
-
2609
- - Express 4.18.2 (web framework)
2610
- - winston 3.8.2 (logging)
2611
- - Joi 17.9.0 (validation)
2612
- - TypeScript 5.1.6 (language)
2613
-
2614
- **Internal Modules:**
2615
- List internal dependencies:
2616
-
2617
- - @/services/UserService
2618
- - @/middleware/auth
2619
- - @/utils/validation
2620
-
2621
- **Configuration Changes:**
2622
- Any config files to update:
2623
-
2624
- - Update .env with new SMTP settings
2625
- - Add validation schema to config/schemas.ts
2626
- - Update package.json scripts if needed
2627
- </action>
2628
-
2629
- <template-output file="tech-spec.md">existing_code_references</template-output>
2630
- <template-output file="tech-spec.md">framework_dependencies</template-output>
2631
- <template-output file="tech-spec.md">internal_dependencies</template-output>
2632
- <template-output file="tech-spec.md">configuration_changes</template-output>
2633
-
2634
- <check if="field_type == brownfield">
2635
- <template-output file="tech-spec.md">existing_conventions</template-output>
2636
- </check>
2637
-
2638
- <check if="field_type == greenfield">
2639
- <action>Set {{existing_conventions}} = "Greenfield project - establishing new conventions per modern best practices"</action>
2640
- <template-output file="tech-spec.md">existing_conventions</template-output>
2641
- </check>
2642
-
2643
- <action>**Implementation Stack:**
2644
-
2645
- Comprehensive stack with versions:
2646
-
2647
- - Runtime: Node.js 20.x
2648
- - Framework: Express 4.18.2
2649
- - Language: TypeScript 5.1.6
2650
- - Testing: Jest 29.5.0
2651
- - Linting: ESLint 8.42.0
2652
- - Validation: Joi 17.9.0
2653
-
2654
- All from detected project setup!
2655
- </action>
2656
-
2657
- <template-output file="tech-spec.md">implementation_stack</template-output>
2658
-
2659
- <action>**Technical Details:**
2660
-
2661
- Deep technical specifics:
2662
-
2663
- - Algorithms to implement
2664
- - Data structures to use
2665
- - Performance considerations
2666
- - Security considerations
2667
- - Error scenarios and handling
2668
- - Edge cases
2669
-
2670
- Be thorough - developers need details!
2671
- </action>
2672
-
2673
- <template-output file="tech-spec.md">technical_details</template-output>
2674
-
2675
- <action>**Development Setup:**
2676
-
2677
- What does a developer need to run this locally?
2678
-
2679
- Based on detected stack and scripts:
2680
-
2681
- ```
2682
- 1. Clone repo (if not already)
2683
- 2. npm install (installs all deps from package.json)
2684
- 3. cp .env.example .env (configure environment)
2685
- 4. npm run dev (starts development server)
2686
- 5. npm test (runs test suite)
2687
- ```
2688
-
2689
- Or for Python:
2690
-
2691
- ```
2692
- 1. python -m venv venv
2693
- 2. source venv/bin/activate
2694
- 3. pip install -r requirements.txt
2695
- 4. python manage.py runserver
2696
- ```
2697
-
2698
- Use the actual scripts from package.json/setup files!
2699
- </action>
2700
-
2701
- <template-output file="tech-spec.md">development_setup</template-output>
2702
-
2703
- <action>**Implementation Guide:**
2704
-
2705
- **Setup Steps:**
2706
- Pre-implementation checklist:
2707
-
2708
- - Create feature branch
2709
- - Verify dev environment running
2710
- - Review existing code references
2711
- - Set up test data if needed
2712
-
2713
- **Implementation Steps:**
2714
- Step-by-step breakdown:
2715
-
2716
- For Level 0:
2717
-
2718
- 1. [Step 1 with specific file and action]
2719
- 2. [Step 2 with specific file and action]
2720
- 3. [Write tests]
2721
- 4. [Verify acceptance criteria]
2722
-
2723
- For Level 1:
2724
- Organize by story/phase:
2725
-
2726
- 1. Phase 1: [Foundation work]
2727
- 2. Phase 2: [Core implementation]
2728
- 3. Phase 3: [Testing and validation]
2729
-
2730
- **Testing Strategy:**
2731
-
2732
- - Unit tests for [specific functions]
2733
- - Integration tests for [specific flows]
2734
- - Manual testing checklist
2735
- - Performance testing if applicable
2736
-
2737
- **Acceptance Criteria:**
2738
- Specific, measurable, testable criteria:
2739
-
2740
- 1. Given [scenario], when [action], then [outcome]
2741
- 2. [Metric] meets [threshold]
2742
- 3. [Feature] works in [environment]
2743
- </action>
2744
-
2745
- <template-output file="tech-spec.md">setup_steps</template-output>
2746
- <template-output file="tech-spec.md">implementation_steps</template-output>
2747
- <template-output file="tech-spec.md">testing_strategy</template-output>
2748
- <template-output file="tech-spec.md">acceptance_criteria</template-output>
2749
-
2750
- <action>**Developer Resources:**
2751
-
2752
- **File Paths Reference:**
2753
- Complete list of all files involved:
2754
-
2755
- - /src/services/UserService.ts
2756
- - /src/routes/api/users.ts
2757
- - /tests/services/UserService.test.ts
2758
- - /src/types/user.ts
2759
-
2760
- **Key Code Locations:**
2761
- Important functions, classes, modules:
2762
-
2763
- - UserService class (src/services/UserService.ts:15)
2764
- - validateUser function (src/utils/validation.ts:42)
2765
- - User type definition (src/types/user.ts:8)
2766
-
2767
- **Testing Locations:**
2768
- Where tests go:
2769
-
2770
- - Unit: tests/services/
2771
- - Integration: tests/integration/
2772
- - E2E: tests/e2e/
2773
-
2774
- **Documentation to Update:**
2775
- Docs that need updating:
2776
-
2777
- - README.md - Add new endpoint documentation
2778
- - API.md - Document /users/validate endpoint
2779
- - CHANGELOG.md - Note the new feature
2780
- </action>
2781
-
2782
- <template-output file="tech-spec.md">file_paths_complete</template-output>
2783
- <template-output file="tech-spec.md">key_code_locations</template-output>
2784
- <template-output file="tech-spec.md">testing_locations</template-output>
2785
- <template-output file="tech-spec.md">documentation_updates</template-output>
2786
-
2787
- <action>**UX/UI Considerations:**
2788
-
2789
- <check if="change affects user interface OR user experience">
2790
- **Determine if this change has UI/UX impact:**
2791
- - Does it change what users see?
2792
- - Does it change how users interact?
2793
- - Does it affect user workflows?
2794
-
2795
- If YES, document:
2796
-
2797
- **UI Components Affected:**
2798
-
2799
- - List specific components (buttons, forms, modals, pages)
2800
- - Note which need creation vs modification
2801
-
2802
- **UX Flow Changes:**
2803
-
2804
- - Current flow vs new flow
2805
- - User journey impact
2806
- - Navigation changes
2807
-
2808
- **Visual/Interaction Patterns:**
2809
-
2810
- - Follow existing design system? (check for design tokens, component library)
2811
- - New patterns needed?
2812
- - Responsive design considerations (mobile, tablet, desktop)
2813
-
2814
- **Accessibility:**
2815
-
2816
- - Keyboard navigation requirements
2817
- - Screen reader compatibility
2818
- - ARIA labels needed
2819
- - Color contrast standards
2820
-
2821
- **User Feedback:**
2822
-
2823
- - Loading states
2824
- - Error messages
2825
- - Success confirmations
2826
- - Progress indicators
2827
- </check>
2828
-
2829
- <check if="no UI/UX impact">
2830
- "No UI/UX impact - backend/API/infrastructure change only"
2831
- </check>
2832
- </action>
2833
-
2834
- <template-output file="tech-spec.md">ux_ui_considerations</template-output>
2835
-
2836
- <action>**Testing Approach:**
2837
-
2838
- Comprehensive testing strategy using {{test_framework_info}}:
2839
-
2840
- **CONFORM TO EXISTING TEST STANDARDS:**
2841
- <check if="conform_to_conventions == yes">
2842
-
2843
- - Follow existing test file naming: {{detected_test_patterns.file_naming}}
2844
- - Use existing test organization: {{detected_test_patterns.organization}}
2845
- - Match existing assertion style: {{detected_test_patterns.assertion_style}}
2846
- - Meet existing coverage requirements: {{detected_test_patterns.coverage}}
2847
- </check>
2848
-
2849
- **Test Strategy:**
2850
-
2851
- - Test framework: {{detected_test_framework}} (from project dependencies)
2852
- - Unit tests for [specific functions/methods]
2853
- - Integration tests for [specific flows/APIs]
2854
- - E2E tests if UI changes
2855
- - Mock/stub strategies (use existing patterns: {{detected_test_patterns.mocking}})
2856
- - Performance benchmarks if applicable
2857
- - Accessibility tests if UI changes
2858
-
2859
- **Coverage:**
2860
-
2861
- - Unit test coverage: [target %]
2862
- - Integration coverage: [critical paths]
2863
- - Ensure all acceptance criteria have corresponding tests
2864
- </action>
2865
-
2866
- <template-output file="tech-spec.md">test_framework_info</template-output>
2867
- <template-output file="tech-spec.md">testing_approach</template-output>
2868
-
2869
- <action>**Deployment Strategy:**
2870
-
2871
- **Deployment Steps:**
2872
- How to deploy this change:
2873
-
2874
- 1. Merge to main branch
2875
- 2. Run CI/CD pipeline
2876
- 3. Deploy to staging
2877
- 4. Verify in staging
2878
- 5. Deploy to production
2879
- 6. Monitor for issues
2880
-
2881
- **Rollback Plan:**
2882
- How to undo if problems:
2883
-
2884
- 1. Revert commit [hash]
2885
- 2. Redeploy previous version
2886
- 3. Verify rollback successful
2887
-
2888
- **Monitoring:**
2889
- What to watch after deployment:
2890
-
2891
- - Error rates in [logging service]
2892
- - Response times for [endpoint]
2893
- - User feedback on [feature]
2894
- </action>
2895
-
2896
- <template-output file="tech-spec.md">deployment_steps</template-output>
2897
- <template-output file="tech-spec.md">rollback_plan</template-output>
2898
- <template-output file="tech-spec.md">monitoring_approach</template-output>
2899
-
2900
- <invoke-task halt="true">bmad/core/tasks/adv-elicit.xml</invoke-task>
2901
-
2902
- </step>
2903
-
2904
- <step n="4" goal="Auto-validate cohesion, completeness, and quality">
2905
-
2906
- <critical>Always run validation - this is NOT optional!</critical>
2907
-
2908
- <action>Tech-spec generation complete! Now running automatic validation...</action>
2909
-
2910
- <action>Load {installed_path}/checklist.md</action>
2911
- <action>Review tech-spec.md against ALL checklist criteria:
2912
-
2913
- **Section 1: Output Files Exist**
2914
-
2915
- - Verify tech-spec.md created
2916
- - Check for unfilled template variables
2917
-
2918
- **Section 2: Context Gathering**
2919
-
2920
- - Validate all available documents were loaded
2921
- - Confirm stack detection worked
2922
- - Verify brownfield analysis (if applicable)
2923
-
2924
- **Section 3: Tech-Spec Definitiveness**
2925
-
2926
- - Scan for "or" statements (FAIL if found)
2927
- - Verify all versions are specific
2928
- - Check stack alignment
2929
-
2930
- **Section 4: Context-Rich Content**
2931
-
2932
- - Verify all new template sections populated
2933
- - Check existing code references (brownfield)
2934
- - Validate framework dependencies listed
2935
-
2936
- **Section 5-6: Story Quality (deferred to Step 5)**
2937
-
2938
- **Section 7: Workflow Status (if applicable)**
2939
-
2940
- **Section 8: Implementation Readiness**
2941
-
2942
- - Can developer start immediately?
2943
- - Is tech-spec comprehensive enough?
2944
- </action>
2945
-
2946
- <action>Generate validation report with specific scores:
2947
-
2948
- - Context Gathering: [Comprehensive/Partial/Insufficient]
2949
- - Definitiveness: [All definitive/Some ambiguity/Major issues]
2950
- - Brownfield Integration: [N/A/Excellent/Partial/Missing]
2951
- - Stack Alignment: [Perfect/Good/Partial/None]
2952
- - Implementation Readiness: [Yes/No]
2953
- </action>
2954
-
2955
- <check if="validation issues found">
2956
- <output>โš ๏ธ **Validation Issues Detected:**
2957
-
2958
- {{list_of_issues}}
2959
-
2960
- I can fix these automatically. Shall I proceed? (yes/no)</output>
2961
-
2962
- <ask>Fix validation issues? (yes/no)</ask>
2963
-
2964
- <check if="yes">
2965
- <action>Fix each issue and re-validate</action>
2966
- <output>โœ… Issues fixed! Re-validation passed.</output>
2967
- </check>
2968
-
2969
- <check if="no">
2970
- <output>โš ๏ธ Proceeding with warnings. Issues should be addressed manually.</output>
2971
- </check>
2972
- </check>
2973
-
2974
- <check if="validation passes">
2975
- <output>โœ… **Validation Passed!**
2976
-
2977
- **Scores:**
2978
-
2979
- - Context Gathering: {{context_score}}
2980
- - Definitiveness: {{definitiveness_score}}
2981
- - Brownfield Integration: {{brownfield_score}}
2982
- - Stack Alignment: {{stack_score}}
2983
- - Implementation Readiness: โœ… Ready
2984
-
2985
- Tech-spec is high quality and ready for story generation!</output>
2986
- </check>
2987
-
2988
- </step>
2989
-
2990
- <step n="5" goal="Generate context-rich user stories">
2991
-
2992
- <action>Now generate stories that reference the rich tech-spec context</action>
2993
-
2994
- <check if="project_level == 0">
2995
- <action>Invoke {installed_path}/instructions-level0-story.md to generate single user story</action>
2996
- <action>Story will leverage tech-spec.md as primary context</action>
2997
- <action>Developers can skip story-context workflow since tech-spec is comprehensive</action>
2998
- </check>
2999
-
3000
- <check if="project_level == 1">
3001
- <action>Invoke {installed_path}/instructions-level1-stories.md to generate epic and stories</action>
3002
- <action>Stories will reference tech-spec.md for all technical details</action>
3003
- <action>Epic provides organization, tech-spec provides implementation context</action>
3004
- </check>
3005
-
3006
- </step>
3007
-
3008
- <step n="6" goal="Finalize and guide next steps">
3009
-
3010
- <output>**โœ… Tech-Spec Complete, {user_name}!**
3011
-
3012
- **Deliverables Created:**
3013
-
3014
- <check if="project_level == 0">
3015
- - โœ… **tech-spec.md** - Context-rich technical specification
3016
- - Includes: brownfield analysis, framework details, existing patterns
3017
- - โœ… **story-{slug}.md** - Implementation-ready user story
3018
- - References tech-spec as primary context
3019
- </check>
3020
-
3021
- <check if="project_level == 1">
3022
- - โœ… **tech-spec.md** - Context-rich technical specification
3023
- - โœ… **epics.md** - Epic and story organization
3024
- - โœ… **story-{epic-slug}-1.md** - First story
3025
- - โœ… **story-{epic-slug}-2.md** - Second story
3026
- {{#if story_3}}
3027
- - โœ… **story-{epic-slug}-3.md** - Third story
3028
- {{/if}}
3029
- </check>
3030
-
3031
- **What Makes This Tech-Spec Special:**
3032
-
3033
- The tech-spec is comprehensive enough to serve as the primary context document:
3034
-
3035
- - โœจ Brownfield codebase analysis (if applicable)
3036
- - โœจ Exact framework and library versions from your project
3037
- - โœจ Existing patterns and code references
3038
- - โœจ Specific file paths and integration points
3039
- - โœจ Complete developer resources
3040
-
3041
- **Next Steps:**
3042
-
3043
- <check if="project_level == 0">
3044
- **For Single Story (Level 0):**
3045
-
3046
- **Option A - With Story Context (for complex changes):**
3047
-
3048
- 1. Ask SM agent to run `create-story-context` for the story
3049
- - This generates additional XML context if needed
3050
- 2. Then ask DEV agent to run `dev-story` to implement
3051
-
3052
- **Option B - Direct to Dev (most Level 0):**
3053
-
3054
- 1. Ask DEV agent to run `dev-story` directly
3055
- - Tech-spec provides all the context needed!
3056
- - Story is ready to implement
3057
-
3058
- ๐Ÿ’ก **Tip:** Most Level 0 changes don't need separate story context since tech-spec is comprehensive!
3059
- </check>
3060
-
3061
- <check if="project_level == 1">
3062
- **For Multiple Stories (Level 1):**
3063
-
3064
- **Recommended: Story-by-Story Approach**
3065
-
3066
- For the **first story** ({{first_story_name}}):
3067
-
3068
- **Option A - With Story Context (recommended for first story):**
3069
-
3070
- 1. Ask SM agent to run `create-story-context` for story 1
3071
- - Generates focused context for this specific story
3072
- 2. Then ask DEV agent to run `dev-story` to implement story 1
3073
-
3074
- **Option B - Direct to Dev:**
3075
-
3076
- 1. Ask DEV agent to run `dev-story` for story 1
3077
- - Tech-spec has most context needed
3078
-
3079
- After completing story 1, repeat for stories 2 and 3.
3080
-
3081
- **Alternative: Sprint Planning Approach**
3082
-
3083
- - If managing multiple stories as a sprint, ask SM agent to run `sprint-planning`
3084
- - This organizes all stories for coordinated implementation
3085
- </check>
3086
-
3087
- **Your Tech-Spec:**
3088
-
3089
- - ๐Ÿ“„ Saved to: `{output_folder}/tech-spec.md`
3090
- - Contains: All context, decisions, patterns, and implementation guidance
3091
- - Ready for: Direct development or story context generation
3092
-
3093
- The tech-spec is your single source of truth! ๐Ÿš€
3094
- </output>
3095
-
3096
- </step>
3097
-
3098
- </workflow>
3099
- ]]></file>
3100
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md" type="md"><![CDATA[# Level 0 - Minimal User Story Generation
3101
-
3102
- <workflow>
3103
-
3104
- <critical>This generates a single user story for Level 0 atomic changes</critical>
3105
- <critical>Level 0 = single file change, bug fix, or small isolated task</critical>
3106
- <critical>This workflow runs AFTER tech-spec.md has been completed</critical>
3107
- <critical>Output format MUST match create-story template for compatibility with story-context and dev-story workflows</critical>
3108
-
3109
- <step n="1" goal="Load tech spec and extract the change">
3110
-
3111
- <action>Read the completed tech-spec.md file from {output_folder}/tech-spec.md</action>
3112
- <action>Load bmm-workflow-status.yaml from {output_folder}/bmm-workflow-status.yaml (if exists)</action>
3113
- <action>Extract dev_ephemeral_location from config (where stories are stored)</action>
3114
-
3115
- <action>Extract from the ENHANCED tech-spec structure:
3116
-
3117
- - Problem statement from "The Change โ†’ Problem Statement" section
3118
- - Solution overview from "The Change โ†’ Proposed Solution" section
3119
- - Scope from "The Change โ†’ Scope" section
3120
- - Source tree from "Implementation Details โ†’ Source Tree Changes" section
3121
- - Time estimate from "Implementation Guide โ†’ Implementation Steps" section
3122
- - Acceptance criteria from "Implementation Guide โ†’ Acceptance Criteria" section
3123
- - Framework dependencies from "Development Context โ†’ Framework/Libraries" section
3124
- - Existing code references from "Development Context โ†’ Relevant Existing Code" section
3125
- - File paths from "Developer Resources โ†’ File Paths Reference" section
3126
- - Key code locations from "Developer Resources โ†’ Key Code Locations" section
3127
- - Testing locations from "Developer Resources โ†’ Testing Locations" section
3128
- </action>
3129
-
3130
- </step>
3131
-
3132
- <step n="2" goal="Generate story slug and filename">
3133
-
3134
- <action>Derive a short URL-friendly slug from the feature/change name</action>
3135
- <action>Max slug length: 3-5 words, kebab-case format</action>
3136
-
3137
- <example>
3138
- - "Migrate JS Library Icons" โ†’ "icon-migration"
3139
- - "Fix Login Validation Bug" โ†’ "login-fix"
3140
- - "Add OAuth Integration" โ†’ "oauth-integration"
3141
- </example>
3142
-
3143
- <action>Set story_filename = "story-{slug}.md"</action>
3144
- <action>Set story_path = "{dev_ephemeral_location}/story-{slug}.md"</action>
3145
-
3146
- </step>
3147
-
3148
- <step n="3" goal="Create user story in standard format">
3149
-
3150
- <action>Create 1 story that describes the technical change as a deliverable</action>
3151
- <action>Story MUST use create-story template format for compatibility</action>
3152
-
3153
- <guidelines>
3154
- **Story Point Estimation:**
3155
- - 1 point = < 1 day (2-4 hours)
3156
- - 2 points = 1-2 days
3157
- - 3 points = 2-3 days
3158
- - 5 points = 3-5 days (if this high, question if truly Level 0)
3159
-
3160
- **Story Title Best Practices:**
3161
-
3162
- - Use active, user-focused language
3163
- - Describe WHAT is delivered, not HOW
3164
- - Good: "Icon Migration to Internal CDN"
3165
- - Bad: "Run curl commands to download PNGs"
3166
-
3167
- **Story Description Format:**
3168
-
3169
- - As a [role] (developer, user, admin, etc.)
3170
- - I want [capability/change]
3171
- - So that [benefit/value]
3172
-
3173
- **Acceptance Criteria:**
3174
-
3175
- - Extract from tech-spec "Testing Approach" section
3176
- - Must be specific, measurable, and testable
3177
- - Include performance criteria if specified
3178
-
3179
- **Tasks/Subtasks:**
3180
-
3181
- - Map directly to tech-spec "Implementation Guide" tasks
3182
- - Use checkboxes for tracking
3183
- - Reference AC numbers: (AC: #1), (AC: #2)
3184
- - Include explicit testing subtasks
3185
-
3186
- **Dev Notes:**
3187
-
3188
- - Extract technical constraints from tech-spec
3189
- - Include file paths from "Developer Resources โ†’ File Paths Reference"
3190
- - Include existing code references from "Development Context โ†’ Relevant Existing Code"
3191
- - Reference architecture patterns if applicable
3192
- - Cite tech-spec sections for implementation details
3193
- - Note dependencies (internal and external)
3194
-
3195
- **NEW: Comprehensive Context**
3196
-
3197
- Since tech-spec is now context-rich, populate all new template fields:
3198
-
3199
- - dependencies: Extract from "Development Context" and "Implementation Details โ†’ Integration Points"
3200
- - existing_code_references: Extract from "Development Context โ†’ Relevant Existing Code" and "Developer Resources โ†’ Key Code Locations"
3201
- </guidelines>
3202
-
3203
- <action>Initialize story file using user_story_template</action>
3204
-
3205
- <template-output file="{story_path}">story_title</template-output>
3206
- <template-output file="{story_path}">role</template-output>
3207
- <template-output file="{story_path}">capability</template-output>
3208
- <template-output file="{story_path}">benefit</template-output>
3209
- <template-output file="{story_path}">acceptance_criteria</template-output>
3210
- <template-output file="{story_path}">tasks_subtasks</template-output>
3211
- <template-output file="{story_path}">technical_summary</template-output>
3212
- <template-output file="{story_path}">files_to_modify</template-output>
3213
- <template-output file="{story_path}">test_locations</template-output>
3214
- <template-output file="{story_path}">story_points</template-output>
3215
- <template-output file="{story_path}">time_estimate</template-output>
3216
- <template-output file="{story_path}">dependencies</template-output>
3217
- <template-output file="{story_path}">existing_code_references</template-output>
3218
- <template-output file="{story_path}">architecture_references</template-output>
3219
-
3220
- </step>
3221
-
3222
- <step n="4" goal="Update status - Level 0 single story">
3223
-
3224
- <invoke-workflow path="bmad/bmm/workflows/workflow-status">
3225
- <param>mode: update</param>
3226
- <param>action: complete_workflow</param>
3227
- <param>workflow_name: tech-spec</param>
3228
- </invoke-workflow>
3229
-
3230
- <check if="success == true">
3231
- <output>โœ… Tech-spec complete! Next: {{next_workflow}}</output>
3232
- </check>
3233
-
3234
- <action>Load {{status_file_path}}</action>
3235
- <action>Set STORIES_SEQUENCE: [{slug}]</action>
3236
- <action>Set TODO_STORY: {slug}</action>
3237
- <action>Set TODO_TITLE: {{story_title}}</action>
3238
- <action>Set IN_PROGRESS_STORY: (empty)</action>
3239
- <action>Set STORIES_DONE: []</action>
3240
- <action>Save {{status_file_path}}</action>
3241
-
3242
- <output>Story queue initialized with single story: {slug}</output>
3243
-
3244
- </step>
3245
-
3246
- <step n="5" goal="Provide user guidance for next steps">
3247
-
3248
- <action>Display completion summary</action>
3249
-
3250
- **Level 0 Planning Complete!**
3251
-
3252
- **Generated Artifacts:**
3253
-
3254
- - `tech-spec.md` โ†’ Technical source of truth
3255
- - `story-{slug}.md` โ†’ User story ready for implementation
3256
-
3257
- **Story Location:** `{story_path}`
3258
-
3259
- **Next Steps:**
3260
-
3261
- **๐ŸŽฏ RECOMMENDED - Direct to Development (Level 0):**
3262
-
3263
- Since the tech-spec is now CONTEXT-RICH with:
3264
-
3265
- - โœ… Brownfield codebase analysis (if applicable)
3266
- - โœ… Framework and library details with exact versions
3267
- - โœ… Existing patterns and code references
3268
- - โœ… Complete file paths and integration points
3269
-
3270
- **You can skip story-context and go straight to dev!**
3271
-
3272
- 1. Load DEV agent: `bmad/bmm/agents/dev.md`
3273
- 2. Run `dev-story` workflow
3274
- 3. Begin implementation immediately
3275
-
3276
- **Option B - Generate Additional Context (optional):**
3277
-
3278
- Only needed for extremely complex scenarios:
3279
-
3280
- 1. Load SM agent: `bmad/bmm/agents/sm.md`
3281
- 2. Run `story-context` workflow (generates additional XML context)
3282
- 3. Then load DEV agent and run `dev-story` workflow
3283
-
3284
- **Progress Tracking:**
3285
-
3286
- - All decisions logged in: `bmm-workflow-status.yaml`
3287
- - Next action clearly identified
3288
-
3289
- <ask>Ready to proceed? Choose your path:
3290
-
3291
- 1. Go directly to dev-story (RECOMMENDED - tech-spec has all context)
3292
- 2. Generate additional story context (for complex edge cases)
3293
- 3. Exit for now
3294
-
3295
- Select option (1-3):</ask>
3296
-
3297
- </step>
3298
-
3299
- </workflow>
3300
- ]]></file>
3301
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md" type="md"><![CDATA[# Level 1 - Epic and Stories Generation
3302
-
3303
- <workflow>
3304
-
3305
- <critical>This generates epic and user stories for Level 1 projects after tech-spec completion</critical>
3306
- <critical>This is a lightweight story breakdown - not a full PRD</critical>
3307
- <critical>Level 1 = coherent feature, 1-10 stories (prefer 2-3), 1 epic</critical>
3308
- <critical>This workflow runs AFTER tech-spec.md has been completed</critical>
3309
- <critical>Story format MUST match create-story template for compatibility with story-context and dev-story workflows</critical>
3310
-
3311
- <step n="1" goal="Load tech spec and extract implementation tasks">
3312
-
3313
- <action>Read the completed tech-spec.md file from {output_folder}/tech-spec.md</action>
3314
- <action>Load bmm-workflow-status.yaml from {output_folder}/bmm-workflow-status.yaml (if exists)</action>
3315
- <action>Extract dev_ephemeral_location from config (where stories are stored)</action>
3316
-
3317
- <action>Extract from the ENHANCED tech-spec structure:
3318
-
3319
- - Overall feature goal from "The Change โ†’ Problem Statement" and "Proposed Solution"
3320
- - Implementation tasks from "Implementation Guide โ†’ Implementation Steps"
3321
- - Time estimates from "Implementation Guide โ†’ Implementation Steps"
3322
- - Dependencies from "Implementation Details โ†’ Integration Points" and "Development Context โ†’ Dependencies"
3323
- - Source tree from "Implementation Details โ†’ Source Tree Changes"
3324
- - Framework dependencies from "Development Context โ†’ Framework/Libraries"
3325
- - Existing code references from "Development Context โ†’ Relevant Existing Code"
3326
- - File paths from "Developer Resources โ†’ File Paths Reference"
3327
- - Key code locations from "Developer Resources โ†’ Key Code Locations"
3328
- - Testing locations from "Developer Resources โ†’ Testing Locations"
3329
- - Acceptance criteria from "Implementation Guide โ†’ Acceptance Criteria"
3330
- </action>
3331
-
3332
- </step>
3333
-
3334
- <step n="2" goal="Create single epic">
3335
-
3336
- <action>Create 1 epic that represents the entire feature</action>
3337
- <action>Epic title should be user-facing value statement</action>
3338
- <action>Epic goal should describe why this matters to users</action>
3339
-
3340
- <guidelines>
3341
- **Epic Best Practices:**
3342
- - Title format: User-focused outcome (not implementation detail)
3343
- - Good: "JS Library Icon Reliability"
3344
- - Bad: "Update recommendedLibraries.ts file"
3345
- - Scope: Clearly define what's included/excluded
3346
- - Success criteria: Measurable outcomes that define "done"
3347
- </guidelines>
3348
-
3349
- <example>
3350
- **Epic:** JS Library Icon Reliability
3351
-
3352
- **Goal:** Eliminate external dependencies for JS library icons to ensure consistent, reliable display and improve application performance.
3353
-
3354
- **Scope:** Migrate all 14 recommended JS library icons from third-party CDN URLs (GitHub, jsDelivr) to internal static asset hosting.
3355
-
3356
- **Success Criteria:**
3357
-
3358
- - All library icons load from internal paths
3359
- - Zero external requests for library icons
3360
- - Icons load 50-200ms faster than baseline
3361
- - No broken icons in production
3362
- </example>
3363
-
3364
- <action>Derive epic slug from epic title (kebab-case, 2-3 words max)</action>
3365
- <example>
3366
-
3367
- - "JS Library Icon Reliability" โ†’ "icon-reliability"
3368
- - "OAuth Integration" โ†’ "oauth-integration"
3369
- - "Admin Dashboard" โ†’ "admin-dashboard"
3370
- </example>
3371
-
3372
- <action>Initialize epics.md summary document using epics_template</action>
3373
-
3374
- <action>Also capture project_level for the epic template</action>
3375
-
3376
- <template-output file="{output_folder}/epics.md">project_level</template-output>
3377
- <template-output file="{output_folder}/epics.md">epic_title</template-output>
3378
- <template-output file="{output_folder}/epics.md">epic_slug</template-output>
3379
- <template-output file="{output_folder}/epics.md">epic_goal</template-output>
3380
- <template-output file="{output_folder}/epics.md">epic_scope</template-output>
3381
- <template-output file="{output_folder}/epics.md">epic_success_criteria</template-output>
3382
- <template-output file="{output_folder}/epics.md">epic_dependencies</template-output>
3383
-
3384
- </step>
3385
-
3386
- <step n="3" goal="Determine optimal story count">
3387
-
3388
- <critical>Level 1 should have 2-3 stories maximum - prefer longer stories over more stories</critical>
3389
-
3390
- <action>Analyze tech spec implementation tasks and time estimates</action>
3391
- <action>Group related tasks into logical story boundaries</action>
3392
-
3393
- <guidelines>
3394
- **Story Count Decision Matrix:**
3395
-
3396
- **2 Stories (preferred for most Level 1):**
3397
-
3398
- - Use when: Feature has clear build/verify split
3399
- - Example: Story 1 = Build feature, Story 2 = Test and deploy
3400
- - Typical points: 3-5 points per story
3401
-
3402
- **3 Stories (only if necessary):**
3403
-
3404
- - Use when: Feature has distinct setup, build, verify phases
3405
- - Example: Story 1 = Setup, Story 2 = Core implementation, Story 3 = Integration and testing
3406
- - Typical points: 2-3 points per story
3407
-
3408
- **Never exceed 3 stories for Level 1:**
3409
-
3410
- - If more needed, consider if project should be Level 2
3411
- - Better to have longer stories (5 points) than more stories (5x 1-point stories)
3412
- </guidelines>
3413
-
3414
- <action>Determine story_count = 2 or 3 based on tech spec complexity</action>
3415
-
3416
- </step>
3417
-
3418
- <step n="4" goal="Generate user stories from tech spec tasks">
3419
-
3420
- <action>For each story (2-3 total), generate separate story file</action>
3421
- <action>Story filename format: "story-{epic_slug}-{n}.md" where n = 1, 2, or 3</action>
3422
-
3423
- <guidelines>
3424
- **Story Generation Guidelines:**
3425
- - Each story = multiple implementation tasks from tech spec
3426
- - Story title format: User-focused deliverable (not implementation steps)
3427
- - Include technical acceptance criteria from tech spec tasks
3428
- - Link back to tech spec sections for implementation details
3429
-
3430
- **CRITICAL: Acceptance Criteria Must Be:**
3431
-
3432
- 1. **Numbered** - AC #1, AC #2, AC #3, etc.
3433
- 2. **Specific** - No vague statements like "works well" or "is fast"
3434
- 3. **Testable** - Can be verified objectively
3435
- 4. **Complete** - Covers all success conditions
3436
- 5. **Independent** - Each AC tests one thing
3437
- 6. **Format**: Use Given/When/Then when applicable
3438
-
3439
- **Good AC Examples:**
3440
- โœ… AC #1: Given a valid email address, when user submits the form, then the account is created and user receives a confirmation email within 30 seconds
3441
- โœ… AC #2: Given an invalid email format, when user submits, then form displays "Invalid email format" error message
3442
- โœ… AC #3: All unit tests in UserService.test.ts pass with 100% coverage
3443
-
3444
- **Bad AC Examples:**
3445
- โŒ "User can create account" (too vague)
3446
- โŒ "System performs well" (not measurable)
3447
- โŒ "Works correctly" (not specific)
3448
-
3449
- **Story Point Estimation:**
3450
-
3451
- - 1 point = < 1 day (2-4 hours)
3452
- - 2 points = 1-2 days
3453
- - 3 points = 2-3 days
3454
- - 5 points = 3-5 days
3455
-
3456
- **Level 1 Typical Totals:**
3457
-
3458
- - Total story points: 5-10 points
3459
- - 2 stories: 3-5 points each
3460
- - 3 stories: 2-3 points each
3461
- - If total > 15 points, consider if this should be Level 2
3462
-
3463
- **Story Structure (MUST match create-story format):**
3464
-
3465
- - Status: Draft
3466
- - Story: As a [role], I want [capability], so that [benefit]
3467
- - Acceptance Criteria: Numbered list from tech spec
3468
- - Tasks / Subtasks: Checkboxes mapped to tech spec tasks (AC: #n references)
3469
- - Dev Notes: Technical summary, project structure notes, references
3470
- - Dev Agent Record: Empty sections (tech-spec provides context)
3471
-
3472
- **NEW: Comprehensive Context Fields**
3473
-
3474
- Since tech-spec is context-rich, populate ALL template fields:
3475
-
3476
- - dependencies: Extract from tech-spec "Development Context โ†’ Dependencies" and "Integration Points"
3477
- - existing_code_references: Extract from "Development Context โ†’ Relevant Existing Code" and "Developer Resources โ†’ Key Code Locations"
3478
- </guidelines>
3479
-
3480
- <for-each story="1 to story_count">
3481
- <action>Set story_path_{n} = "{dev_ephemeral_location}/story-{epic_slug}-{n}.md"</action>
3482
- <action>Create story file from user_story_template with the following content:</action>
3483
-
3484
- <template-output file="{story_path_{n}}">
3485
- - story_title: User-focused deliverable title
3486
- - role: User role (e.g., developer, user, admin)
3487
- - capability: What they want to do
3488
- - benefit: Why it matters
3489
- - acceptance_criteria: Specific, measurable criteria from tech spec
3490
- - tasks_subtasks: Implementation tasks with AC references
3491
- - technical_summary: High-level approach, key decisions
3492
- - files_to_modify: List of files that will change (from tech-spec "Developer Resources โ†’ File Paths Reference")
3493
- - test_locations: Where tests will be added (from tech-spec "Developer Resources โ†’ Testing Locations")
3494
- - story_points: Estimated effort (1/2/3/5)
3495
- - time_estimate: Days/hours estimate
3496
- - dependencies: Internal/external dependencies (from tech-spec "Development Context" and "Integration Points")
3497
- - existing_code_references: Code to reference (from tech-spec "Development Context โ†’ Relevant Existing Code" and "Key Code Locations")
3498
- - architecture_references: Links to tech-spec.md sections
3499
- </template-output>
3500
- </for-each>
3501
-
3502
- <critical>Generate exactly {story_count} story files (2 or 3 based on Step 3 decision)</critical>
3503
-
3504
- </step>
3505
-
3506
- <step n="5" goal="Create story map and implementation sequence with dependency validation">
3507
-
3508
- <critical>Stories MUST be ordered so earlier stories don't depend on later ones</critical>
3509
- <critical>Each story must have CLEAR, TESTABLE acceptance criteria</critical>
3510
-
3511
- <action>Analyze dependencies between stories:
3512
-
3513
- **Dependency Rules:**
3514
-
3515
- 1. Infrastructure/setup โ†’ Feature implementation โ†’ Testing/polish
3516
- 2. Database changes โ†’ API changes โ†’ UI changes
3517
- 3. Backend services โ†’ Frontend components
3518
- 4. Core functionality โ†’ Enhancement features
3519
- 5. No story can depend on a later story!
3520
-
3521
- **Validate Story Sequence:**
3522
- For each story N, check:
3523
-
3524
- - Does it require anything from Story N+1, N+2, etc.? โŒ INVALID
3525
- - Does it only use things from Story 1...N-1? โœ… VALID
3526
- - Can it be implemented independently or using only prior stories? โœ… VALID
3527
-
3528
- If invalid dependencies found, REORDER stories!
3529
- </action>
3530
-
3531
- <action>Generate visual story map showing epic โ†’ stories hierarchy with dependencies</action>
3532
- <action>Calculate total story points across all stories</action>
3533
- <action>Estimate timeline based on total points (1-2 points per day typical)</action>
3534
- <action>Define implementation sequence with explicit dependency notes</action>
3535
-
3536
- <example>
3537
- ## Story Map
3538
-
3539
- ```
3540
- Epic: Icon Reliability
3541
- โ”œโ”€โ”€ Story 1: Build Icon Infrastructure (3 points)
3542
- โ”‚ Dependencies: None (foundational work)
3543
- โ”‚
3544
- โ””โ”€โ”€ Story 2: Test and Deploy Icons (2 points)
3545
- Dependencies: Story 1 (requires infrastructure)
3546
- ```
3547
-
3548
- **Total Story Points:** 5
3549
- **Estimated Timeline:** 1 sprint (1 week)
3550
-
3551
- ## Implementation Sequence
3552
-
3553
- 1. **Story 1** โ†’ Build icon infrastructure (setup, download, configure)
3554
- - Dependencies: None
3555
- - Deliverable: Icon files downloaded, organized, accessible
3556
-
3557
- 2. **Story 2** โ†’ Test and deploy (depends on Story 1)
3558
- - Dependencies: Story 1 must be complete
3559
- - Deliverable: Icons verified, tested, deployed to production
3560
-
3561
- **Dependency Validation:** โœ… Valid sequence - no forward dependencies
3562
- </example>
3563
-
3564
- <template-output file="{output_folder}/epics.md">story_summaries</template-output>
3565
- <template-output file="{output_folder}/epics.md">story_map</template-output>
3566
- <template-output file="{output_folder}/epics.md">total_points</template-output>
3567
- <template-output file="{output_folder}/epics.md">estimated_timeline</template-output>
3568
- <template-output file="{output_folder}/epics.md">implementation_sequence</template-output>
3569
-
3570
- </step>
3571
-
3572
- <step n="6" goal="Update status and populate story backlog">
3573
-
3574
- <invoke-workflow path="bmad/bmm/workflows/workflow-status">
3575
- <param>mode: update</param>
3576
- <param>action: complete_workflow</param>
3577
- <param>workflow_name: tech-spec</param>
3578
- <param>populate_stories_from: {epics_output_file}</param>
3579
- </invoke-workflow>
3580
-
3581
- <check if="success == true">
3582
- <output>โœ… Status updated! Loaded {{total_stories}} stories from epics.</output>
3583
- <output>Next: {{next_workflow}} ({{next_agent}} agent)</output>
3584
- </check>
3585
-
3586
- <check if="success == false">
3587
- <output>โš ๏ธ Status update failed: {{error}}</output>
3588
- </check>
3589
-
3590
- </step>
3591
-
3592
- <step n="7" goal="Auto-validate story quality and sequence">
3593
-
3594
- <critical>Auto-run validation - NOT optional!</critical>
3595
-
3596
- <action>Running automatic story validation...</action>
3597
-
3598
- <action>**Validate Story Sequence (CRITICAL):**
3599
-
3600
- For each story, check:
3601
-
3602
- 1. Does Story N depend on Story N+1 or later? โŒ FAIL - Reorder required!
3603
- 2. Are dependencies clearly documented? โœ… PASS
3604
- 3. Can stories be implemented in order 1โ†’2โ†’3? โœ… PASS
3605
-
3606
- If sequence validation FAILS:
3607
-
3608
- - Identify the problem dependencies
3609
- - Propose new ordering
3610
- - Ask user to confirm reordering
3611
- </action>
3612
-
3613
- <action>**Validate Acceptance Criteria Quality:**
3614
-
3615
- For each story's AC, check:
3616
-
3617
- 1. Is it numbered (AC #1, AC #2, etc.)? โœ… Required
3618
- 2. Is it specific and testable? โœ… Required
3619
- 3. Does it use Given/When/Then or equivalent? โœ… Recommended
3620
- 4. Are all success conditions covered? โœ… Required
3621
-
3622
- Count vague AC (contains "works", "good", "fast", "well"):
3623
-
3624
- - 0 vague AC: โœ… EXCELLENT
3625
- - 1-2 vague AC: โš ๏ธ WARNING - Should improve
3626
- - 3+ vague AC: โŒ FAIL - Must improve
3627
- </action>
3628
-
3629
- <action>**Validate Story Completeness:**
3630
-
3631
- 1. Do all stories map to tech spec tasks? โœ… Required
3632
- 2. Do story points align with tech spec estimates? โœ… Recommended
3633
- 3. Are dependencies clearly noted? โœ… Required
3634
- 4. Does each story have testable AC? โœ… Required
3635
- </action>
3636
-
3637
- <action>Generate validation report</action>
3638
-
3639
- <check if="sequence validation fails OR AC quality fails">
3640
- <output>โŒ **Story Validation Failed:**
3641
-
3642
- {{issues_found}}
3643
-
3644
- **Recommended Fixes:**
3645
- {{recommended_fixes}}
3646
-
3647
- Shall I fix these issues? (yes/no)</output>
3648
-
3649
- <ask>Apply fixes? (yes/no)</ask>
3650
-
3651
- <check if="yes">
3652
- <action>Apply fixes (reorder stories, rewrite vague AC, add missing details)</action>
3653
- <action>Re-validate</action>
3654
- <output>โœ… Validation passed after fixes!</output>
3655
- </check>
3656
- </check>
3657
-
3658
- <check if="validation passes">
3659
- <output>โœ… **Story Validation Passed!**
3660
-
3661
- **Sequence:** โœ… Valid (no forward dependencies)
3662
- **AC Quality:** โœ… All specific and testable
3663
- **Completeness:** โœ… All tech spec tasks covered
3664
- **Dependencies:** โœ… Clearly documented
3665
-
3666
- Stories are implementation-ready!</output>
3667
- </check>
3668
-
3669
- </step>
3670
-
3671
- <step n="8" goal="Finalize and provide user guidance">
3672
-
3673
- <action>Confirm all validation passed</action>
3674
- <action>Verify total story points align with tech spec time estimates</action>
3675
- <action>Confirm epic and stories are complete</action>
3676
-
3677
- **Level 1 Planning Complete!**
3678
-
3679
- **Epic:** {{epic_title}}
3680
- **Total Stories:** {{story_count}}
3681
- **Total Story Points:** {{total_points}}
3682
- **Estimated Timeline:** {{estimated_timeline}}
3683
-
3684
- **Generated Artifacts:**
3685
-
3686
- - `tech-spec.md` โ†’ Technical source of truth
3687
- - `epics.md` โ†’ Epic and story summary
3688
- - `story-{epic_slug}-1.md` โ†’ First story (ready for implementation)
3689
- - `story-{epic_slug}-2.md` โ†’ Second story
3690
- {{#if story_3}}
3691
- - `story-{epic_slug}-3.md` โ†’ Third story
3692
- {{/if}}
3693
-
3694
- **Story Location:** `{dev_ephemeral_location}/`
3695
-
3696
- **Next Steps - Iterative Implementation:**
3697
-
3698
- **๐ŸŽฏ RECOMMENDED - Direct to Development (Level 1):**
3699
-
3700
- Since the tech-spec is now CONTEXT-RICH with:
3701
-
3702
- - โœ… Brownfield codebase analysis (if applicable)
3703
- - โœ… Framework and library details with exact versions
3704
- - โœ… Existing patterns and code references
3705
- - โœ… Complete file paths and integration points
3706
- - โœ… Dependencies clearly mapped
3707
-
3708
- **You can skip story-context for most Level 1 stories!**
3709
-
3710
- **1. Start with Story 1:**
3711
- a. Load DEV agent: `bmad/bmm/agents/dev.md`
3712
- b. Run `dev-story` workflow (select story-{epic_slug}-1.md)
3713
- c. Tech-spec provides all context needed
3714
- d. Implement story 1
3715
-
3716
- **2. After Story 1 Complete:**
3717
-
3718
- - Repeat for story-{epic_slug}-2.md
3719
- - Reference completed story 1 in your work
3720
-
3721
- **3. After Story 2 Complete:**
3722
- {{#if story_3}}
3723
-
3724
- - Repeat for story-{epic_slug}-3.md
3725
- {{/if}}
3726
- - Level 1 feature complete!
3727
-
3728
- **Option B - Generate Additional Context (optional):**
3729
-
3730
- Only needed for extremely complex multi-story dependencies:
3731
-
3732
- 1. Load SM agent: `bmad/bmm/agents/sm.md`
3733
- 2. Run `story-context` workflow for complex stories
3734
- 3. Then load DEV agent and run `dev-story`
3735
-
3736
- **Progress Tracking:**
3737
-
3738
- - All decisions logged in: `bmm-workflow-status.yaml`
3739
- - Next action clearly identified
3740
-
3741
- <ask>Ready to proceed? Choose your path:
3742
-
3743
- 1. Go directly to dev-story for story 1 (RECOMMENDED - tech-spec has all context)
3744
- 2. Generate additional story context first (for complex dependencies)
3745
- 3. Exit for now
3746
-
3747
- Select option (1-3):</ask>
3748
-
3749
- </step>
3750
-
3751
- </workflow>
3752
- ]]></file>
3753
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md" type="md"><![CDATA[# {{project_name}} - Technical Specification
3754
-
3755
- **Author:** {{user_name}}
3756
- **Date:** {{date}}
3757
- **Project Level:** {{project_level}}
3758
- **Change Type:** {{change_type}}
3759
- **Development Context:** {{development_context}}
3760
-
3761
- ---
3762
-
3763
- ## Context
3764
-
3765
- ### Available Documents
3766
-
3767
- {{loaded_documents_summary}}
3768
-
3769
- ### Project Stack
3770
-
3771
- {{project_stack_summary}}
3772
-
3773
- ### Existing Codebase Structure
3774
-
3775
- {{existing_structure_summary}}
3776
-
3777
- ---
3778
-
3779
- ## The Change
3780
-
3781
- ### Problem Statement
3782
-
3783
- {{problem_statement}}
3784
-
3785
- ### Proposed Solution
3786
-
3787
- {{solution_overview}}
3788
-
3789
- ### Scope
3790
-
3791
- **In Scope:**
3792
-
3793
- {{scope_in}}
3794
-
3795
- **Out of Scope:**
3796
-
3797
- {{scope_out}}
3798
-
3799
- ---
3800
-
3801
- ## Implementation Details
3802
-
3803
- ### Source Tree Changes
3804
-
3805
- {{source_tree_changes}}
3806
-
3807
- ### Technical Approach
3808
-
3809
- {{technical_approach}}
3810
-
3811
- ### Existing Patterns to Follow
3812
-
3813
- {{existing_patterns}}
3814
-
3815
- ### Integration Points
3816
-
3817
- {{integration_points}}
3818
-
3819
- ---
3820
-
3821
- ## Development Context
3822
-
3823
- ### Relevant Existing Code
3824
-
3825
- {{existing_code_references}}
3826
-
3827
- ### Dependencies
3828
-
3829
- **Framework/Libraries:**
3830
-
3831
- {{framework_dependencies}}
3832
-
3833
- **Internal Modules:**
3834
-
3835
- {{internal_dependencies}}
3836
-
3837
- ### Configuration Changes
3838
-
3839
- {{configuration_changes}}
3840
-
3841
- ### Existing Conventions (Brownfield)
3842
-
3843
- {{existing_conventions}}
3844
-
3845
- ### Test Framework & Standards
3846
-
3847
- {{test_framework_info}}
3848
-
3849
- ---
3850
-
3851
- ## Implementation Stack
3852
-
3853
- {{implementation_stack}}
3854
-
3855
- ---
3856
-
3857
- ## Technical Details
3858
-
3859
- {{technical_details}}
3860
-
3861
- ---
3862
-
3863
- ## Development Setup
3864
-
3865
- {{development_setup}}
3866
-
3867
- ---
3868
-
3869
- ## Implementation Guide
3870
-
3871
- ### Setup Steps
3872
-
3873
- {{setup_steps}}
3874
-
3875
- ### Implementation Steps
3876
-
3877
- {{implementation_steps}}
3878
-
3879
- ### Testing Strategy
3880
-
3881
- {{testing_strategy}}
3882
-
3883
- ### Acceptance Criteria
3884
-
3885
- {{acceptance_criteria}}
3886
-
3887
- ---
3888
-
3889
- ## Developer Resources
3890
-
3891
- ### File Paths Reference
3892
-
3893
- {{file_paths_complete}}
3894
-
3895
- ### Key Code Locations
3896
-
3897
- {{key_code_locations}}
3898
-
3899
- ### Testing Locations
3900
-
3901
- {{testing_locations}}
3902
-
3903
- ### Documentation to Update
3904
-
3905
- {{documentation_updates}}
3906
-
3907
- ---
3908
-
3909
- ## UX/UI Considerations
3910
-
3911
- {{ux_ui_considerations}}
3912
-
3913
- ---
3914
-
3915
- ## Testing Approach
3916
-
3917
- {{testing_approach}}
3918
-
3919
- ---
3920
-
3921
- ## Deployment Strategy
3922
-
3923
- ### Deployment Steps
3924
-
3925
- {{deployment_steps}}
3926
-
3927
- ### Rollback Plan
3928
-
3929
- {{rollback_plan}}
3930
-
3931
- ### Monitoring
3932
-
3933
- {{monitoring_approach}}
3934
- ]]></file>
3935
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md" type="md"><![CDATA[# Story {{N}}.{{M}}: {{story_title}}
3936
-
3937
- **Status:** Draft
3938
-
3939
- ---
3940
-
3941
- ## User Story
3942
-
3943
- As a {{user_type}},
3944
- I want {{capability}},
3945
- So that {{value_benefit}}.
3946
-
3947
- ---
3948
-
3949
- ## Acceptance Criteria
3950
-
3951
- **Given** {{precondition}}
3952
- **When** {{action}}
3953
- **Then** {{expected_outcome}}
3954
-
3955
- **And** {{additional_criteria}}
3956
-
3957
- ---
3958
-
3959
- ## Implementation Details
3960
-
3961
- ### Tasks / Subtasks
3962
-
3963
- {{tasks_subtasks}}
3964
-
3965
- ### Technical Summary
3966
-
3967
- {{technical_summary}}
3968
-
3969
- ### Project Structure Notes
3970
-
3971
- - **Files to modify:** {{files_to_modify}}
3972
- - **Expected test locations:** {{test_locations}}
3973
- - **Estimated effort:** {{story_points}} story points ({{time_estimate}})
3974
- - **Prerequisites:** {{dependencies}}
3975
-
3976
- ### Key Code References
3977
-
3978
- {{existing_code_references}}
3979
-
3980
- ---
3981
-
3982
- ## Context References
3983
-
3984
- **Tech-Spec:** [tech-spec.md](../tech-spec.md) - Primary context document containing:
3985
-
3986
- - Brownfield codebase analysis (if applicable)
3987
- - Framework and library details with versions
3988
- - Existing patterns to follow
3989
- - Integration points and dependencies
3990
- - Complete implementation guidance
3991
-
3992
- **Architecture:** {{architecture_references}}
3993
-
3994
- <!-- Additional context XML paths will be added here if story-context workflow is run -->
3995
-
3996
- ---
3997
-
3998
- ## Dev Agent Record
3999
-
4000
- ### Agent Model Used
4001
-
4002
- <!-- Will be populated during dev-story execution -->
4003
-
4004
- ### Debug Log References
4005
-
4006
- <!-- Will be populated during dev-story execution -->
4007
-
4008
- ### Completion Notes
4009
-
4010
- <!-- Will be populated during dev-story execution -->
4011
-
4012
- ### Files Modified
4013
-
4014
- <!-- Will be populated during dev-story execution -->
4015
-
4016
- ### Test Results
4017
-
4018
- <!-- Will be populated during dev-story execution -->
4019
-
4020
- ---
4021
-
4022
- ## Review Notes
4023
-
4024
- <!-- Will be populated during code review -->
4025
- ]]></file>
4026
- <file id="bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md" type="md"><![CDATA[# {{project_name}} - Epic Breakdown
4027
-
4028
- **Date:** {{date}}
4029
- **Project Level:** {{project_level}}
4030
-
4031
- ---
4032
-
4033
- <!-- Repeat for each epic (N = 1, 2, 3...) -->
4034
-
4035
- ## Epic {{N}}: {{epic_title_N}}
4036
-
4037
- **Slug:** {{epic_slug_N}}
4038
-
4039
- ### Goal
4040
-
4041
- {{epic_goal_N}}
4042
-
4043
- ### Scope
4044
-
4045
- {{epic_scope_N}}
4046
-
4047
- ### Success Criteria
4048
-
4049
- {{epic_success_criteria_N}}
4050
-
4051
- ### Dependencies
4052
-
4053
- {{epic_dependencies_N}}
4054
-
4055
- ---
4056
-
4057
- ## Story Map - Epic {{N}}
4058
-
4059
- {{story_map_N}}
4060
-
4061
- ---
4062
-
4063
- ## Stories - Epic {{N}}
4064
-
4065
- <!-- Repeat for each story (M = 1, 2, 3...) within epic N -->
4066
-
4067
- ### Story {{N}}.{{M}}: {{story_title_N_M}}
4068
-
4069
- As a {{user_type}},
4070
- I want {{capability}},
4071
- So that {{value_benefit}}.
4072
-
4073
- **Acceptance Criteria:**
4074
-
4075
- **Given** {{precondition}}
4076
- **When** {{action}}
4077
- **Then** {{expected_outcome}}
4078
-
4079
- **And** {{additional_criteria}}
4080
-
4081
- **Prerequisites:** {{dependencies_on_previous_stories}}
4082
-
4083
- **Technical Notes:** {{implementation_guidance}}
4084
-
4085
- **Estimated Effort:** {{story_points}} points ({{time_estimate}})
4086
-
4087
- <!-- End story repeat -->
4088
-
4089
- ---
4090
-
4091
- ## Implementation Timeline - Epic {{N}}
4092
-
4093
- **Total Story Points:** {{total_points_N}}
4094
-
4095
- **Estimated Timeline:** {{estimated_timeline_N}}
4096
-
4097
- ---
4098
-
4099
- <!-- End epic repeat -->
4100
-
4101
- ---
4102
-
4103
- ## Tech-Spec Reference
4104
-
4105
- See [tech-spec.md](../tech-spec.md) for complete technical implementation details.
4106
- ]]></file>
4107
- <file id="bmad/core/workflows/party-mode/workflow.yaml" type="yaml"><![CDATA[name: party-mode
4108
- description: >-
4109
- Orchestrates group discussions between all installed BMAD agents, enabling
4110
- natural multi-agent conversations
4111
- author: BMad
4112
- instructions: bmad/core/workflows/party-mode/instructions.md
4113
- agent_manifest: bmad/_cfg/agent-manifest.csv
4114
- web_bundle_files:
4115
- - 'bmad/core/workflows/party-mode/workflow.xml'
4116
- ]]></file>
4117
- <file id="bmad/_cfg/agent-manifest.csv" type="text"><![CDATA[name,displayName,title,icon,role,identity,communicationStyle,principles,module,path
4118
- "analyst","Mary","Business Analyst","๐Ÿ“Š","Strategic Business Analyst + Requirements Expert","Senior analyst with deep expertise in market research, competitive analysis, and requirements elicitation. Specializes in translating vague needs into actionable specs.","Systematic and probing. Connects dots others miss. Structures findings hierarchically. Uses precise unambiguous language. Ensures all stakeholder voices heard.","Every business challenge has root causes waiting to be discovered. Ground findings in verifiable evidence. Articulate requirements with absolute precision.","bmm","bmad/bmm/agents/analyst.md"
4119
- "architect","Winston","Architect","๐Ÿ—๏ธ","System Architect + Technical Design Leader","Senior architect with expertise in distributed systems, cloud infrastructure, and API design. Specializes in scalable patterns and technology selection.","Pragmatic in technical discussions. Balances idealism with reality. Always connects decisions to business value and user impact. Prefers boring tech that works.","User journeys drive technical decisions. Embrace boring technology for stability. Design simple solutions that scale when needed. Developer productivity is architecture.","bmm","bmad/bmm/agents/architect.md"
4120
- "dev","Amelia","Developer Agent","๐Ÿ’ป","Senior Implementation Engineer","Executes approved stories with strict adherence to acceptance criteria, using Story Context XML and existing code to minimize rework and hallucinations.","Succinct and checklist-driven. Cites specific paths and AC IDs. Asks clarifying questions only when inputs missing. Refuses to invent when info lacking.","Story Context XML is the single source of truth. Reuse existing interfaces over rebuilding. Every change maps to specific AC. Tests pass 100% or story isn't done.","bmm","bmad/bmm/agents/dev.md"
4121
- "pm","John","Product Manager","๐Ÿ“‹","Investigative Product Strategist + Market-Savvy PM","Product management veteran with 8+ years launching B2B and consumer products. Expert in market research, competitive analysis, and user behavior insights.","Direct and analytical. Asks WHY relentlessly. Backs claims with data and user insights. Cuts straight to what matters for the product.","Uncover the deeper WHY behind every requirement. Ruthless prioritization to achieve MVP goals. Proactively identify risks. Align efforts with measurable business impact.","bmm","bmad/bmm/agents/pm.md"
4122
- "sm","Bob","Scrum Master","๐Ÿƒ","Technical Scrum Master + Story Preparation Specialist","Certified Scrum Master with deep technical background. Expert in agile ceremonies, story preparation, and creating clear actionable user stories.","Task-oriented and efficient. Focused on clear handoffs and precise requirements. Eliminates ambiguity. Emphasizes developer-ready specs.","Strict boundaries between story prep and implementation. Stories are single source of truth. Perfect alignment between PRD and dev execution. Enable efficient sprints.","bmm","bmad/bmm/agents/sm.md"
4123
- "tea","Murat","Master Test Architect","๐Ÿงช","Master Test Architect","Test architect specializing in CI/CD, automated frameworks, and scalable quality gates.","Data-driven and pragmatic. Strong opinions weakly held. Calculates risk vs value. Knows when to test deep vs shallow.","Risk-based testing. Depth scales with impact. Quality gates backed by data. Tests mirror usage. Flakiness is critical debt. Tests first AI implements suite validates.","bmm","bmad/bmm/agents/tea.md"
4124
- "tech-writer","Paige","Technical Writer","๐Ÿ“š","Technical Documentation Specialist + Knowledge Curator","Experienced technical writer expert in CommonMark, DITA, OpenAPI. Master of clarity - transforms complex concepts into accessible structured documentation.","Patient and supportive. Uses clear examples and analogies. Knows when to simplify vs when to be detailed. Celebrates good docs helps improve unclear ones.","Documentation is teaching. Every doc helps someone accomplish a task. Clarity above all. Docs are living artifacts that evolve with code.","bmm","bmad/bmm/agents/tech-writer.md"
4125
- "ux-designer","Sally","UX Designer","๐ŸŽจ","User Experience Designer + UI Specialist","Senior UX Designer with 7+ years creating intuitive experiences across web and mobile. Expert in user research, interaction design, AI-assisted tools.","Empathetic and user-focused. Uses storytelling for design decisions. Data-informed but creative. Advocates strongly for user needs and edge cases.","Every decision serves genuine user needs. Start simple evolve through feedback. Balance empathy with edge case attention. AI tools accelerate human-centered design.","bmm","bmad/bmm/agents/ux-designer.md"
4126
- "brainstorming-coach","Carson","Elite Brainstorming Specialist","๐Ÿง ","Master Brainstorming Facilitator + Innovation Catalyst","Elite facilitator with 20+ years leading breakthrough sessions. Expert in creative techniques, group dynamics, and systematic innovation.","Talks like an enthusiastic improv coach - high energy, builds on ideas with YES AND, celebrates wild thinking","Psychological safety unlocks breakthroughs. Wild ideas today become innovations tomorrow. Humor and play are serious innovation tools.","cis","bmad/cis/agents/brainstorming-coach.md"
4127
- "creative-problem-solver","Dr. Quinn","Master Problem Solver","๐Ÿ”ฌ","Systematic Problem-Solving Expert + Solutions Architect","Renowned problem-solver who cracks impossible challenges. Expert in TRIZ, Theory of Constraints, Systems Thinking. Former aerospace engineer turned puzzle master.","Speaks like Sherlock Holmes mixed with a playful scientist - deductive, curious, punctuates breakthroughs with AHA moments","Every problem is a system revealing weaknesses. Hunt for root causes relentlessly. The right question beats a fast answer.","cis","bmad/cis/agents/creative-problem-solver.md"
4128
- "design-thinking-coach","Maya","Design Thinking Maestro","๐ŸŽจ","Human-Centered Design Expert + Empathy Architect","Design thinking virtuoso with 15+ years at Fortune 500s and startups. Expert in empathy mapping, prototyping, and user insights.","Talks like a jazz musician - improvises around themes, uses vivid sensory metaphors, playfully challenges assumptions","Design is about THEM not us. Validate through real human interaction. Failure is feedback. Design WITH users not FOR them.","cis","bmad/cis/agents/design-thinking-coach.md"
4129
- "innovation-strategist","Victor","Disruptive Innovation Oracle","โšก","Business Model Innovator + Strategic Disruption Expert","Legendary strategist who architected billion-dollar pivots. Expert in Jobs-to-be-Done, Blue Ocean Strategy. Former McKinsey consultant.","Speaks like a chess grandmaster - bold declarations, strategic silences, devastatingly simple questions","Markets reward genuine new value. Innovation without business model thinking is theater. Incremental thinking means obsolete.","cis","bmad/cis/agents/innovation-strategist.md"
4130
- "storyteller","Sophia","Master Storyteller","๐Ÿ“–","Expert Storytelling Guide + Narrative Strategist","Master storyteller with 50+ years across journalism, screenwriting, and brand narratives. Expert in emotional psychology and audience engagement.","Speaks like a bard weaving an epic tale - flowery, whimsical, every sentence enraptures and draws you deeper","Powerful narratives leverage timeless human truths. Find the authentic story. Make the abstract concrete through vivid details.","cis","bmad/cis/agents/storyteller.md"
4131
- "renaissance-polymath","Leonardo di ser Piero","Renaissance Polymath","๐ŸŽจ","Universal Genius + Interdisciplinary Innovator","The original Renaissance man - painter, inventor, scientist, anatomist. Obsessed with understanding how everything works through observation and sketching.","Talks while sketching imaginary diagrams in the air - describes everything visually, connects art to science to nature","Observe everything relentlessly. Art and science are one. Nature is the greatest teacher. Question all assumptions.","cis",""
4132
- "surrealist-provocateur","Salvador Dali","Surrealist Provocateur","๐ŸŽญ","Master of the Subconscious + Visual Revolutionary","Flamboyant surrealist who painted dreams. Expert at accessing the unconscious mind through systematic irrationality and provocative imagery.","Speaks with theatrical flair and absurdist metaphors - proclaims grandiose statements, references melting clocks and impossible imagery","Embrace the irrational to access truth. The subconscious holds answers logic cannot reach. Provoke to inspire.","cis",""
4133
- "lateral-thinker","Edward de Bono","Lateral Thinking Pioneer","๐Ÿงฉ","Creator of Creative Thinking Tools","Inventor of lateral thinking and Six Thinking Hats methodology. Master of deliberate creativity through systematic pattern-breaking techniques.","Talks in structured thinking frameworks - uses colored hat metaphors, proposes deliberate provocations, breaks patterns methodically","Logic gets you from A to B. Creativity gets you everywhere else. Use tools to escape habitual thinking patterns.","cis",""
4134
- "mythic-storyteller","Joseph Campbell","Mythic Storyteller","๐ŸŒŸ","Master of the Hero's Journey + Archetypal Wisdom","Scholar who decoded the universal story patterns across all cultures. Expert in mythology, comparative religion, and archetypal narratives.","Speaks in mythological metaphors and archetypal patterns - EVERY story is a hero's journey, references ancient wisdom","Follow your bliss. All stories share the monomyth. Myths reveal universal human truths. The call to adventure is irresistible.","cis",""
4135
- "combinatorial-genius","Steve Jobs","Combinatorial Genius","๐ŸŽ","Master of Intersection Thinking + Taste Curator","Legendary innovator who connected technology with liberal arts. Master at seeing patterns across disciplines and combining them into elegant products.","Talks in reality distortion field mode - insanely great, magical, revolutionary, makes impossible seem inevitable","Innovation happens at intersections. Taste is about saying NO to 1000 things. Stay hungry stay foolish. Simplicity is sophistication.","cis",""
4136
- ]]></file>
4137
- </agent-bundle>