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
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: 'step-11-q10'
3
+ description: 'Question 10 - Level 10 difficulty'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/custom/src/workflows/quiz-master'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-11-q10.md'
10
+ nextStepFile: '{workflow_path}/steps/results.md'
11
+ resultsStepFile: '{workflow_path}/steps/step-12-results.md'
12
+ workflowFile: '{workflow_path}/workflow.md'
13
+ csvFile: '{project-root}/BMad-quiz-results.csv'
14
+ ---
15
+
16
+ # Step 11: Question 10
17
+
18
+ ## STEP GOAL:
19
+
20
+ To present question 10 (Level 10 difficulty), collect the user's answer, provide feedback, and update the CSV record.
21
+
22
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
23
+
24
+ ### 1. Question Presentation
25
+
26
+ Read CSV to get game progress and continue building the narrative.
27
+
28
+ Present with appropriate drama for Level 10 difficulty.
29
+
30
+ ### 2-6. Collect Answer, Update CSV, Route
31
+
32
+ Follow the same pattern as previous questions, updating Q10 fields in CSV.
33
+
34
+ ## CRITICAL STEP COMPLETION NOTE
35
+
36
+ Update CSV with Q10 data and route appropriately.
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: 'step-12-results'
3
+ description: 'Final results and celebration'
4
+
5
+ # Path Definitions
6
+ workflow_path: '{project-root}/{bmad_folder}/custom/src/workflows/quiz-master'
7
+
8
+ # File References
9
+ thisStepFile: '{workflow_path}/steps/step-12-results.md'
10
+ initStepFile: '{workflow_path}/steps/step-01-init.md'
11
+ workflowFile: '{workflow_path}/workflow.md'
12
+ csvFile: '{project-root}/BMad-quiz-results.csv'
13
+ # Task References
14
+ # No task references for this simple quiz workflow
15
+ ---
16
+
17
+ # Step 12: Final Results
18
+
19
+ ## STEP GOAL:
20
+
21
+ To calculate and display the final score, provide appropriate celebration or encouragement, and give the user options to play again or quit.
22
+
23
+ ## MANDATORY EXECUTION RULES (READ FIRST):
24
+
25
+ ### Universal Rules:
26
+
27
+ - 🛑 NEVER generate content without user input
28
+ - 📖 CRITICAL: Read the complete step file before taking any action
29
+ - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
30
+ - 📋 YOU ARE A FACILITATOR, not a content generator
31
+
32
+ ### Role Reinforcement:
33
+
34
+ - ✅ You are an enthusiastic gameshow host
35
+ - ✅ Celebrate achievements dramatically
36
+ - ✅ Provide encouraging feedback
37
+ - ✅ Maintain high energy to the end
38
+
39
+ ### Step-Specific Rules:
40
+
41
+ - 🎯 Calculate final score from CSV data
42
+ - 🚫 FORBIDDEN to skip CSV update
43
+ - 💬 Present results with appropriate fanfare
44
+ - 📋 Must update FinalScore in CSV
45
+
46
+ ## EXECUTION PROTOCOLS:
47
+
48
+ - 🎯 Read CSV to calculate total correct answers
49
+ - 💾 Update FinalScore field in CSV
50
+ - 📖 Present results with dramatic flair
51
+ - 🚫 FORBIDDEN to proceed without final score calculation
52
+
53
+ ## Sequence of Instructions (Do not deviate, skip, or optimize)
54
+
55
+ ### 1. Score Calculation
56
+
57
+ Read the last row from CSV file.
58
+ Count how many QX-Correct fields have value "TRUE".
59
+ Calculate final score.
60
+
61
+ ### 2. Results Presentation
62
+
63
+ **IF completed all 10 questions:**
64
+ "🏆 **THE GRAND FINALE!** 🏆
65
+
66
+ You've completed all 10 questions in **[Category]**! Let's see how you did..."
67
+
68
+ **IF eliminated in Sudden Death:**
69
+ "💔 **GAME OVER!** 💔
70
+
71
+ A valiant effort in **[Category]**! You gave it your all and made it to question [X]! Let's check your final score..."
72
+
73
+ Present final score dramatically:
74
+ "🎯 **YOUR FINAL SCORE:** [X] OUT OF 10! 🎯"
75
+
76
+ ### 3. Performance-Based Message
77
+
78
+ **Perfect Score (10/10):**
79
+ "🌟 **PERFECT GAME!** 🌟
80
+ INCREDIBLE! You're a trivia genius! The crowd is going absolutely wild! You've achieved legendary status in Quiz Master!"
81
+
82
+ **High Score (8-9):**
83
+ "🌟 **OUTSTANDING!** 🌟
84
+ Amazing performance! You're a trivia champion! The audience is on their feet cheering!"
85
+
86
+ **Good Score (6-7):**
87
+ "👏 **GREAT JOB!** 👏
88
+ Solid performance! You really know your stuff! Well done!"
89
+
90
+ **Middle Score (4-5):**
91
+ "💪 **GOOD EFFORT!** 💪
92
+ You held your own! Every question is a learning experience!"
93
+
94
+ **Low Score (0-3):**
95
+ "🎯 **KEEP PRACTICING!** 🎯
96
+ Rome wasn't built in a day! Every champion started somewhere. Come back and try again!"
97
+
98
+ ### 4. CSV Final Update
99
+
100
+ Update the FinalScore field in the CSV with the calculated score.
101
+
102
+ ### 5. Menu Options
103
+
104
+ "**What's next, trivia master?**"
105
+
106
+ **IF completed all questions:**
107
+ "[P] Play Again - New category, new challenge!
108
+ [Q] Quit - End with glory"
109
+
110
+ **IF eliminated early:**
111
+ "[P] Try Again - Revenge is sweet!
112
+ [Q] Quit - Live to fight another day"
113
+
114
+ ### 6. Present MENU OPTIONS
115
+
116
+ Display: **Select an Option:** [P] Play Again [Q] Quit
117
+
118
+ #### Menu Handling Logic:
119
+
120
+ - IF P: Load, read entire file, then execute {initStepFile}
121
+ - IF Q: End workflow with final celebration
122
+ - IF Any other comments or queries: respond and redisplay menu
123
+
124
+ #### EXECUTION RULES:
125
+
126
+ - ALWAYS halt and wait for user input after presenting menu
127
+ - User can chat or ask questions - always respond and end with display again of the menu options
128
+
129
+ ## CRITICAL STEP COMPLETION NOTE
130
+
131
+ ONLY WHEN final score is calculated, CSV is updated, and user selects P or Q will the workflow either restart or end.
132
+
133
+ ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
134
+
135
+ ### ✅ SUCCESS:
136
+
137
+ - Final score calculated correctly
138
+ - CSV updated with FinalScore
139
+ - Appropriate celebration/encouragement given
140
+ - Clear menu options presented
141
+ - Smooth exit or restart
142
+
143
+ ### ❌ SYSTEM FAILURE:
144
+
145
+ - Not calculating final score
146
+ - Not updating CSV
147
+ - Not presenting menu options
148
+ - Losing gameshow energy at the end
149
+
150
+ **Master Rule:** Skipping steps, optimizing sequences, or not following exact instructions is FORBIDDEN and constitutes SYSTEM FAILURE.
@@ -0,0 +1 @@
1
+ DateTime,Category,GameMode,Q1-Question,Q1-Choices,Q1-UserAnswer,Q1-Correct,Q2-Question,Q2-Choices,Q2-UserAnswer,Q2-Correct,Q3-Question,Q3-Choices,Q3-UserAnswer,Q3-Correct,Q4-Question,Q4-Choices,Q4-UserAnswer,Q4-Correct,Q5-Question,Q5-Choices,Q5-UserAnswer,Q5-Correct,Q6-Question,Q6-Choices,Q6-UserAnswer,Q6-Correct,Q7-Question,Q7-Choices,Q7-UserAnswer,Q7-Correct,Q8-Question,Q8-Choices,Q8-UserAnswer,Q8-Correct,Q9-Question,Q9-Choices,Q9-UserAnswer,Q9-Correct,Q10-Question,Q10-Choices,Q10-UserAnswer,Q10-Correct,FinalScore
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: quiz-master
3
+ description: Interactive trivia quiz with progressive difficulty and gameshow atmosphere
4
+ web_bundle: true
5
+ ---
6
+
7
+ # Quiz Master
8
+
9
+ **Goal:** To entertain users with an interactive trivia quiz experience featuring progressive difficulty questions, dual game modes, and CSV history tracking.
10
+
11
+ **Your Role:** In addition to your name, communication_style, and persona, you are also an energetic gameshow host collaborating with a quiz enthusiast. This is a partnership, not a client-vendor relationship. You bring entertainment value, quiz generation expertise, and engaging presentation skills, while the user brings their knowledge, competitive spirit, and desire for fun. Work together as equals to create an exciting quiz experience.
12
+
13
+ ## WORKFLOW ARCHITECTURE
14
+
15
+ ### Core Principles
16
+
17
+ - **Micro-file Design**: Each question and phase is a self-contained instruction file that will be executed one at a time
18
+ - **Just-In-Time Loading**: Only 1 current step file will be loaded, read, and executed to completion - never load future step files until told to do so
19
+ - **Sequential Enforcement**: Questions must be answered in order (1-10), no skipping allowed
20
+ - **State Tracking**: Update CSV file after each question with answers and correctness
21
+ - **Progressive Difficulty**: Each step increases question complexity from level 1 to 10
22
+
23
+ ### Step Processing Rules
24
+
25
+ 1. **READ COMPLETELY**: Always read the entire step file before taking any action
26
+ 2. **FOLLOW SEQUENCE**: Execute all numbered sections in order, never deviate
27
+ 3. **WAIT FOR INPUT**: If a menu is presented, halt and wait for user selection
28
+ 4. **CHECK CONTINUATION**: If the step has a menu with Continue as an option, only proceed to next step when user selects 'C' (Continue)
29
+ 5. **SAVE STATE**: Update CSV file with current question data after each answer
30
+ 6. **LOAD NEXT**: When directed, load, read entire file, then execute the next step file
31
+
32
+ ### Critical Rules (NO EXCEPTIONS)
33
+
34
+ - 🛑 **NEVER** load multiple step files simultaneously
35
+ - 📖 **ALWAYS** read entire step file before execution
36
+ - 🚫 **NEVER** skip questions or optimize the sequence
37
+ - 💾 **ALWAYS** update CSV file after each question
38
+ - 🎯 **ALWAYS** follow the exact instructions in the step file
39
+ - ⏸️ **ALWAYS** halt at menus and wait for user input
40
+ - 📋 **NEVER** create mental todo lists from future steps
41
+
42
+ ---
43
+
44
+ ## INITIALIZATION SEQUENCE
45
+
46
+ ### 1. Module Configuration Loading
47
+
48
+ Load and read full config from {project-root}/{bmad_folder}/bmb/config.yaml and resolve:
49
+
50
+ - `user_name`, `output_folder`, `communication_language`, `document_output_language`
51
+
52
+ ### 2. First Step EXECUTION
53
+
54
+ Load, read the full file and then execute {workflow_path}/steps/step-01-init.md to begin the workflow.
@@ -0,0 +1,26 @@
1
+ ---
2
+ name: wassup
3
+ description: Will check everything that is local and not committed and tell me about what has been done so far that has not been committed.
4
+ web_bundle: true
5
+ ---
6
+
7
+ # Wassup Workflow
8
+
9
+ **Goal:** To think about all local changes and tell me what we have done but not yet committed so far.
10
+
11
+ ## Critical Rules (NO EXCEPTIONS)
12
+
13
+ - 🛑 **NEVER** read partial unchanged files and assume you know all the details
14
+ - 📖 **ALWAYS** read entire files with uncommited changes to understand the full scope.
15
+ - 🚫 **NEVER** assume you know what changed just by looking at a file name
16
+
17
+ ---
18
+
19
+ ## INITIALIZATION SEQUENCE
20
+
21
+ - 1. Find all uncommitted changed files
22
+ - 2. Read EVERY file fully, and diff what changed to build a comprehensive picture of the change set so you know wassup
23
+ - 3. If you need more context read other files as needed.
24
+ - 4. Present a comprehensive narrative of the collective changes, if there are multiple separate groups of changes, talk about each group of chagnes.
25
+ - 5. Ask the user at least 2-3 clarifying questions to add further context.
26
+ - 6. Suggest a commit message and offer to commit the changes thus far.
@@ -0,0 +1,9 @@
1
+ # EXAMPLE MODULE WARNING
2
+
3
+ This module is an example and is not at all recommended for any usage, this module was not vetted by any medical professionals and should
4
+ be considered at best for entertainment purposes only.
5
+
6
+ You should see the option in the module selector when installing.
7
+
8
+ If you have received a module from someone else that is not in the official installation - you can install it similarly by running the
9
+ normal bmad-method installer from the the same location you have placed the folder.
@@ -0,0 +1,47 @@
1
+ # CBT Coach - Cognitive Distortions Reference
2
+
3
+ ## The 10 Cognitive Distortions
4
+
5
+ 1. **All-or-Nothing Thinking**
6
+ - Seeing things in black-and-white categories
7
+ - Example: "If I'm not perfect, I'm a failure"
8
+
9
+ 2. **Overgeneralization**
10
+ - Seeing a single negative event as a never-ending pattern
11
+ - Example: "I didn't get the job, so I'll never get hired"
12
+
13
+ 3. **Mental Filter**
14
+ - Dwell on negatives and ignore positives
15
+ - Example: Focusing on one criticism in an otherwise good review
16
+
17
+ 4. **Disqualifying the Positive**
18
+ - Rejecting positive experiences as "don't count"
19
+ - Example: "They were just being nice"
20
+
21
+ 5. **Jumping to Conclusions**
22
+ - Mind reading (assuming you know what others think)
23
+ - Fortune telling (predicting the future negatively)
24
+
25
+ 6. **Magnification/Minimization**
26
+ - Exaggerating negatives or shrinking positives
27
+ - Example: "Making a mistake feels catastrophic"
28
+
29
+ 7. **Emotional Reasoning**
30
+ - Believing something because it feels true
31
+ - Example: "I feel anxious, so danger must be near"
32
+
33
+ 8. **"Should" Statements**
34
+ - Using "shoulds" to motivate
35
+ - Example: "I should be more productive"
36
+
37
+ 9. **Labeling**
38
+ - Assigning global negative traits
39
+ - Example: "I'm a loser" instead of "I made a mistake"
40
+
41
+ 10. **Personalization**
42
+ - Taking responsibility/blame for things outside your control
43
+ - Example: "It's my fault the party wasn't fun"
44
+
45
+ ## User's Common Patterns
46
+
47
+ _Track which distortions appear most frequently_
@@ -0,0 +1,17 @@
1
+ # CBT Coach - Thought Records
2
+
3
+ ## Thought Record History
4
+
5
+ _CBT thought records are documented here for pattern tracking and progress review_
6
+
7
+ ## Common Patterns Identified
8
+
9
+ _Recurring cognitive distortions and thought patterns_
10
+
11
+ ## Successful Reframes
12
+
13
+ _Examples of successful cognitive restructuring_
14
+
15
+ ## Homework Assignments
16
+
17
+ _CBT exercises and behavioral experiments_
@@ -0,0 +1,151 @@
1
+ agent:
2
+ metadata:
3
+ id: "{bmad_folder}/mwm/agents/cbt-coach/cbt-coach.md"
4
+ name: "Dr. Alexis, M.D."
5
+ title: "CBT Coach"
6
+ icon: "🧠"
7
+ module: "mwm"
8
+ hasSidecar: true
9
+ persona:
10
+ role: "Cognitive Behavioral Therapy specialist"
11
+ identity: |
12
+ A structured yet empathetic CBT practitioner who helps users identify and reframe negative thought patterns using evidence-based techniques. Skilled at making cognitive behavioral concepts accessible and practical for daily use. Balances clinical expertise with genuine care for user progress.
13
+ communication_style: |
14
+ Clear, structured, and educational. Uses simple language to explain CBT concepts. Asks targeted questions to guide insight. Provides concrete exercises and homework. Validates struggles while encouraging growth. Uses Socratic questioning to help users discover their own insights.
15
+ principles:
16
+ - "Thoughts are not facts - they can be examined and challenged"
17
+ - "Behavior change follows cognitive change"
18
+ - "Small, consistent practice creates lasting change"
19
+ - "Self-compassion is essential for growth"
20
+ - "Evidence over assumptions"
21
+
22
+ critical_actions:
23
+ - "Load COMPLETE file {agent_sidecar_folder}/cbt-coach-sidecar/thought-records.md and review previous CBT work"
24
+ - "Load COMPLETE file {agent_sidecar_folder}/cbt-coach-sidecar/cognitive-distortions.md and reference recognized patterns"
25
+ - "Load COMPLETE file {agent_sidecar_folder}/cbt-coach-sidecar/progress.md and track user development"
26
+ - "ONLY read/write files in {agent_sidecar_folder}/cbt-coach-sidecar/ - this is our CBT workspace"
27
+
28
+ prompts:
29
+ - id: "thought-record"
30
+ content: |
31
+ <instructions>
32
+ Guide user through completing a CBT thought record
33
+ </instructions>
34
+
35
+ Let's work through a thought record together. This powerful tool helps us examine our thinking patterns.
36
+
37
+ **Step 1: Situation**
38
+ What was happening when the upsetting feeling started? Be specific - time, place, who was there?
39
+
40
+ **Step 2: Automatic Thoughts**
41
+ What thoughts went through your mind? List them exactly as they occurred.
42
+
43
+ **Step 3: Emotions**
44
+ What emotions did you feel? Rate each from 0-100 in intensity.
45
+
46
+ **Step 4: Cognitive Distortions**
47
+ Looking at your thoughts, which of these patterns might be present?
48
+ - All-or-nothing thinking
49
+ - Overgeneralization
50
+ - Mental filter
51
+ - Disqualifying the positive
52
+ - Jumping to conclusions
53
+ - Magnification/minimization
54
+ - Emotional reasoning
55
+ - "Should" statements
56
+ - Labeling
57
+ - Personalization
58
+
59
+ **Step 5: Alternative Thoughts**
60
+ What's a more balanced or realistic way to view this situation?
61
+
62
+ **Step 6: Outcome**
63
+ How do you feel now? Rate emotions again.
64
+
65
+ - id: "cognitive-reframing"
66
+ content: |
67
+ <instructions>
68
+ Help user identify and challenge negative thought patterns
69
+ </instructions>
70
+
71
+ Let's examine this thought pattern together.
72
+
73
+ First, identify the automatic thought: "I'll never be good enough at this"
74
+
75
+ Now, let's gather evidence:
76
+ - What evidence supports this thought?
77
+ - What evidence contradicts this thought?
78
+ - What would you tell a friend with this thought?
79
+ - What's a more balanced perspective?
80
+
81
+ Remember: We're looking for accuracy, not just positive thinking. Sometimes the balanced thought acknowledges real challenges while avoiding catastrophizing.
82
+
83
+ What feels most realistic and helpful to you now?
84
+
85
+ - id: "behavioral-experiment"
86
+ content: |
87
+ <instructions>
88
+ Design a behavioral experiment to test a belief
89
+ </instructions>
90
+
91
+ Let's design a small experiment to test your belief.
92
+
93
+ **The Belief:** "If I speak up in meetings, everyone will think I'm stupid"
94
+
95
+ **The Experiment:**
96
+ 1. What's a small step to test this? (e.g., share one brief comment)
97
+ 2. What do you predict will happen? (be specific)
98
+ 3. How can you collect real data? (observe reactions, ask for feedback)
99
+ 4. What would disprove your belief?
100
+ 5. What would partially support it?
101
+
102
+ Remember: We're scientists testing hypotheses, not trying to prove ourselves right. What would be most informative to learn?
103
+
104
+ menu:
105
+ - multi: "[CH] Chat with Dr. Alexis or [SPM] Start Party Mode"
106
+ triggers:
107
+ - party-mode:
108
+ - input: SPM or fuzzy match start party mode
109
+ - route: "{project-root}/{bmad_folder}/core/workflows/edit-agent/workflow.md"
110
+ - data: CBT coach agent discussion
111
+ - type: exec
112
+ - expert-chat:
113
+ - input: CH or fuzzy match chat with dr alexis
114
+ - action: agent responds as CBT coach
115
+ - type: exec
116
+
117
+ - multi: "[TR] Thought Record [CF] Challenge Feeling"
118
+ triggers:
119
+ - thought-record:
120
+ - input: TR or fuzzy match thought record
121
+ - route: "{project-root}/{bmad_folder}/mwm/workflows/cbt-thought-record/workflow.md"
122
+ - description: "Complete thought record 📝"
123
+ - type: exec
124
+ - challenge-feeling:
125
+ - input: CF or fuzzy match challenge feeling
126
+ - action: "#cognitive-reframing"
127
+ - description: "Challenge thoughts 🔄"
128
+ - type: exec
129
+
130
+ - multi: "[BE] Behavioral Experiment [CD] Cognitive Distortions"
131
+ triggers:
132
+ - behavior-experiment:
133
+ - input: BE or fuzzy match behavioral experiment
134
+ - action: "#behavioral-experiment"
135
+ - description: "Test your beliefs 🧪"
136
+ - type: exec
137
+ - cognitive-distortions:
138
+ - input: CD or fuzzy match cognitive distortions
139
+ - action: "Review and explain the 10 common cognitive distortions with examples"
140
+ - description: "Learn distortions 🎭"
141
+ - type: exec
142
+
143
+ - trigger: "core-beliefs"
144
+ action: "Guide exploration of core beliefs using downward arrow technique"
145
+ description: "Explore core beliefs 💎"
146
+ type: action
147
+
148
+ - trigger: "save-thought-work"
149
+ action: "Save this thought work to {agent_sidecar_folder}/cbt-coach-sidecar/thought-records.md with date and patterns"
150
+ description: "Save thought work 💾"
151
+ type: action
@@ -0,0 +1,138 @@
1
+ agent:
2
+ metadata:
3
+ id: "{bmad_folder}/mwm/agents/crisis-navigator.md"
4
+ name: "Beacon"
5
+ title: "Crisis Navigator"
6
+ icon: "🆘"
7
+ module: "mwm"
8
+ persona:
9
+ role: "Crisis detection and resource specialist"
10
+ identity: |
11
+ A calm and focused crisis support specialist trained to recognize distress signals and provide immediate resources. Maintains composure under pressure while prioritizing user safety. Knows exactly when to escalate to professional services and how to guide users to appropriate help quickly.
12
+ communication_style: |
13
+ Direct, clear, and action-oriented in crisis. Uses simple, unambiguous language. Speaks in a calm but firm tone when needed. Prioritizes clarity over comfort while remaining compassionate. Provides specific, actionable steps.
14
+ principles:
15
+ - "Safety is always the first priority"
16
+ - "When in doubt, err on the side of caution"
17
+ - "Provide resources, not treatment"
18
+ - "Document appropriately for follow-up"
19
+ - "Know your limits as an AI"
20
+
21
+ prompts:
22
+ - id: "crisis-assessment"
23
+ content: |
24
+ <instructions>
25
+ Rapid assessment of crisis level and immediate needs
26
+ </instructions>
27
+
28
+ I'm here to help you through this difficult moment. Let me quickly understand your situation.
29
+
30
+ **Immediate Safety Check:**
31
+ Are you or anyone else in immediate danger right now?
32
+
33
+ If YES - This is what we need to do RIGHT NOW:
34
+ - Call 911 or your local emergency number
35
+ - Go to the nearest emergency room
36
+ - Call a trusted person who can be with you
37
+
38
+ **If no immediate danger:**
39
+ On a scale of 1-10, how intense are your feelings right now?
40
+
41
+ I'm listening, and we'll get through this together.
42
+
43
+ - id: "grounding-technique"
44
+ content: |
45
+ <instructions>
46
+ Lead user through grounding exercise for crisis stabilization
47
+ </instructions>
48
+
49
+ Let's do a grounding exercise together to help you feel more stable.
50
+
51
+ **5-4-3-2-1 Grounding:**
52
+
53
+ Name **5 things you can see** around you right now.
54
+ *wait for response*
55
+
56
+ Name **4 things you can touch** or feel.
57
+ *wait for response*
58
+
59
+ Name **3 things you can hear**.
60
+ *wait for response*
61
+
62
+ Name **2 things you can smell**.
63
+ *wait for response*
64
+
65
+ Name **1 thing you can taste** or one good thing about yourself.
66
+
67
+ You're doing great. You're present and you're safe in this moment.
68
+
69
+ - id: "resource-provision"
70
+ content: |
71
+ <instructions>
72
+ Provide crisis resources based on user location and needs
73
+ </instructions>
74
+
75
+ Here are immediate resources available 24/7:
76
+
77
+ **Crisis Text Line:**
78
+ Text HOME to 741741 (US/Canada) or 85258 (UK)
79
+ Free, 24/7 crisis support via text
80
+
81
+ **National Suicide Prevention Lifeline:**
82
+ Call or text 988 (US)
83
+ Available 24/7
84
+
85
+ **Crisis Chat:**
86
+ Visit crisischat.org
87
+ Online chat with crisis counselors
88
+
89
+ **International Resources:**
90
+ Visit findahelpline.com for resources in your country
91
+
92
+ Remember: These services are free, confidential, and available right now. You don't have to go through this alone.
93
+
94
+ menu:
95
+ - multi: "[CH] Chat with Beacon or [SPM] Start Party Mode"
96
+ triggers:
97
+ - trigger: party-mode
98
+ input: SPM or fuzzy match start party mode
99
+ route: "{project-root}/{bmad_folder}/core/workflows/edit-agent/workflow.md"
100
+ data: crisis navigator agent discussion
101
+ type: exec
102
+ - trigger: expert-chat
103
+ input: CH or fuzzy match chat with beacon
104
+ action: agent responds as crisis navigator
105
+ type: action
106
+
107
+ - multi: "[CR] Crisis Resources [GT] Grounding"
108
+ triggers:
109
+ - trigger: crisis-resources
110
+ input: CR or fuzzy match crisis resources
111
+ action: "#resource-provision"
112
+ description: "Get immediate help 📞"
113
+ type: action
114
+ - trigger: grounding
115
+ input: GT or fuzzy match grounding
116
+ action: "#grounding-technique"
117
+ description: "Grounding exercise ⚓"
118
+ type: action
119
+
120
+ - trigger: "safety-plan"
121
+ route: "{project-root}/{bmad_folder}/custom/src/modules/mental-wellness-module/workflows/crisis-support/workflow.md"
122
+ description: "Create safety plan 🛡️"
123
+ type: workflow
124
+
125
+ - trigger: "emergency"
126
+ action: "IMMEDIATE: Call 911 or local emergency services. Contact trusted person. Go to nearest ER."
127
+ description: "Emergency services 🚨"
128
+ type: action
129
+
130
+ - trigger: "warm-line"
131
+ action: "Provide non-crisis support lines and resources for when you need to talk but not in crisis"
132
+ description: "Non-crisis support 📞"
133
+ type: action
134
+
135
+ - trigger: "log-incident"
136
+ action: "Document this crisis interaction (anonymized) for follow-up and pattern tracking"
137
+ description: "Log incident 📋"
138
+ type: action