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

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 (355) hide show
  1. package/.coderabbit.yaml +36 -0
  2. package/.github/CODE_OF_CONDUCT.md +128 -0
  3. package/.github/ISSUE_TEMPLATE/idea_submission.md +1 -1
  4. package/.github/scripts/discord-helpers.sh +15 -0
  5. package/.github/workflows/discord.yaml +278 -8
  6. package/.github/workflows/quality.yaml +19 -0
  7. package/.markdownlint-cli2.yaml +42 -0
  8. package/.prettierignore +3 -0
  9. package/CHANGELOG.md +183 -360
  10. package/README.md +4 -1
  11. package/docs/agent-customization-guide.md +2 -2
  12. package/docs/custom-content-installation.md +245 -0
  13. package/docs/document-sharding-guide.md +1 -1
  14. package/docs/index.md +2 -2
  15. package/docs/installers-bundlers/installers-modules-platforms-reference.md +6 -5
  16. package/docs/web-bundles-gemini-gpt-guide.md +1 -1
  17. package/eslint.config.mjs +14 -0
  18. package/example-custom-content/README.md +8 -0
  19. package/{custom/src → example-custom-content}/agents/commit-poet/commit-poet.agent.yaml +1 -1
  20. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/instructions.md +5 -5
  21. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/docs.md +1 -1
  22. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/installers.md +1 -1
  23. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/modules.md +2 -2
  24. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/memories.md +1 -1
  25. package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith.agent.yaml +18 -17
  26. package/example-custom-content/module.yaml +4 -0
  27. package/example-custom-content/workflows/quiz-master/steps/step-01-init.md +168 -0
  28. package/example-custom-content/workflows/quiz-master/steps/step-02-q1.md +155 -0
  29. package/example-custom-content/workflows/quiz-master/steps/step-03-q2.md +89 -0
  30. package/example-custom-content/workflows/quiz-master/steps/step-04-q3.md +36 -0
  31. package/example-custom-content/workflows/quiz-master/steps/step-05-q4.md +36 -0
  32. package/example-custom-content/workflows/quiz-master/steps/step-06-q5.md +36 -0
  33. package/example-custom-content/workflows/quiz-master/steps/step-07-q6.md +36 -0
  34. package/example-custom-content/workflows/quiz-master/steps/step-08-q7.md +36 -0
  35. package/example-custom-content/workflows/quiz-master/steps/step-09-q8.md +36 -0
  36. package/example-custom-content/workflows/quiz-master/steps/step-10-q9.md +36 -0
  37. package/example-custom-content/workflows/quiz-master/steps/step-11-q10.md +36 -0
  38. package/example-custom-content/workflows/quiz-master/steps/step-12-results.md +150 -0
  39. package/example-custom-content/workflows/quiz-master/templates/csv-headers.template +1 -0
  40. package/example-custom-content/workflows/quiz-master/workflow.md +54 -0
  41. package/example-custom-content/workflows/wassup/workflow.md +26 -0
  42. package/example-custom-module/mwm/README.md +9 -0
  43. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/cognitive-distortions.md +47 -0
  44. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach-sidecar/thought-records.md +17 -0
  45. package/example-custom-module/mwm/agents/cbt-coach/cbt-coach.agent.yaml +151 -0
  46. package/example-custom-module/mwm/agents/crisis-navigator.agent.yaml +138 -0
  47. package/example-custom-module/mwm/agents/meditation-guide.agent.yaml +138 -0
  48. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/insights.md +13 -0
  49. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/instructions.md +30 -0
  50. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/memories.md +13 -0
  51. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion-sidecar/patterns.md +17 -0
  52. package/example-custom-module/mwm/agents/wellness-companion/wellness-companion.agent.yaml +125 -0
  53. package/example-custom-module/mwm/module.yaml +28 -0
  54. package/example-custom-module/mwm/workflows/cbt-thought-record/README.md +31 -0
  55. package/example-custom-module/mwm/workflows/cbt-thought-record/workflow.md +45 -0
  56. package/example-custom-module/mwm/workflows/crisis-support/README.md +31 -0
  57. package/example-custom-module/mwm/workflows/crisis-support/workflow.md +45 -0
  58. package/example-custom-module/mwm/workflows/daily-checkin/README.md +32 -0
  59. package/example-custom-module/mwm/workflows/daily-checkin/workflow.md +45 -0
  60. package/example-custom-module/mwm/workflows/guided-meditation/README.md +31 -0
  61. package/example-custom-module/mwm/workflows/guided-meditation/workflow.md +45 -0
  62. package/example-custom-module/mwm/workflows/wellness-journal/README.md +31 -0
  63. package/example-custom-module/mwm/workflows/wellness-journal/workflow.md +45 -0
  64. package/package.json +9 -4
  65. package/src/core/_module-installer/installer.js +1 -1
  66. package/src/core/{_module-installer/install-config.yaml → module.yaml} +5 -1
  67. package/src/core/resources/excalidraw/library-loader.md +2 -2
  68. package/src/core/workflows/brainstorming/steps/step-01-session-setup.md +1 -1
  69. package/src/core/workflows/brainstorming/workflow.md +1 -1
  70. package/src/core/workflows/party-mode/steps/step-03-graceful-exit.md +0 -1
  71. package/src/core/workflows/party-mode/workflow.md +2 -3
  72. package/src/modules/bmb/README.md +1 -1
  73. package/src/modules/bmb/_module-installer/installer.js +76 -0
  74. package/src/modules/bmb/agents/bmad-builder.agent.yaml +32 -9
  75. package/src/modules/bmb/docs/agents/agent-menu-patterns.md +5 -5
  76. package/src/modules/bmb/docs/agents/expert-agent-architecture.md +20 -20
  77. package/src/modules/bmb/docs/agents/index.md +1 -1
  78. package/src/modules/bmb/docs/agents/module-agent-architecture.md +45 -45
  79. package/src/modules/bmb/docs/agents/simple-agent-architecture.md +7 -3
  80. package/src/modules/bmb/docs/workflows/architecture.md +1 -1
  81. package/src/modules/bmb/docs/workflows/templates/step-01-init-continuable-template.md +241 -0
  82. package/src/modules/bmb/docs/workflows/templates/step-1b-template.md +223 -0
  83. package/src/modules/bmb/{workflows/create-workflow → docs/workflows}/templates/step-file.md +4 -4
  84. package/src/modules/bmb/docs/workflows/{step-template.md → templates/step-template.md} +40 -33
  85. package/src/modules/bmb/docs/workflows/templates/workflow-template.md +104 -0
  86. package/src/modules/bmb/{workflows/create-workflow → docs/workflows}/templates/workflow.md +1 -1
  87. package/src/modules/bmb/{_module-installer/install-config.yaml → module.yaml} +4 -9
  88. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/README.md +4 -4
  89. package/src/modules/bmb/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +8 -8
  90. package/src/modules/bmb/reference/agents/module-examples/security-engineer.agent.yaml +6 -6
  91. package/src/modules/bmb/reference/agents/module-examples/trend-analyst.agent.yaml +7 -7
  92. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01-init.md +2 -3
  93. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-01b-continue.md +10 -40
  94. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-02-profile.md +1 -1
  95. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-03-assessment.md +1 -0
  96. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-04-strategy.md +2 -2
  97. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +2 -2
  98. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/steps/step-06-prep-schedule.md +2 -2
  99. package/src/modules/bmb/reference/workflows/meal-prep-nutrition/workflow.md +2 -2
  100. package/src/modules/bmb/workflows/create-agent/data/info-and-installation-guide.md +16 -4
  101. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/README.md +4 -4
  102. package/src/modules/bmb/workflows/create-agent/data/reference/agents/expert-examples/journal-keeper/journal-keeper.agent.yaml +7 -7
  103. package/src/modules/bmb/workflows/create-agent/data/reference/workflows/meal-prep-nutrition/steps/step-05-shopping.md +1 -1
  104. package/src/modules/bmb/workflows/create-agent/data/validation-complete.md +3 -3
  105. package/src/modules/bmb/workflows/create-agent/steps/step-01-brainstorm.md +3 -3
  106. package/src/modules/bmb/workflows/create-agent/steps/step-02-discover.md +3 -3
  107. package/src/modules/bmb/workflows/create-agent/steps/step-03-persona.md +3 -3
  108. package/src/modules/bmb/workflows/create-agent/steps/step-04-commands.md +6 -6
  109. package/src/modules/bmb/workflows/create-agent/steps/step-05-name.md +2 -2
  110. package/src/modules/bmb/workflows/create-agent/steps/step-06-build.md +3 -3
  111. package/src/modules/bmb/workflows/create-agent/steps/step-07-validate.md +3 -3
  112. package/src/modules/bmb/workflows/create-agent/steps/step-08-setup.md +2 -2
  113. package/src/modules/bmb/workflows/create-agent/steps/step-09-customize.md +3 -3
  114. package/src/modules/bmb/workflows/create-agent/steps/step-10-build-tools.md +2 -2
  115. package/src/modules/bmb/workflows/create-agent/steps/step-11-celebrate.md +2 -2
  116. package/src/modules/bmb/workflows/create-agent/workflow.md +11 -11
  117. package/src/modules/bmb/workflows/create-module/steps/step-01-init.md +155 -0
  118. package/src/modules/bmb/workflows/create-module/steps/step-01b-continue.md +169 -0
  119. package/src/modules/bmb/workflows/create-module/steps/step-02-concept.md +217 -0
  120. package/src/modules/bmb/workflows/create-module/steps/step-03-components.md +267 -0
  121. package/src/modules/bmb/workflows/create-module/steps/step-04-structure.md +228 -0
  122. package/src/modules/bmb/workflows/create-module/steps/step-05-config.md +233 -0
  123. package/src/modules/bmb/workflows/create-module/steps/step-06-agents.md +296 -0
  124. package/src/modules/bmb/workflows/create-module/steps/step-07-workflows.md +228 -0
  125. package/src/modules/bmb/workflows/create-module/steps/step-08-installer.md +186 -0
  126. package/src/modules/bmb/workflows/create-module/steps/step-09-documentation.md +309 -0
  127. package/src/modules/bmb/workflows/create-module/steps/step-10-roadmap.md +337 -0
  128. package/src/modules/bmb/workflows/create-module/steps/step-11-validate.md +335 -0
  129. package/src/modules/bmb/workflows/create-module/templates/agent.template.md +317 -0
  130. package/src/modules/bmb/workflows/create-module/templates/installer.template.js +47 -0
  131. package/src/modules/bmb/workflows/create-module/templates/module-plan.template.md +5 -0
  132. package/src/modules/bmb/workflows/create-module/templates/module.template.yaml +53 -0
  133. package/src/modules/bmb/workflows/create-module/templates/workflow-plan-template.md +23 -0
  134. package/src/modules/bmb/workflows/create-module/validation.md +126 -0
  135. package/src/modules/bmb/workflows/create-module/workflow.md +55 -0
  136. package/src/modules/bmb/workflows/create-workflow/steps/step-01-init.md +45 -56
  137. package/src/modules/bmb/workflows/create-workflow/steps/step-02-gather.md +9 -31
  138. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-configuration.md +250 -0
  139. package/src/modules/bmb/workflows/create-workflow/steps/step-04-plan-review.md +216 -0
  140. package/src/modules/bmb/workflows/create-workflow/steps/step-05-output-format-design.md +289 -0
  141. package/src/modules/bmb/workflows/create-workflow/steps/{step-09-design.md → step-06-design.md} +76 -44
  142. package/src/modules/bmb/workflows/create-workflow/steps/{step-11-build.md → step-07-build.md} +71 -25
  143. package/src/modules/bmb/workflows/create-workflow/steps/{step-12-review.md → step-08-review.md} +30 -16
  144. package/src/modules/bmb/workflows/create-workflow/steps/step-09-complete.md +187 -0
  145. package/src/modules/bmb/workflows/create-workflow/workflow.md +2 -2
  146. package/src/modules/bmb/workflows/edit-agent/steps/step-01-discover-intent.md +2 -2
  147. package/src/modules/bmb/workflows/edit-agent/steps/step-02-analyze-agent.md +14 -14
  148. package/src/modules/bmb/workflows/edit-agent/steps/step-03-propose-changes.md +4 -4
  149. package/src/modules/bmb/workflows/edit-agent/steps/step-04-apply-changes.md +2 -2
  150. package/src/modules/bmb/workflows/edit-agent/steps/step-05-validate.md +4 -4
  151. package/src/modules/bmb/workflows/edit-agent/workflow.md +1 -1
  152. package/src/modules/bmb/workflows/edit-workflow/steps/step-01-analyze.md +2 -6
  153. package/src/modules/bmb/workflows/edit-workflow/steps/step-03-improve.md +2 -2
  154. package/src/modules/bmb/workflows/edit-workflow/steps/step-04-validate.md +1 -1
  155. package/src/modules/bmb/workflows/edit-workflow/workflow.md +1 -1
  156. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-01-validate-goal.md +2 -2
  157. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-02-workflow-validation.md +5 -5
  158. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-03-step-validation.md +7 -7
  159. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-04-file-validation.md +3 -3
  160. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-05-intent-spectrum-validation.md +3 -3
  161. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-06-web-subprocess-validation.md +3 -3
  162. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-07-holistic-analysis.md +3 -3
  163. package/src/modules/bmb/workflows/workflow-compliance-check/steps/step-08-generate-report.md +2 -2
  164. package/src/modules/bmb/workflows/workflow-compliance-check/workflow.md +1 -1
  165. package/src/modules/bmb/workflows-legacy/edit-module/checklist.md +0 -1
  166. package/src/modules/bmgd/README.md +2 -1
  167. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +8 -8
  168. package/src/modules/bmm/_module-installer/installer.js +1 -1
  169. package/src/modules/bmm/_module-installer/platform-specifics/claude-code.js +1 -1
  170. package/src/modules/bmm/_module-installer/platform-specifics/windsurf.js +1 -1
  171. package/src/modules/bmm/agents/analyst.agent.yaml +11 -8
  172. package/src/modules/bmm/agents/architect.agent.yaml +1 -5
  173. package/src/modules/bmm/agents/pm.agent.yaml +5 -5
  174. package/src/modules/bmm/docs/README.md +23 -1
  175. package/src/modules/bmm/docs/agents-guide.md +16 -35
  176. package/src/modules/bmm/docs/brownfield-guide.md +17 -30
  177. package/src/modules/bmm/docs/enterprise-agentic-development.md +2 -2
  178. package/src/modules/bmm/docs/faq.md +6 -39
  179. package/src/modules/bmm/docs/glossary.md +11 -24
  180. package/src/modules/bmm/docs/images/README.md +37 -0
  181. package/src/modules/bmm/docs/images/workflow-method-greenfield.excalidraw +62 -202
  182. package/src/modules/bmm/docs/images/workflow-method-greenfield.svg +3 -1
  183. package/src/modules/bmm/docs/quick-spec-flow.md +652 -0
  184. package/src/modules/bmm/docs/quick-start.md +9 -25
  185. package/src/modules/bmm/docs/test-architecture.md +6 -6
  186. package/src/modules/bmm/docs/troubleshooting.md +680 -0
  187. package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
  188. package/src/modules/bmm/docs/workflows-implementation.md +143 -3
  189. package/src/modules/bmm/docs/workflows-solutioning.md +2 -2
  190. package/src/modules/bmm/{_module-installer/install-config.yaml → module.yaml} +1 -1
  191. package/src/modules/bmm/tasks/daily-standup.xml +85 -0
  192. package/src/modules/bmm/testarch/knowledge/ci-burn-in.md +1 -1
  193. package/src/modules/bmm/testarch/knowledge/overview.md +1 -1
  194. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-02-vision.md +2 -2
  195. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-03-users.md +2 -2
  196. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-04-metrics.md +2 -2
  197. package/src/modules/bmm/workflows/1-analysis/product-brief/steps/step-05-scope.md +2 -2
  198. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.md +1 -1
  199. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-01-init.md +8 -8
  200. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-02-domain-analysis.md +18 -18
  201. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-03-competitive-landscape.md +18 -18
  202. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-04-regulatory-focus.md +18 -18
  203. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-05-technical-trends.md +17 -17
  204. package/src/modules/bmm/workflows/1-analysis/research/domain-steps/step-06-research-synthesis.md +35 -36
  205. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-01-init.md +5 -6
  206. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-behavior.md +20 -19
  207. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-02-customer-insights.md +21 -20
  208. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-03-customer-pain-points.md +20 -19
  209. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-04-customer-decisions.md +21 -20
  210. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-05-competitive-analysis.md +16 -15
  211. package/src/modules/bmm/workflows/1-analysis/research/market-steps/step-06-research-completion.md +36 -37
  212. package/src/modules/bmm/workflows/1-analysis/research/research.template.md +0 -1
  213. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-01-init.md +8 -8
  214. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-02-technical-overview.md +19 -18
  215. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-03-integration-patterns.md +20 -19
  216. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-04-architectural-patterns.md +21 -20
  217. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-05-implementation-research.md +19 -18
  218. package/src/modules/bmm/workflows/1-analysis/research/technical-steps/step-06-research-synthesis.md +38 -39
  219. package/src/modules/bmm/workflows/1-analysis/research/workflow.md +14 -8
  220. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.md +6 -0
  221. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +7 -0
  222. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01-init.md +138 -56
  223. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-01b-continue.md +93 -51
  224. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-02-discovery.md +223 -78
  225. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-03-success.md +20 -2
  226. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-04-journeys.md +18 -0
  227. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-05-domain.md +21 -0
  228. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-06-innovation.md +21 -0
  229. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-07-project-type.md +21 -0
  230. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-08-scoping.md +18 -0
  231. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-09-functional.md +18 -0
  232. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-10-nonfunctional.md +18 -0
  233. package/src/modules/bmm/workflows/2-plan-workflows/prd/steps/step-11-complete.md +13 -0
  234. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.md +2 -2
  235. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-03-starter.md +14 -14
  236. package/src/modules/bmm/workflows/3-solutioning/architecture/steps/step-04-decisions.md +7 -7
  237. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.md +2 -1
  238. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-01-validate-prerequisites.md +258 -0
  239. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-02-design-epics.md +232 -0
  240. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-03-create-stories.md +271 -0
  241. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/steps/step-04-final-validation.md +144 -0
  242. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/templates/epics-template.md +57 -0
  243. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.md +58 -0
  244. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-01-document-discovery.md +189 -0
  245. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-02-prd-analysis.md +177 -0
  246. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-03-epic-coverage-validation.md +178 -0
  247. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-04-ux-alignment.md +138 -0
  248. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-05-epic-quality-review.md +251 -0
  249. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/steps/step-06-final-assessment.md +132 -0
  250. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/templates/readiness-report-template.md +4 -0
  251. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.md +54 -0
  252. package/src/modules/{bmgd/workflows/4-production → bmm/workflows/4-implementation}/code-review/checklist.md +2 -1
  253. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.xml +51 -3
  254. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +1 -1
  255. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.xml +32 -2
  256. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +3 -3
  257. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +19 -21
  258. package/src/modules/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +10 -10
  259. package/src/modules/bmm/workflows/4-implementation/sprint-status/instructions.md +174 -0
  260. package/src/modules/bmm/workflows/4-implementation/sprint-status/workflow.yaml +35 -0
  261. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/instructions.md +104 -7
  262. package/src/modules/bmm/workflows/bmad-quick-flow/quick-dev/workflow.yaml +4 -0
  263. package/src/modules/bmm/workflows/document-project/instructions.md +1 -1
  264. package/src/modules/bmm/workflows/document-project/workflows/deep-dive-instructions.md +2 -2
  265. package/src/modules/bmm/workflows/generate-project-context/workflow.md +1 -1
  266. package/src/modules/bmm/workflows/testarch/atdd/atdd-checklist-template.md +1 -1
  267. package/src/modules/bmm/workflows/testarch/ci/checklist.md +1 -1
  268. package/src/modules/bmm/workflows/testarch/ci/github-actions-template.yaml +36 -3
  269. package/src/modules/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +25 -4
  270. package/src/modules/bmm/workflows/testarch/ci/instructions.md +2 -2
  271. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +1 -1
  272. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +1 -6
  273. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +1 -6
  274. package/src/modules/bmm/workflows/workflow-status/paths/method-brownfield.yaml +1 -6
  275. package/src/modules/bmm/workflows/workflow-status/paths/method-greenfield.yaml +1 -7
  276. package/src/modules/cis/_module-installer/installer.js +1 -1
  277. package/tools/cli/README.md +7 -7
  278. package/tools/cli/commands/build.js +9 -184
  279. package/tools/cli/commands/install.js +1 -6
  280. package/tools/cli/installers/lib/core/config-collector.js +80 -12
  281. package/tools/cli/installers/lib/core/custom-module-cache.js +239 -0
  282. package/tools/cli/installers/lib/core/detector.js +8 -4
  283. package/tools/cli/installers/lib/core/installer.js +933 -376
  284. package/tools/cli/installers/lib/core/manifest-generator.js +265 -41
  285. package/tools/cli/installers/lib/core/manifest.js +47 -0
  286. package/tools/cli/installers/lib/core/post-install-sidecar-replacement.js +79 -0
  287. package/tools/cli/installers/lib/custom/handler.js +396 -0
  288. package/tools/cli/installers/lib/ide/_base-ide.js +10 -0
  289. package/tools/cli/installers/lib/ide/auggie.js +19 -7
  290. package/tools/cli/installers/lib/ide/crush.js +19 -6
  291. package/tools/cli/installers/lib/ide/cursor.js +29 -13
  292. package/tools/cli/installers/lib/ide/gemini.js +49 -1
  293. package/tools/cli/installers/lib/ide/iflow.js +20 -1
  294. package/tools/cli/installers/lib/ide/kiro-cli.js +327 -0
  295. package/tools/cli/installers/lib/ide/opencode.js +3 -3
  296. package/tools/cli/installers/lib/ide/roo.js +120 -184
  297. package/tools/cli/installers/lib/ide/rovo-dev.js +1 -1
  298. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +8 -2
  299. package/tools/cli/installers/lib/ide/shared/bmad-artifacts.js +34 -19
  300. package/tools/cli/installers/lib/ide/shared/workflow-command-generator.js +18 -14
  301. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +1 -1
  302. package/tools/cli/installers/lib/ide/templates/workflow-commander.md +5 -0
  303. package/tools/cli/installers/lib/modules/manager.js +535 -56
  304. package/tools/cli/lib/agent/compiler.js +57 -16
  305. package/tools/cli/lib/agent/installer.js +129 -28
  306. package/tools/cli/lib/cli-utils.js +21 -4
  307. package/tools/cli/lib/config.js +2 -1
  308. package/tools/cli/lib/ui.js +561 -12
  309. package/tools/cli/lib/yaml-xml-builder.js +0 -15
  310. package/tools/maintainer/review-pr-README.md +55 -0
  311. package/tools/maintainer/review-pr.md +242 -0
  312. package/tools/migrate-custom-module-paths.js +124 -0
  313. package/tools/schema/agent.js +149 -89
  314. package/tools/validate-svg-changes.sh +356 -0
  315. package/custom/src/agents/commit-poet/installation-guide.md +0 -36
  316. package/custom/src/agents/toolsmith/installation-guide.md +0 -36
  317. package/docs/custom-agent-installation.md +0 -183
  318. package/src/modules/bmb/docs/workflows/workflow-template.md +0 -152
  319. package/src/modules/bmb/workflows/create-workflow/steps/step-03-tools-overview.md +0 -127
  320. package/src/modules/bmb/workflows/create-workflow/steps/step-04-core-tools.md +0 -145
  321. package/src/modules/bmb/workflows/create-workflow/steps/step-05-memory-requirements.md +0 -136
  322. package/src/modules/bmb/workflows/create-workflow/steps/step-06-external-tools.md +0 -154
  323. package/src/modules/bmb/workflows/create-workflow/steps/step-07-installation-guidance.md +0 -159
  324. package/src/modules/bmb/workflows/create-workflow/steps/step-08-tools-summary.md +0 -167
  325. package/src/modules/bmb/workflows/create-workflow/steps/step-10-plan-review.md +0 -215
  326. package/src/modules/bmb/workflows/create-workflow/templates/build-summary.md +0 -36
  327. package/src/modules/bmb/workflows/create-workflow/templates/completion-section.md +0 -39
  328. package/src/modules/bmb/workflows/create-workflow/templates/content-template.md +0 -21
  329. package/src/modules/bmb/workflows/create-workflow/templates/design-section.md +0 -53
  330. package/src/modules/bmb/workflows/create-workflow/templates/project-info.md +0 -18
  331. package/src/modules/bmb/workflows/create-workflow/templates/requirements-section.md +0 -47
  332. package/src/modules/bmb/workflows/create-workflow/templates/review-section.md +0 -56
  333. package/src/modules/bmb/workflows/create-workflow/templates/workflow-plan.md +0 -54
  334. package/src/modules/bmb/workflows-legacy/create-module/README.md +0 -229
  335. package/src/modules/bmb/workflows-legacy/create-module/brainstorm-context.md +0 -137
  336. package/src/modules/bmb/workflows-legacy/create-module/checklist.md +0 -235
  337. package/src/modules/bmb/workflows-legacy/create-module/installer-templates/install-config.yaml +0 -92
  338. package/src/modules/bmb/workflows-legacy/create-module/installer-templates/installer.js +0 -231
  339. package/src/modules/bmb/workflows-legacy/create-module/instructions.md +0 -577
  340. package/src/modules/bmb/workflows-legacy/create-module/module-structure.md +0 -400
  341. package/src/modules/bmb/workflows-legacy/create-module/workflow.yaml +0 -52
  342. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/epics-template.md +0 -80
  343. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/instructions.md +0 -387
  344. package/src/modules/bmm/workflows/3-solutioning/create-epics-and-stories/workflow.yaml +0 -53
  345. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/checklist.md +0 -169
  346. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/instructions.md +0 -332
  347. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/template.md +0 -146
  348. package/src/modules/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -64
  349. package/tools/cli/commands/agent-install.js +0 -409
  350. package/tools/cli/commands/cleanup.js +0 -141
  351. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/bundlers.md +0 -0
  352. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/deploy.md +0 -0
  353. /package/{custom/src → example-custom-content}/agents/toolsmith/toolsmith-sidecar/knowledge/tests.md +0 -0
  354. /package/src/modules/bmgd/{_module-installer/install-config.yaml → module.yaml} +0 -0
  355. /package/src/modules/cis/{_module-installer/install-config.yaml → module.yaml} +0 -0
