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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/.github/workflows/bundle-latest.yaml +79 -27
  2. package/CHANGELOG.md +159 -1
  3. package/README.md +3 -1
  4. package/custom/src/agents/commit-poet/commit-poet.agent.yaml +129 -0
  5. package/custom/src/agents/commit-poet/installation-guide.md +36 -0
  6. package/custom/src/agents/toolsmith/installation-guide.md +36 -0
  7. package/custom/src/agents/toolsmith/toolsmith-sidecar/instructions.md +70 -0
  8. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +111 -0
  9. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +70 -0
  10. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +114 -0
  11. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +134 -0
  12. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +161 -0
  13. package/custom/src/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +103 -0
  14. package/custom/src/agents/toolsmith/toolsmith-sidecar/memories.md +17 -0
  15. package/custom/src/agents/toolsmith/toolsmith.agent.yaml +108 -0
  16. package/docs/custom-agent-installation.md +31 -17
  17. package/docs/ide-info/rovo-dev.md +388 -0
  18. package/docs/index.md +6 -81
  19. package/docs/installers-bundlers/installers-modules-platforms-reference.md +1 -1
  20. package/package.json +1 -1
  21. package/src/core/agents/bmad-master.agent.yaml +1 -1
  22. package/src/core/agents/bmad-web-orchestrator.agent.xml +1 -1
  23. package/src/core/tasks/advanced-elicitation-methods.csv +51 -21
  24. package/src/core/tasks/advanced-elicitation.xml +18 -8
  25. package/src/core/tasks/workflow.xml +36 -71
  26. package/src/core/workflows/brainstorming/brain-methods.csv +62 -36
  27. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +196 -0
  28. package/src/core/workflows/brainstorming/steps/step-01b-continue.md +121 -0
  29. package/src/core/workflows/brainstorming/steps/step-02a-user-selected.md +224 -0
  30. package/src/core/workflows/brainstorming/steps/step-02b-ai-recommended.md +236 -0
  31. package/src/core/workflows/brainstorming/steps/step-02c-random-selection.md +208 -0
  32. package/src/core/workflows/brainstorming/steps/step-02d-progressive-flow.md +263 -0
  33. package/src/core/workflows/brainstorming/steps/step-03-technique-execution.md +339 -0
  34. package/src/core/workflows/brainstorming/steps/step-04-idea-organization.md +302 -0
  35. package/src/core/workflows/brainstorming/template.md +13 -104
  36. package/src/core/workflows/brainstorming/workflow.md +51 -0
  37. package/src/core/workflows/party-mode/steps/step-01-agent-loading.md +138 -0
  38. package/src/core/workflows/party-mode/steps/step-02-discussion-orchestration.md +203 -0
  39. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +159 -0
  40. package/src/core/workflows/party-mode/workflow.md +207 -0
  41. package/src/modules/bmb/README.md +153 -86
  42. package/src/modules/bmb/_module-installer/install-config.yaml +3 -3
  43. package/src/modules/bmb/agents/bmad-builder.agent.yaml +45 -31
  44. package/src/modules/bmb/docs/{agent-menu-patterns.md → agents/agent-menu-patterns.md} +1 -1
  45. package/src/modules/bmb/docs/agents/kb.csv +0 -0
  46. package/src/modules/bmb/docs/{module-agent-architecture.md → agents/module-agent-architecture.md} +1 -1
  47. package/src/modules/bmb/docs/{simple-agent-architecture.md → agents/simple-agent-architecture.md} +1 -1
  48. package/src/modules/bmb/docs/workflows/architecture.md +220 -0
  49. package/src/modules/bmb/docs/workflows/common-workflow-tools.csv +19 -0
  50. package/src/modules/bmb/docs/workflows/csv-data-file-standards.md +206 -0
  51. package/src/modules/bmb/docs/workflows/index.md +45 -0
  52. package/src/modules/bmb/docs/workflows/intent-vs-prescriptive-spectrum.md +220 -0
  53. package/src/modules/bmb/docs/workflows/kb.csv +0 -0
  54. package/src/modules/bmb/docs/workflows/step-template.md +283 -0
  55. package/src/modules/bmb/docs/workflows/terms.md +97 -0
  56. package/src/modules/bmb/docs/workflows/workflow-template.md +152 -0
  57. package/src/modules/bmb/reference/agents/module-examples/README.md +1 -1
  58. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +2 -2
  59. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +1 -1
  60. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  61. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  62. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  63. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  64. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  65. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  66. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  67. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  68. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  69. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  70. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  71. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  72. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  73. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  74. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  75. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  76. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  77. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +17 -0
  78. package/src/modules/bmb/workflows/create-agent/data/reference/README.md +3 -0
  79. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +242 -0
  80. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/breakthroughs.md +24 -0
  81. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/instructions.md +108 -0
  82. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/memories.md +46 -0
  83. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper-sidecar/mood-patterns.md +39 -0
  84. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +152 -0
  85. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/README.md +50 -0
  86. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/security-engineer.agent.yaml +53 -0
  87. package/src/modules/bmb/workflows/create-agent/data/reference/agents/module-examples/trend-analyst.agent.yaml +57 -0
  88. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/README.md +223 -0
  89. package/src/modules/bmb/workflows/create-agent/data/reference/agents/simple-examples/commit-poet.agent.yaml +126 -0
  90. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/dietary-restrictions.csv +18 -0
  91. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/macro-calculator.csv +16 -0
  92. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/data/recipe-database.csv +28 -0
  93. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +177 -0
  94. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +150 -0
  95. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +164 -0
  96. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +152 -0
  97. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +182 -0
  98. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +167 -0
  99. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +194 -0
  100. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/assessment-section.md +25 -0
  101. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/nutrition-plan.md +68 -0
  102. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/prep-schedule-section.md +29 -0
  103. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/profile-section.md +47 -0
  104. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/shopping-section.md +37 -0
  105. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/templates/strategy-section.md +18 -0
  106. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/workflow.md +58 -0
  107. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +305 -0
  108. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +145 -0
  109. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +210 -0
  110. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +260 -0
  111. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +237 -0
  112. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +231 -0
  113. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +224 -0
  114. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +234 -0
  115. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +179 -0
  116. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +197 -0
  117. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +180 -0
  118. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +222 -0
  119. package/src/modules/bmb/workflows/create-agent/templates/agent_commands.md +21 -0
  120. package/src/modules/bmb/workflows/create-agent/templates/agent_persona.md +25 -0
  121. package/src/modules/bmb/workflows/create-agent/templates/agent_purpose_and_type.md +23 -0
  122. package/src/modules/bmb/workflows/create-agent/workflow.md +91 -0
  123. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +168 -0
  124. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +233 -0
  125. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-overview.md +127 -0
  126. package/src/modules/bmb/workflows/create-workflow/steps/step-04-core-tools.md +145 -0
  127. package/src/modules/bmb/workflows/create-workflow/steps/step-05-memory-requirements.md +136 -0
  128. package/src/modules/bmb/workflows/create-workflow/steps/step-06-external-tools.md +154 -0
  129. package/src/modules/bmb/workflows/create-workflow/steps/step-07-installation-guidance.md +159 -0
  130. package/src/modules/bmb/workflows/create-workflow/steps/step-08-tools-summary.md +167 -0
  131. package/src/modules/bmb/workflows/create-workflow/steps/step-09-design.md +239 -0
  132. package/src/modules/bmb/workflows/create-workflow/steps/step-10-plan-review.md +215 -0
  133. package/src/modules/bmb/workflows/create-workflow/steps/step-11-build.md +262 -0
  134. package/src/modules/bmb/workflows/create-workflow/steps/step-12-review.md +270 -0
  135. package/src/modules/bmb/workflows/create-workflow/templates/build-summary.md +36 -0
  136. package/src/modules/bmb/workflows/create-workflow/templates/completion-section.md +39 -0
  137. package/src/modules/bmb/workflows/create-workflow/templates/content-template.md +21 -0
  138. package/src/modules/bmb/workflows/create-workflow/templates/design-section.md +53 -0
  139. package/src/modules/bmb/workflows/create-workflow/templates/project-info.md +18 -0
  140. package/src/modules/bmb/workflows/create-workflow/templates/requirements-section.md +47 -0
  141. package/src/modules/bmb/workflows/create-workflow/templates/review-section.md +56 -0
  142. package/src/modules/bmb/workflows/create-workflow/templates/step-file.md +139 -0
  143. package/src/modules/bmb/workflows/create-workflow/templates/workflow-plan.md +54 -0
  144. package/src/modules/bmb/workflows/create-workflow/templates/workflow.md +58 -0
  145. package/src/modules/bmb/workflows/create-workflow/workflow.md +58 -0
  146. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +134 -0
  147. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +202 -0
  148. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +157 -0
  149. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +150 -0
  150. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +150 -0
  151. package/src/modules/bmb/workflows/edit-agent/workflow.md +58 -0
  152. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +221 -0
  153. package/src/modules/bmb/workflows/edit-workflow/steps/step-02-discover.md +253 -0
  154. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +217 -0
  155. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +193 -0
  156. package/src/modules/bmb/workflows/edit-workflow/steps/step-05-compliance-check.md +245 -0
  157. package/src/modules/bmb/workflows/edit-workflow/templates/completion-summary.md +75 -0
  158. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-goals.md +68 -0
  159. package/src/modules/bmb/workflows/edit-workflow/templates/improvement-log.md +40 -0
  160. package/src/modules/bmb/workflows/edit-workflow/templates/validation-results.md +51 -0
  161. package/src/modules/bmb/workflows/edit-workflow/templates/workflow-analysis.md +56 -0
  162. package/src/modules/bmb/workflows/edit-workflow/workflow.md +58 -0
  163. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +152 -0
  164. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +243 -0
  165. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +274 -0
  166. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +295 -0
  167. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +264 -0
  168. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +360 -0
  169. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +258 -0
  170. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +301 -0
  171. package/src/modules/bmb/workflows/workflow-compliance-check/templates/compliance-report.md +140 -0
  172. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +58 -0
  173. package/src/modules/bmgd/agents/game-architect.agent.yaml +1 -1
  174. package/src/modules/bmgd/agents/game-designer.agent.yaml +1 -1
  175. package/src/modules/bmgd/agents/game-dev.agent.yaml +1 -1
  176. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +1 -1
  177. package/src/modules/bmm/_module-installer/install-config.yaml +9 -15
  178. package/src/modules/bmm/agents/analyst.agent.yaml +14 -14
  179. package/src/modules/bmm/agents/architect.agent.yaml +12 -10
  180. package/src/modules/bmm/agents/dev.agent.yaml +20 -16
  181. package/src/modules/bmm/agents/pm.agent.yaml +13 -31
  182. package/src/modules/bmm/agents/quick-flow-solo-dev.agent.yaml +36 -0
  183. package/src/modules/bmm/agents/sm.agent.yaml +13 -31
  184. package/src/modules/bmm/agents/tea.agent.yaml +10 -7
  185. package/src/modules/bmm/agents/tech-writer.agent.yaml +7 -20
  186. package/src/modules/bmm/agents/ux-designer.agent.yaml +12 -10
  187. package/src/modules/bmm/data/README.md +29 -0
  188. package/src/modules/bmm/data/project-context-template.md +40 -0
  189. package/src/modules/bmm/docs/README.md +21 -9
  190. package/src/modules/bmm/docs/agents-guide.md +69 -23
  191. package/src/modules/bmm/docs/bmad-quick-flow.md +528 -0
  192. package/src/modules/bmm/docs/brownfield-guide.md +9 -10
  193. package/src/modules/bmm/docs/enterprise-agentic-development.md +1 -1
  194. package/src/modules/bmm/docs/glossary.md +5 -5
  195. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +909 -1654
  196. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +2 -2
  197. package/src/modules/bmm/docs/quick-flow-solo-dev.md +337 -0
  198. package/src/modules/bmm/docs/scale-adaptive-system.md +5 -5
  199. package/src/modules/bmm/docs/test-architecture.md +84 -18
  200. package/src/modules/bmm/docs/workflows-analysis.md +36 -140
  201. package/src/modules/bmm/docs/workflows-implementation.md +32 -157
  202. package/src/modules/bmm/docs/workflows-planning.md +51 -212
  203. package/src/modules/bmm/docs/workflows-solutioning.md +24 -69
  204. package/src/modules/bmm/teams/default-party.csv +15 -14
  205. package/src/modules/bmm/teams/team-fullstack.yaml +0 -1
  206. package/src/modules/bmm/testarch/knowledge/api-request.md +303 -0
  207. package/src/modules/bmm/testarch/knowledge/auth-session.md +356 -0
  208. package/src/modules/bmm/testarch/knowledge/burn-in.md +273 -0
  209. package/src/modules/bmm/testarch/knowledge/file-utils.md +260 -0
  210. package/src/modules/bmm/testarch/knowledge/fixtures-composition.md +382 -0
  211. package/src/modules/bmm/testarch/knowledge/intercept-network-call.md +280 -0
  212. package/src/modules/bmm/testarch/knowledge/log.md +294 -0
  213. package/src/modules/bmm/testarch/knowledge/network-error-monitor.md +272 -0
  214. package/src/modules/bmm/testarch/knowledge/network-recorder.md +265 -0
  215. package/src/modules/bmm/testarch/knowledge/overview.md +284 -0
  216. package/src/modules/bmm/testarch/knowledge/recurse.md +296 -0
  217. package/src/modules/bmm/testarch/tea-index.csv +11 -0
  218. package/src/modules/bmm/workflows/1-analysis/product-brief/product-brief.template.md +8 -0
  219. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01-init.md +192 -0
  220. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-01b-continue.md +167 -0
  221. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +203 -0
  222. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +206 -0
  223. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +209 -0
  224. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +223 -0
  225. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-06-complete.md +199 -0
  226. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +58 -0
  227. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +136 -0
  228. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +228 -0
  229. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +237 -0
  230. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +205 -0
  231. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +233 -0
  232. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +443 -0
  233. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +182 -0
  234. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +235 -0
  235. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +198 -0
  236. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +247 -0
  237. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +257 -0
  238. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +175 -0
  239. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +475 -0
  240. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +16 -0
  241. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +136 -0
  242. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +237 -0
  243. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +246 -0
  244. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +200 -0
  245. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +237 -0
  246. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +486 -0
  247. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +198 -0
  248. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01-init.md +159 -0
  249. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-01b-continue.md +126 -0
  250. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-02-discovery.md +209 -0
  251. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-03-core-experience.md +215 -0
  252. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-04-emotional-response.md +218 -0
  253. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-05-inspiration.md +233 -0
  254. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-06-design-system.md +251 -0
  255. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-07-defining-experience.md +253 -0
  256. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-08-visual-foundation.md +223 -0
  257. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-09-design-directions.md +223 -0
  258. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-10-user-journeys.md +240 -0
  259. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-11-component-strategy.md +247 -0
  260. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-12-ux-patterns.md +236 -0
  261. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-13-responsive-accessibility.md +263 -0
  262. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/steps/step-14-complete.md +226 -0
  263. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +6 -138
  264. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +53 -0
  265. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +5 -200
  266. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +161 -0
  267. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +123 -0
  268. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +275 -0
  269. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +271 -0
  270. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +272 -0
  271. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +249 -0
  272. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +240 -0
  273. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +236 -0
  274. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +280 -0
  275. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +251 -0
  276. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +275 -0
  277. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +210 -0
  278. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +61 -0
  279. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-decision-template.md +13 -0
  280. package/src/modules/bmm/workflows/3-solutioning/architecture/data/domain-complexity.csv +11 -0
  281. package/src/modules/bmm/workflows/3-solutioning/architecture/data/project-types.csv +7 -0
  282. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01-init.md +194 -0
  283. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-01b-continue.md +163 -0
  284. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-02-context.md +223 -0
  285. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +330 -0
  286. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +317 -0
  287. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-05-patterns.md +358 -0
  288. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-06-structure.md +378 -0
  289. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-07-validation.md +358 -0
  290. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-08-complete.md +351 -0
  291. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +48 -0
  292. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +247 -476
  293. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +8 -18
  294. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +176 -0
  295. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +4 -11
  296. package/src/modules/bmm/workflows/4-implementation/create-story/checklist.md +332 -214
  297. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +324 -0
  298. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +21 -34
  299. package/src/modules/bmm/workflows/4-implementation/dev-story/checklist.md +65 -23
  300. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.xml +406 -0
  301. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +6 -37
  302. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +4 -3
  303. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +2 -0
  304. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/instructions.md +115 -0
  305. package/src/modules/bmm/workflows/bmad-quick-flow/create-tech-spec/workflow.yaml +26 -0
  306. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/checklist.md +25 -0
  307. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +105 -0
  308. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +29 -0
  309. package/src/modules/bmm/workflows/generate-project-context/project-context-template.md +20 -0
  310. package/src/modules/bmm/workflows/generate-project-context/steps/step-01-discover.md +193 -0
  311. package/src/modules/bmm/workflows/generate-project-context/steps/step-02-generate.md +317 -0
  312. package/src/modules/bmm/workflows/generate-project-context/steps/step-03-complete.md +277 -0
  313. package/src/modules/bmm/workflows/generate-project-context/workflow.md +48 -0
  314. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +23 -3
  315. package/src/modules/bmm/workflows/testarch/automate/instructions.md +23 -2
  316. package/src/modules/bmm/workflows/testarch/ci/instructions.md +18 -1
  317. package/src/modules/bmm/workflows/testarch/framework/instructions.md +27 -1
  318. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +8 -2
  319. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +28 -8
  320. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +66 -54
  321. package/src/modules/bmm/workflows/workflow-status/instructions.md +11 -4
  322. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +3 -2
  323. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +3 -2
  324. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +3 -2
  325. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +3 -2
  326. package/src/modules/cis/agents/README.md +1 -1
  327. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +3 -2
  328. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +2 -1
  329. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +2 -1
  330. package/src/modules/cis/agents/innovation-strategist.agent.yaml +2 -1
  331. package/src/modules/cis/agents/presentation-master.agent.yaml +3 -2
  332. package/src/modules/cis/agents/storyteller.agent.yaml +2 -1
  333. package/src/modules/cis/teams/default-party.csv +6 -5
  334. package/src/utility/models/agent-activation-ide.xml +4 -4
  335. package/src/utility/models/agent-activation-web.xml +1 -11
  336. package/src/utility/models/fragments/activation-rules.xml +5 -6
  337. package/src/utility/models/fragments/handler-exec.xml +6 -5
  338. package/src/utility/models/fragments/handler-multi.xml +14 -0
  339. package/test/README.md +1 -1
  340. package/test/fixtures/agent-schema/valid/menu-commands/all-command-types.agent.yaml +1 -3
  341. package/tools/cli/README.md +1 -0
  342. package/tools/cli/bundlers/web-bundler.js +3 -14
  343. package/tools/cli/commands/agent-install.js +8 -8
  344. package/tools/cli/commands/cleanup.js +141 -0
  345. package/tools/cli/commands/install.js +48 -3
  346. package/tools/cli/installers/lib/core/config-collector.js +24 -0
  347. package/tools/cli/installers/lib/core/installer.js +612 -43
  348. package/tools/cli/installers/lib/ide/antigravity.js +51 -7
  349. package/tools/cli/installers/lib/ide/auggie.js +53 -0
  350. package/tools/cli/installers/lib/ide/claude-code.js +1 -6
  351. package/tools/cli/installers/lib/ide/cline.js +49 -0
  352. package/tools/cli/installers/lib/ide/codex.js +2 -2
  353. package/tools/cli/installers/lib/ide/crush.js +47 -0
  354. package/tools/cli/installers/lib/ide/gemini.js +47 -0
  355. package/tools/cli/installers/lib/ide/github-copilot.js +59 -48
  356. package/tools/cli/installers/lib/ide/iflow.js +47 -0
  357. package/tools/cli/installers/lib/ide/kilo.js +74 -0
  358. package/tools/cli/installers/lib/ide/qwen.js +54 -0
  359. package/tools/cli/installers/lib/ide/roo.js +71 -0
  360. package/tools/cli/installers/lib/ide/rovo-dev.js +290 -0
  361. package/tools/cli/installers/lib/ide/trae.js +47 -0
  362. package/tools/cli/lib/agent/compiler.js +156 -22
  363. package/tools/cli/lib/agent/installer.js +13 -3
  364. package/tools/cli/lib/agent-analyzer.js +46 -18
  365. package/tools/cli/lib/ui.js +204 -9
  366. package/tools/cli/lib/yaml-xml-builder.js +123 -24
  367. package/tools/platform-codes.yaml +12 -0
  368. package/tools/schema/agent.js +169 -20
  369. package/src/core/tasks/adv-elicit-methods.csv +0 -39
  370. package/src/core/workflows/brainstorming/README.md +0 -261
  371. package/src/core/workflows/brainstorming/instructions.md +0 -315
  372. package/src/core/workflows/brainstorming/workflow.yaml +0 -38
  373. package/src/core/workflows/party-mode/instructions.md +0 -183
  374. package/src/core/workflows/party-mode/workflow.yaml +0 -28
  375. package/src/modules/bmb/workflows/audit-workflow/checklist.md +0 -142
  376. package/src/modules/bmb/workflows/audit-workflow/instructions.md +0 -341
  377. package/src/modules/bmb/workflows/audit-workflow/template.md +0 -118
  378. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +0 -25
  379. package/src/modules/bmb/workflows/convert-legacy/README.md +0 -262
  380. package/src/modules/bmb/workflows/convert-legacy/checklist.md +0 -205
  381. package/src/modules/bmb/workflows/convert-legacy/instructions.md +0 -377
  382. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +0 -30
  383. package/src/modules/bmb/workflows/create-agent/instructions.md +0 -519
  384. package/src/modules/bmb/workflows/create-agent/workflow.yaml +0 -55
  385. package/src/modules/bmb/workflows/create-workflow/README.md +0 -277
  386. package/src/modules/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  387. package/src/modules/bmb/workflows/create-workflow/checklist.md +0 -94
  388. package/src/modules/bmb/workflows/create-workflow/instructions.md +0 -725
  389. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1327
  390. package/src/modules/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  391. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -15
  392. package/src/modules/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  393. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -61
  394. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +0 -41
  395. package/src/modules/bmb/workflows/edit-agent/README.md +0 -239
  396. package/src/modules/bmb/workflows/edit-agent/instructions.md +0 -654
  397. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +0 -49
  398. package/src/modules/bmb/workflows/edit-workflow/README.md +0 -119
  399. package/src/modules/bmb/workflows/edit-workflow/checklist.md +0 -70
  400. package/src/modules/bmb/workflows/edit-workflow/instructions.md +0 -342
  401. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  402. package/src/modules/bmm/_module-installer/assets/bmm-kb.md +0 -1
  403. package/src/modules/bmm/_module-installer/assets/technical-decisions.md +0 -30
  404. package/src/modules/bmm/docs/quick-spec-flow.md +0 -652
  405. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  406. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  407. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -39
  408. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  409. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  410. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -56
  411. package/src/modules/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  412. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  413. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  414. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -61
  415. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  416. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  417. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +0 -299
  418. package/src/modules/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  419. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  420. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  421. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  422. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  423. package/src/modules/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  424. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +0 -347
  425. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  426. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +0 -62
  427. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  428. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  429. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -93
  430. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  431. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  432. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -78
  433. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  434. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  435. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  436. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  437. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  438. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  439. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -60
  440. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  441. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  442. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  443. package/src/modules/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  444. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  445. package/src/modules/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  446. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -100
  447. package/src/modules/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  448. package/src/modules/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  449. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  450. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  451. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  452. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  453. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  454. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  455. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -58
  456. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  457. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  458. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  459. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -63
  460. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  461. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -28
  462. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  463. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -25
  464. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  465. package/src/modules/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  466. /package/src/modules/bmb/docs/{agent-compilation.md → agents/agent-compilation.md} +0 -0
  467. /package/src/modules/bmb/docs/{expert-agent-architecture.md → agents/expert-agent-architecture.md} +0 -0
  468. /package/src/modules/bmb/docs/{index.md → agents/index.md} +0 -0
  469. /package/src/modules/bmb/docs/{understanding-agent-types.md → agents/understanding-agent-types.md} +0 -0
  470. /package/src/modules/bmb/reference/{readme.md → README.md} +0 -0
  471. /package/src/modules/bmb/workflows/create-agent/{agent-validation-checklist.md → data/agent-validation-checklist.md} +0 -0
  472. /package/src/modules/bmb/workflows/create-agent/{brainstorm-context.md → data/brainstorm-context.md} +0 -0
  473. /package/src/modules/bmb/workflows/create-agent/{communication-presets.csv → data/communication-presets.csv} +0 -0
  474. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/README.md +0 -0
  475. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/brainstorm-context.md +0 -0
  476. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/checklist.md +0 -0
  477. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/install-config.yaml +0 -0
  478. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/installer-templates/installer.js +0 -0
  479. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/instructions.md +0 -0
  480. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/module-structure.md +0 -0
  481. /package/src/modules/bmb/{workflows → workflows-legacy}/create-module/workflow.yaml +0 -0
  482. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/README.md +0 -0
  483. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/checklist.md +0 -0
  484. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/instructions.md +0 -0
  485. /package/src/modules/bmb/{workflows → workflows-legacy}/edit-module/workflow.yaml +0 -0
  486. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/README.md +0 -0
  487. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/checklist.md +0 -0
  488. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/instructions.md +0 -0
  489. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/template.md +0 -0
  490. /package/src/modules/bmb/{workflows → workflows-legacy}/module-brief/workflow.yaml +0 -0
  491. /package/src/modules/bmm/{workflows/techdoc → data}/documentation-standards.md +0 -0
