bmad-method 6.0.0-alpha.7 → 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 (457) 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/.vscode/settings.json +2 -1
  5. package/CHANGELOG.md +439 -1
  6. package/README.md +12 -4
  7. package/docs/BUNDLE_DISTRIBUTION_SETUP.md +95 -0
  8. package/docs/agent-customization-guide.md +208 -0
  9. package/docs/ide-info/crush.md +1 -1
  10. package/docs/ide-info/cursor.md +7 -7
  11. package/docs/ide-info/iflow.md +3 -3
  12. package/docs/ide-info/opencode.md +1 -1
  13. package/docs/index.md +3 -1
  14. package/docs/installers-bundlers/ide-injections.md +2 -2
  15. package/docs/installers-bundlers/installers-modules-platforms-reference.md +23 -23
  16. package/docs/v4-to-v6-upgrade.md +12 -12
  17. package/docs/web-bundles-gemini-gpt-guide.md +473 -0
  18. package/package.json +1 -1
  19. package/src/core/_module-installer/install-config.yaml +17 -10
  20. package/src/core/_module-installer/installer.js +0 -8
  21. package/src/core/agents/bmad-master.agent.yaml +5 -5
  22. package/src/core/agents/bmad-web-orchestrator.agent.xml +8 -17
  23. package/src/core/tasks/{adv-elicit.xml → advanced-elicitation.xml} +6 -4
  24. package/src/core/tasks/index-docs.xml +1 -1
  25. package/src/core/tasks/validate-workflow.xml +1 -1
  26. package/src/core/tasks/workflow.xml +125 -11
  27. package/src/core/tools/shard-doc.xml +45 -1
  28. package/src/core/workflows/brainstorming/README.md +6 -16
  29. package/src/core/workflows/brainstorming/instructions.md +6 -5
  30. package/src/core/workflows/brainstorming/template.md +4 -0
  31. package/src/core/workflows/brainstorming/workflow.yaml +8 -8
  32. package/src/core/workflows/party-mode/instructions.md +2 -7
  33. package/src/core/workflows/party-mode/workflow.yaml +10 -6
  34. package/src/modules/bmb/_module-installer/install-config.yaml +9 -4
  35. package/src/modules/bmb/agents/bmad-builder.agent.yaml +11 -10
  36. package/src/modules/bmb/workflows/audit-workflow/checklist.md +5 -6
  37. package/src/modules/bmb/workflows/audit-workflow/instructions.md +5 -5
  38. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +2 -2
  39. package/src/modules/bmb/workflows/convert-legacy/README.md +5 -5
  40. package/src/modules/bmb/workflows/convert-legacy/checklist.md +2 -2
  41. package/src/modules/bmb/workflows/convert-legacy/instructions.md +17 -17
  42. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +6 -6
  43. package/src/modules/bmb/workflows/create-agent/README.md +5 -5
  44. package/src/modules/bmb/workflows/create-agent/agent-architecture.md +15 -19
  45. package/src/modules/bmb/workflows/create-agent/agent-command-patterns.md +28 -28
  46. package/src/modules/bmb/workflows/create-agent/agent-types.md +15 -15
  47. package/src/modules/bmb/workflows/create-agent/checklist.md +3 -3
  48. package/src/modules/bmb/workflows/create-agent/instructions.md +24 -27
  49. package/src/modules/bmb/workflows/create-agent/workflow.yaml +12 -12
  50. package/src/modules/bmb/workflows/create-module/README.md +1 -1
  51. package/src/modules/bmb/workflows/create-module/checklist.md +1 -10
  52. package/src/modules/bmb/workflows/create-module/installer-templates/install-config.yaml +1 -1
  53. package/src/modules/bmb/workflows/create-module/instructions.md +12 -17
  54. package/src/modules/bmb/workflows/create-module/module-structure.md +7 -7
  55. package/src/modules/bmb/workflows/create-module/workflow.yaml +9 -9
  56. package/src/modules/bmb/workflows/create-workflow/README.md +4 -4
  57. package/src/modules/bmb/workflows/create-workflow/checklist.md +1 -1
  58. package/src/modules/bmb/workflows/create-workflow/instructions.md +29 -29
  59. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +40 -42
  60. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +2 -2
  61. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +12 -12
  62. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +5 -5
  63. package/src/modules/bmb/workflows/edit-agent/checklist.md +1 -1
  64. package/src/modules/bmb/workflows/edit-agent/instructions.md +2 -2
  65. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +8 -8
  66. package/src/modules/bmb/workflows/edit-module/README.md +2 -2
  67. package/src/modules/bmb/workflows/edit-module/checklist.md +2 -2
  68. package/src/modules/bmb/workflows/edit-module/instructions.md +4 -4
  69. package/src/modules/bmb/workflows/edit-module/workflow.yaml +10 -10
  70. package/src/modules/bmb/workflows/edit-workflow/instructions.md +4 -4
  71. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +5 -5
  72. package/src/modules/bmb/workflows/module-brief/README.md +2 -2
  73. package/src/modules/bmb/workflows/module-brief/checklist.md +2 -2
  74. package/src/modules/bmb/workflows/module-brief/instructions.md +2 -2
  75. package/src/modules/bmb/workflows/module-brief/workflow.yaml +4 -4
  76. package/src/modules/bmb/workflows/redoc/README.md +5 -5
  77. package/src/modules/bmb/workflows/redoc/instructions.md +1 -1
  78. package/src/modules/bmb/workflows/redoc/workflow.yaml +1 -1
  79. package/src/modules/bmgd/README.md +1 -1
  80. package/src/modules/bmgd/_module-installer/install-config.yaml +12 -24
  81. package/src/modules/bmgd/agents/game-architect.agent.yaml +15 -10
  82. package/src/modules/bmgd/agents/game-designer.agent.yaml +16 -11
  83. package/src/modules/bmgd/agents/game-dev.agent.yaml +18 -12
  84. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +30 -25
  85. package/src/modules/bmgd/teams/default-party.csv +10 -0
  86. package/src/modules/bmgd/teams/team-gamedev.yaml +2 -0
  87. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md +1 -1
  88. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.yaml +9 -9
  89. package/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md +1 -1
  90. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.yaml +8 -8
  91. package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +5 -10
  92. package/src/modules/bmgd/workflows/2-design/gdd/workflow.yaml +30 -30
  93. package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +1 -6
  94. package/src/modules/bmgd/workflows/2-design/narrative/workflow.yaml +5 -5
  95. package/src/modules/bmgd/workflows/3-technical/game-architecture/architecture-patterns.yaml +0 -26
  96. package/src/modules/bmgd/workflows/3-technical/game-architecture/checklist.md +2 -6
  97. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +2 -7
  98. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.yaml +2 -2
  99. package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +25 -47
  100. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +13 -32
  101. package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
  102. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +7 -2
  103. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +32 -25
  104. package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +20 -47
  105. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +16 -24
  106. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +8 -3
  107. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +30 -5
  108. package/src/modules/bmgd/workflows/4-production/epic-tech-context/checklist.md +1 -1
  109. package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +10 -35
  110. package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +16 -24
  111. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +18 -36
  112. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +16 -37
  113. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +11 -15
  114. package/src/modules/bmgd/workflows/4-production/sprint-planning/sprint-status-template.yaml +1 -1
  115. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +8 -7
  116. package/src/modules/bmgd/workflows/4-production/story-context/checklist.md +1 -1
  117. package/src/modules/bmgd/workflows/4-production/story-context/context-template.xml +1 -1
  118. package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +20 -45
  119. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +15 -17
  120. package/src/modules/bmgd/workflows/4-production/story-done/instructions.md +1 -1
  121. package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +5 -4
  122. package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +6 -6
  123. package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +5 -7
  124. package/src/modules/bmm/_module-installer/install-config.yaml +9 -28
  125. package/src/modules/bmm/_module-installer/installer.js +2 -2
  126. package/src/modules/bmm/agents/analyst.agent.yaml +20 -15
  127. package/src/modules/bmm/agents/architect.agent.yaml +17 -12
  128. package/src/modules/bmm/agents/dev.agent.yaml +9 -12
  129. package/src/modules/bmm/agents/pm.agent.yaml +24 -23
  130. package/src/modules/bmm/agents/sm.agent.yaml +24 -19
  131. package/src/modules/bmm/agents/tea.agent.yaml +23 -17
  132. package/src/modules/bmm/agents/tech-writer.agent.yaml +15 -11
  133. package/src/modules/bmm/agents/ux-designer.agent.yaml +16 -11
  134. package/src/modules/bmm/docs/agents-guide.md +4 -4
  135. package/src/modules/bmm/docs/brownfield-guide.md +4 -4
  136. package/src/modules/bmm/docs/enterprise-agentic-development.md +3 -3
  137. package/src/modules/bmm/docs/faq.md +1 -1
  138. package/src/modules/bmm/docs/party-mode.md +3 -3
  139. package/src/modules/bmm/docs/quick-start.md +1 -1
  140. package/src/modules/bmm/docs/test-architecture.md +1 -1
  141. package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
  142. package/src/modules/bmm/teams/default-party.csv +19 -0
  143. package/src/modules/bmm/teams/team-fullstack.yaml +1 -0
  144. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +1 -1
  145. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +8 -8
  146. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +1 -1
  147. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +8 -21
  148. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +10 -12
  149. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +13 -9
  150. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +2 -2
  151. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +2 -2
  152. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +2 -2
  153. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +1 -3
  154. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +2 -7
  155. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +1 -1
  156. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +1 -6
  157. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +14 -14
  158. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +7 -2
  159. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +16 -10
  160. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +8 -12
  161. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +28 -0
  162. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +146 -23
  163. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +7 -9
  164. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +152 -35
  165. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +2 -2
  166. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +20 -16
  167. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +12 -9
  168. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -6
  169. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +434 -0
  170. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +129 -266
  171. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +15 -37
  172. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -26
  173. package/src/modules/bmm/workflows/3-solutioning/architecture/checklist.md +3 -7
  174. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +30 -38
  175. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +25 -43
  176. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +7 -13
  177. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +57 -60
  178. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +12 -12
  179. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +25 -47
  180. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +13 -32
  181. package/src/modules/bmm/workflows/4-implementation/correct-course/checklist.md +1 -1
  182. package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +7 -2
  183. package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +32 -25
  184. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +20 -47
  185. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +16 -24
  186. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +8 -3
  187. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +30 -5
  188. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +1 -1
  189. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +10 -35
  190. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +16 -24
  191. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +18 -36
  192. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +16 -37
  193. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +11 -15
  194. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +1 -1
  195. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +8 -7
  196. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +1 -1
  197. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +1 -1
  198. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +20 -45
  199. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +15 -17
  200. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +1 -1
  201. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +5 -4
  202. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +6 -6
  203. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +5 -7
  204. package/src/modules/bmm/workflows/document-project/checklist.md +1 -1
  205. package/src/modules/bmm/workflows/document-project/instructions.md +5 -5
  206. package/src/modules/bmm/workflows/document-project/workflow.yaml +2 -2
  207. package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +4 -4
  208. package/src/modules/bmm/workflows/document-project/workflows/deep-dive.yaml +5 -5
  209. package/src/modules/bmm/workflows/document-project/workflows/full-scan-instructions.md +13 -13
  210. package/src/modules/bmm/workflows/document-project/workflows/full-scan.yaml +5 -5
  211. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +2 -2
  212. package/src/modules/bmm/workflows/testarch/atdd/workflow.yaml +2 -2
  213. package/src/modules/bmm/workflows/testarch/automate/instructions.md +2 -2
  214. package/src/modules/bmm/workflows/testarch/automate/workflow.yaml +2 -2
  215. package/src/modules/bmm/workflows/testarch/ci/checklist.md +4 -4
  216. package/src/modules/bmm/workflows/testarch/ci/instructions.md +2 -2
  217. package/src/modules/bmm/workflows/testarch/ci/workflow.yaml +2 -2
  218. package/src/modules/bmm/workflows/testarch/framework/checklist.md +4 -4
  219. package/src/modules/bmm/workflows/testarch/framework/instructions.md +2 -2
  220. package/src/modules/bmm/workflows/testarch/framework/workflow.yaml +2 -2
  221. package/src/modules/bmm/workflows/testarch/nfr-assess/instructions.md +1 -1
  222. package/src/modules/bmm/workflows/testarch/nfr-assess/workflow.yaml +2 -2
  223. package/src/modules/bmm/workflows/testarch/test-design/checklist.md +4 -4
  224. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +175 -14
  225. package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +4 -4
  226. package/src/modules/bmm/workflows/testarch/test-design/workflow.yaml +7 -3
  227. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +1 -1
  228. package/src/modules/bmm/workflows/testarch/test-review/workflow.yaml +2 -2
  229. package/src/modules/bmm/workflows/testarch/trace/instructions.md +9 -9
  230. package/src/modules/bmm/workflows/testarch/trace/workflow.yaml +2 -2
  231. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +33 -31
  232. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +5 -4
  233. package/src/modules/bmm/workflows/workflow-status/instructions.md +5 -4
  234. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +9 -16
  235. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +11 -18
  236. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +8 -1
  237. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +9 -2
  238. package/src/modules/bmm/workflows/workflow-status/project-levels.yaml +1 -1
  239. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +2 -9
  240. package/src/modules/bmm/workflows/workflow-status/workflow.yaml +2 -2
  241. package/src/modules/cis/README.md +1 -1
  242. package/src/modules/cis/_module-installer/install-config.yaml +6 -4
  243. package/src/modules/cis/agents/README.md +1 -1
  244. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +13 -8
  245. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +13 -8
  246. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +13 -8
  247. package/src/modules/cis/agents/innovation-strategist.agent.yaml +13 -8
  248. package/src/modules/cis/agents/storyteller.agent.yaml +13 -8
  249. package/src/modules/cis/teams/creative-squad.yaml +1 -0
  250. package/src/modules/cis/teams/default-party.csv +11 -0
  251. package/src/modules/cis/workflows/README.md +1 -1
  252. package/src/modules/cis/workflows/design-thinking/instructions.md +2 -2
  253. package/src/modules/cis/workflows/design-thinking/workflow.yaml +7 -7
  254. package/src/modules/cis/workflows/innovation-strategy/instructions.md +2 -2
  255. package/src/modules/cis/workflows/innovation-strategy/workflow.yaml +7 -7
  256. package/src/modules/cis/workflows/problem-solving/instructions.md +2 -2
  257. package/src/modules/cis/workflows/problem-solving/workflow.yaml +7 -7
  258. package/src/modules/cis/workflows/storytelling/instructions.md +2 -2
  259. package/src/modules/cis/workflows/storytelling/workflow.yaml +7 -7
  260. package/src/utility/models/action-command-header.md +0 -0
  261. package/src/utility/models/agent-activation-ide.xml +3 -3
  262. package/src/utility/models/agent-activation-web.xml +4 -4
  263. package/src/utility/models/agent-command-header.md +1 -0
  264. package/src/utility/models/fragments/activation-steps.xml +3 -2
  265. package/src/utility/models/fragments/handler-validate-workflow.xml +1 -1
  266. package/src/utility/models/fragments/handler-workflow.xml +1 -1
  267. package/src/utility/models/fragments/web-bundle-activation-steps.xml +3 -3
  268. package/tools/cli/README.md +50 -32
  269. package/tools/cli/bundlers/web-bundler.js +86 -17
  270. package/tools/cli/commands/install.js +1 -4
  271. package/tools/cli/installers/lib/core/config-collector.js +201 -28
  272. package/tools/cli/installers/lib/core/detector.js +62 -7
  273. package/tools/cli/installers/lib/core/installer.js +175 -33
  274. package/tools/cli/installers/lib/core/manifest-generator.js +26 -115
  275. package/tools/cli/installers/lib/ide/_base-ide.js +57 -3
  276. package/tools/cli/installers/lib/ide/auggie.js +78 -224
  277. package/tools/cli/installers/lib/ide/claude-code.js +14 -22
  278. package/tools/cli/installers/lib/ide/cline.js +15 -18
  279. package/tools/cli/installers/lib/ide/codex.js +17 -48
  280. package/tools/cli/installers/lib/ide/crush.js +14 -50
  281. package/tools/cli/installers/lib/ide/cursor.js +51 -8
  282. package/tools/cli/installers/lib/ide/gemini.js +87 -37
  283. package/tools/cli/installers/lib/ide/github-copilot.js +47 -35
  284. package/tools/cli/installers/lib/ide/iflow.js +13 -30
  285. package/tools/cli/installers/lib/ide/kilo.js +20 -16
  286. package/tools/cli/installers/lib/ide/manager.js +15 -0
  287. package/tools/cli/installers/lib/ide/opencode.js +16 -17
  288. package/tools/cli/installers/lib/ide/qwen.js +39 -11
  289. package/tools/cli/installers/lib/ide/roo.js +27 -62
  290. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +90 -0
  291. package/tools/cli/installers/lib/ide/{task-tool-command-generator.js → shared/task-tool-command-generator.js} +1 -1
  292. package/tools/cli/installers/lib/ide/{workflow-command-generator.js → shared/workflow-command-generator.js} +11 -9
  293. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +14 -0
  294. package/tools/cli/installers/lib/ide/templates/gemini-agent-command.toml +14 -0
  295. package/tools/cli/installers/lib/ide/templates/gemini-task-command.toml +12 -0
  296. package/tools/cli/installers/lib/ide/{workflow-command-template.md → templates/workflow-command-template.md} +3 -5
  297. package/tools/cli/installers/lib/ide/trae.js +20 -32
  298. package/tools/cli/installers/lib/ide/windsurf.js +18 -8
  299. package/tools/cli/installers/lib/modules/manager.js +89 -17
  300. package/tools/cli/lib/cli-utils.js +52 -50
  301. package/tools/cli/lib/ui.js +29 -12
  302. package/tools/cli/lib/yaml-xml-builder.js +20 -2
  303. package/tools/schema/agent.js +7 -3
  304. package/.claude/commands/bmad/bmb/agents/bmad-builder.md +0 -70
  305. package/.claude/commands/bmad/bmb/workflows/audit-workflow.md +0 -15
  306. package/.claude/commands/bmad/bmb/workflows/convert-legacy.md +0 -15
  307. package/.claude/commands/bmad/bmb/workflows/create-agent.md +0 -15
  308. package/.claude/commands/bmad/bmb/workflows/create-module.md +0 -15
  309. package/.claude/commands/bmad/bmb/workflows/create-workflow.md +0 -15
  310. package/.claude/commands/bmad/bmb/workflows/edit-agent.md +0 -15
  311. package/.claude/commands/bmad/bmb/workflows/edit-module.md +0 -15
  312. package/.claude/commands/bmad/bmb/workflows/edit-workflow.md +0 -15
  313. package/.claude/commands/bmad/bmb/workflows/module-brief.md +0 -15
  314. package/.claude/commands/bmad/bmb/workflows/redoc.md +0 -15
  315. package/.claude/commands/bmad/core/agents/bmad-master.md +0 -71
  316. package/.claude/commands/bmad/core/tasks/index-docs.md +0 -9
  317. package/.claude/commands/bmad/core/tools/shard-doc.md +0 -9
  318. package/.claude/commands/bmad/core/workflows/brainstorming.md +0 -15
  319. package/.claude/commands/bmad/core/workflows/party-mode.md +0 -15
  320. package/.claude/settings.local.json +0 -22
  321. package/bmad/_cfg/agent-manifest.csv +0 -5
  322. package/bmad/_cfg/agents/bmb-bmad-builder.customize.yaml +0 -42
  323. package/bmad/_cfg/agents/core-bmad-master.customize.yaml +0 -42
  324. package/bmad/_cfg/files-manifest.csv +0 -82
  325. package/bmad/_cfg/ides/claude-code.yaml +0 -6
  326. package/bmad/_cfg/manifest.yaml +0 -11
  327. package/bmad/_cfg/task-manifest.csv +0 -13
  328. package/bmad/_cfg/tool-manifest.csv +0 -4
  329. package/bmad/_cfg/workflow-manifest.csv +0 -17
  330. package/bmad/bmb/README.md +0 -194
  331. package/bmad/bmb/agents/bmad-builder.md +0 -70
  332. package/bmad/bmb/config.yaml +0 -14
  333. package/bmad/bmb/workflows/audit-workflow/checklist.md +0 -143
  334. package/bmad/bmb/workflows/audit-workflow/instructions.md +0 -341
  335. package/bmad/bmb/workflows/audit-workflow/template.md +0 -118
  336. package/bmad/bmb/workflows/audit-workflow/workflow.yaml +0 -23
  337. package/bmad/bmb/workflows/convert-legacy/README.md +0 -262
  338. package/bmad/bmb/workflows/convert-legacy/checklist.md +0 -205
  339. package/bmad/bmb/workflows/convert-legacy/instructions.md +0 -377
  340. package/bmad/bmb/workflows/convert-legacy/workflow.yaml +0 -32
  341. package/bmad/bmb/workflows/create-agent/README.md +0 -203
  342. package/bmad/bmb/workflows/create-agent/agent-architecture.md +0 -419
  343. package/bmad/bmb/workflows/create-agent/agent-command-patterns.md +0 -759
  344. package/bmad/bmb/workflows/create-agent/agent-types.md +0 -292
  345. package/bmad/bmb/workflows/create-agent/brainstorm-context.md +0 -174
  346. package/bmad/bmb/workflows/create-agent/checklist.md +0 -62
  347. package/bmad/bmb/workflows/create-agent/communication-styles.md +0 -202
  348. package/bmad/bmb/workflows/create-agent/instructions.md +0 -459
  349. package/bmad/bmb/workflows/create-agent/workflow.yaml +0 -37
  350. package/bmad/bmb/workflows/create-module/README.md +0 -229
  351. package/bmad/bmb/workflows/create-module/brainstorm-context.md +0 -137
  352. package/bmad/bmb/workflows/create-module/checklist.md +0 -244
  353. package/bmad/bmb/workflows/create-module/installer-templates/install-config.yaml +0 -92
  354. package/bmad/bmb/workflows/create-module/installer-templates/installer.js +0 -231
  355. package/bmad/bmb/workflows/create-module/instructions.md +0 -581
  356. package/bmad/bmb/workflows/create-module/module-structure.md +0 -400
  357. package/bmad/bmb/workflows/create-module/workflow.yaml +0 -42
  358. package/bmad/bmb/workflows/create-workflow/README.md +0 -277
  359. package/bmad/bmb/workflows/create-workflow/brainstorm-context.md +0 -197
  360. package/bmad/bmb/workflows/create-workflow/checklist.md +0 -94
  361. package/bmad/bmb/workflows/create-workflow/instructions.md +0 -724
  362. package/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md +0 -1308
  363. package/bmad/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -24
  364. package/bmad/bmb/workflows/create-workflow/workflow-template/instructions.md +0 -13
  365. package/bmad/bmb/workflows/create-workflow/workflow-template/template.md +0 -9
  366. package/bmad/bmb/workflows/create-workflow/workflow-template/workflow.yaml +0 -39
  367. package/bmad/bmb/workflows/create-workflow/workflow.yaml +0 -40
  368. package/bmad/bmb/workflows/edit-agent/README.md +0 -112
  369. package/bmad/bmb/workflows/edit-agent/checklist.md +0 -112
  370. package/bmad/bmb/workflows/edit-agent/instructions.md +0 -290
  371. package/bmad/bmb/workflows/edit-agent/workflow.yaml +0 -33
  372. package/bmad/bmb/workflows/edit-module/README.md +0 -187
  373. package/bmad/bmb/workflows/edit-module/checklist.md +0 -165
  374. package/bmad/bmb/workflows/edit-module/instructions.md +0 -339
  375. package/bmad/bmb/workflows/edit-module/workflow.yaml +0 -34
  376. package/bmad/bmb/workflows/edit-workflow/README.md +0 -119
  377. package/bmad/bmb/workflows/edit-workflow/checklist.md +0 -70
  378. package/bmad/bmb/workflows/edit-workflow/instructions.md +0 -342
  379. package/bmad/bmb/workflows/edit-workflow/workflow.yaml +0 -27
  380. package/bmad/bmb/workflows/module-brief/README.md +0 -264
  381. package/bmad/bmb/workflows/module-brief/checklist.md +0 -116
  382. package/bmad/bmb/workflows/module-brief/instructions.md +0 -267
  383. package/bmad/bmb/workflows/module-brief/template.md +0 -275
  384. package/bmad/bmb/workflows/module-brief/workflow.yaml +0 -29
  385. package/bmad/bmb/workflows/redoc/README.md +0 -87
  386. package/bmad/bmb/workflows/redoc/checklist.md +0 -99
  387. package/bmad/bmb/workflows/redoc/instructions.md +0 -265
  388. package/bmad/bmb/workflows/redoc/workflow.yaml +0 -32
  389. package/bmad/core/agents/bmad-master.md +0 -71
  390. package/bmad/core/agents/bmad-web-orchestrator.agent.xml +0 -122
  391. package/bmad/core/config.yaml +0 -9
  392. package/bmad/core/tasks/adv-elicit-methods.csv +0 -39
  393. package/bmad/core/tasks/adv-elicit.xml +0 -104
  394. package/bmad/core/tasks/index-docs.xml +0 -65
  395. package/bmad/core/tasks/validate-workflow.xml +0 -89
  396. package/bmad/core/tasks/workflow.xml +0 -156
  397. package/bmad/core/tools/shard-doc.xml +0 -65
  398. package/bmad/core/workflows/brainstorming/README.md +0 -271
  399. package/bmad/core/workflows/brainstorming/brain-methods.csv +0 -36
  400. package/bmad/core/workflows/brainstorming/instructions.md +0 -314
  401. package/bmad/core/workflows/brainstorming/template.md +0 -102
  402. package/bmad/core/workflows/brainstorming/workflow.yaml +0 -43
  403. package/bmad/core/workflows/party-mode/instructions.md +0 -188
  404. package/bmad/core/workflows/party-mode/workflow.yaml +0 -23
  405. package/bmad/docs/claude-code-instructions.md +0 -25
  406. package/bmd/README.md +0 -193
  407. package/bmd/agents/cli-chief-sidecar/instructions.md +0 -102
  408. package/bmd/agents/cli-chief-sidecar/knowledge/README.md +0 -68
  409. package/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md +0 -123
  410. package/bmd/agents/cli-chief-sidecar/memories.md +0 -53
  411. package/bmd/agents/cli-chief.agent.yaml +0 -126
  412. package/bmd/agents/doc-keeper-sidecar/instructions.md +0 -177
  413. package/bmd/agents/doc-keeper-sidecar/knowledge/README.md +0 -81
  414. package/bmd/agents/doc-keeper-sidecar/memories.md +0 -88
  415. package/bmd/agents/doc-keeper.agent.yaml +0 -137
  416. package/bmd/agents/release-chief-sidecar/instructions.md +0 -164
  417. package/bmd/agents/release-chief-sidecar/knowledge/README.md +0 -82
  418. package/bmd/agents/release-chief-sidecar/memories.md +0 -73
  419. package/bmd/agents/release-chief.agent.yaml +0 -127
  420. package/bmd/bmad-custom-module-installer-plan.md +0 -1176
  421. package/bmd/config.yaml +0 -12
  422. package/src/modules/bmgd/workflows/4-production/dev-story/AUDIT-REPORT.md +0 -367
  423. package/src/modules/bmm/sub-modules/claude-code/README.md +0 -87
  424. package/src/modules/bmm/sub-modules/claude-code/config.yaml +0 -5
  425. package/src/modules/bmm/sub-modules/claude-code/injections.yaml +0 -242
  426. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/api-documenter.md +0 -102
  427. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/codebase-analyzer.md +0 -82
  428. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/data-analyst.md +0 -101
  429. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-analysis/pattern-detector.md +0 -84
  430. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/dependency-mapper.md +0 -83
  431. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/epic-optimizer.md +0 -81
  432. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/requirements-analyst.md +0 -61
  433. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/technical-decisions-curator.md +0 -168
  434. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/trend-spotter.md +0 -115
  435. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-journey-mapper.md +0 -123
  436. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-planning/user-researcher.md +0 -72
  437. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/market-researcher.md +0 -51
  438. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-research/tech-debt-auditor.md +0 -106
  439. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/document-reviewer.md +0 -102
  440. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/technical-evaluator.md +0 -68
  441. package/src/modules/bmm/sub-modules/claude-code/sub-agents/bmad-review/test-coverage-analyzer.md +0 -108
  442. package/src/modules/bmm/tasks/daily-standup.xml +0 -85
  443. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +0 -200
  444. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +0 -451
  445. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +0 -189
  446. package/src/modules/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +0 -367
  447. package/src/modules/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +0 -49
  448. package/test/fixtures/agent-schema/invalid/persona/principles-as-string.agent.yaml +0 -23
  449. package/web-bundles/bmm/agents/analyst.xml +0 -5028
  450. package/web-bundles/bmm/agents/architect.xml +0 -2047
  451. package/web-bundles/bmm/agents/dev.xml +0 -68
  452. package/web-bundles/bmm/agents/pm.xml +0 -3808
  453. package/web-bundles/bmm/agents/sm.xml +0 -77
  454. package/web-bundles/bmm/agents/tea.xml +0 -66
  455. package/web-bundles/bmm/agents/tech-writer.xml +0 -84
  456. package/web-bundles/bmm/agents/ux-designer.xml +0 -2018
  457. package/web-bundles/bmm/teams/team-fullstack.xml +0 -12039