@@ -27,7 +27,7 @@ Compiles to:
27
27
  ```yaml
28
28
  agent:
29
29
  metadata:
30
- id: '{bmad_folder}/{module-code}/agents/{agent-name}.md'
30
+ id: '{*bmad_folder*}/{module-code}/agents/{agent-name}.md'
31
31
  name: 'Persona Name'
32
32
  title: 'Professional Title'
33
33
  icon: 'emoji'
@@ -41,29 +41,29 @@ agent:
41
41
 
42
42
  menu:
43
43
  - trigger: workflow-action
44
- workflow: '{project-root}/{bmad_folder}/{module-code}/workflows/{workflow-name}/workflow.yaml'
44
+ workflow: '{project-root}/{*bmad_folder*}/{module-code}/workflows/{workflow-name}/workflow.yaml'
45
45
  description: 'Execute module workflow'
46
46
 
47
47
  - trigger: another-workflow
48
- workflow: '{project-root}/{bmad_folder}/core/workflows/{workflow-name}/workflow.yaml'
48
+ workflow: '{project-root}/{*bmad_folder*}/core/workflows/{workflow-name}/workflow.yaml'
49
49
  description: 'Execute core workflow'
50
50
 
51
51
  - trigger: task-action
52
- exec: '{project-root}/{bmad_folder}/{module-code}/tasks/{task-name}.xml'
52
+ exec: '{project-root}/{*bmad_folder*}/{module-code}/tasks/{task-name}.xml'
53
53
  description: 'Execute module task'
54
54
 
55
55
  - trigger: cross-module
56
- workflow: '{project-root}/{bmad_folder}/other-module/workflows/{workflow-name}/workflow.yaml'
56
+ workflow: '{project-root}/{*bmad_folder*}/other-module/workflows/{workflow-name}/workflow.yaml'
57
57
  description: 'Execute workflow from another module'
58
58
 
59
59
  - trigger: with-template
60
- exec: '{project-root}/{bmad_folder}/core/tasks/create-doc.xml'
61
- tmpl: '{project-root}/{bmad_folder}/{module-code}/templates/{template-name}.md'
60
+ exec: '{project-root}/{*bmad_folder*}/core/tasks/create-doc.xml'
61
+ tmpl: '{project-root}/{*bmad_folder*}/{module-code}/templates/{template-name}.md'
62
62
  description: 'Create document from template'
63
63
 
64
64
  - trigger: with-data
65
- exec: '{project-root}/{bmad_folder}/{module-code}/tasks/{task-name}.xml'
66
- data: '{project-root}/{bmad_folder}/_cfg/agent-manifest.csv'
65
+ exec: '{project-root}/{*bmad_folder*}/{module-code}/tasks/{task-name}.xml'
66
+ data: '{project-root}/{*bmad_folder*}/_cfg/agent-manifest.csv'
67
67
  description: 'Execute task with data file'
68
68
  ```
