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,34 +0,0 @@
1
- # Edit Module - Module Editor Configuration
2
- name: "edit-module"
3
- description: "Edit existing BMAD modules (structure, agents, workflows, documentation) while following all best practices"
4
- author: "BMad"
5
-
6
- # Critical variables load from config_source
7
- config_source: "{project-root}/bmad/bmb/config.yaml"
8
- communication_language: "{config_source}:communication_language"
9
- user_name: "{config_source}:user_name"
10
-
11
- # Required Data Files - Critical for understanding module conventions
12
- module_structure_guide: "{project-root}/bmad/bmb/workflows/create-module/module-structure.md"
13
-
14
- # Related workflow editors
15
- agent_editor: "{project-root}/bmad/bmb/workflows/edit-agent/workflow.yaml"
16
- workflow_editor: "{project-root}/bmad/bmb/workflows/edit-workflow/workflow.yaml"
17
-
18
- # Optional docs that can be used to understand the target module
19
- recommended_inputs:
20
- - target_module: "Path to the module directory to edit"
21
- - bmm_module: "{project-root}/bmad/bmm/"
22
- - bmb_module: "{project-root}/bmad/bmb/"
23
- - cis_module: "{project-root}/bmad/cis/"
24
- - existing_agents: "{project-root}/bmad/*/agents/"
25
- - existing_workflows: "{project-root}/bmad/*/workflows/"
26
-
27
- # Module path and component files
28
- installed_path: "{project-root}/bmad/bmb/workflows/edit-module"
29
- template: false # This is an action workflow - no template needed
30
- instructions: "{installed_path}/instructions.md"
31
- validation: "{installed_path}/checklist.md"
32
-
33
- standalone: true
34
- # Web bundle configuration
@@ -1,119 +0,0 @@
1
- # Edit Workflow
2
-
3
- ## Purpose
4
-
5
- An intelligent workflow editor that helps you modify existing BMAD workflows while adhering to all best practices and conventions documented in the workflow creation guide.
6
-
7
- ## Use Case
8
-
9
- When you need to:
10
-
11
- - Fix issues in existing workflows
12
- - Update workflow configuration or metadata
13
- - Improve instruction clarity and specificity
14
- - Add new features or capabilities
15
- - Ensure compliance with BMAD workflow conventions
16
-
17
- ## How to Invoke
18
-
19
- ```
20
- workflow edit-workflow
21
- ```
22
-
23
- Or through a BMAD agent:
24
-
25
- ```
26
- *edit-workflow
27
- ```
28
-
29
- ## Expected Inputs
30
-
31
- - **Target workflow path**: Path to the workflow.yaml file or workflow folder you want to edit
32
- - **Edit type selection**: Choice of what aspect to modify
33
- - **User approval**: For each proposed change
34
-
35
- ## Generated Outputs
36
-
37
- - Modified workflow files (in place)
38
- - Optional change log at: `{output_folder}/workflow-edit-log-{date}.md`
39
-
40
- ## Features
41
-
42
- 1. **Comprehensive Analysis**: Checks workflows against the official creation guide
43
- 2. **Prioritized Issues**: Identifies and ranks issues by importance
44
- 3. **Guided Editing**: Step-by-step process with explanations
45
- 4. **Best Practices**: Ensures all edits follow BMAD conventions
46
- 5. **Instruction Style Optimization**: Convert between intent-based and prescriptive styles
47
- 6. **Validation**: Checks all changes for correctness
48
- 7. **Change Tracking**: Documents what was modified and why
49
-
50
- ## Understanding Instruction Styles
51
-
52
- When editing workflows, one powerful option is **adjusting the instruction style** to better match the workflow's purpose.
53
-
54
- ### Intent-Based vs Prescriptive Instructions
55
-
56
- **Intent-Based (Recommended for most workflows)**
57
-
58
- Guides the AI with goals and principles, allowing flexible conversation.
59
-
60
- - **More flexible and conversational** - AI adapts to user responses
61
- - **Better for complex discovery** - Requirements gathering, creative exploration
62
- - **Quality over consistency** - Deep understanding matters more
63
- - **Example**: `<action>Guide user to define their target audience with specific demographics and needs</action>`
64
-
65
- **When to use:**
66
-
67
- - Complex discovery processes (user research, requirements)
68
- - Creative brainstorming and ideation
69
- - Iterative refinement workflows
70
- - Workflows requiring nuanced understanding
71
-
72
- **Prescriptive**
73
-
74
- Provides exact questions with structured options.
75
-
76
- - **More controlled and predictable** - Consistent questions every time
77
- - **Better for simple data collection** - Platform, format, yes/no choices
78
- - **Consistency over quality** - Same execution every run
79
- - **Example**: `<ask>What is your target platform? Choose: PC, Console, Mobile, Web</ask>`
80
-
81
- **When to use:**
82
-
83
- - Simple data collection (platform, format, binary choices)
84
- - Compliance verification and standards adherence
85
- - Configuration with finite options
86
- - Quick setup wizards
87
-
88
- ### Edit Workflow's Style Adjustment Feature
89
-
90
- The **"Adjust instruction style"** editing option (menu option 11) helps you:
91
-
92
- 1. **Analyze current style** - Identifies whether workflow is primarily intent-based or prescriptive
93
- 2. **Convert between styles** - Transform prescriptive steps to intent-based (or vice versa)
94
- 3. **Optimize the mix** - Intelligently recommend the best style for each step
95
- 4. **Step-by-step control** - Review and decide on each step individually
96
-
97
- **Common scenarios:**
98
-
99
- - **Make workflow more conversational**: Convert rigid <ask> tags to flexible <action> tags for complex steps
100
- - **Make workflow more consistent**: Convert open-ended <action> tags to structured <ask> tags for simple data collection
101
- - **Balance both approaches**: Use intent-based for discovery, prescriptive for simple choices
102
-
103
- This feature is especially valuable when converting legacy workflows or adapting workflows for different use cases.
104
-
105
- ## Workflow Steps
106
-
107
- 1. Load and analyze target workflow
108
- 2. Check against best practices
109
- 3. Select editing focus
110
- 4. Load relevant documentation
111
- 5. Perform edits with user approval
112
- 6. Validate all changes (optional)
113
- 7. Generate change summary
114
-
115
- ## Requirements
116
-
117
- - Access to workflow creation guide
118
- - Read/write permissions for target workflow
119
- - Understanding of BMAD workflow types
@@ -1,70 +0,0 @@
1
- # Edit Workflow - Validation Checklist
2
-
3
- ## Pre-Edit Analysis
4
-
5
- - [ ] Target workflow.yaml file successfully loaded and parsed
6
- - [ ] All referenced workflow files identified and accessible
7
- - [ ] Workflow type correctly determined (document/action/interactive/autonomous/meta)
8
- - [ ] Best practices guide loaded and available for reference
9
-
10
- ## Edit Execution Quality
11
-
12
- - [ ] User clearly informed of identified issues with priority levels
13
- - [ ] Edit menu presented with all 8 standard options
14
- - [ ] Selected edit type matches the actual changes made
15
- - [ ] All proposed changes explained with reasoning before application
16
-
17
- ## File Integrity
18
-
19
- - [ ] All modified files maintain valid YAML/Markdown syntax
20
- - [ ] No placeholders like {TITLE} or {WORKFLOW_CODE} remain in edited files
21
- - [ ] File paths use proper variable substitution ({project-root}, {installed_path})
22
- - [ ] All file references resolve to actual paths
23
-
24
- ## Convention Compliance
25
-
26
- - [ ] Instructions.md contains critical workflow engine reference header
27
- - [ ] Instructions.md contains workflow.yaml processing reference header
28
- - [ ] All step numbers are sequential (1, 2, 3... or 1a, 1b, 2a...)
29
- - [ ] Each step has both n= attribute and goal= attribute
30
- - [ ] Variable names use snake_case consistently
31
- - [ ] Template variables (if any) match <template-output> tags exactly
32
-
33
- ## Instruction Quality
34
-
35
- - [ ] Each step has a single, clear goal stated
36
- - [ ] Instructions are specific with quantities (e.g., "3-5 items" not "several items")
37
- - [ ] Optional steps marked with optional="true" attribute
38
- - [ ] Repeating steps use proper repeat syntax (repeat="3" or repeat="until-complete")
39
- - [ ] User prompts use <ask> tags and wait for response
40
- - [ ] Actions use <action> tags for required operations
41
-
42
- ## Validation Criteria (if checklist.md exists)
43
-
44
- - [ ] All checklist items are measurable and specific
45
- - [ ] No vague criteria like "Good documentation" present
46
- - [ ] Checklist organized into logical sections
47
- - [ ] Each criterion can be objectively verified as true/false
48
-
49
- ## Change Documentation
50
-
51
- - [ ] All changes logged with description of what and why
52
- - [ ] Change summary includes list of modified files
53
- - [ ] Improvements clearly articulated in relation to best practices
54
- - [ ] Next steps or recommendations provided
55
-
56
- ## Post-Edit Verification
57
-
58
- - [ ] Edited workflow follows patterns from production examples
59
- - [ ] No functionality broken by the edits
60
- - [ ] Workflow ready for testing or production use
61
- - [ ] User given option to test the edited workflow
62
-
63
- ## Common Issues Resolved
64
-
65
- - [ ] Missing critical headers added if they were absent
66
- - [ ] Broken variable references fixed
67
- - [ ] Vague instructions made specific
68
- - [ ] Template-only workflows have template.md file
69
- - [ ] Action workflows have template: false in workflow.yaml
70
- - [ ] Step count reasonable (5-10 steps maximum unless justified)
@@ -1,342 +0,0 @@
1
- # Edit Workflow - Workflow Editor 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/edit-workflow/workflow.yaml</critical>
5
- <critical>This workflow uses ADAPTIVE FACILITATION - adjust your communication based on context and user needs</critical>
6
- <critical>The goal is COLLABORATIVE IMPROVEMENT - work WITH the user, not FOR them</critical>
7
- <critical>Communicate all responses in {communication_language}</critical>
8
-
9
- <workflow>
10
-
11
- <step n="1" goal="Load and deeply understand the target workflow">
12
- <ask>What is the path to the workflow you want to edit? (provide path to workflow.yaml or workflow directory)</ask>
13
-
14
- <action>Load the target workflow completely:
15
-
16
- - workflow.yaml configuration
17
- - instructions.md (if exists)
18
- - template.md (if exists)
19
- - checklist.md (if exists)
20
- - Any additional data files referenced
21
- </action>
22
-
23
- <action>Load ALL workflow documentation to inform understanding:
24
-
25
- - Workflow creation guide: {workflow_creation_guide}
26
- - Workflow execution engine: {workflow_execution_engine}
27
- - Study example workflows from: {project-root}/bmad/bmm/workflows/
28
- </action>
29
-
30
- <action>Analyze the workflow deeply:
31
-
32
- - Identify workflow type (document, action, interactive, autonomous, meta)
33
- - Understand purpose and user journey
34
- - Map out step flow and logic
35
- - Check variable consistency across files
36
- - Evaluate instruction style (intent-based vs prescriptive)
37
- - Assess template structure (if applicable)
38
- - Review validation criteria
39
- - Identify config dependencies
40
- - Check for web bundle configuration
41
- - Evaluate against best practices from loaded guides
42
- </action>
43
-
44
- <action>Reflect understanding back to {user_name}:
45
-
46
- Present a warm, conversational summary adapted to the workflow's complexity:
47
-
48
- - What this workflow accomplishes (its purpose and value)
49
- - How it's structured (type, steps, interactive points)
50
- - What you notice (strengths, potential improvements, issues)
51
- - Your initial assessment based on best practices
52
- - How it fits in the larger BMAD ecosystem
53
-
54
- Be conversational and insightful. Help {user_name} see their workflow through your eyes.
55
- </action>
56
-
57
- <ask>Does this match your understanding of what this workflow should accomplish?</ask>
58
- <template-output>workflow_understanding</template-output>
59
- </step>
60
-
61
- <step n="2" goal="Discover improvement goals collaboratively">
62
- <critical>Understand WHAT the user wants to improve and WHY before diving into edits</critical>
63
-
64
- <action>Engage in collaborative discovery:
65
-
66
- Ask open-ended questions to understand their goals:
67
-
68
- - What prompted you to want to edit this workflow?
69
- - What feedback have you gotten from users running it?
70
- - Are there specific steps that feel clunky or confusing?
71
- - Is the workflow achieving its intended outcome?
72
- - Are there new capabilities you want to add?
73
- - Is the instruction style working well for your users?
74
-
75
- Listen for clues about:
76
-
77
- - User experience issues (confusing steps, unclear instructions)
78
- - Functional issues (broken references, missing validation)
79
- - Performance issues (too many steps, repetitive, tedious)
80
- - Maintainability issues (hard to update, bloated, inconsistent variables)
81
- - Instruction style mismatch (too prescriptive when should be adaptive, or vice versa)
82
- - Integration issues (doesn't work well with other workflows)
83
- </action>
84
-
85
- <action>Based on their responses and your analysis from step 1, identify improvement opportunities:
86
-
87
- Organize by priority and user goals:
88
-
89
- - CRITICAL issues blocking successful runs
90
- - IMPORTANT improvements enhancing user experience
91
- - NICE-TO-HAVE enhancements for polish
92
-
93
- Present these conversationally, explaining WHY each matters and HOW it would help.
94
- </action>
95
-
96
- <action>Assess instruction style fit:
97
-
98
- Based on the workflow's purpose and your analysis:
99
-
100
- - Is the current style (intent-based vs prescriptive) appropriate?
101
- - Would users benefit from more/less structure?
102
- - Are there steps that should be more adaptive?
103
- - Are there steps that need more specificity?
104
-
105
- Discuss style as part of improvement discovery, not as a separate concern.
106
- </action>
107
-
108
- <action>Collaborate on priorities:
109
-
110
- Don't just list options - discuss them:
111
-
112
- - "I noticed {{issue}} - this could make users feel {{problem}}. Want to address this?"
113
- - "The workflow could be more {{improvement}} which would help when {{use_case}}. Worth exploring?"
114
- - "Based on what you said about {{user_goal}}, we might want to {{suggestion}}. Thoughts?"
115
-
116
- Let the conversation flow naturally. Build a shared vision of what "better" looks like.
117
- </action>
118
-
119
- <template-output>improvement_goals</template-output>
120
- </step>
121
-
122
- <step n="3" goal="Facilitate improvements collaboratively" repeat="until-user-satisfied">
123
- <critical>Work iteratively - improve, review, refine. Never dump all changes at once.</critical>
124
-
125
- <action>For each improvement area, facilitate collaboratively:
126
-
127
- 1. **Explain the current state and why it matters**
128
- - Show relevant sections of the workflow
129
- - Explain how it works now and implications
130
- - Connect to user's goals from step 2
131
-
132
- 2. **Propose improvements with rationale**
133
- - Suggest specific changes that align with best practices
134
- - Explain WHY each change helps
135
- - Provide examples from the loaded guides when helpful
136
- - Show before/after comparisons for clarity
137
- - Reference the creation guide's patterns naturally
138
-
139
- 3. **Collaborate on the approach**
140
- - Ask if the proposed change addresses their need
141
- - Invite modifications or alternative approaches
142
- - Explain tradeoffs when relevant
143
- - Adapt based on their feedback
144
-
145
- 4. **Apply changes iteratively**
146
- - Make one focused improvement at a time
147
- - Show the updated section
148
- - Confirm it meets their expectation
149
- - Move to next improvement or refine current one
150
- </action>
151
-
152
- <action>Common improvement patterns to facilitate:
153
-
154
- **If refining instruction style:**
155
-
156
- - Discuss where the workflow feels too rigid or too loose
157
- - Identify steps that would benefit from intent-based approach
158
- - Identify steps that need prescriptive structure
159
- - Convert between styles thoughtfully, explaining tradeoffs
160
- - Show how each style serves the user differently
161
- - Test proposed changes by reading them aloud
162
-
163
- **If improving step flow:**
164
-
165
- - Walk through the user journey step by step
166
- - Identify friction points or redundancy
167
- - Propose streamlined flow
168
- - Consider where steps could merge or split
169
- - Ensure each step has clear goal and value
170
- - Check that repeat conditions make sense
171
-
172
- **If fixing variable consistency:**
173
-
174
- - Identify variables used across files
175
- - Find mismatches in naming or usage
176
- - Propose consistent naming scheme
177
- - Update all files to match
178
- - Verify variables are defined in workflow.yaml
179
-
180
- **If enhancing validation:**
181
-
182
- - Review current checklist (if exists)
183
- - Discuss what "done well" looks like
184
- - Make criteria specific and measurable
185
- - Add validation for new features
186
- - Remove outdated or vague criteria
187
-
188
- **If updating configuration:**
189
-
190
- - Review standard config pattern
191
- - Check if user context variables are needed
192
- - Ensure output_folder, user_name, communication_language are used appropriately
193
- - Add missing config dependencies
194
- - Clean up unused config fields
195
-
196
- **If adding/updating templates:**
197
-
198
- - Understand the document structure needed
199
- - Design template variables that match instruction outputs
200
- - Ensure variable names are descriptive snake_case
201
- - Include proper metadata headers
202
- - Test that all variables can be filled
203
-
204
- **If configuring web bundle:**
205
-
206
- - Identify all files the workflow depends on
207
- - Check for invoked workflows (must be included)
208
- - Verify paths are bmad/-relative
209
- - Remove config_source dependencies
210
- - Build complete file list
211
-
212
- **If improving user interaction:**
213
-
214
- - Find places where <ask> could be more open-ended
215
- - Add educational context where users might be lost
216
- - Remove unnecessary confirmation steps
217
- - Make questions clearer and more purposeful
218
- - Balance guidance with user autonomy
219
- </action>
220
-
221
- <action>Throughout improvements, educate when helpful:
222
-
223
- Share insights from the guides naturally:
224
-
225
- - "The creation guide recommends {{pattern}} for workflows like this"
226
- - "Looking at examples in BMM, this type of step usually {{approach}}"
227
- - "The execution engine expects {{structure}} for this to work properly"
228
-
229
- Connect improvements to broader BMAD principles without being preachy.
230
- </action>
231
-
232
- <ask>After each significant change:
233
-
234
- - "Does this flow feel better for what you're trying to achieve?"
235
- - "Want to refine this further, or move to the next improvement?"
236
- - "How does this change affect the user experience?"
237
- </ask>
238
-
239
- <template-output>improvement_implementation</template-output>
240
- </step>
241
-
242
- <step n="4" goal="Validate improvements holistically">
243
- <action>Run comprehensive validation conversationally:
244
-
245
- Don't just check boxes - explain what you're validating and why it matters:
246
-
247
- - "Let me verify all file references resolve correctly..."
248
- - "Checking that variables are consistent across all files..."
249
- - "Making sure the step flow is logical and complete..."
250
- - "Validating template variables match instruction outputs..."
251
- - "Ensuring config dependencies are properly set up..."
252
- </action>
253
-
254
- <action>Load validation checklist: {installed_path}/checklist.md</action>
255
- <action>Check all items from checklist systematically</action>
256
-
257
- <check if="validation_issues_found">
258
- <action>Present issues conversationally:
259
-
260
- Explain what's wrong and implications:
261
-
262
- - "I found {{issue}} which could cause {{problem}} when users run this"
263
- - "The {{component}} needs {{fix}} because {{reason}}"
264
-
265
- Propose fixes immediately:
266
-
267
- - "I can fix this by {{solution}}. Should I?"
268
- - "We have a couple options here: {{option1}} or {{option2}}. Thoughts?"
269
- </action>
270
-
271
- <action>Fix approved issues and re-validate</action>
272
- </check>
273
-
274
- <check if="validation_passes">
275
- <action>Confirm success warmly:
276
-
277
- "Excellent! Everything validates cleanly:
278
-
279
- - All file references resolve
280
- - Variables are consistent throughout
281
- - Step flow is logical and complete
282
- - Template aligns with instructions (if applicable)
283
- - Config dependencies are set up correctly
284
- - Web bundle is complete (if applicable)
285
-
286
- Your workflow is in great shape."
287
- </action>
288
- </check>
289
-
290
- <template-output>validation_results</template-output>
291
- </step>
292
-
293
- <step n="5" goal="Review improvements and guide next steps">
294
- <action>Create a conversational summary of what improved:
295
-
296
- Tell the story of the transformation:
297
-
298
- - "We started with {{initial_state}}"
299
- - "You wanted to {{user_goals}}"
300
- - "We made these key improvements: {{changes_list}}"
301
- - "Now your workflow {{improved_capabilities}}"
302
-
303
- Highlight the impact:
304
-
305
- - "This means users will experience {{benefit}}"
306
- - "The workflow is now more {{quality}}"
307
- - "It follows best practices for {{patterns}}"
308
- </action>
309
-
310
- <action>Guide next steps based on changes made:
311
-
312
- If instruction style changed:
313
-
314
- - "Since we made the workflow more {{style}}, you might want to test it with a real user to see how it feels"
315
-
316
- If template was updated:
317
-
318
- - "The template now has {{new_variables}} - run the workflow to generate a sample document"
319
-
320
- If this is part of larger module work:
321
-
322
- - "This workflow is part of {{module}} - consider if other workflows need similar improvements"
323
-
324
- If web bundle was configured:
325
-
326
- - "The web bundle is now set up - you can test deploying this workflow standalone"
327
-
328
- Be a helpful guide to what comes next, not just a task completer.
329
- </action>
330
-
331
- <ask>Would you like to:
332
-
333
- - Test the edited workflow by running it
334
- - Edit another workflow
335
- - Make additional refinements to this one
336
- - Return to your module work
337
- </ask>
338
-
339
- <template-output>completion_summary</template-output>
340
- </step>
341
-
342
- </workflow>
@@ -1,27 +0,0 @@
1
- # Edit Workflow - Workflow Editor Configuration
2
- name: "edit-workflow"
3
- description: "Edit existing BMAD workflows while following all best practices and conventions"
4
- author: "BMad"
5
-
6
- # Critical variables load from config_source
7
- config_source: "{project-root}/bmad/bmb/config.yaml"
8
- communication_language: "{config_source}:communication_language"
9
- user_name: "{config_source}:user_name"
10
-
11
- # Required Data Files - Critical for understanding workflow conventions
12
- workflow_creation_guide: "{project-root}/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md"
13
- workflow_execution_engine: "{project-root}/bmad/core/tasks/workflow.xml"
14
-
15
- # Optional docs that can be used to understand the target workflow
16
- recommended_inputs:
17
- - target_workflow: "Path to the workflow.yaml file to edit"
18
- - workflow_examples: "{project-root}/bmad/bmm/workflows/"
19
-
20
- # Module path and component files
21
- installed_path: "{project-root}/bmad/bmb/workflows/edit-workflow"
22
- template: false # This is an action workflow - no template needed
23
- instructions: "{installed_path}/instructions.md"
24
- validation: "{installed_path}/checklist.md"
25
-
26
- standalone: true
27
- # Web bundle configuration