@@ -1,1327 +0,0 @@
1
- # BMAD Workflow Creation Guide
2
-
3
- Create structured, repeatable workflows for human-AI collaboration in BMAD v6.
4
-
5
- ## Table of Contents
6
-
7
- 1. [Quick Start](#quick-start)
8
- 2. [Core Concepts](#core-concepts)
9
- 3. [Workflow Structure](#workflow-structure)
10
- 4. [Writing Instructions](#writing-instructions)
11
- 5. [Templates and Variables](#templates--variables)
12
- 6. [Flow Control](#flow-control)
13
- 7. [Validation](#validation)
14
- 8. [Examples](#examples)
15
- 9. [Best Practices](#best-practices)
16
- 10. [Troubleshooting](#troubleshooting)
17
-
18
- ## Quick Start
19
-
20
- ### Minimal Workflow (3 minutes)
21
-
22
- Create a folder with these files:
23
-
24
- ```yaml
25
- # workflow.yaml (REQUIRED)
26
- name: 'my-workflow'
27
- description: 'What this workflow does'
28
- installed_path: '{project-root}/{bmad_folder}/module/workflows/my-workflow'
29
- template: '{installed_path}/template.md'
30
- instructions: '{installed_path}/instructions.md'
31
- default_output_file: '{output_folder}/output.md'
32
-
33
- standalone: true
34
- ```
35
-
36
- ```markdown
37
- # template.md
38
-
39
- # {{project_name}} Output
40
-
41
- {{main_content}}
42
- ```
43
-
44
- ```markdown
45
- # instructions.md
46
-
47
- <critical>The workflow execution engine is governed by: {project_root}/{bmad_folder}/core/tasks/workflow.xml</critical>
48
- <critical>You MUST have already loaded and processed: workflow.yaml</critical>
49
-
50
- <workflow>
51
- <step n="1" goal="Generate content">
52
- Create the main content for this document.
53
- <template-output>main_content</template-output>
54
- </step>
55
- </workflow>
56
- ```
57
-
58
- That's it! To execute, tell the BMAD agent: `workflow path/to/my-workflow/`
59
-
60
- ## Core Concepts
61
-
62
- ### Tasks vs Workflows
63
-
64
- | Aspect | Task | Workflow |
65
- | -------------- | ------------------ | ----------------------------- |
66
- | **Purpose** | Single operation | Multi-step process |
67
- | **Format** | XML | Folder with YAML config |
68
- | **Location** | `/src/core/tasks/` | `/{bmad_folder}/*/workflows/` |
69
- | **User Input** | Minimal | Extensive |
70
- | **Output** | Variable | Usually documents |
71
-
72
- ### Workflow Types
73
-
74
- 1. **Document Workflows** - Generate PRDs, specs, architectures
75
- 2. **Action Workflows** - Refactor code, run tools, orchestrate tasks
76
- 3. **Interactive Workflows** - Brainstorming, meditations, guided sessions
77
- 4. **Autonomous Workflows** - Run without human input (story generation)
78
- 5. **Meta-Workflows** - Coordinate other workflows
79
-
80
- ## Workflow Structure
81
-
82
- ### Required Files
83
-
84
- ```
85
- my-workflow/
86
- └── workflow.yaml # REQUIRED - Configuration
87
- ```
88
-
89
- ### Optional Files
90
-
91
- ```
92
- my-workflow/
93
- ├── template.md # Document structure
94
- ├── instructions.md # Step-by-step guide
95
- ├── checklist.md # Validation criteria
96
- └── [data files] # Supporting resources, xml, md, csv or others
97
- ```
98
-
99
- ### workflow.yaml Configuration
100
-
101
- ```yaml
102
- # Basic metadata
103
- name: 'workflow-name'
104
- description: 'Clear purpose statement'
105
-
106
- # Paths
107
- installed_path: '{project-root}/{bmad_folder}/module/workflows/name'
108
- template: '{installed_path}/template.md' # or false
109
- instructions: '{installed_path}/instructions.md' # or false
110
- validation: '{installed_path}/checklist.md' # optional
111
-
112
- # Output
113
- default_output_file: '{output_folder}/document.md'
114
-
115
- # Advanced options
116
- recommended_inputs: # Expected input docs
117
- - input_doc: 'path/to/doc.md'
118
-
119
- # Invocation control
120
- standalone: true # Can be invoked directly (default: true)
121
- ```
122
-
123
- ### Standalone Property: Invocation Control
124
-
125
- **CRITICAL**: The `standalone` property controls whether a workflow, task, or tool can be invoked independently or must be called through an agent's menu.
126
-
127
- #### For Workflows (workflow.yaml)
128
-
129
- ```yaml
130
- standalone: true # Can invoke directly: /workflow-name or via IDE command
131
- standalone: false # Must be called from an agent menu or another workflow
132
- ```
133
-
134
- **When to use `standalone: true` (DEFAULT)**:
135
-
136
- - ✅ User-facing workflows that should be directly accessible
137
- - ✅ Workflows invoked via IDE commands or CLI
138
- - ✅ Workflows that users will run independently
139
- - ✅ Most document generation workflows (PRD, architecture, etc.)
140
- - ✅ Action workflows users trigger directly (refactor, analyze, etc.)
141
- - ✅ Entry-point workflows for a module
142
-
143
- **When to use `standalone: false`**:
144
-
145
- - ✅ Sub-workflows only called by other workflows (via `<invoke-workflow>`)
146
- - ✅ Internal utility workflows not meant for direct user access
147
- - ✅ Workflows that require specific context from parent workflow
148
- - ✅ Helper workflows that don't make sense alone
149
-
150
- **Examples**:
151
-
152
- ```yaml
153
- # Standalone: User invokes directly
154
- name: 'plan-project'
155
- description: 'Create PRD/GDD for any project'
156
- standalone: true # Users run this directly
157
-
158
- ---
159
- # Non-standalone: Only called by parent workflow
160
- name: 'validate-requirements'
161
- description: 'Internal validation helper for PRD workflow'
162
- standalone: false # Only invoked by plan-project workflow
163
- ```
164
-
165
- #### For Tasks and Tools (XML files)
166
-
167
- Tasks and tools in `src/core/tasks/` and `src/core/tools/` also support the standalone attribute:
168
-
169
- ```xml
170
- <!-- Standalone task: Can be invoked directly -->
171
- <task name="workflow" standalone="true">
172
- <!-- Task definition -->
173
- </task>
174
-
175
- <!-- Non-standalone: Only called by workflows/agents -->
176
- <tool name="internal-helper" standalone="false">
177
- <!-- Tool definition -->
178
- </tool>
179
- ```
180
-
181
- **Task/Tool Standalone Guidelines**:
182
-
183
- - `standalone="true"`: Core tasks like workflow.xml, create-doc.xml that users/agents invoke directly
184
- - `standalone="false"`: Internal helpers, utilities only called by other tasks/workflows
185
-
186
- #### Default Behavior
187
-
188
- **If standalone property is omitted**:
189
-
190
- - Workflows: Default to `standalone: true` (accessible directly)
191
- - Tasks/Tools: Default to `standalone: true` (accessible directly)
192
-
193
- **Best Practice**: Explicitly set standalone even if using default to make intent clear.
194
-
195
- #### Invocation Patterns
196
-
197
- **Standalone workflows can be invoked**:
198
-
199
- 1. Directly by users: `/workflow-name` or IDE command
200
- 2. From agent menus: `workflow: "{path}/workflow.yaml"`
201
- 3. From other workflows: `<invoke-workflow path="{path}/workflow.yaml">`
202
-
203
- **Non-standalone workflows**:
204
-
205
- 1. ❌ Cannot be invoked directly by users
206
- 2. ❌ Cannot be called from IDE commands
207
- 3. ✅ Can be invoked by other workflows via `<invoke-workflow>`
208
- 4. ✅ Can be called from agent menu items
209
-
210
- #### Module Design Implications
211
-
212
- **Typical Module Pattern**:
213
-
214
- ```yaml
215
- # Entry-point workflows: standalone: true
216
- bmm/workflows/plan-project/workflow.yaml → standalone: true
217
- bmm/workflows/architecture/workflow.yaml → standalone: true
218
-
219
- # Helper workflows: standalone: false
220
- bmm/workflows/internal/validate-epic/workflow.yaml → standalone: false
221
- bmm/workflows/internal/format-story/workflow.yaml → standalone: false
222
- ```
223
-
224
- **Benefits of this pattern**:
225
-
226
- - Clear separation between user-facing and internal workflows
227
- - Prevents users from accidentally invoking incomplete/internal workflows
228
- - Cleaner IDE command palette (only shows standalone workflows)
229
- - Better encapsulation and maintainability
230
-
231
- ### Common Patterns
232
-
233
- **Full Document Workflow** (most common)
234
-
235
- - Has: All 4 files
236
- - Use for: PRDs, architectures, specs
237
-
238
- **Action Workflow** (no template)
239
-
240
- - Has: workflow.yaml + instructions.md
241
- - Use for: Refactoring, tool orchestration
242
-
243
- **Autonomous Workflow** (no interaction)
244
-
245
- - Has: workflow.yaml + template + instructions
246
- - Use for: Automated generation
247
-
248
- ## Writing Instructions
249
-
250
- ### Instruction Styles: Intent-Based vs Prescriptive
251
-
252
- **CRITICAL DESIGN DECISION**: Choose your instruction style early - it fundamentally shapes the user experience.
253
-
254
- #### Default Recommendation: Intent-Based (Adaptive)
255
-
256
- **Intent-based workflows give the AI goals and principles, letting it adapt the conversation naturally to the user's context.** This is the BMAD v6 default for most workflows.
257
-
258
- #### The Two Approaches
259
-
260
- ##### 1. Intent-Based Instructions (RECOMMENDED)
261
-
262
- **What it is**: Guide the AI with goals, principles, and context - let it determine the best way to interact with each user.
263
-
264
- **Characteristics**:
265
-
266
- - Uses `<action>` tags with guiding instructions
267
- - Focuses on WHAT to accomplish and WHY it matters
268
- - Lets AI adapt conversation to user needs
269
- - More flexible and conversational
270
- - Better for complex discovery and iterative refinement
271
-
272
- **When to use**:
273
-
274
- - Complex discovery processes (requirements gathering, architecture design)
275
- - Creative brainstorming and ideation
276
- - Iterative refinement workflows
277
- - When user input quality matters more than consistency
278
- - Workflows requiring adaptation to context
279
- - Teaching/educational workflows
280
- - When users have varying skill levels
281
-
282
- **Example**:
283
-
284
- ```xml
285
- <step n="2" goal="Understand user's target audience">
286
- <action>Engage in collaborative discovery to understand their target users:
287
-
288
- Ask open-ended questions to explore:
289
- - Who will use this product?
290
- - What problems do they face?
291
- - What are their goals and motivations?
292
- - How tech-savvy are they?
293
-
294
- Listen for clues about:
295
- - Demographics and characteristics
296
- - Pain points and needs
297
- - Current solutions they use
298
- - Unmet needs or frustrations
299
-
300
- Adapt your depth and terminology to the user's responses.
301
- If they give brief answers, dig deeper with follow-ups.
302
- If they're uncertain, help them think through it with examples.
303
- </action>
304
-
305
- <template-output>target_audience</template-output>
306
- </step>
307
- ```
308
-
309
- **Intent-based workflow adapts**:
310
-
311
- - **Expert user** might get: "Tell me about your target users - demographics, pain points, and technical profile?"
312
- - **Beginner user** might get: "Let's talk about who will use this. Imagine your ideal customer - what do they look like? What problem are they trying to solve?"
313
-
314
- ##### 2. Prescriptive Instructions (Use Selectively)
315
-
316
- **What it is**: Provide exact wording for questions and specific options for answers.
317
-
318
- **Characteristics**:
319
-
320
- - Uses `<ask>` tags with exact question text
321
- - Provides specific options or formats
322
- - More controlled and predictable
323
- - Ensures consistency across runs
324
- - Better for simple data collection or compliance needs
325
-
326
- **When to use**:
327
-
328
- - Simple data collection (platform choice, format selection)
329
- - Compliance verification and standards adherence
330
- - Configuration with finite, well-defined options
331
- - When consistency is critical across all executions
332
- - Quick setup wizards
333
- - Binary decisions (yes/no, enable/disable)
334
- - When gathering specific required fields
335
-
336
- **Example**:
337
-
338
- ```xml
339
- <step n="3" goal="Select target platform">
340
- <ask>What is your target platform?
341
-
342
- 1. Web (browser-based application)
343
- 2. Mobile (iOS/Android native apps)
344
- 3. Desktop (Windows/Mac/Linux applications)
345
- 4. CLI (command-line tool)
346
- 5. API (backend service)
347
-
348
- Enter the number (1-5):</ask>
349
-
350
- <action>Store the platform choice as {{target_platform}}</action>
351
- <template-output>target_platform</template-output>
352
- </step>
353
- ```
354
-
355
- **Prescriptive workflow stays consistent** - every user gets the same 5 options in the same format.
356
-
357
- #### Best Practice: Mix Both Styles
358
-
359
- **Even predominantly intent-based workflows should use prescriptive moments** for simple choices. Even prescriptive workflows can have intent-based discovery.
360
-
361
- **Example of effective mixing**:
362
-
363
- ```xml
364
- <!-- Intent-based: Complex discovery -->
365
- <step n="1" goal="Understand user vision">
366
- <action>Explore the user's vision through open conversation:
367
-
368
- Help them articulate:
369
- - The core problem they're solving
370
- - Their unique approach or innovation
371
- - The experience they want to create
372
-
373
- Adapt your questions based on their expertise and communication style.
374
- If they're visionary, explore the "why". If they're technical, explore the "how".
375
- </action>
376
- <template-output>vision</template-output>
377
- </step>
378
-
379
- <!-- Prescriptive: Simple data -->
380
- <step n="2" goal="Capture basic metadata">
381
- <ask>What is your target platform? Choose one:
382
- - Web
383
- - Mobile
384
- - Desktop
385
- - CLI
386
- - API</ask>
387
-
388
- <action>Store as {{platform}}</action>
389
- </step>
390
-
391
- <!-- Intent-based: Deep exploration -->
392
- <step n="3" goal="Design user experience">
393
- <action>Facilitate collaborative UX design:
394
-
395
- Guide them to explore:
396
- - User journey and key flows
397
- - Interaction patterns and affordances
398
- - Visual/aesthetic direction
399
-
400
- Use their platform choice from step 2 to inform relevant patterns.
401
- For web: discuss responsive design. For mobile: touch interactions. Etc.
402
- </action>
403
- <template-output>ux_design</template-output>
404
- </step>
405
- ```
406
-
407
- #### Interactivity Levels
408
-
409
- Beyond style (intent vs prescriptive), consider **how interactive** your workflow should be:
410
-
411
- ##### High Interactivity (Collaborative)
412
-
413
- - Constant back-and-forth with user
414
- - Multiple asks per step
415
- - Iterative refinement and review
416
- - User guides the direction
417
- - **Best for**: Creative work, complex decisions, learning
418
-
419
- **Example**:
420
-
421
- ```xml
422
- <step n="4" goal="Design feature set" repeat="until-satisfied">
423
- <action>Collaborate on feature definitions:
424
-
425
- For each feature the user proposes:
426
- - Help them articulate it clearly
427
- - Explore edge cases together
428
- - Consider implications and dependencies
429
- - Refine the description iteratively
430
-
431
- After each feature: "Want to refine this, add another, or move on?"
432
- </action>
433
- </step>
434
- ```
435
-
436
- ##### Medium Interactivity (Guided)
437
-
438
- - Key decision points have interaction
439
- - AI proposes, user confirms or refines
440
- - Validation checkpoints
441
- - **Best for**: Most document workflows, structured processes
442
-
443
- **Example**:
444
-
445
- ```xml
446
- <step n="5" goal="Generate architecture decisions">
447
- <action>Based on the PRD, identify 10-15 key architectural decisions needed</action>
448
- <action>For each decision, research options and present recommendation</action>
449
- <ask>Approve this decision or propose alternative?</ask>
450
- <action>Record decision and rationale</action>
451
- </step>
452
- ```
453
-
454
- ##### Low Interactivity (Autonomous)
455
-
456
- - Minimal user input required
457
- - AI works independently with guidelines
458
- - User reviews final output
459
- - **Best for**: Automated generation, batch processing
460
-
461
- **Example**:
462
-
463
- ```xml
464
- <step n="6" goal="Generate user stories">
465
- <action>For each epic in the PRD, generate 3-7 user stories following this pattern:
466
- - As a [user type]
467
- - I want to [action]
468
- - So that [benefit]
469
-
470
- Ensure stories are:
471
- - Independently valuable
472
- - Testable
473
- - Sized appropriately (1-5 days of work)
474
- </action>
475
-
476
- <template-output>user_stories</template-output>
477
- </step>
478
-
479
- <step n="7" goal="Review generated stories">
480
- <ask>Review the generated user stories. Want to refine any? (y/n)</ask>
481
- <check if="yes">
482
- <goto step="6">Regenerate with feedback</goto>
483
- </check>
484
- </step>
485
- ```
486
-
487
- #### Decision Framework
488
-
489
- **Choose Intent-Based when**:
490
-
491
- - ✅ User knowledge/skill level varies
492
- - ✅ Context matters (one-size-fits-all won't work)
493
- - ✅ Discovery and exploration are important
494
- - ✅ Quality of input matters more than consistency
495
- - ✅ Teaching/education is part of the goal
496
- - ✅ Iteration and refinement expected
497
-
498
- **Choose Prescriptive when**:
499
-
500
- - ✅ Options are finite and well-defined
501
- - ✅ Consistency across users is critical
502
- - ✅ Compliance or standards matter
503
- - ✅ Simple data collection
504
- - ✅ Users just need to make a choice and move on
505
- - ✅ Speed matters more than depth
506
-
507
- **Choose High Interactivity when**:
508
-
509
- - ✅ User expertise is essential
510
- - ✅ Creative collaboration needed
511
- - ✅ Decisions have major implications
512
- - ✅ Learning and understanding matter
513
- - ✅ Iteration is expected
514
-
515
- **Choose Low Interactivity when**:
516
-
517
- - ✅ Process is well-defined and repeatable
518
- - ✅ AI can work autonomously with clear guidelines
519
- - ✅ User time is constrained
520
- - ✅ Batch processing or automation desired
521
- - ✅ Review-and-refine model works
522
-
523
- #### Implementation Guidelines
524
-
525
- **For Intent-Based Workflows**:
526
-
527
- 1. **Use `<action>` tags with guiding instructions**
528
-
529
- ```xml
530
- <action>Facilitate discovery of {{topic}}:
531
-
532
- Ask open-ended questions to explore:
533
- - {{aspect_1}}
534
- - {{aspect_2}}
535
-
536
- Listen for clues about {{patterns_to_notice}}.
537
-
538
- Adapt your approach based on their {{context_factor}}.
539
- </action>
540
- ```
541
-
542
- 2. **Provide principles, not scripts**
543
-
544
- ```xml
545
- <!-- ✅ Good: Principles -->
546
- <action>Help user articulate their unique value proposition.
547
- Focus on what makes them different, not just what they do.
548
- If they struggle, offer examples from analogous domains.</action>
549
-
550
- <!-- ❌ Avoid: Prescriptive script -->
551
- <ask>What makes your product unique? Provide 2-3 bullet points.</ask>
552
- ```
553
-
554
- 3. **Guide with context and rationale**
555
-
556
- ```xml
557
- <action>Now that we understand their {{context_from_previous}},
558
- explore how {{current_topic}} connects to their vision.
559
-
560
- This matters because {{reason_it_matters}}.
561
-
562
- If they seem uncertain about {{potential_challenge}}, help them think through {{approach}}.
563
- </action>
564
- ```
565
-
566
- **For Prescriptive Workflows**:
567
-
568
- 1. **Use `<ask>` tags with specific questions**
569
-
570
- ```xml
571
- <ask>Select your preferred database:
572
- 1. PostgreSQL
573
- 2. MySQL
574
- 3. MongoDB
575
- 4. SQLite
576
-
577
- Enter number (1-4):</ask>
578
- ```
579
-
580
- 2. **Provide clear options and formats**
581
-
582
- ```xml
583
- <ask>Enable user authentication? (yes/no)</ask>
584
- <ask>Enter project name (lowercase, no spaces):</ask>
585
- ```
586
-
587
- 3. **Keep it crisp and clear**
588
-
589
- ```xml
590
- <!-- ✅ Good: Clear and direct -->
591
- <ask>Target platform? (web/mobile/desktop)</ask>
592
-
593
- <!-- ❌ Avoid: Over-explaining -->
594
- <ask>We need to know what platform you're building for. This will affect
595
- the technology stack recommendations. Please choose: web, mobile, or desktop.</ask>
596
- ```
597
-
598
- #### Mixing Styles Within a Workflow
599
-
600
- **Pattern: Intent-based discovery → Prescriptive capture → Intent-based refinement**
601
-
602
- ```xml
603
- <step n="1" goal="Explore user needs">
604
- <!-- Intent-based discovery -->
605
- <action>Engage in open conversation to understand user needs deeply...</action>
606
- </step>
607
-
608
- <step n="2" goal="Capture key metrics">
609
- <!-- Prescriptive data collection -->
610
- <ask>Expected daily active users? (number)</ask>
611
- <ask>Data sensitivity level? (public/internal/sensitive/highly-sensitive)</ask>
612
- </step>
613
-
614
- <step n="3" goal="Design solution approach">
615
- <!-- Intent-based design -->
616
- <action>Collaborate on solution design, using the metrics from step 2 to inform scale and security decisions...</action>
617
- </step>
618
- ```
619
-
620
- **Pattern: Prescriptive setup → Intent-based execution**
621
-
622
- ```xml
623
- <step n="1" goal="Quick setup">
624
- <!-- Prescriptive configuration -->
625
- <ask>Project type? (web-app/api/cli/library)</ask>
626
- <ask>Language? (typescript/python/go/rust)</ask>
627
- </step>
628
-
629
- <step n="2" goal="Detailed design">
630
- <!-- Intent-based design -->
631
- <action>Now that we know it's a {{project_type}} in {{language}},
632
- let's explore the architecture in detail.
633
-
634
- Guide them through design decisions appropriate for a {{project_type}}...
635
- </action>
636
- </step>
637
- ```
638
-
639
- ### Basic Structure
640
-
641
- ```markdown
642
- # instructions.md
643
-
644
- <critical>The workflow execution engine is governed by: {project_root}/{bmad_folder}/core/tasks/workflow.xml</critical>
645
- <critical>You MUST have already loaded and processed: workflow.yaml</critical>
646
-
647
- <workflow>
648
-
649
- <step n="1" goal="Clear goal statement">
650
- Instructions for this step.
651
- <template-output>variable_name</template-output>
652
- </step>
653
-
654
- <step n="2" goal="Next goal" optional="true">
655
- Optional step instructions.
656
- <template-output>another_variable</template-output>
657
- </step>
658
-
659
- </workflow>
660
- ```
661
-
662
- ### Step Attributes
663
-
664
- - `n="X"` - Step number (required)
665
- - `goal="..."` - What the step accomplishes (required)
666
- - `optional="true"` - User can skip
667
- - `repeat="3"` - Repeat N times
668
- - `if="condition"` - Conditional execution
669
-
670
- ### Content Formats
671
-
672
- **Markdown Format** (human-friendly):
673
-
674
- ```xml
675
- <step n="1" goal="Define goals">
676
- Write 1-3 bullet points about project success:
677
- - User outcomes
678
- - Business value
679
- - Measurable results
680
-
681
- <template-output>goals</template-output>
682
- </step>
683
- ```
684
-
685
- **XML Format** (precise control):
686
-
687
- ```xml
688
- <step n="2" goal="Validate input">
689
- <action>Load validation criteria</action>
690
- <check if="validation fails">
691
- <goto step="1">Return to previous step</goto>
692
- </check>
693
- <template-output>validated_data</template-output>
694
- </step>
695
- ```
696
-
697
- ## Templates and Variables
698
-
699
- ### Variable Syntax
700
-
701
- ```markdown
702
- # template.md
703
-
704
- # {{project_name}} Document
705
-
706
- ## Section
707
-
708
- {{section_content}}
709
-
710
- _Generated on {{date}}_
711
- ```
712
-
713
- ### Variable Sources
714
-
715
- 1. **workflow.yaml** - Config values
716
- 2. **User input** - Runtime values
717
- 3. **Step outputs** - `<template-output>` tags
718
- 4. **System** - Date, paths, etc.
719
-
720
- ### Naming Convention
721
-
722
- - Use snake_case: `{{user_requirements}}`
723
- - Be descriptive: `{{primary_user_journey}}` not `{{puj}}`
724
-
725
- ## Flow Control
726
-
727
- ### Sub-Steps
728
-
729
- ```xml
730
- <step n="3" goal="Process items">
731
- <step n="3a" title="Gather data">
732
- <action>Collect information</action>
733
- </step>
734
-
735
- <step n="3b" title="Analyze">
736
- <action>Process collected data</action>
737
- <template-output>analysis</template-output>
738
- </step>
739
- </step>
740
- ```
741
-
742
- ### Repetition
743
-
744
- ```xml
745
- <!-- Fixed repetitions -->
746
- <step n="4" repeat="3">
747
- <action>Generate example {{iteration}}</action>
748
- </step>
749
-
750
- <!-- Conditional repetition -->
751
- <step n="5" repeat="until-approved">
752
- <action>Generate content</action>
753
- <ask>Satisfactory? (y/n)</ask>
754
- </step>
755
-
756
- <!-- For-each repetition -->
757
- <step n="6" repeat="for-each-epic">
758
- <action>Define epic {{epic_name}}</action>
759
- </step>
760
- ```
761
-
762
- ### Conditional Execution
763
-
764
- **Single Action (use `action if=""`):**
765
-
766
- ```xml
767
- <step n="6" goal="Load context">
768
- <action if="file exists">Load existing document</action>
769
- <action if="new project">Initialize from template</action>
770
- </step>
771
- ```
772
-
773
- **Multiple Actions (use `<check if="">...</check>`):**
774
-
775
- ```xml
776
- <step n="7" goal="Validate">
777
- <action>Check requirements</action>
778
- <check if="incomplete">
779
- <action>Log validation errors</action>
780
- <goto step="2">Return to gathering</goto>
781
- </check>
782
- <check if="complete">
783
- <action>Mark as validated</action>
784
- <continue>Proceed</continue>
785
- </check>
786
- </step>
787
- ```
788
-
789
- **When to use which:**
790
-
791
- - **`<action if="">`** - Single conditional action (cleaner, more concise)
792
- - **`<check if="">...</check>`** - Multiple items under same condition (explicit scope)
793
-
794
- **❌ CRITICAL ANTIPATTERN - DO NOT USE:**
795
-
796
- **Invalid self-closing check tags:**
797
-
798
- ```xml
799
- <!-- ❌ WRONG - Invalid XML structure -->
800
- <check>If condition met:</check>
801
- <action>Do something</action>
802
-
803
- <!-- ❌ WRONG - Ambiguous nesting -->
804
- <check>If validation fails:</check>
805
- <action>Log error</action>
806
- <goto step="1">Retry</goto>
807
- ```
808
-
809
- **Why this is wrong:**
810
-
811
- - Creates invalid XML structure (check tag doesn't wrap anything)
812
- - Ambiguous - unclear if actions are inside or outside the condition
813
- - Breaks formatter and parser logic
814
- - Not part of BMAD workflow spec
815
-
816
- **✅ CORRECT alternatives:**
817
-
818
- ```xml
819
- <!-- ✅ Single action - use inline if -->
820
- <action if="condition met">Do something</action>
821
-
822
- <!-- ✅ Multiple actions - use proper wrapper block -->
823
- <check if="validation fails">
824
- <action>Log error</action>
825
- <goto step="1">Retry</goto>
826
- </check>
827
- ```
828
-
829
- **Rule:** If you have only ONE conditional action, use `<action if="">`. If you have MULTIPLE conditional actions, use `<check if="">...</check>` wrapper with a closing tag.
830
-
831
- ### Loops
832
-
833
- ```xml
834
- <step n="8" goal="Refine">
835
- <loop max="5">
836
- <action>Generate solution</action>
837
- <check if="criteria met">
838
- <break>Exit loop</break>
839
- </check>
840
- </loop>
841
- </step>
842
- ```
843
-
844
- ### Common XML Tags
845
-
846
- **Execution:**
847
-
848
- - `<action>` - Required action
849
- - `<action if="condition">` - Single conditional action (inline)
850
- - `<check if="condition">...</check>` - Conditional block for multiple items (requires closing tag)
851
- - `<ask>` - User prompt
852
- - `<goto>` - Jump to step
853
- - `<invoke-workflow>` - Call another workflow
854
-
855
- **Output:**
856
-
857
- - `<template-output>` - Save checkpoint
858
- - `<critical>` - Important info
859
- - `<example>` - Show example
860
-
861
- ## Validation
862
-
863
- ### checklist.md Structure
864
-
865
- ```markdown
866
- # Validation Checklist
867
-
868
- ## Structure
869
-
870
- - [ ] All sections present
871
- - [ ] No placeholders remain
872
- - [ ] Proper formatting
873
-
874
- ## Content Quality
875
-
876
- - [ ] Clear and specific
877
- - [ ] Technically accurate
878
- - [ ] Consistent terminology
879
-
880
- ## Completeness
881
-
882
- - [ ] Ready for next phase
883
- - [ ] Dependencies documented
884
- - [ ] Action items defined
885
- ```
886
-
887
- ### Making Criteria Measurable
888
-
889
- ❌ `- [ ] Good documentation`
890
- ✅ `- [ ] Each function has JSDoc comments with parameters and return types`
891
-
892
- ## Examples
893
-
894
- ### Document Generation
895
-
896
- ```xml
897
- <workflow>
898
- <step n="1" goal="Gather context">
899
- Load existing documents and understand project scope.
900
- <template-output>context</template-output>
901
- </step>
902
-
903
- <step n="2" goal="Define requirements">
904
- Create functional and non-functional requirements.
905
- <template-output>requirements</template-output>
906
- </step>
907
-
908
- <step n="3" goal="Validate">
909
- Check requirements against goals.
910
- <template-output>validated_requirements</template-output>
911
- </step>
912
- </workflow>
913
- ```
914
-
915
- ### Action Workflow
916
-
917
- ```xml
918
- <workflow>
919
- <step n="1" goal="Analyze codebase">
920
- <action>Find all API endpoints</action>
921
- <action>Identify patterns</action>
922
- </step>
923
-
924
- <step n="2" goal="Refactor">
925
- <repeat for-each="endpoint">
926
- <action>Update to new pattern</action>
927
- </repeat>
928
- </step>
929
-
930
- <step n="3" goal="Verify">
931
- <action>Run tests</action>
932
- <check if="tests fail">
933
- <goto step="2">Fix issues</goto>
934
- </check>
935
- </step>
936
- </workflow>
937
- ```
938
-
939
- ### Meta-Workflow
940
-
941
- ```xml
942
- <workflow name="greenfield-app">
943
- <step n="1" goal="Discovery">
944
- <invoke-workflow>product-brief</invoke-workflow>
945
- <template-output>brief</template-output>
946
- </step>
947
-
948
- <step n="2" goal="Requirements">
949
- <invoke-workflow input="{{brief}}">prd</invoke-workflow>
950
- <template-output>prd</template-output>
951
- </step>
952
-
953
- <step n="3" goal="Architecture">
954
- <invoke-workflow input="{{prd}}">architecture</invoke-workflow>
955
- <template-output>architecture</template-output>
956
- </step>
957
- </workflow>
958
- ```
959
-
960
- ## Best Practices
961
-
962
- ### Design Principles
963
-
964
- 1. **Keep steps focused** - Single goal per step
965
- 2. **Limit scope** - 5-12 steps maximum
966
- 3. **Build progressively** - Start simple, add detail
967
- 4. **Checkpoint often** - Save after major workflow sections and ensure documents are being drafted from the start
968
- 5. **Make sections optional** - Let users skip when appropriate
969
-
970
- ### Instruction Guidelines
971
-
972
- 1. **Be specific** - "Write 1-2 paragraphs" not "Write about"
973
- 2. **Provide examples** - Show expected output format
974
- 3. **Set limits** - "3-5 items maximum"
975
- 4. **Explain why** - Context helps AI make better decisions
976
-
977
- ### Time Estimate Prohibition
978
-
979
- **CRITICAL:** For all planning, analysis, and estimation workflows, include this prohibition:
980
-
981
- ```xml
982
- <critical>⚠️ ABSOLUTELY NO TIME ESTIMATES - NEVER mention hours, days, weeks, months, or ANY time-based predictions. AI has fundamentally changed development speed - what once took teams weeks/months can now be done by one person in hours. DO NOT give ANY time estimates whatsoever.</critical>
983
- ```
984
-
985
- **When to include this:**
986
-
987
- - Planning workflows (PRDs, tech specs, architecture)
988
- - Analysis workflows (research, brainstorming, product briefs)
989
- - Retrospective workflows (reviews, post-mortems)
990
- - Any workflow discussing project scope or complexity
991
-
992
- **When NOT needed:**
993
-
994
- - Pure implementation workflows (code generation, refactoring)
995
- - Simple action workflows (file operations, status updates)
996
- - Workflows that only process existing data
997
-
998
- ### Conditional Execution Best Practices
999
-
1000
- **✅ DO:**
1001
-
1002
- - Use `<action if="">` for single conditional actions
1003
- - Use `<check if="">...</check>` for blocks with multiple items
1004
- - Always close `<check>` tags explicitly
1005
- - Keep conditions simple and readable
1006
-
1007
- **❌ DON'T:**
1008
-
1009
- - Wrap single actions in `<check>` blocks (unnecessarily verbose)
1010
- - Forget to close `<check>` tags
1011
- - Nest too many levels (makes logic hard to follow)
1012
-
1013
- **Examples:**
1014
-
1015
- ```xml
1016
- <!-- ✅ Good: Single action -->
1017
- <action if="file exists">Load configuration</action>
1018
-
1019
- <!-- ❌ Avoid: Unnecessary wrapper for single action -->
1020
- <check if="file exists">
1021
- <action>Load configuration</action>
1022
- </check>
1023
-
1024
- <!-- ✅ Good: Multiple actions in block -->
1025
- <check if="validation fails">
1026
- <action>Log error details</action>
1027
- <action>Notify user</action>
1028
- <goto step="1">Retry input</goto>
1029
- </check>
1030
- ```
1031
-
1032
- ### Common Pitfalls
1033
-
1034
- - **Missing critical headers** - Always include workflow engine references
1035
- - **Variables not replaced** - Ensure names match exactly
1036
- - **Too many steps** - Combine related actions
1037
- - **No checkpoints** - Add `<template-output>` tags
1038
- - **Vague instructions** - Be explicit about expectations
1039
- - **Unclosed check tags** - Always close `<check if="">...</check>` blocks
1040
- - **Wrong conditional pattern** - Use `<action if="">` for single items, `<check if="">` for blocks
1041
-
1042
- ## Document Sharding Support
1043
-
1044
- If your workflow loads large planning documents (PRDs, epics, architecture, etc.), implement sharding support for efficiency.
1045
-
1046
- ### What is Document Sharding?
1047
-
1048
- Document sharding splits large markdown files into smaller section-based files:
1049
-
1050
- - `PRD.md` (50k tokens) → `prd/epic-1.md`, `prd/epic-2.md`, etc.
1051
- - Enables selective loading (90%+ token savings)
1052
- - All BMM workflows support both whole and sharded documents
1053
-
1054
- ### When to Add Sharding Support
1055
-
1056
- **Add sharding support if your workflow:**
1057
-
1058
- - Loads planning documents (PRD, epics, architecture, UX specs)
1059
- - May be used in large multi-epic projects
1060
- - Processes documents that could exceed 20k tokens
1061
- - Would benefit from selective section loading
1062
-
1063
- **Skip sharding support if your workflow:**
1064
-
1065
- - Only generates small documents
1066
- - Doesn't load external documents
1067
- - Works with code files (not planning docs)
1068
-
1069
- ### Implementation Pattern
1070
-
1071
- #### 1. Add input_file_patterns to workflow.yaml
1072
-
1073
- ```yaml
1074
- # Smart input file references - handles both whole docs and sharded docs
1075
- # Priority: Whole document first, then sharded version
1076
- input_file_patterns:
1077
- prd:
1078
- whole: '{output_folder}/*prd*.md'
1079
- sharded: '{output_folder}/*prd*/index.md'
1080
-
1081
- epics:
1082
- whole: '{output_folder}/*epic*.md'
1083
- sharded_index: '{output_folder}/*epic*/index.md'
1084
- sharded_single: '{output_folder}/*epic*/epic-{{epic_num}}.md' # For selective load
1085
-
1086
- architecture:
1087
- whole: '{output_folder}/*architecture*.md'
1088
- sharded: '{output_folder}/*architecture*/index.md'
1089
-
1090
- document_project:
1091
- sharded: '{output_folder}/index.md' # Brownfield always uses index
1092
- ```
1093
-
1094
- #### 2. Add Discovery Instructions to instructions.md
1095
-
1096
- Place early in instructions (after critical declarations, before workflow steps):
1097
-
1098
- ```markdown
1099
- ## 📚 Document Discovery
1100
-
1101
- This workflow requires: [list required documents]
1102
-
1103
- **Discovery Process** (execute for each document):
1104
-
1105
- 1. **Search for whole document first** - Use fuzzy file matching
1106
- 2. **Check for sharded version** - If whole document not found, look for `{doc-name}/index.md`
1107
- 3. **If sharded version found**:
1108
- - Read `index.md` to understand the document structure
1109
- - Read ALL section files listed in the index (or specific sections for selective load)
1110
- - Treat the combined content as if it were a single document
1111
- 4. **Brownfield projects**: The `document-project` workflow creates `{output_folder}/index.md`
1112
-
1113
- **Priority**: If both whole and sharded versions exist, use the whole document.
1114
-
1115
- **Fuzzy matching**: Be flexible with document names - users may use variations.
1116
- ```
1117
-
1118
- #### 3. Choose Loading Strategy
1119
-
1120
- **Full Load Strategy** (most workflows):
1121
-
1122
- ```xml
1123
- <action>Search for document using fuzzy pattern: {output_folder}/*prd*.md</action>
1124
- <action>If not found, check for sharded version: {output_folder}/*prd*/index.md</action>
1125
- <action if="sharded found">Read index.md to understand structure</action>
1126
- <action if="sharded found">Read ALL section files listed in index</action>
1127
- <action if="sharded found">Combine content as single document</action>
1128
- ```
1129
-
1130
- **Selective Load Strategy** (advanced - for phase 4 type workflows):
1131
-
1132
- ```xml
1133
- <action>Determine section needed (e.g., epic_num from story key)</action>
1134
- <action>Check for sharded version: {output_folder}/*epics*/index.md</action>
1135
- <action if="sharded found">Read ONLY the specific section file: epics/epic-{{epic_num}}.md</action>
1136
- <action if="sharded found">Skip all other section files (efficiency optimization)</action>
1137
- <action if="whole document found">Load complete document and extract relevant section</action>
1138
- ```
1139
-
1140
- ### Pattern Examples
1141
-
1142
- **Example 1: Simple Full Load**
1143
-
1144
- ```yaml
1145
- # workflow.yaml
1146
- input_file_patterns:
1147
- requirements:
1148
- whole: '{output_folder}/*requirements*.md'
1149
- sharded: '{output_folder}/*requirements*/index.md'
1150
- ```
1151
-
1152
- ```markdown
1153
- <!-- instructions.md -->
1154
-
1155
- ## Document Discovery
1156
-
1157
- Load requirements document (whole or sharded).
1158
-
1159
- 1. Try whole: _requirements_.md
1160
- 2. If not found, try sharded: _requirements_/index.md
1161
- 3. If sharded: Read index + ALL section files
1162
- ```
1163
-
1164
- **Example 2: Selective Load with Epic Number**
1165
-
1166
- ```yaml
1167
- # workflow.yaml
1168
- input_file_patterns:
1169
- epics:
1170
- whole: '{output_folder}/*epic*.md'
1171
- sharded_single: '{output_folder}/*epic*/epic-{{epic_num}}.md'
1172
- ```
1173
-
1174
- ```xml
1175
- <!-- instructions.md step -->
1176
- <step n="2" goal="Load Epic Content">
1177
- <action>Extract epic number from story key (e.g., "3-2-feature" → epic_num = 3)</action>
1178
- <action>Check for sharded epics: {output_folder}/*epic*/index.md</action>
1179
- <action if="sharded found">Load ONLY epics/epic-{{epic_num}}.md (selective optimization)</action>
1180
- <action if="whole document found">Load full epics.md and extract Epic {{epic_num}}</action>
1181
- </step>
1182
- ```
1183
-
1184
- ### Testing Your Sharding Support
1185
-
1186
- 1. **Test with whole document**: Verify workflow works with single `document.md`
1187
- 2. **Test with sharded document**: Create sharded version and verify discovery
1188
- 3. **Test with both present**: Ensure whole document takes priority
1189
- 4. **Test selective loading**: Verify only needed sections are loaded (if applicable)
1190
-
1191
- ### Complete Reference
1192
-
1193
- **[→ Document Sharding Guide](../../../../docs/document-sharding-guide.md)** - Comprehensive guide with examples
1194
-
1195
- **BMM Examples**:
1196
-
1197
- - Full Load: `src/modules/bmm/workflows/2-plan-workflows/prd/`
1198
- - Selective Load: `src/modules/bmm/workflows/4-implementation/epic-tech-context/`
1199
-
1200
- ## Web Bundles
1201
-
1202
- Web bundles allow workflows to be deployed as self-contained packages for web environments.
1203
-
1204
- ### When to Use Web Bundles
1205
-
1206
- - Deploying workflows to web-based AI platforms
1207
- - Creating shareable workflow packages
1208
- - Ensuring workflow portability without dependencies
1209
- - Publishing workflows for public use
1210
-
1211
- ### Web Bundle Requirements
1212
-
1213
- 1. **Self-Contained**: No external dependencies
1214
- 2. **No Config Variables**: Cannot use `{config_source}` references
1215
- 3. **Complete File List**: Every referenced file must be listed
1216
- 4. **Relative Paths**: Use `{bmad_folder}/` root paths (no `{project-root}`)
1217
-
1218
- ### Creating a Web Bundle
1219
-
1220
- Add this section to your workflow.yaml ensuring critically all dependant files or workflows are listed:
1221
-
1222
- ```yaml
1223
- web_bundle:
1224
- name: 'workflow-name'
1225
- description: 'Workflow description'
1226
- author: 'Your Name'
1227
-
1228
- # Core files ({bmad_folder}/-relative paths)
1229
- instructions: '{bmad_folder}/module/workflows/workflow/instructions.md'
1230
- validation: '{bmad_folder}/module/workflows/workflow/checklist.md'
1231
- template: '{bmad_folder}/module/workflows/workflow/template.md'
1232
-
1233
- # Data files (no config_source allowed)
1234
- data_file: '{bmad_folder}/module/workflows/workflow/data.csv'
1235
-
1236
- # Complete file list - CRITICAL!
1237
- web_bundle_files:
1238
- - '{bmad_folder}/module/workflows/workflow/instructions.md'
1239
- - '{bmad_folder}/module/workflows/workflow/checklist.md'
1240
- - '{bmad_folder}/module/workflows/workflow/template.md'
1241
- - '{bmad_folder}/module/workflows/workflow/data.csv'
1242
- # Include ALL referenced files
1243
- ```
1244
-
1245
- ### Converting Existing Workflows
1246
-
1247
- 1. **Remove Config Dependencies**:
1248
- - Replace `{config_source}:variable` with hardcoded values
1249
- - Convert `{project-root}/{bmad_folder}/` to `{bmad_folder}/`
1250
-
1251
- 2. **Inventory All Files**:
1252
- - Scan instructions.md for file references
1253
- - Check template.md for includes
1254
- - List all data files
1255
-
1256
- 3. **Test Completeness**:
1257
- - Ensure no missing file references
1258
- - Verify all paths are relative to {bmad_folder}/
1259
-
1260
- ### Example: Complete Web Bundle
1261
-
1262
- ```yaml
1263
- web_bundle:
1264
- name: 'analyze-requirements'
1265
- description: 'Requirements analysis workflow'
1266
- author: 'BMad Team'
1267
-
1268
- instructions: '{bmad_folder}/bmm/workflows/analyze-requirements/instructions.md'
1269
- validation: '{bmad_folder}/bmm/workflows/analyze-requirements/checklist.md'
1270
- template: '{bmad_folder}/bmm/workflows/analyze-requirements/template.md'
1271
-
1272
- # Data files
1273
- techniques_data: '{bmad_folder}/bmm/workflows/analyze-requirements/techniques.csv'
1274
- patterns_data: '{bmad_folder}/bmm/workflows/analyze-requirements/patterns.json'
1275
-
1276
- # Sub-workflow reference
1277
- validation_workflow: '{bmad_folder}/bmm/workflows/validate-requirements/workflow.yaml'
1278
-
1279
- standalone: true
1280
-
1281
- web_bundle_files:
1282
- # Core workflow files
1283
- - '{bmad_folder}/bmm/workflows/analyze-requirements/instructions.md'
1284
- - '{bmad_folder}/bmm/workflows/analyze-requirements/checklist.md'
1285
- - '{bmad_folder}/bmm/workflows/analyze-requirements/template.md'
1286
-
1287
- # Data files
1288
- - '{bmad_folder}/bmm/workflows/analyze-requirements/techniques.csv'
1289
- - '{bmad_folder}/bmm/workflows/analyze-requirements/patterns.json'
1290
-
1291
- # Sub-workflow and its files
1292
- - '{bmad_folder}/bmm/workflows/validate-requirements/workflow.yaml'
1293
- - '{bmad_folder}/bmm/workflows/validate-requirements/instructions.md'
1294
- - '{bmad_folder}/bmm/workflows/validate-requirements/checklist.md'
1295
-
1296
- # Shared templates referenced in instructions
1297
- - '{bmad_folder}/bmm/templates/requirement-item.md'
1298
- - '{bmad_folder}/bmm/templates/validation-criteria.md'
1299
- ```
1300
-
1301
- ## Troubleshooting
1302
-
1303
- ### Variables Not Replaced
1304
-
1305
- - Check exact name match
1306
- - Verify `<template-output>` tag present
1307
- - Ensure step generates the variable
1308
-
1309
- ### Validation Fails
1310
-
1311
- - Review checklist specificity
1312
- - Check for impossible requirements
1313
- - Verify checklist matches template
1314
-
1315
- ### Workflow Too Long
1316
-
1317
- - Combine related steps
1318
- - Make sections optional
1319
- - Create multiple focused workflows with a parent orchestration
1320
- - Reduce elicitation points
1321
-
1322
- ---
1323
-
1324
- _For implementation details, see:_
1325
-
1326
- - `/src/core/tasks/workflow.xml` - Execution engine
1327
- - `/{bmad_folder}/bmm/workflows/` - Production examples