69
69
 
@@ -71,7 +71,7 @@ agent:
71
71
 
72
72
  ### Metadata
73
73
 
74
- - **id**: Path with `{bmad_folder}` variable (resolved at install time)
74
+ - **id**: Path with `{*bmad_folder*}` variable (resolved at install time)
75
75
  - **name**: Agent persona name
76
76
  - **title**: Professional role
77
77
  - **icon**: Single emoji
@@ -101,7 +101,7 @@ persona:
101
101
  ```yaml
102
102
  menu:
103
103
  - trigger: create-prd
104
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/prd/workflow.yaml'
104
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/prd/workflow.yaml'
105
105
  description: 'Create Product Requirements Document'
106
106
  ```
107
107
 
@@ -112,7 +112,7 @@ Invokes BMAD workflow engine to execute multi-step processes.
112
112
  ```yaml
113
113
  menu:
114
114
  - trigger: validate
115
- exec: '{project-root}/{bmad_folder}/core/tasks/validate-workflow.xml'
115
+ exec: '{project-root}/{*bmad_folder*}/core/tasks/validate-workflow.xml'
116
116
  description: 'Validate document structure'
117
117
  ```
118
118
 
@@ -123,8 +123,8 @@ Executes single-operation tasks.
123
123
  ```yaml
124
124
  menu:
125
125
  - trigger: create-brief
126
- exec: '{project-root}/{bmad_folder}/core/tasks/create-doc.xml'
127
- tmpl: '{project-root}/{bmad_folder}/bmm/templates/brief.md'
126
+ exec: '{project-root}/{*bmad_folder*}/core/tasks/create-doc.xml'
127
+ tmpl: '{project-root}/{*bmad_folder*}/bmm/templates/brief.md'
128
128
  description: 'Create a Product Brief from template'
129
129
  ```