@@ -1,724 +0,0 @@
1
- # Build Workflow - Workflow Builder Instructions
2
-
3
- <critical>The workflow execution engine is governed by: {project-root}/bmad/core/tasks/workflow.xml</critical>
4
- <critical>You MUST have already loaded and processed: {project-root}/bmad/bmb/workflows/create-workflow/workflow.yaml</critical>
5
- <critical>You MUST fully understand the workflow creation guide at: {workflow_creation_guide}</critical>
6
- <critical>Study the guide thoroughly to follow ALL conventions for optimal human-AI collaboration</critical>
7
- <critical>Communicate in {communication_language} throughout the workflow creation process</critical>
8
-
9
- <workflow>
10
-
11
- <step n="-1" goal="Optional brainstorming phase" optional="true">
12
- <ask>Do you want to brainstorm workflow ideas first? [y/n]</ask>
13
-
14
- <action if="user_response == 'y' or user_response == 'yes'">
15
- Invoke brainstorming workflow to explore ideas and design concepts:
16
- - Workflow: {project-root}/bmad/core/workflows/brainstorming/workflow.yaml
17
- - Context data: {installed_path}/brainstorm-context.md
18
- - Purpose: Generate creative workflow ideas, explore different approaches, and clarify requirements
19
-
20
- The brainstorming output will inform:
21
-
22
- - Workflow purpose and goals
23
- - Workflow type selection
24
- - Step design and structure
25
- - User experience considerations
26
- - Technical requirements
27
- </action>
28
-
29
- <action if="user_response == 'n' or user_response == 'no'">
30
- Skip brainstorming and proceed directly to workflow building process.
31
- </action>
32
- </step>
33
-
34
- <step n="0" goal="Load and understand workflow conventions">
35
- <action>Load the complete workflow creation guide from: {workflow_creation_guide}</action>
36
- <action>Study all sections thoroughly including:
37
- - Core concepts (tasks vs workflows, workflow types)
38
- - Workflow structure (required/optional files, patterns)
39
- - Writing instructions (step attributes, XML tags, flow control)
40
- - Templates and variables (syntax, naming, sources)
41
- - Validation best practices
42
- - Common pitfalls to avoid
43
- </action>
44
- <action>Load template files from: {workflow_template_path}/</action>
45
- <critical>You must follow ALL conventions from the guide to ensure optimal human-AI collaboration</critical>
46
- </step>
47
-
48
- <step n="1" goal="Define workflow purpose and type">
49
- Ask the user:
50
- - What is the workflow name? (kebab-case, e.g., "product-brief")
51
- - What module will it belong to? (e.g., "bmm", "bmb", "cis")
52
- - Store as {{target_module}} for output path determination
53
- - What is the workflow's main purpose?
54
- - What type of workflow is this?
55
- - Document workflow (generates documents like PRDs, specs)
56
- - Action workflow (performs actions like refactoring)
57
- - Interactive workflow (guided sessions)
58
- - Autonomous workflow (runs without user input)
59
- - Meta-workflow (coordinates other workflows)
60
-
61
- Based on type, determine which files are needed:
62
-
63
- - Document: workflow.yaml + template.md + instructions.md + checklist.md
64
- - Action: workflow.yaml + instructions.md
65
- - Others: Varies based on requirements
66
-
67
- <critical>Determine output location based on module assignment:</critical>
68
-
69
- - If workflow belongs to module: Save to {module_output_folder}
70
- - If standalone workflow: Save to {standalone_output_folder}
71
-
72
- Store decisions for later use.
73
- </step>
74
-
75
- <step n="2" goal="Gather workflow metadata and invocation settings">
76
- Collect essential configuration details:
77
- - Description (clear purpose statement)
78
- - Author name (default to user_name or "BMad")
79
- - Output file naming pattern
80
- - Any required input documents
81
- - Any required tools or dependencies
82
-
83
- <action>Determine standalone property - this controls how the workflow can be invoked:
84
-
85
- Explain to the user:
86
-
87
- **Standalone Property** controls whether the workflow can be invoked directly or only called by other workflows/agents.
88
-
89
- **standalone: true (DEFAULT - Recommended for most workflows)**:
90
-
91
- - Users can invoke directly via IDE commands or `/workflow-name`
92
- - Shows up in IDE command palette
93
- - Can also be called from agent menus or other workflows
94
- - Use for: User-facing workflows, entry-point workflows, any workflow users run directly
95
-
96
- **standalone: false (Use for helper/internal workflows)**:
97
-
98
- - Cannot be invoked directly by users
99
- - Only called via `<invoke-workflow>` from other workflows or agent menus
100
- - Doesn't appear in IDE command palette
101
- - Use for: Internal utilities, sub-workflows, helpers that don't make sense standalone
102
-
103
- Most workflows should be `standalone: true` to give users direct access.
104
- </action>
105
-
106
- <ask>Should this workflow be directly invokable by users?
107
-
108
- 1. **Yes (Recommended)** - Users can run it directly (standalone: true)
109
- 2. **No** - Only called by other workflows/agents (standalone: false)
110
-
111
- Most workflows choose option 1:
112
- </ask>
113
-
114
- <action>Store {{standalone_setting}} as true or false based on response</action>
115
-
116
- Create the workflow name in kebab-case and verify it doesn't conflict with existing workflows.
117
- </step>
118
-
119
- <step n="3" goal="Understand workflow interaction style and design steps">
120
- <critical>Instruction style and interactivity level fundamentally shape the user experience - choose thoughtfully</critical>
121
-
122
- <action>Reference the comprehensive "Instruction Styles: Intent-Based vs Prescriptive" section from the loaded creation guide</action>
123
-
124
- <action>Discuss instruction style collaboratively with the user:
125
-
126
- Explain that there are two primary approaches:
127
-
128
- **Intent-Based (RECOMMENDED as default)**:
129
-
130
- - Gives AI goals and principles, lets it adapt conversation naturally
131
- - More flexible, conversational, responsive to user context
132
- - Better for: discovery, complex decisions, teaching, varied user skill levels
133
- - Uses <action> tags with guiding instructions
134
- - Example from architecture workflow: Facilitates decisions adapting to user_skill_level
135
-
136
- **Prescriptive**:
137
-
138
- - Provides exact questions and specific options
139
- - More controlled, predictable, consistent across runs
140
- - Better for: simple data collection, finite options, compliance, quick setup
141
- - Uses <ask> tags with specific question text
142
- - Example: Platform selection with 5 defined choices
143
-
144
- Explain that **most workflows should default to intent-based** but use prescriptive for simple data points.
145
- The architecture workflow is an excellent example of intent-based with prescriptive moments.
146
- </action>
147
-
148
- <ask>For this workflow's PRIMARY style:
149
-
150
- 1. **Intent-based (Recommended)** - Adaptive, conversational, responds to user context
151
- 2. **Prescriptive** - Structured, consistent, controlled interactions
152
- 3. **Mixed/Balanced** - I'll help you decide step-by-step
153
-
154
- What feels right for your workflow's purpose?
155
- </ask>
156
-
157
- <action>Store {{instruction_style}} preference</action>
158
-
159
- <action>Now discuss interactivity level:
160
-
161
- Beyond style, consider **how interactive** this workflow should be:
162
-
163
- **High Interactivity (Collaborative)**:
164
-
165
- - Constant back-and-forth with user
166
- - User guides direction, AI facilitates
167
- - Iterative refinement and review
168
- - Best for: creative work, complex decisions, learning experiences
169
- - Example: Architecture workflow's collaborative decision-making
170
-
171
- **Medium Interactivity (Guided)**:
172
-
173
- - Key decision points have interaction
174
- - AI proposes, user confirms or refines
175
- - Validation checkpoints
176
- - Best for: most document workflows, structured processes
177
- - Example: PRD workflow with sections to review
178
-
179
- **Low Interactivity (Autonomous)**:
180
-
181
- - Minimal user input required
182
- - AI works independently with guidelines
183
- - User reviews final output
184
- - Best for: automated generation, batch processing
185
- - Example: Generating user stories from epics
186
- </action>
187
-
188
- <ask>What interactivity level suits this workflow?
189
-
190
- 1. **High** - Highly collaborative, user actively involved throughout (Recommended)
191
- 2. **Medium** - Guided with key decision points
192
- 3. **Low** - Mostly autonomous with final review
193
-
194
- Select the level that matches your workflow's purpose:
195
- </ask>
196
-
197
- <action>Store {{interactivity_level}} preference</action>
198
-
199
- <action>Explain how these choices will inform the workflow design:
200
-
201
- - Intent-based + High interactivity: Conversational discovery with open questions
202
- - Intent-based + Medium: Facilitated guidance with confirmation points
203
- - Intent-based + Low: Principle-based autonomous generation
204
- - Prescriptive + any level: Structured questions, but frequency varies
205
- - Mixed: Strategic use of both styles where each works best
206
- </action>
207
-
208
- <action>Now work with user to outline workflow steps:
209
-
210
- - How many major steps? (Recommend 3-7 for most workflows)
211
- - What is the goal of each step?
212
- - Which steps are optional?
213
- - Which steps need heavy user collaboration vs autonomous execution?
214
- - Which steps should repeat?
215
- - What variables/outputs does each step produce?
216
-
217
- Consider their instruction_style and interactivity_level choices when designing step flow:
218
-
219
- - High interactivity: More granular steps with collaboration
220
- - Low interactivity: Larger autonomous steps with review
221
- - Intent-based: Focus on goals and principles in step descriptions
222
- - Prescriptive: Define specific questions and options
223
- </action>
224
-
225
- <action>Create a step outline that matches the chosen style and interactivity level</action>
226
- <action>Note which steps should be intent-based vs prescriptive (if mixed approach)</action>
227
-
228
- <template-output>step_outline</template-output>
229
- </step>
230
-
231
- <step n="4" goal="Create workflow.yaml">
232
- Load and use the template at: {template_workflow_yaml}
233
-
234
- Replace all placeholders following the workflow creation guide conventions:
235
-
236
- - {TITLE} → Proper case workflow name
237
- - {WORKFLOW_CODE} → kebab-case name
238
- - {WORKFLOW_DESCRIPTION} → Clear description
239
- - {module-code} → Target module
240
- - {file.md} → Output filename pattern
241
-
242
- Include:
243
-
244
- - All metadata from steps 1-2
245
- - **Standalone property**: Use {{standalone_setting}} from step 2 (true or false)
246
- - Proper paths for installed_path using variable substitution
247
- - Template/instructions/validation paths based on workflow type:
248
- - Document workflow: all files (template, instructions, validation)
249
- - Action workflow: instructions only (template: false)
250
- - Autonomous: set autonomous: true flag
251
- - Required tools if any
252
- - Recommended inputs if any
253
-
254
- <critical>ALWAYS include the standard config block:</critical>
255
-
256
- ```yaml
257
- # Critical variables from config
258
- config_source: '{project-root}/bmad/{{target_module}}/config.yaml'
259
- output_folder: '{config_source}:output_folder'
260
- user_name: '{config_source}:user_name'
261
- communication_language: '{config_source}:communication_language'
262
- date: system-generated
263
- ```
264
-
265
- <critical>This standard config ensures workflows can run autonomously and communicate properly with users</critical>
266
-
267
- <critical>ALWAYS include the standalone property:</critical>
268
-
269
- ```yaml
270
- standalone: { { standalone_setting } } # true or false from step 2
271
- ```
272
-
273
- **Example complete workflow.yaml structure**:
274
-
275
- ```yaml
276
- name: 'workflow-name'
277
- description: 'Clear purpose statement'
278
-
279
- # Paths
280
- installed_path: '{project-root}/bmad/module/workflows/name'
281
- template: '{installed_path}/template.md'
282
- instructions: '{installed_path}/instructions.md'
283
- validation: '{installed_path}/checklist.md'
284
-
285
- # Critical variables from config
286
- config_source: '{project-root}/bmad/module/config.yaml'
287
- output_folder: '{config_source}:output_folder'
288
- user_name: '{config_source}:user_name'
289
- communication_language: '{config_source}:communication_language'
290
- date: system-generated
291
-
292
- # Output
293
- default_output_file: '{output_folder}/document.md'
294
-
295
- # Invocation control
296
- standalone: true # or false based on step 2 decision
297
- ```
298
-
299
- Follow path conventions from guide:
300
-
301
- - Use {project-root} for absolute paths
302
- - Use {installed_path} for workflow components
303
- - Use {config_source} for config references
304
-
305
- <critical>Determine save location:</critical>
306
-
307
- - Use the output folder determined in Step 1 (module or standalone)
308
- - Write to {{output_folder}}/workflow.yaml
309
- </step>
310
-
311
- <step n="5" goal="Create instructions.md" if="workflow_type != 'template-only'">
312
- Load and use the template at: {template_instructions}
313
-
314
- Generate the instructions.md file following the workflow creation guide:
315
-
316
- 1. ALWAYS include critical headers:
317
- - Workflow engine reference: {project-root}/bmad/core/tasks/workflow.xml
318
- - workflow.yaml reference: must be loaded and processed
319
-
320
- 2. Structure with <workflow> tags containing all steps
321
-
322
- 3. For each step from design phase, follow guide conventions:
323
- - Step attributes: n="X" goal="clear goal statement"
324
- - Optional steps: optional="true"
325
- - Repeating: repeat="3" or repeat="for-each-X" or repeat="until-approved"
326
- - Conditional: if="condition"
327
- - Sub-steps: Use 3a, 3b notation
328
-
329
- 4. Use proper XML tags from guide:
330
- - Execution: <action>, <check>, <ask>, <goto>, <invoke-workflow>
331
- - Output: <template-output>, <invoke-task halt="true">{project-root}/bmad/core/tasks/adv-elicit.xml</invoke-task>, <critical>, <example>
332
- - Flow: <loop>, <break>, <continue>
333
-
334
- 5. Best practices from guide:
335
- - Keep steps focused (single goal)
336
- - Be specific ("Write 1-2 paragraphs" not "Write about")
337
- - Provide examples where helpful
338
- - Set limits ("3-5 items maximum")
339
- - Save checkpoints with <template-output>
340
-
341
- <critical>Standard config variable usage:</critical>
342
-
343
- Instructions MUST use the standard config variables where appropriate:
344
-
345
- - Communicate in {communication_language} throughout the workflow
346
- - Address user as {user_name} in greetings and summaries
347
- - Write all output files to {output_folder} or subdirectories
348
- - Include {date} in generated document headers
349
-
350
- Example usage in instructions:
351
-
352
- ```xml
353
- <action>Write document to {output_folder}/output-file.md</action>
354
- <critical>Communicate all responses in {communication_language}</critical>
355
- <output>Hello {user_name}, the workflow is complete!</output>
356
- ```
357
-
358
- <critical>Applying instruction style preference:</critical>
359
-
360
- Based on the {{instruction_style}} preference from Step 3, generate instructions using these patterns:
361
-
362
- **Intent-Based Instructions (Recommended for most workflows):**
363
-
364
- Focus on goals, principles, and desired outcomes. Let the LLM adapt the conversation naturally.
365
-
366
- ✅ **Good Examples:**
367
-
368
- ```xml
369
- <!-- Discovery and exploration -->
370
- <action>Guide user to define their target audience with specific demographics, psychographics, and behavioral characteristics</action>
371
- <action>Explore the user's vision for the product, asking probing questions to uncover core motivations and success criteria</action>
372
- <action>Help user identify and prioritize key features based on user value and technical feasibility</action>
373
-
374
- <!-- Validation and refinement -->
375
- <action>Validate that the technical approach aligns with project constraints and team capabilities</action>
376
- <action>Challenge assumptions about user needs and market fit with thought-provoking questions</action>
377
-
378
- <!-- Complex iterative work -->
379
- <action>Collaborate with user to refine the architecture, iterating until they're satisfied with the design</action>
380
- ```
381
-
382
- ❌ **Avoid (too prescriptive):**
383
-
384
- ```xml
385
- <ask>What is your target audience age range? Choose: 18-24, 25-34, 35-44, 45+</ask>
386
- <ask>List exactly 3 key features in priority order</ask>
387
- ```
388
-
389
- **When to use Intent-Based:**
390
-
391
- - Complex discovery processes (user research, requirements gathering)
392
- - Creative brainstorming and ideation
393
- - Iterative refinement workflows
394
- - When user input quality matters more than consistency
395
- - Workflows requiring adaptation to context
396
-
397
- **Prescriptive Instructions (Use selectively):**
398
-
399
- Provide exact wording, specific options, and controlled interactions.
400
-
401
- ✅ **Good Examples:**
402
-
403
- ```xml
404
- <!-- Simple data collection -->
405
- <ask>What is your target platform? Choose: PC, Console, Mobile, Web</ask>
406
- <ask>Select monetization model: Premium, Free-to-Play, Subscription, Ad-Supported</ask>
407
-
408
- <!-- Compliance and standards -->
409
- <ask>Does this comply with GDPR requirements? [yes/no]</ask>
410
- <ask>Choose documentation standard: JSDoc, TypeDoc, TSDoc</ask>
411
-
412
- <!-- Binary decisions -->
413
- <ask>Do you want to generate test cases? [yes/no]</ask>
414
- <ask>Include performance benchmarks? [yes/no]</ask>
415
- ```
416
-
417
- ❌ **Avoid (too rigid for complex tasks):**
418
-
419
- ```xml
420
- <ask>What are your product goals? List exactly 5 goals, each 10-15 words</ask>
421
- <ask>Describe your user persona in exactly 3 sentences</ask>
422
- ```
423
-
424
- **When to use Prescriptive:**
425
-
426
- - Simple data collection (platform, format, yes/no choices)
427
- - Compliance verification and standards adherence
428
- - Configuration with finite options
429
- - When consistency is critical across all executions
430
- - Quick setup wizards
431
-
432
- **Mixing Both Styles (Best Practice):**
433
-
434
- Even if user chose a primary style, use the other when appropriate:
435
-
436
- ```xml
437
- <!-- Intent-based workflow with prescriptive moments -->
438
- <step n="1" goal="Understand user vision">
439
- <action>Explore the user's vision for their game, uncovering their creative intent and target experience</action>
440
- <action>Ask probing questions about genre, themes, and emotional tone they want to convey</action>
441
- </step>
442
-
443
- <step n="2" goal="Capture basic metadata">
444
- <ask>What is your target platform? Choose: PC, Console, Mobile, Web</ask> <!-- Prescriptive for simple choice -->
445
- <ask>Select primary genre: Action, RPG, Strategy, Puzzle, Simulation, Other</ask>
446
- </step>
447
-
448
- <step n="3" goal="Deep dive into gameplay">
449
- <action>Guide user to articulate their core gameplay loop, exploring mechanics and player agency</action> <!-- Back to intent-based -->
450
- <action>Help them identify what makes their game unique and compelling</action>
451
- </step>
452
- ```
453
-
454
- **Guidelines for the chosen style:**
455
-
456
- If user chose **Intent-Based**:
457
-
458
- - Default to goal-oriented <action> tags
459
- - Use open-ended guidance language
460
- - Save prescriptive <ask> tags for simple data/choices
461
- - Focus on "guide", "explore", "help user", "validate"
462
- - Allow LLM to adapt questions to user responses
463
-
464
- If user chose **Prescriptive**:
465
-
466
- - Default to explicit <ask> tags with clear options
467
- - Use precise wording for consistency
468
- - Save intent-based <action> tags for complex discovery
469
- - Focus on "choose", "select", "specify", "confirm"
470
- - Provide structured choices when possible
471
-
472
- **Remember:** The goal is optimal human-AI collaboration. Use whichever style best serves the user at each step.
473
-
474
- <critical>Save location:</critical>
475
-
476
- - Write to {{output_folder}}/instructions.md
477
- </step>
478
-
479
- <step n="6" goal="Create template.md" if="workflow_type == 'document'">
480
- Load and use the template at: {template_template}
481
-
482
- Generate the template.md file following guide conventions:
483
-
484
- 1. Document structure with clear sections
485
- 2. Variable syntax: {{variable_name}} using snake_case
486
- 3. Variable names MUST match <template-output> tags exactly from instructions
487
- 4. Include standard metadata header (optional - config variables available):
488
-
489
- ```markdown
490
- # Document Title
491
-
492
- **Date:** {{date}}
493
-
494
- **Author:** {{user_name}}
495
- ```
496
-
497
- Note: {{date}} and {{user_name}} are optional in headers. Primary purpose of these variables:
498
- - {{date}} - Gives agent current date awareness (not confused with training cutoff)
499
- - {{user_name}} - Optional author attribution
500
- - {{communication_language}} - NOT for document output! Tells agent how to communicate during execution
501
-
502
- 5. Follow naming conventions from guide:
503
- - Use descriptive names: {{primary_user_journey}} not {{puj}}
504
- - Snake_case for all variables
505
- - Match instruction outputs precisely
506
-
507
- Variable sources as per guide:
508
-
509
- - workflow.yaml config values (user_name, communication_language, date, output_folder)
510
- - User input runtime values
511
- - Step outputs via <template-output>
512
- - System variables (date, paths)
513
-
514
- <critical>Standard config variables in templates:</critical>
515
-
516
- Templates CAN optionally use these config variables:
517
-
518
- - {{user_name}} - Document author (optional)
519
- - {{date}} - Generation date (optional)
520
-
521
- IMPORTANT: {{communication_language}} is NOT for document headers!
522
-
523
- - Purpose: Tells agent how to communicate with user during workflow execution
524
- - NOT for: Document output language or template headers
525
- - Future: {{document_output_language}} will handle multilingual document generation
526
-
527
- These variables are automatically available from workflow.yaml config block.
528
-
529
- <critical>Save location:</critical>
530
-
531
- - Write to {{output_folder}}/template.md
532
- </step>
533
-
534
- <step n="7" goal="Create validation checklist" optional="true">
535
- Ask if user wants a validation checklist. If yes:
536
-
537
- Load and use the template at: {template_checklist}
538
-
539
- Create checklist.md following guide best practices:
540
-
541
- 1. Make criteria MEASURABLE and SPECIFIC
542
- ❌ "- [ ] Good documentation"
543
- ✅ "- [ ] Each function has JSDoc comments with parameters and return types"
544
-
545
- 2. Group checks logically:
546
- - Structure: All sections present, no placeholders, proper formatting
547
- - Content Quality: Clear and specific, technically accurate, consistent terminology
548
- - Completeness: Ready for next phase, dependencies documented, action items defined
549
-
550
- 3. Include workflow-specific validations based on type:
551
- - Document workflows: Template variables mapped, sections complete
552
- - Action workflows: Actions clearly defined, error handling specified
553
- - Interactive: User prompts clear, decision points documented
554
-
555
- 4. Add final validation section with issue lists
556
-
557
- <critical>Save location:</critical>
558
-
559
- - Write to {{output_folder}}/checklist.md
560
- </step>
561
-
562
- <step n="8" goal="Create supporting files" optional="true">
563
- Ask if any supporting data files are needed:
564
- - CSV files with data
565
- - Example documents
566
- - Reference materials
567
-
568
- If yes, create placeholder files or copy from templates.
569
- </step>
570
-
571
- <step n="9" goal="Test and validate workflow">
572
- Review the created workflow:
573
-
574
- **Basic Validation:**
575
-
576
- 1. Verify all file paths are correct
577
- 2. Check variable names match between files
578
- 3. Ensure step numbering is sequential
579
- 4. Validate YAML syntax
580
- 5. Confirm all placeholders are replaced
581
-
582
- **Standard Config Validation:**
583
-
584
- 6. Verify workflow.yaml contains standard config block:
585
-
586
- - config_source defined
587
- - output_folder, user_name, communication_language pulled from config
588
- - date set to system-generated
589
-
590
- 7. Check instructions use config variables where appropriate
591
- 8. Verify template includes config variables in metadata (if document workflow)
592
-
593
- **YAML/Instruction/Template Alignment:**
594
-
595
- 9. Cross-check all workflow.yaml variables against instruction usage:
596
-
597
- - Are all yaml variables referenced in instructions.md OR template.md?
598
- - Are there hardcoded values that should be variables?
599
- - Do template variables match <template-output> tags in instructions?
600
-
601
- 10. Identify any unused yaml fields (bloat detection)
602
-
603
- Show user a summary of created files and their locations.
604
- Ask if they want to:
605
-
606
- - Test run the workflow
607
- - Make any adjustments
608
- - Add additional steps or features
609
- </step>
610
-
611
- <step n="9b" goal="Configure web bundle (optional)">
612
- <ask>Will this workflow need to be deployable as a web bundle? [yes/no]</ask>
613
-
614
- If yes:
615
- <action>Explain web bundle requirements:</action>
616
-
617
- - Web bundles are self-contained and cannot use config_source variables
618
- - All files must be explicitly listed in web_bundle_files
619
- - File paths use bmad/ root (not {project-root})
620
-
621
- <action>Configure web_bundle section in workflow.yaml:</action>
622
-
623
- 1. Copy core workflow metadata (name, description, author)
624
- 2. Convert all file paths to bmad/-relative paths:
625
- - Remove {project-root}/ prefix
626
- - Remove {config_source} references (use hardcoded values)
627
- - Example: "{project-root}/bmad/bmm/workflows/x" → "bmad/bmm/workflows/x"
628
-
629
- 3. List ALL referenced files by scanning:
630
-
631
- **Scan instructions.md for:**
632
- - File paths in <action> tags
633
- - Data files (CSV, JSON, YAML, etc.)
634
- - Validation/checklist files
635
- - Any <invoke-workflow> calls → must include that workflow's yaml file
636
- - Any <goto> tags that reference other workflows
637
- - Shared templates or includes
638
-
639
- **Scan template.md for:**
640
- - Any includes or references to other files
641
- - Shared template fragments
642
-
643
- **Critical: Workflow Dependencies**
644
- - If instructions call another workflow, that workflow's yaml MUST be in web_bundle_files
645
- - Example: `<invoke-workflow>{project-root}/bmad/core/workflows/x/workflow.yaml</invoke-workflow>`
646
- → Add "bmad/core/workflows/x/workflow.yaml" to web_bundle_files
647
-
648
- 4. Create web_bundle_files array with complete list
649
-
650
- Example:
651
-
652
- ```yaml
653
- web_bundle:
654
- name: '{workflow_name}'
655
- description: '{workflow_description}'
656
- author: '{author}'
657
- instructions: 'bmad/{module}/workflows/{workflow}/instructions.md'
658
- validation: 'bmad/{module}/workflows/{workflow}/checklist.md'
659
- template: 'bmad/{module}/workflows/{workflow}/template.md'
660
-
661
- # Any data files (no config_source)
662
- data_file: 'bmad/{module}/workflows/{workflow}/data.csv'
663
-
664
- web_bundle_files:
665
- - 'bmad/{module}/workflows/{workflow}/instructions.md'
666
- - 'bmad/{module}/workflows/{workflow}/checklist.md'
667
- - 'bmad/{module}/workflows/{workflow}/template.md'
668
- - 'bmad/{module}/workflows/{workflow}/data.csv'
669
- # Add every single file referenced anywhere
670
-
671
- # CRITICAL: If this workflow invokes other workflows, use existing_workflows
672
- # This signals the bundler to recursively include those workflows' web_bundles
673
- existing_workflows:
674
- - workflow_variable_name: 'bmad/path/to/workflow.yaml'
675
- ```
676
-
677
- **Example with existing_workflows:**
678
-
679
- ```yaml
680
- web_bundle:
681
- name: 'brainstorm-game'
682
- description: 'Game brainstorming with CIS workflow'
683
- author: 'BMad'
684
- instructions: 'bmad/bmm/workflows/brainstorm-game/instructions.md'
685
- template: false
686
- web_bundle_files:
687
- - 'bmad/bmm/workflows/brainstorm-game/instructions.md'
688
- - 'bmad/mmm/workflows/brainstorm-game/game-context.md'
689
- - 'bmad/core/workflows/brainstorming/workflow.yaml'
690
- existing_workflows:
691
- - core_brainstorming: 'bmad/core/workflows/brainstorming/workflow.yaml'
692
- ```
693
-
694
- **What existing_workflows does:**
695
-
696
- - Tells the bundler this workflow invokes another workflow
697
- - Bundler recursively includes the invoked workflow's entire web_bundle
698
- - Essential for meta-workflows that orchestrate other workflows
699
- - Maps workflow variable names to their bmad/-relative paths
700
-
701
- <action>Validate web bundle completeness:</action>
702
-
703
- - Ensure no {config_source} variables remain
704
- - Verify all file paths are listed
705
- - Check that paths are bmad/-relative
706
- - If workflow uses <invoke-workflow>, add to existing_workflows
707
-
708
- <template-output>web_bundle_config</template-output>
709
- </step>
710
-
711
- <step n="10" goal="Document and finalize">
712
- <action>Create a brief README for the workflow folder explaining purpose, how to invoke, expected inputs, generated outputs, and any special requirements</action>
713
-
714
- <action>Provide {user_name} with workflow completion summary in {communication_language}:</action>
715
-
716
- - Location of created workflow: {{output_folder}}
717
- - Command to run it: `workflow {workflow_name}`
718
- - Next steps:
719
- - Run the BMAD Method installer to this project location
720
- - Select 'Compile Agents (Quick rebuild of all agent .md files)' after confirming the folder
721
- - This will compile the new workflow and make it available for use
722
- </step>
723
-
724
- </workflow>