130
130
 
@@ -135,8 +135,8 @@ Combines task execution with template file.
135
135
  ```yaml
136
136
  menu:
137
137
  - trigger: team-standup
138
- exec: '{project-root}/{bmad_folder}/bmm/tasks/standup.xml'
139
- data: '{project-root}/{bmad_folder}/_cfg/agent-manifest.csv'
138
+ exec: '{project-root}/{*bmad_folder*}/bmm/tasks/standup.xml'
139
+ data: '{project-root}/{*bmad_folder*}/_cfg/agent-manifest.csv'
140
140
  description: 'Run team standup with agent roster'
141
141
  ```
142
142
 
@@ -160,12 +160,12 @@ Control visibility based on platform:
160
160
  ```yaml
161
161
  menu:
162
162
  - trigger: advanced-elicitation
163
- exec: '{project-root}/{bmad_folder}/core/tasks/advanced-elicitation.xml'
163
+ exec: '{project-root}/{*bmad_folder*}/core/tasks/advanced-elicitation.xml'
164
164
  description: 'Advanced elicitation techniques'
165
165
  web-only: true # Only shows in web bundle
166
166
 
167
167
  - trigger: git-operations
168
- exec: '{project-root}/{bmad_folder}/bmm/tasks/git-flow.xml'
168
+ exec: '{project-root}/{*bmad_folder*}/bmm/tasks/git-flow.xml'
169
169
  description: 'Git workflow operations'
170
170
  ide-only: true # Only shows in IDE environments
171
171
  ```
@@ -175,7 +175,7 @@ menu:
175
175
  ### Core Variables
176
176
 
177
177
  - `{project-root}` - Root directory of installed project
178
- - `{bmad_folder}` - BMAD installation folder (usually `.bmad`)
178
+ - `{*bmad_folder*}` - BMAD installation folder (usually `.bmad`)
179
179
  - `{user_name}` - User's name from module config
180
180
  - `{communication_language}` - Language preference
181
181
  - `{output_folder}` - Document output directory
@@ -186,7 +186,7 @@ menu:
186
186
 
187
187
  ```yaml
188
188
  # GOOD
189
- workflow: "{project-root}/{bmad_folder}/bmm/workflows/prd/workflow.yaml"
189
+ workflow: "{project-root}/{*bmad_folder*}/bmm/workflows/prd/workflow.yaml"
190
190
 
191
191
  # BAD
192
192
  workflow: "/Users/john/project/.bmad/bmm/workflows/prd/workflow.yaml"
@@ -203,12 +203,12 @@ Module agents use the same injection process as simple agents:
203
203
  2. **Activation block** with standard steps
204
204
  3. **Menu handlers** based on usage (workflow, exec, tmpl, data)
205
205
  4. **Rules section** for consistent behavior
206
- 5. **Auto-injected** *help and *exit commands
206
+ 5. **Auto-injected** \*help and \*exit commands
207
207
 
208
208
  **Key difference:** Module agents load **module-specific config** instead of core config:
209
209
 
210
210
  ```xml
211
- <step n="2">Load and read {project-root}/{bmad_folder}/{module}/config.yaml...</step>
211
+ <step n="2">Load and read {project-root}/{*bmad_folder*}/{module}/config.yaml...</step>
212
212
  ```
213
213
 
214
214
  ## Reference Examples
@@ -252,15 +252,15 @@ Agents load this at activation for consistent behavior.
252
252
  ```yaml
253
253
  menu:
254
254
  - trigger: init
255
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/workflow-init/workflow.yaml'
255
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/workflow-init/workflow.yaml'
256
256
  description: 'Initialize workflow path (START HERE)'
257
257
 
258
258
  - trigger: status
259
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/workflow-status/workflow.yaml'
259
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/workflow-status/workflow.yaml'
260
260
  description: 'Check current workflow status'
261
261
 
262
262
  - trigger: next-step
263
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/next-step/workflow.yaml'
263
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/next-step/workflow.yaml'
264
264
  description: 'Execute next workflow in sequence'
265
265
  ```
266
266
 
@@ -270,20 +270,20 @@ menu:
270
270
  menu:
271
271
  # Phase 1: Analysis
272
272
  - trigger: brainstorm
273
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/1-analysis/brainstorm/workflow.yaml'
273
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/1-analysis/brainstorm/workflow.yaml'
274
274
  description: 'Guided brainstorming session'
275
275
 
276
276
  - trigger: research
277
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/1-analysis/research/workflow.yaml'
277
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/1-analysis/research/workflow.yaml'
278
278
  description: 'Market and technical research'
279
279
 
280
280
  # Phase 2: Planning
281
281
  - trigger: prd
282
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/2-planning/prd/workflow.yaml'
282
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/2-planning/prd/workflow.yaml'
283
283
  description: 'Create PRD'
284
284
 
285
285
  - trigger: architecture
286
- workflow: '{project-root}/{bmad_folder}/bmm/workflows/2-planning/architecture/workflow.yaml'
286
+ workflow: '{project-root}/{*bmad_folder*}/bmm/workflows/2-planning/architecture/workflow.yaml'
287
287
  description: 'Design architecture'
288
288
  ```
289
289
 
@@ -292,17 +292,17 @@ menu:
292
292
  ```yaml
293
293
  menu:
294
294
  - trigger: party-mode
295
- workflow: '{project-root}/{bmad_folder}/core/workflows/party-mode/workflow.yaml'
295
+ workflow: '{project-root}/{*bmad_folder*}/core/workflows/party-mode/workflow.yaml'
296
296
  description: 'Bring all agents together'
297
297
 
298
298
  - trigger: brainstorm
299
- workflow: '{project-root}/{bmad_folder}/cis/workflows/brainstorming/workflow.yaml'
299
+ workflow: '{project-root}/{*bmad_folder*}/cis/workflows/brainstorming/workflow.yaml'
300
300
  description: 'Use CIS brainstorming techniques'
301
301
  ```
302
302
 
303
303
  ## Best Practices
304
304
 
305
- 1. **Use {bmad_folder} paths** - Portable across installations
305
+ 1. **Use {_bmad_folder_} paths** - Portable across installations
306
306
  2. **Organize workflows by phase** - Clear progression for users
307
307
  3. **Include workflow-status** - Help users track progress
308
308
  4. **Reference module config** - Consistent behavior
@@ -318,7 +318,7 @@ menu:
318
318
  ```yaml
319
319
  menu:
320
320
  - trigger: start
321
- workflow: '{project-root}/{bmad_folder}/{module}/workflows/init/workflow.yaml'
321
+ workflow: '{project-root}/{*bmad_folder*}/{module}/workflows/init/workflow.yaml'
322
322
  description: 'Start new project (BEGIN HERE)'
323
323
  ```
324
324
 
@@ -327,7 +327,7 @@ menu:
327
327
  ```yaml
328
328
  menu:
329
329
  - trigger: status
330
- workflow: '{project-root}/{bmad_folder}/{module}/workflows/status/workflow.yaml'
330
+ workflow: '{project-root}/{*bmad_folder*}/{module}/workflows/status/workflow.yaml'
331
331
  description: 'Check workflow progress'
332
332
  ```
333
333
 
@@ -336,27 +336,27 @@ menu:
336
336
  ```yaml
337
337
  menu:
338
338
  - trigger: party
339
- workflow: '{project-root}/{bmad_folder}/core/workflows/party-mode/workflow.yaml'
339
+ workflow: '{project-root}/{*bmad_folder*}/core/workflows/party-mode/workflow.yaml'
340
340
  description: 'Multi-agent discussion'
341
341
  ```
342
342
 
343
343
  ## Module Agent vs Simple/Expert
344
344
 
345
- | Aspect | Module Agent | Simple/Expert Agent |
346
- | ------------- | -------------------------------- | ------------------------------- |
347
- | Location | `{bmad_folder}/{module}/agents/` | `{bmad_folder}/custom/agents/` |
348
- | Persona | Fixed, professional | Customizable via install_config |
349
- | Handlebars | No templating | Yes, extensive |
350
- | Menu actions | Workflows, tasks, templates | Prompts, inline actions |
351
- | Configuration | Module config.yaml | Core config or none |
352
- | Purpose | Professional tooling | Personal utilities |
345
+ | Aspect | Module Agent | Simple/Expert Agent |
346
+ | ------------- | ---------------------------------- | -------------------------------- |
347
+ | Location | `{*bmad_folder*}/{module}/agents/` | `{*bmad_folder*}/custom/agents/` |
348
+ | Persona | Fixed, professional | Customizable via install_config |
349
+ | Handlebars | No templating | Yes, extensive |
350
+ | Menu actions | Workflows, tasks, templates | Prompts, inline actions |
351
+ | Configuration | Module config.yaml | Core config or none |
352
+ | Purpose | Professional tooling | Personal utilities |
353
353
 
354
354
  ## Validation Checklist
355
355
 
356
356
  - [ ] Valid YAML syntax
357
357
  - [ ] Metadata includes `module: "{module-code}"`
358
- - [ ] id uses `{bmad_folder}/{module}/agents/{name}.md`
359
- - [ ] All workflow paths use `{project-root}/{bmad_folder}/` prefix
358
+ - [ ] id uses `{*bmad_folder*}/{module}/agents/{name}.md`
359
+ - [ ] All workflow paths use `{project-root}/{*bmad_folder*}/` prefix
360
360
  - [ ] No hardcoded paths
361
361
  - [ ] No duplicate triggers
362
362
  - [ ] Each menu item has description
@@ -217,9 +217,13 @@ Features demonstrated:
217
217
  # Copy to your project
218
218
  cp /path/to/commit-poet.agent.yaml .bmad/custom/agents/
219
219
 
220
- # Install with personalization
221
- bmad agent-install
222
- # or: npx bmad-method agent-install
220
+ # Create custom.yaml and install
221
+ echo "code: my-agent
222
+ name: My Agent
223
+ default_selected: true" > custom.yaml
224
+
225
+ npx bmad-method install
226
+ # or: bmad install
223
227
  ```
224
228
 
225
229
  The installer:
@@ -69,7 +69,7 @@ workflow-folder/
69
69
  Standard variables in step files:
70
70
 
71
71
  ```yaml
72
- workflow_path: '{project-root}/{bmad_folder}/bmb/reference/workflows/[workflow-name]'
72
+ workflow_path: '{project-root}/{*bmad_folder*}/bmb/reference/workflows/[workflow-name]'
73
73
  thisStepFile: '{workflow_path}/steps/step-[N]-[name].md'
74
74
  nextStepFile: '{workflow_path}/steps/step-[N+1]-[name].md'
75
75
  workflowFile: '{workflow_path}/workflow.md'
@@ -0,0 +1,241 @@
1
+ # BMAD Continuable Step 01 Init Template
2
+
3
+ This template provides the standard structure for step-01-init files that support workflow continuation. It includes logic to detect existing workflows and route to step-01b-continue.md for resumption.
4
+
5
+ Use this template when creating workflows that generate output documents and might take multiple sessions to complete.
6
+
7
+ <!-- TEMPLATE START -->
8
+
9
+ ---
10
+
11
+ name: 'step-01-init'
12
+ description: 'Initialize the [workflow-type] workflow by detecting continuation state and creating output document'
13
+
14
+ <!-- Path Definitions -->
15
+
16
+ workflow*path: '{project-root}/{\_bmad_folder*}/[module-path]/workflows/[workflow-name]'
17
+
18
+ # File References (all use {variable} format in file)
19
+
20
+ thisStepFile: '{workflow_path}/steps/step-01-init.md'
21
+ nextStepFile: '{workflow_path}/steps/step-02-[step-name].md'
22
+ workflowFile: '{workflow_path}/workflow.md'
23
+ outputFile: '{output_folder}/[output-file-name]-{project_name}.md'
24
+ continueFile: '{workflow_path}/steps/step-01b-continue.md'
25
+ templateFile: '{workflow_path}/templates/[main-template].md'
26
+
27
+ # Template References
28
+
29
+ # This step doesn't use content templates, only the main template
30
+
31
+ ---
32
+
33
+ # Step 1: Workflow Initialization
34
+
35
+ ## MANDATORY EXECUTION RULES (READ FIRST):
36
+
37
+ ### Universal Rules:
38
+
39
+ - 🛑 NEVER generate content without user input
40
+ - 📖 CRITICAL: Read the complete step file before taking any action
41
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
42
+ - 📋 YOU ARE A FACILITATOR, not a content generator
43
+
44
+ ### Role Reinforcement:
45
+
46
+ - ✅ You are a [specific role, e.g., "business analyst" or "technical architect"]
47
+ - ✅ We engage in collaborative dialogue, not command-response
48
+ - ✅ You bring [your expertise], user brings [their expertise], and together we produce something better than we could on our own
49
+ - ✅ Maintain collaborative [adjective] tone throughout
50
+
51
+ ### Step-Specific Rules:
52
+
53
+ - 🎯 Focus ONLY on initialization and setup
54
+ - 🚫 FORBIDDEN to look ahead to future steps
55
+ - 💬 Handle initialization professionally
56
+ - 🚪 DETECT existing workflow state and handle continuation properly
57
+
58
+ ## EXECUTION PROTOCOLS:
59
+
60
+ - 🎯 Show analysis before taking any action
61
+ - 💾 Initialize document and update frontmatter
62
+ - 📖 Set up frontmatter `stepsCompleted: [1]` before loading next step
63
+ - 🚫 FORBIDDEN to load next step until setup is complete
64
+
65
+ ## CONTEXT BOUNDARIES:
66
+
67
+ - Variables from workflow.md are available in memory
68
+ - Previous context = what's in output document + frontmatter
69
+ - Don't assume knowledge from other steps
70
+ - Input document discovery happens in this step
71
+
72
+ ## STEP GOAL:
73
+
74
+ To initialize the [workflow-type] workflow by detecting continuation state, creating the output document, and preparing for the first collaborative session.
75
+
76
+ ## INITIALIZATION SEQUENCE:
77
+
78
+ ### 1. Check for Existing Workflow
79
+
80
+ First, check if the output document already exists:
81
+
82
+ - Look for file at `{output_folder}/[output-file-name]-{project_name}.md`
83
+ - If exists, read the complete file including frontmatter
84
+ - If not exists, this is a fresh workflow
85
+
86
+ ### 2. Handle Continuation (If Document Exists)
87
+
88
+ If the document exists and has frontmatter with `stepsCompleted`:
89
+
90
+ - **STOP here** and load `./step-01b-continue.md` immediately
91
+ - Do not proceed with any initialization tasks
92
+ - Let step-01b handle the continuation logic
93
+
94
+ ### 3. Handle Completed Workflow
95
+
96
+ If the document exists AND all steps are marked complete in `stepsCompleted`:
97
+
98
+ - Ask user: "I found an existing [workflow-output] from [date]. Would you like to:
99
+ 1. Create a new [workflow-output]
100
+ 2. Update/modify the existing [workflow-output]"
101
+ - If option 1: Create new document with timestamp suffix
102
+ - If option 2: Load step-01b-continue.md
103
+
104
+ ### 4. Fresh Workflow Setup (If No Document)
105
+
106
+ If no document exists or no `stepsCompleted` in frontmatter:
107
+
108
+ #### A. Input Document Discovery
109
+
110
+ This workflow requires [describe input documents if any]:
111
+
112
+ **[Document Type] Documents (Optional):**
113
+
114
+ - Look for: `{output_folder}/*[pattern1]*.md`
115
+ - Look for: `{output_folder}/*[pattern2]*.md`
116
+ - If found, load completely and add to `inputDocuments` frontmatter
117
+
118
+ #### B. Create Initial Document
119
+
120
+ Copy the template from `{templateFile}` to `{output_folder}/[output-file-name]-{project_name}.md`
121
+
122
+ Initialize frontmatter with:
123
+
124
+ ```yaml
125
+ ---
126
+ stepsCompleted: [1]
127
+ lastStep: 'init'
128
+ inputDocuments: []
129
+ date: [current date]
130
+ user_name: { user_name }
131
+ [additional workflow-specific fields]
132
+ ---
133
+ ```
134
+
135
+ #### C. Show Welcome Message
136
+
137
+ "[Welcome message appropriate for workflow type]
138
+
139
+ Let's begin by [brief description of first activity]."
140
+
141
+ ## ✅ SUCCESS METRICS:
142
+
143
+ - Document created from template (for fresh workflows)
144
+ - Frontmatter initialized with step 1 marked complete
145
+ - User welcomed to the process
146
+ - Ready to proceed to step 2
147
+ - OR continuation properly routed to step-01b-continue.md
148
+
149
+ ## ❌ FAILURE MODES TO AVOID:
150
+
151
+ - Proceeding with step 2 without document initialization
152
+ - Not checking for existing documents properly
153
+ - Creating duplicate documents
154
+ - Skipping welcome message
155
+ - Not routing to step-01b-continue.md when needed
156
+
157
+ ### 5. Present MENU OPTIONS
158
+
159
+ Display: **Proceeding to [next step description]...**
160
+
161
+ #### EXECUTION RULES:
162
+
163
+ - This is an initialization step with no user choices
164
+ - Proceed directly to next step after setup
165
+ - Use menu handling logic section below
166
+
167
+ #### Menu Handling Logic:
168
+
169
+ - After setup completion, immediately load, read entire file, then execute `{nextStepFile}` to begin [next step description]
170
+
171
+ ---
172
+
173
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
174
+
175
+ ### ✅ SUCCESS:
176
+
177
+ - Document created from template (for fresh workflows)
178
+ - update frontmatter `stepsCompleted` to add 1 at the end of the array before loading next step
179
+ - Frontmatter initialized with `stepsCompleted: [1]`
180
+ - User welcomed to the process
181
+ - Ready to proceed to step 2
182
+ - OR existing workflow properly routed to step-01b-continue.md
183
+
184
+ ### ❌ SYSTEM FAILURE:
185
+
186
+ - Proceeding with step 2 without document initialization
187
+ - Not checking for existing documents properly
188
+ - Creating duplicate documents
189
+ - Skipping welcome message
190
+ - Not routing to step-01b-continue.md when appropriate
191
+
192
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
193
+
194
+ ## CRITICAL STEP COMPLETION NOTE
195
+
196
+ ONLY WHEN initialization setup is complete and document is created (OR continuation is properly routed), will you then immediately load, read entire file, then execute `{nextStepFile}` to begin [next step description].
197
+
198
+ <!-- TEMPLATE END -->
199
+
200
+ ## Customization Guidelines
201
+
202
+ When adapting this template for your specific workflow:
203
+
204
+ ### 1. Update Placeholders
205
+
206
+ Replace bracketed placeholders with your specific values:
207
+
208
+ - `[workflow-type]` - e.g., "nutrition planning", "project requirements"
209
+ - `[module-path]` - e.g., "bmb/reference" or "custom"
210
+ - `[workflow-name]` - your workflow directory name
211
+ - `[output-file-name]` - base name for output document
212
+ - `[step-name]` - name for step 2 (e.g., "gather", "profile")
213
+ - `[main-template]` - name of your main template file
214
+ - `[workflow-output]` - what the workflow produces
215
+ - `[Document Type]` - type of input documents (if any)
216
+ - `[pattern1]`, `[pattern2]` - search patterns for input documents
217
+ - `[additional workflow-specific fields]` - any extra frontmatter fields needed
218
+
219
+ ### 2. Customize Welcome Message
220
+
221
+ Adapt the welcome message in section 4C to match your workflow's tone and purpose.
222
+
223
+ ### 3. Update Success Metrics
224
+
225
+ Ensure success metrics reflect your specific workflow requirements.
226
+
227
+ ### 4. Adjust Next Step References
228
+
229
+ Update `{nextStepFile}` to point to your actual step 2 file.
230
+
231
+ ## Implementation Notes
232
+
233
+ 1. **This step MUST include continuation detection logic** - this is the key pattern
234
+ 2. **Always include `continueFile` reference** in frontmatter
235
+ 3. **Proper frontmatter initialization** is critical for continuation tracking
236
+ 4. **Auto-proceed pattern** - this step should not have user choice menus (except for completed workflow handling)
237
+ 5. **Template-based document creation** - ensures consistent output structure
238
+
239
+ ## Integration with step-01b-continue.md
240
+
241
+ This template is designed to work seamlessly with the step-01b-template.md continuation step. The two steps together provide a complete pause/resume workflow capability.