bmad-method 6.0.0-alpha.7 → 6.0.0-alpha.8

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 (637) hide show
  1. package/.bmad/_cfg/agent-manifest.csv +11 -0
  2. package/.bmad/_cfg/agents/bmm-architect.customize.yaml +42 -0
  3. package/.bmad/_cfg/agents/bmm-dev.customize.yaml +42 -0
  4. package/.bmad/_cfg/agents/bmm-pm.customize.yaml +42 -0
  5. package/.bmad/_cfg/agents/bmm-sm.customize.yaml +42 -0
  6. package/.bmad/_cfg/agents/bmm-tea.customize.yaml +42 -0
  7. package/.bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
  8. package/.bmad/_cfg/agents/bmm-ux-designer.customize.yaml +42 -0
  9. package/.bmad/_cfg/agents/core-bmad-master.customize.yaml +42 -0
  10. package/.bmad/_cfg/files-manifest.csv +289 -0
  11. package/.bmad/_cfg/ides/claude-code.yaml +7 -0
  12. package/.bmad/_cfg/manifest.yaml +10 -0
  13. package/.bmad/_cfg/task-manifest.csv +6 -0
  14. package/.bmad/_cfg/tool-manifest.csv +2 -0
  15. package/.bmad/_cfg/workflow-manifest.csv +44 -0
  16. package/{bmad → .bmad}/bmb/agents/bmad-builder.md +12 -12
  17. package/.bmad/bmb/config.yaml +16 -0
  18. package/{bmad → .bmad}/bmb/workflows/audit-workflow/checklist.md +2 -2
  19. package/{bmad → .bmad}/bmb/workflows/audit-workflow/instructions.md +5 -5
  20. package/{bmad → .bmad}/bmb/workflows/audit-workflow/workflow.yaml +2 -2
  21. package/{bmad → .bmad}/bmb/workflows/convert-legacy/README.md +5 -5
  22. package/{bmad → .bmad}/bmb/workflows/convert-legacy/checklist.md +2 -2
  23. package/{bmad → .bmad}/bmb/workflows/convert-legacy/instructions.md +17 -17
  24. package/{bmad → .bmad}/bmb/workflows/convert-legacy/workflow.yaml +6 -6
  25. package/{bmad → .bmad}/bmb/workflows/create-agent/README.md +5 -5
  26. package/{bmad → .bmad}/bmb/workflows/create-agent/agent-architecture.md +15 -15
  27. package/{bmad → .bmad}/bmb/workflows/create-agent/agent-command-patterns.md +28 -28
  28. package/{bmad → .bmad}/bmb/workflows/create-agent/agent-types.md +15 -15
  29. package/{bmad → .bmad}/bmb/workflows/create-agent/checklist.md +3 -3
  30. package/{bmad → .bmad}/bmb/workflows/create-agent/instructions.md +11 -11
  31. package/{bmad → .bmad}/bmb/workflows/create-agent/workflow.yaml +6 -6
  32. package/{bmad → .bmad}/bmb/workflows/create-module/README.md +1 -1
  33. package/{bmad → .bmad}/bmb/workflows/create-module/checklist.md +1 -1
  34. package/{bmad → .bmad}/bmb/workflows/create-module/installer-templates/install-config.yaml +1 -1
  35. package/{bmad → .bmad}/bmb/workflows/create-module/instructions.md +7 -7
  36. package/{bmad → .bmad}/bmb/workflows/create-module/module-structure.md +4 -4
  37. package/{bmad → .bmad}/bmb/workflows/create-module/workflow.yaml +9 -9
  38. package/{bmad → .bmad}/bmb/workflows/create-workflow/README.md +4 -4
  39. package/{bmad → .bmad}/bmb/workflows/create-workflow/checklist.md +1 -1
  40. package/{bmad → .bmad}/bmb/workflows/create-workflow/instructions.md +29 -29
  41. package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow-creation-guide.md +36 -36
  42. package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow-template/instructions.md +2 -2
  43. package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow-template/workflow.yaml +1 -1
  44. package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow.yaml +5 -5
  45. package/{bmad → .bmad}/bmb/workflows/edit-agent/checklist.md +1 -1
  46. package/{bmad → .bmad}/bmb/workflows/edit-agent/instructions.md +2 -2
  47. package/{bmad → .bmad}/bmb/workflows/edit-agent/workflow.yaml +8 -8
  48. package/{bmad → .bmad}/bmb/workflows/edit-module/README.md +2 -2
  49. package/{bmad → .bmad}/bmb/workflows/edit-module/checklist.md +2 -2
  50. package/{bmad → .bmad}/bmb/workflows/edit-module/instructions.md +4 -4
  51. package/{bmad → .bmad}/bmb/workflows/edit-module/workflow.yaml +10 -10
  52. package/{bmad → .bmad}/bmb/workflows/edit-workflow/instructions.md +4 -4
  53. package/{bmad → .bmad}/bmb/workflows/edit-workflow/workflow.yaml +5 -5
  54. package/{bmad → .bmad}/bmb/workflows/module-brief/README.md +2 -2
  55. package/{bmad → .bmad}/bmb/workflows/module-brief/instructions.md +2 -2
  56. package/{bmad → .bmad}/bmb/workflows/module-brief/workflow.yaml +4 -4
  57. package/{bmad → .bmad}/bmb/workflows/redoc/README.md +5 -5
  58. package/{bmad → .bmad}/bmb/workflows/redoc/instructions.md +1 -1
  59. package/{bmad → .bmad}/bmb/workflows/redoc/workflow.yaml +1 -1
  60. package/.bmad/bmm/README.md +128 -0
  61. package/.bmad/bmm/agents/analyst.md +75 -0
  62. package/.bmad/bmm/agents/architect.md +80 -0
  63. package/.bmad/bmm/agents/dev.md +69 -0
  64. package/.bmad/bmm/agents/pm.md +84 -0
  65. package/.bmad/bmm/agents/sm.md +93 -0
  66. package/.bmad/bmm/agents/tea.md +80 -0
  67. package/.bmad/bmm/agents/tech-writer.md +90 -0
  68. package/.bmad/bmm/agents/ux-designer.md +79 -0
  69. package/.bmad/bmm/config.yaml +18 -0
  70. package/.bmad/bmm/docs/README.md +235 -0
  71. package/.bmad/bmm/docs/agents-guide.md +1056 -0
  72. package/.bmad/bmm/docs/brownfield-guide.md +754 -0
  73. package/.bmad/bmm/docs/enterprise-agentic-development.md +680 -0
  74. package/.bmad/bmm/docs/faq.md +587 -0
  75. package/.bmad/bmm/docs/glossary.md +320 -0
  76. package/.bmad/bmm/docs/party-mode.md +224 -0
  77. package/.bmad/bmm/docs/quick-spec-flow.md +652 -0
  78. package/.bmad/bmm/docs/quick-start.md +366 -0
  79. package/.bmad/bmm/docs/scale-adaptive-system.md +599 -0
  80. package/.bmad/bmm/docs/test-architecture.md +394 -0
  81. package/.bmad/bmm/docs/workflow-architecture-reference.md +371 -0
  82. package/.bmad/bmm/docs/workflow-document-project-reference.md +487 -0
  83. package/.bmad/bmm/docs/workflows-analysis.md +370 -0
  84. package/.bmad/bmm/docs/workflows-implementation.md +284 -0
  85. package/.bmad/bmm/docs/workflows-planning.md +601 -0
  86. package/.bmad/bmm/docs/workflows-solutioning.md +501 -0
  87. package/.bmad/bmm/tasks/daily-standup.xml +85 -0
  88. package/.bmad/bmm/teams/default-party.csv +19 -0
  89. package/.bmad/bmm/teams/team-fullstack.yaml +12 -0
  90. package/.bmad/bmm/testarch/knowledge/ci-burn-in.md +675 -0
  91. package/.bmad/bmm/testarch/knowledge/component-tdd.md +486 -0
  92. package/.bmad/bmm/testarch/knowledge/contract-testing.md +957 -0
  93. package/.bmad/bmm/testarch/knowledge/data-factories.md +500 -0
  94. package/.bmad/bmm/testarch/knowledge/email-auth.md +721 -0
  95. package/.bmad/bmm/testarch/knowledge/error-handling.md +725 -0
  96. package/.bmad/bmm/testarch/knowledge/feature-flags.md +750 -0
  97. package/.bmad/bmm/testarch/knowledge/fixture-architecture.md +401 -0
  98. package/.bmad/bmm/testarch/knowledge/network-first.md +486 -0
  99. package/.bmad/bmm/testarch/knowledge/nfr-criteria.md +670 -0
  100. package/.bmad/bmm/testarch/knowledge/playwright-config.md +730 -0
  101. package/.bmad/bmm/testarch/knowledge/probability-impact.md +601 -0
  102. package/.bmad/bmm/testarch/knowledge/risk-governance.md +615 -0
  103. package/.bmad/bmm/testarch/knowledge/selective-testing.md +732 -0
  104. package/.bmad/bmm/testarch/knowledge/selector-resilience.md +527 -0
  105. package/.bmad/bmm/testarch/knowledge/test-healing-patterns.md +644 -0
  106. package/.bmad/bmm/testarch/knowledge/test-levels-framework.md +473 -0
  107. package/.bmad/bmm/testarch/knowledge/test-priorities-matrix.md +373 -0
  108. package/.bmad/bmm/testarch/knowledge/test-quality.md +664 -0
  109. package/.bmad/bmm/testarch/knowledge/timing-debugging.md +372 -0
  110. package/.bmad/bmm/testarch/knowledge/visual-debugging.md +524 -0
  111. package/.bmad/bmm/testarch/tea-index.csv +22 -0
  112. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +110 -0
  113. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +25 -0
  114. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +26 -0
  115. package/.bmad/bmm/workflows/1-analysis/domain-research/instructions.md +423 -0
  116. package/.bmad/bmm/workflows/1-analysis/domain-research/template.md +180 -0
  117. package/.bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +40 -0
  118. package/.bmad/bmm/workflows/1-analysis/product-brief/checklist.md +115 -0
  119. package/.bmad/bmm/workflows/1-analysis/product-brief/instructions.md +524 -0
  120. package/.bmad/bmm/workflows/1-analysis/product-brief/template.md +181 -0
  121. package/.bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +45 -0
  122. package/.bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  123. package/.bmad/bmm/workflows/1-analysis/research/checklist-technical.md +249 -0
  124. package/.bmad/bmm/workflows/1-analysis/research/checklist.md +299 -0
  125. package/.bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +114 -0
  126. package/.bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +439 -0
  127. package/.bmad/bmm/workflows/1-analysis/research/instructions-market.md +679 -0
  128. package/.bmad/bmm/workflows/1-analysis/research/instructions-router.md +133 -0
  129. package/.bmad/bmm/workflows/1-analysis/research/instructions-technical.md +538 -0
  130. package/.bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +94 -0
  131. package/.bmad/bmm/workflows/1-analysis/research/template-market.md +347 -0
  132. package/.bmad/bmm/workflows/1-analysis/research/template-technical.md +245 -0
  133. package/.bmad/bmm/workflows/1-analysis/research/workflow.yaml +44 -0
  134. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +310 -0
  135. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1301 -0
  136. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +145 -0
  137. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +60 -0
  138. package/.bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +350 -0
  139. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +52 -0
  140. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +169 -0
  141. package/.bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +45 -0
  142. package/.bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  143. package/.bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +408 -0
  144. package/.bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +237 -0
  145. package/.bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  146. package/.bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +46 -0
  147. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +214 -0
  148. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +80 -0
  149. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +200 -0
  150. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +451 -0
  151. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1115 -0
  152. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +181 -0
  153. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +90 -0
  154. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +60 -0
  155. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +347 -0
  156. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +103 -0
  157. package/.bmad/bmm/workflows/3-solutioning/architecture/checklist.md +244 -0
  158. package/.bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +222 -0
  159. package/.bmad/bmm/workflows/3-solutioning/architecture/instructions.md +704 -0
  160. package/.bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +13 -0
  161. package/.bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +68 -0
  162. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +175 -0
  163. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +305 -0
  164. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/template.md +146 -0
  165. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +189 -0
  166. package/.bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +64 -0
  167. package/.bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +12 -0
  168. package/.bmad/bmm/workflows/4-implementation/code-review/checklist.md +22 -0
  169. package/.bmad/bmm/workflows/4-implementation/code-review/instructions.md +420 -0
  170. package/.bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +65 -0
  171. package/.bmad/bmm/workflows/4-implementation/correct-course/checklist.md +279 -0
  172. package/.bmad/bmm/workflows/4-implementation/correct-course/instructions.md +201 -0
  173. package/.bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +43 -0
  174. package/.bmad/bmm/workflows/4-implementation/create-story/checklist.md +240 -0
  175. package/.bmad/bmm/workflows/4-implementation/create-story/instructions.md +283 -0
  176. package/.bmad/bmm/workflows/4-implementation/create-story/template.md +51 -0
  177. package/.bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +74 -0
  178. package/.bmad/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +367 -0
  179. package/.bmad/bmm/workflows/4-implementation/dev-story/checklist.md +38 -0
  180. package/.bmad/bmm/workflows/4-implementation/dev-story/instructions.md +262 -0
  181. package/.bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +26 -0
  182. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +17 -0
  183. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +189 -0
  184. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +76 -0
  185. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +58 -0
  186. package/.bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1460 -0
  187. package/.bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +71 -0
  188. package/.bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  189. package/.bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +238 -0
  190. package/.bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  191. package/.bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +47 -0
  192. package/.bmad/bmm/workflows/4-implementation/story-context/checklist.md +16 -0
  193. package/.bmad/bmm/workflows/4-implementation/story-context/context-template.xml +34 -0
  194. package/.bmad/bmm/workflows/4-implementation/story-context/instructions.md +234 -0
  195. package/.bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +57 -0
  196. package/.bmad/bmm/workflows/4-implementation/story-done/instructions.md +111 -0
  197. package/.bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +25 -0
  198. package/.bmad/bmm/workflows/4-implementation/story-ready/instructions.md +117 -0
  199. package/.bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +25 -0
  200. package/.bmad/bmm/workflows/document-project/checklist.md +245 -0
  201. package/.bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  202. package/.bmad/bmm/workflows/document-project/instructions.md +222 -0
  203. package/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  204. package/.bmad/bmm/workflows/document-project/templates/index-template.md +169 -0
  205. package/.bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  206. package/.bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  207. package/.bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  208. package/.bmad/bmm/workflows/document-project/workflow.yaml +34 -0
  209. package/.bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  210. package/.bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  211. package/.bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  212. package/.bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  213. package/.bmad/bmm/workflows/techdoc/documentation-standards.md +262 -0
  214. package/.bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  215. package/.bmad/bmm/workflows/testarch/atdd/checklist.md +373 -0
  216. package/.bmad/bmm/workflows/testarch/atdd/instructions.md +785 -0
  217. package/.bmad/bmm/workflows/testarch/atdd/workflow.yaml +52 -0
  218. package/.bmad/bmm/workflows/testarch/automate/checklist.md +580 -0
  219. package/.bmad/bmm/workflows/testarch/automate/instructions.md +1303 -0
  220. package/.bmad/bmm/workflows/testarch/automate/workflow.yaml +61 -0
  221. package/.bmad/bmm/workflows/testarch/ci/checklist.md +246 -0
  222. package/.bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +165 -0
  223. package/.bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
  224. package/.bmad/bmm/workflows/testarch/ci/instructions.md +517 -0
  225. package/.bmad/bmm/workflows/testarch/ci/workflow.yaml +53 -0
  226. package/.bmad/bmm/workflows/testarch/framework/checklist.md +321 -0
  227. package/.bmad/bmm/workflows/testarch/framework/instructions.md +455 -0
  228. package/.bmad/bmm/workflows/testarch/framework/workflow.yaml +53 -0
  229. package/.bmad/bmm/workflows/testarch/nfr-assess/checklist.md +405 -0
  230. package/.bmad/bmm/workflows/testarch/nfr-assess/instructions.md +722 -0
  231. package/.bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
  232. package/.bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +56 -0
  233. package/.bmad/bmm/workflows/testarch/test-design/checklist.md +234 -0
  234. package/.bmad/bmm/workflows/testarch/test-design/instructions.md +621 -0
  235. package/.bmad/bmm/workflows/testarch/test-design/test-design-template.md +285 -0
  236. package/.bmad/bmm/workflows/testarch/test-design/workflow.yaml +52 -0
  237. package/.bmad/bmm/workflows/testarch/test-review/checklist.md +470 -0
  238. package/.bmad/bmm/workflows/testarch/test-review/instructions.md +608 -0
  239. package/.bmad/bmm/workflows/testarch/test-review/test-review-template.md +388 -0
  240. package/.bmad/bmm/workflows/testarch/test-review/workflow.yaml +53 -0
  241. package/.bmad/bmm/workflows/testarch/trace/checklist.md +654 -0
  242. package/.bmad/bmm/workflows/testarch/trace/instructions.md +1045 -0
  243. package/.bmad/bmm/workflows/testarch/trace/trace-template.md +673 -0
  244. package/.bmad/bmm/workflows/testarch/trace/workflow.yaml +66 -0
  245. package/.bmad/bmm/workflows/workflow-status/init/instructions.md +822 -0
  246. package/.bmad/bmm/workflows/workflow-status/init/workflow.yaml +27 -0
  247. package/.bmad/bmm/workflows/workflow-status/instructions.md +387 -0
  248. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +127 -0
  249. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +115 -0
  250. package/.bmad/bmm/workflows/workflow-status/paths/game-design.yaml +52 -0
  251. package/.bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +97 -0
  252. package/.bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +88 -0
  253. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +58 -0
  254. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +47 -0
  255. package/.bmad/bmm/workflows/workflow-status/project-levels.yaml +59 -0
  256. package/.bmad/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  257. package/.bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +31 -0
  258. package/.bmad/bmm/workflows/workflow-status/workflow.yaml +28 -0
  259. package/{bmad → .bmad}/core/agents/bmad-master.md +7 -7
  260. package/{bmad → .bmad}/core/agents/bmad-web-orchestrator.agent.xml +8 -17
  261. package/{bmad → .bmad}/core/config.yaml +4 -2
  262. package/{bmad → .bmad}/core/tasks/adv-elicit.xml +5 -3
  263. package/{bmad → .bmad}/core/tasks/index-docs.xml +1 -1
  264. package/{bmad → .bmad}/core/tasks/validate-workflow.xml +1 -1
  265. package/{bmad → .bmad}/core/tasks/workflow.xml +1 -1
  266. package/{bmad → .bmad}/core/tools/shard-doc.xml +1 -1
  267. package/{bmad → .bmad}/core/workflows/brainstorming/README.md +2 -2
  268. package/{bmad → .bmad}/core/workflows/brainstorming/instructions.md +3 -3
  269. package/{bmad → .bmad}/core/workflows/brainstorming/workflow.yaml +8 -8
  270. package/{bmad → .bmad}/core/workflows/party-mode/instructions.md +2 -7
  271. package/.bmad/core/workflows/party-mode/workflow.yaml +27 -0
  272. package/.claude/commands/bmad/bmb/agents/bmad-builder.md +12 -12
  273. package/.claude/commands/bmad/bmm/agents/analyst.md +75 -0
  274. package/.claude/commands/bmad/bmm/agents/architect.md +80 -0
  275. package/.claude/commands/bmad/bmm/agents/dev.md +69 -0
  276. package/.claude/commands/bmad/bmm/agents/pm.md +84 -0
  277. package/.claude/commands/bmad/bmm/agents/sm.md +93 -0
  278. package/.claude/commands/bmad/bmm/agents/tea.md +80 -0
  279. package/.claude/commands/bmad/bmm/agents/tech-writer.md +90 -0
  280. package/.claude/commands/bmad/bmm/agents/ux-designer.md +79 -0
  281. package/.claude/commands/bmad/bmm/workflows/architecture.md +15 -0
  282. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +15 -0
  283. package/.claude/commands/bmad/bmm/workflows/code-review.md +15 -0
  284. package/.claude/commands/bmad/bmm/workflows/correct-course.md +15 -0
  285. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +15 -0
  286. package/.claude/commands/bmad/bmm/workflows/create-story.md +15 -0
  287. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +15 -0
  288. package/.claude/commands/bmad/bmm/workflows/dev-story.md +15 -0
  289. package/.claude/commands/bmad/bmm/workflows/document-project.md +15 -0
  290. package/.claude/commands/bmad/bmm/workflows/domain-research.md +15 -0
  291. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
  292. package/.claude/commands/bmad/bmm/workflows/prd.md +15 -0
  293. package/.claude/commands/bmad/bmm/workflows/product-brief.md +15 -0
  294. package/.claude/commands/bmad/bmm/workflows/research.md +15 -0
  295. package/.claude/commands/bmad/bmm/workflows/retrospective.md +15 -0
  296. package/.claude/commands/bmad/bmm/workflows/solutioning-gate-check.md +15 -0
  297. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +15 -0
  298. package/.claude/commands/bmad/bmm/workflows/story-context.md +15 -0
  299. package/.claude/commands/bmad/bmm/workflows/story-done.md +15 -0
  300. package/.claude/commands/bmad/bmm/workflows/story-ready.md +15 -0
  301. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +15 -0
  302. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +15 -0
  303. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +15 -0
  304. package/.claude/commands/bmad/core/agents/bmad-master.md +7 -7
  305. package/.claude/commands/bmad/core/tasks/adv-elicit.md +9 -0
  306. package/.claude/settings.local.json +6 -12
  307. package/.vscode/settings.json +2 -1
  308. package/package.json +1 -1
  309. package/src/core/_module-installer/install-config.yaml +15 -9
  310. package/src/core/_module-installer/installer.js +0 -8
  311. package/src/core/agents/bmad-master.agent.yaml +5 -5
  312. package/src/core/agents/bmad-web-orchestrator.agent.xml +8 -17
  313. package/src/core/tasks/adv-elicit.xml +5 -3
  314. package/src/core/tasks/index-docs.xml +1 -1
  315. package/src/core/tasks/validate-workflow.xml +1 -1
  316. package/src/core/tasks/workflow.xml +1 -1
  317. package/src/core/tools/shard-doc.xml +1 -1
  318. package/src/core/workflows/brainstorming/README.md +2 -2
  319. package/src/core/workflows/brainstorming/instructions.md +3 -3
  320. package/src/core/workflows/brainstorming/workflow.yaml +8 -8
  321. package/src/core/workflows/party-mode/instructions.md +2 -7
  322. package/src/core/workflows/party-mode/workflow.yaml +10 -6
  323. package/src/modules/bmb/_module-installer/install-config.yaml +9 -4
  324. package/src/modules/bmb/agents/bmad-builder.agent.yaml +11 -10
  325. package/src/modules/bmb/workflows/audit-workflow/checklist.md +2 -2
  326. package/src/modules/bmb/workflows/audit-workflow/instructions.md +5 -5
  327. package/src/modules/bmb/workflows/audit-workflow/workflow.yaml +2 -2
  328. package/src/modules/bmb/workflows/convert-legacy/README.md +5 -5
  329. package/src/modules/bmb/workflows/convert-legacy/checklist.md +2 -2
  330. package/src/modules/bmb/workflows/convert-legacy/instructions.md +17 -17
  331. package/src/modules/bmb/workflows/convert-legacy/workflow.yaml +6 -6
  332. package/src/modules/bmb/workflows/create-agent/README.md +5 -5
  333. package/src/modules/bmb/workflows/create-agent/agent-architecture.md +15 -15
  334. package/src/modules/bmb/workflows/create-agent/agent-command-patterns.md +28 -28
  335. package/src/modules/bmb/workflows/create-agent/agent-types.md +15 -15
  336. package/src/modules/bmb/workflows/create-agent/checklist.md +3 -3
  337. package/src/modules/bmb/workflows/create-agent/instructions.md +11 -11
  338. package/src/modules/bmb/workflows/create-agent/workflow.yaml +12 -12
  339. package/src/modules/bmb/workflows/create-module/README.md +1 -1
  340. package/src/modules/bmb/workflows/create-module/checklist.md +1 -1
  341. package/src/modules/bmb/workflows/create-module/installer-templates/install-config.yaml +1 -1
  342. package/src/modules/bmb/workflows/create-module/instructions.md +7 -7
  343. package/src/modules/bmb/workflows/create-module/module-structure.md +4 -4
  344. package/src/modules/bmb/workflows/create-module/workflow.yaml +9 -9
  345. package/src/modules/bmb/workflows/create-workflow/README.md +4 -4
  346. package/src/modules/bmb/workflows/create-workflow/checklist.md +1 -1
  347. package/src/modules/bmb/workflows/create-workflow/instructions.md +29 -29
  348. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +42 -42
  349. package/src/modules/bmb/workflows/create-workflow/workflow-template/instructions.md +2 -2
  350. package/src/modules/bmb/workflows/create-workflow/workflow-template/workflow.yaml +12 -12
  351. package/src/modules/bmb/workflows/create-workflow/workflow.yaml +5 -5
  352. package/src/modules/bmb/workflows/edit-agent/checklist.md +1 -1
  353. package/src/modules/bmb/workflows/edit-agent/instructions.md +2 -2
  354. package/src/modules/bmb/workflows/edit-agent/workflow.yaml +8 -8
  355. package/src/modules/bmb/workflows/edit-module/README.md +2 -2
  356. package/src/modules/bmb/workflows/edit-module/checklist.md +2 -2
  357. package/src/modules/bmb/workflows/edit-module/instructions.md +4 -4
  358. package/src/modules/bmb/workflows/edit-module/workflow.yaml +10 -10
  359. package/src/modules/bmb/workflows/edit-workflow/instructions.md +4 -4
  360. package/src/modules/bmb/workflows/edit-workflow/workflow.yaml +5 -5
  361. package/src/modules/bmb/workflows/module-brief/README.md +2 -2
  362. package/src/modules/bmb/workflows/module-brief/instructions.md +2 -2
  363. package/src/modules/bmb/workflows/module-brief/workflow.yaml +4 -4
  364. package/src/modules/bmb/workflows/redoc/README.md +5 -5
  365. package/src/modules/bmb/workflows/redoc/instructions.md +1 -1
  366. package/src/modules/bmb/workflows/redoc/workflow.yaml +1 -1
  367. package/src/modules/bmgd/README.md +1 -1
  368. package/src/modules/bmgd/_module-installer/install-config.yaml +17 -16
  369. package/src/modules/bmgd/agents/game-architect.agent.yaml +15 -10
  370. package/src/modules/bmgd/agents/game-designer.agent.yaml +16 -11
  371. package/src/modules/bmgd/agents/game-dev.agent.yaml +18 -12
  372. package/src/modules/bmgd/agents/game-scrum-master.agent.yaml +30 -25
  373. package/src/modules/bmgd/teams/default-party.csv +10 -0
  374. package/src/modules/bmgd/teams/team-gamedev.yaml +2 -0
  375. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/instructions.md +1 -1
  376. package/src/modules/bmgd/workflows/1-preproduction/brainstorm-game/workflow.yaml +9 -9
  377. package/src/modules/bmgd/workflows/1-preproduction/game-brief/instructions.md +1 -1
  378. package/src/modules/bmgd/workflows/1-preproduction/game-brief/workflow.yaml +8 -8
  379. package/src/modules/bmgd/workflows/2-design/gdd/instructions-gdd.md +8 -8
  380. package/src/modules/bmgd/workflows/2-design/gdd/workflow.yaml +30 -30
  381. package/src/modules/bmgd/workflows/2-design/narrative/instructions-narrative.md +6 -6
  382. package/src/modules/bmgd/workflows/2-design/narrative/workflow.yaml +5 -5
  383. package/src/modules/bmgd/workflows/3-technical/game-architecture/instructions.md +6 -6
  384. package/src/modules/bmgd/workflows/3-technical/game-architecture/workflow.yaml +2 -2
  385. package/src/modules/bmgd/workflows/4-production/code-review/instructions.md +4 -4
  386. package/src/modules/bmgd/workflows/4-production/code-review/workflow.yaml +4 -13
  387. package/src/modules/bmgd/workflows/4-production/correct-course/checklist.md +1 -1
  388. package/src/modules/bmgd/workflows/4-production/correct-course/instructions.md +2 -2
  389. package/src/modules/bmgd/workflows/4-production/correct-course/workflow.yaml +2 -2
  390. package/src/modules/bmgd/workflows/4-production/create-story/instructions.md +3 -3
  391. package/src/modules/bmgd/workflows/4-production/create-story/workflow.yaml +3 -3
  392. package/src/modules/bmgd/workflows/4-production/dev-story/AUDIT-REPORT.md +3 -3
  393. package/src/modules/bmgd/workflows/4-production/dev-story/instructions.md +2 -2
  394. package/src/modules/bmgd/workflows/4-production/dev-story/workflow.yaml +3 -3
  395. package/src/modules/bmgd/workflows/4-production/epic-tech-context/checklist.md +1 -1
  396. package/src/modules/bmgd/workflows/4-production/epic-tech-context/instructions.md +2 -2
  397. package/src/modules/bmgd/workflows/4-production/epic-tech-context/workflow.yaml +2 -2
  398. package/src/modules/bmgd/workflows/4-production/retrospective/instructions.md +2 -2
  399. package/src/modules/bmgd/workflows/4-production/retrospective/workflow.yaml +4 -4
  400. package/src/modules/bmgd/workflows/4-production/sprint-planning/instructions.md +2 -2
  401. package/src/modules/bmgd/workflows/4-production/sprint-planning/workflow.yaml +3 -3
  402. package/src/modules/bmgd/workflows/4-production/story-context/checklist.md +1 -1
  403. package/src/modules/bmgd/workflows/4-production/story-context/context-template.xml +1 -1
  404. package/src/modules/bmgd/workflows/4-production/story-context/instructions.md +2 -2
  405. package/src/modules/bmgd/workflows/4-production/story-context/workflow.yaml +4 -4
  406. package/src/modules/bmgd/workflows/4-production/story-done/instructions.md +1 -1
  407. package/src/modules/bmgd/workflows/4-production/story-done/workflow.yaml +3 -3
  408. package/src/modules/bmgd/workflows/4-production/story-ready/instructions.md +1 -1
  409. package/src/modules/bmgd/workflows/4-production/story-ready/workflow.yaml +3 -3
  410. package/src/modules/bmm/_module-installer/install-config.yaml +10 -24
  411. package/src/modules/bmm/_module-installer/installer.js +2 -2
  412. package/src/modules/bmm/agents/analyst.agent.yaml +20 -15
  413. package/src/modules/bmm/agents/architect.agent.yaml +17 -12
  414. package/src/modules/bmm/agents/dev.agent.yaml +9 -12
  415. package/src/modules/bmm/agents/pm.agent.yaml +24 -23
  416. package/src/modules/bmm/agents/sm.agent.yaml +24 -19
  417. package/src/modules/bmm/agents/tea.agent.yaml +23 -17
  418. package/src/modules/bmm/agents/tech-writer.agent.yaml +14 -10
  419. package/src/modules/bmm/agents/ux-designer.agent.yaml +16 -11
  420. package/src/modules/bmm/docs/agents-guide.md +4 -4
  421. package/src/modules/bmm/docs/brownfield-guide.md +4 -4
  422. package/src/modules/bmm/docs/enterprise-agentic-development.md +3 -3
  423. package/src/modules/bmm/docs/faq.md +1 -1
  424. package/src/modules/bmm/docs/party-mode.md +3 -3
  425. package/src/modules/bmm/docs/quick-start.md +1 -1
  426. package/src/modules/bmm/docs/test-architecture.md +1 -1
  427. package/src/modules/bmm/docs/workflow-document-project-reference.md +1 -1
  428. package/src/modules/bmm/sub-modules/claude-code/README.md +1 -1
  429. package/src/modules/bmm/sub-modules/claude-code/injections.yaml +22 -22
  430. package/src/modules/bmm/tasks/daily-standup.xml +2 -2
  431. package/src/modules/bmm/teams/default-party.csv +19 -0
  432. package/src/modules/bmm/teams/team-fullstack.yaml +1 -0
  433. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/instructions.md +1 -1
  434. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +8 -8
  435. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +1 -1
  436. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +8 -8
  437. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +1 -1
  438. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +9 -9
  439. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +2 -2
  440. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +5 -5
  441. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +1 -1
  442. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +4 -4
  443. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +14 -14
  444. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -1
  445. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +10 -10
  446. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +3 -3
  447. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +6 -6
  448. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +5 -5
  449. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +16 -16
  450. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +1 -1
  451. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +5 -5
  452. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +6 -6
  453. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +2 -2
  454. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +12 -12
  455. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +6 -6
  456. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +19 -19
  457. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +2 -2
  458. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +4 -4
  459. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +38 -38
  460. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +6 -23
  461. package/src/modules/bmm/workflows/4-implementation/correct-course/checklist.md +1 -1
  462. package/src/modules/bmm/workflows/4-implementation/correct-course/instructions.md +2 -2
  463. package/src/modules/bmm/workflows/4-implementation/correct-course/workflow.yaml +2 -2
  464. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +38 -40
  465. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +6 -19
  466. package/src/modules/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +3 -3
  467. package/src/modules/bmm/workflows/4-implementation/dev-story/instructions.md +2 -2
  468. package/src/modules/bmm/workflows/4-implementation/dev-story/workflow.yaml +3 -3
  469. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/checklist.md +1 -1
  470. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +26 -28
  471. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +6 -18
  472. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +11 -11
  473. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +8 -11
  474. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +6 -15
  475. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +5 -4
  476. package/src/modules/bmm/workflows/4-implementation/story-context/checklist.md +1 -1
  477. package/src/modules/bmm/workflows/4-implementation/story-context/context-template.xml +1 -1
  478. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +8 -9
  479. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +6 -14
  480. package/src/modules/bmm/workflows/4-implementation/story-done/instructions.md +1 -1
  481. package/src/modules/bmm/workflows/4-implementation/story-done/workflow.yaml +4 -4
  482. package/src/modules/bmm/workflows/4-implementation/story-ready/instructions.md +1 -1
  483. package/src/modules/bmm/workflows/4-implementation/story-ready/workflow.yaml +4 -4
  484. package/src/modules/bmm/workflows/document-project/instructions.md +5 -5
  485. package/src/modules/bmm/workflows/document-project/workflow.yaml +2 -2
  486. package/src/modules/bmm/workflows/document-project/workflows/deep-dive.yaml +5 -5
  487. package/src/modules/bmm/workflows/document-project/workflows/full-scan.yaml +5 -5
  488. package/src/modules/bmm/workflows/testarch/atdd/instructions.md +2 -2
  489. package/src/modules/bmm/workflows/testarch/atdd/workflow.yaml +2 -2
  490. package/src/modules/bmm/workflows/testarch/automate/instructions.md +2 -2
  491. package/src/modules/bmm/workflows/testarch/automate/workflow.yaml +2 -2
  492. package/src/modules/bmm/workflows/testarch/ci/instructions.md +2 -2
  493. package/src/modules/bmm/workflows/testarch/ci/workflow.yaml +2 -2
  494. package/src/modules/bmm/workflows/testarch/framework/instructions.md +2 -2
  495. package/src/modules/bmm/workflows/testarch/framework/workflow.yaml +2 -2
  496. package/src/modules/bmm/workflows/testarch/nfr-assess/instructions.md +1 -1
  497. package/src/modules/bmm/workflows/testarch/nfr-assess/workflow.yaml +2 -2
  498. package/src/modules/bmm/workflows/testarch/test-design/instructions.md +2 -2
  499. package/src/modules/bmm/workflows/testarch/test-design/test-design-template.md +1 -1
  500. package/src/modules/bmm/workflows/testarch/test-design/workflow.yaml +2 -2
  501. package/src/modules/bmm/workflows/testarch/test-review/instructions.md +1 -1
  502. package/src/modules/bmm/workflows/testarch/test-review/workflow.yaml +2 -2
  503. package/src/modules/bmm/workflows/testarch/trace/instructions.md +9 -9
  504. package/src/modules/bmm/workflows/testarch/trace/workflow.yaml +2 -2
  505. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +28 -26
  506. package/src/modules/bmm/workflows/workflow-status/init/workflow.yaml +5 -4
  507. package/src/modules/bmm/workflows/workflow-status/instructions.md +5 -4
  508. package/src/modules/bmm/workflows/workflow-status/project-levels.yaml +1 -1
  509. package/src/modules/bmm/workflows/workflow-status/workflow.yaml +2 -2
  510. package/src/modules/cis/README.md +1 -1
  511. package/src/modules/cis/_module-installer/install-config.yaml +6 -4
  512. package/src/modules/cis/agents/README.md +1 -1
  513. package/src/modules/cis/agents/brainstorming-coach.agent.yaml +13 -8
  514. package/src/modules/cis/agents/creative-problem-solver.agent.yaml +13 -8
  515. package/src/modules/cis/agents/design-thinking-coach.agent.yaml +13 -8
  516. package/src/modules/cis/agents/innovation-strategist.agent.yaml +13 -8
  517. package/src/modules/cis/agents/storyteller.agent.yaml +13 -8
  518. package/src/modules/cis/teams/creative-squad.yaml +1 -0
  519. package/src/modules/cis/teams/default-party.csv +11 -0
  520. package/src/modules/cis/workflows/README.md +1 -1
  521. package/src/modules/cis/workflows/design-thinking/instructions.md +2 -2
  522. package/src/modules/cis/workflows/design-thinking/workflow.yaml +7 -7
  523. package/src/modules/cis/workflows/innovation-strategy/instructions.md +2 -2
  524. package/src/modules/cis/workflows/innovation-strategy/workflow.yaml +7 -7
  525. package/src/modules/cis/workflows/problem-solving/instructions.md +2 -2
  526. package/src/modules/cis/workflows/problem-solving/workflow.yaml +7 -7
  527. package/src/modules/cis/workflows/storytelling/instructions.md +2 -2
  528. package/src/modules/cis/workflows/storytelling/workflow.yaml +7 -7
  529. package/src/utility/models/action-command-header.md +0 -0
  530. package/src/utility/models/agent-activation-ide.xml +3 -3
  531. package/src/utility/models/agent-activation-web.xml +4 -4
  532. package/src/utility/models/agent-command-header.md +1 -0
  533. package/src/utility/models/fragments/activation-steps.xml +3 -2
  534. package/src/utility/models/fragments/handler-validate-workflow.xml +1 -1
  535. package/src/utility/models/fragments/handler-workflow.xml +1 -1
  536. package/src/utility/models/fragments/web-bundle-activation-steps.xml +3 -3
  537. package/tools/cli/bundlers/web-bundler.js +85 -16
  538. package/tools/cli/commands/install.js +1 -4
  539. package/tools/cli/installers/lib/core/config-collector.js +201 -28
  540. package/tools/cli/installers/lib/core/detector.js +62 -7
  541. package/tools/cli/installers/lib/core/installer.js +158 -23
  542. package/tools/cli/installers/lib/core/manifest-generator.js +26 -115
  543. package/tools/cli/installers/lib/ide/_base-ide.js +57 -3
  544. package/tools/cli/installers/lib/ide/auggie.js +78 -224
  545. package/tools/cli/installers/lib/ide/claude-code.js +14 -22
  546. package/tools/cli/installers/lib/ide/cline.js +15 -18
  547. package/tools/cli/installers/lib/ide/codex.js +17 -48
  548. package/tools/cli/installers/lib/ide/crush.js +14 -50
  549. package/tools/cli/installers/lib/ide/cursor.js +51 -8
  550. package/tools/cli/installers/lib/ide/gemini.js +87 -37
  551. package/tools/cli/installers/lib/ide/github-copilot.js +47 -35
  552. package/tools/cli/installers/lib/ide/iflow.js +13 -30
  553. package/tools/cli/installers/lib/ide/kilo.js +20 -16
  554. package/tools/cli/installers/lib/ide/manager.js +15 -0
  555. package/tools/cli/installers/lib/ide/opencode.js +16 -17
  556. package/tools/cli/installers/lib/ide/qwen.js +39 -11
  557. package/tools/cli/installers/lib/ide/roo.js +27 -62
  558. package/tools/cli/installers/lib/ide/shared/agent-command-generator.js +90 -0
  559. package/tools/cli/installers/lib/ide/{task-tool-command-generator.js → shared/task-tool-command-generator.js} +1 -1
  560. package/tools/cli/installers/lib/ide/{workflow-command-generator.js → shared/workflow-command-generator.js} +11 -9
  561. package/tools/cli/installers/lib/ide/templates/agent-command-template.md +14 -0
  562. package/tools/cli/installers/lib/ide/templates/gemini-agent-command.toml +14 -0
  563. package/tools/cli/installers/lib/ide/templates/gemini-task-command.toml +12 -0
  564. package/tools/cli/installers/lib/ide/{workflow-command-template.md → templates/workflow-command-template.md} +3 -5
  565. package/tools/cli/installers/lib/ide/trae.js +20 -32
  566. package/tools/cli/installers/lib/ide/windsurf.js +18 -8
  567. package/tools/cli/installers/lib/modules/manager.js +89 -17
  568. package/tools/cli/lib/cli-utils.js +52 -50
  569. package/tools/cli/lib/ui.js +15 -8
  570. package/tools/schema/agent.js +7 -3
  571. package/web-bundles/bmgd/agents/game-architect.xml +664 -0
  572. package/web-bundles/bmgd/agents/game-designer.xml +5489 -0
  573. package/web-bundles/bmgd/agents/game-dev.xml +595 -0
  574. package/web-bundles/bmgd/agents/game-scrum-master.xml +699 -0
  575. package/web-bundles/bmgd/teams/team-gamedev.xml +6588 -0
  576. package/web-bundles/bmm/agents/analyst.xml +424 -189
  577. package/web-bundles/bmm/agents/architect.xml +514 -183
  578. package/web-bundles/bmm/agents/dev.xml +185 -5
  579. package/web-bundles/bmm/agents/pm.xml +522 -193
  580. package/web-bundles/bmm/agents/sm.xml +636 -5
  581. package/web-bundles/bmm/agents/tea.xml +697 -4
  582. package/web-bundles/bmm/agents/tech-writer.xml +544 -4
  583. package/web-bundles/bmm/agents/ux-designer.xml +505 -31
  584. package/web-bundles/bmm/teams/team-fullstack.xml +1588 -1258
  585. package/web-bundles/cis/agents/brainstorming-coach.xml +1069 -0
  586. package/web-bundles/cis/agents/creative-problem-solver.xml +1060 -0
  587. package/web-bundles/cis/agents/design-thinking-coach.xml +955 -0
  588. package/web-bundles/cis/agents/innovation-strategist.xml +1108 -0
  589. package/web-bundles/cis/agents/storyteller.xml +598 -0
  590. package/web-bundles/cis/teams/creative-squad.xml +3449 -0
  591. package/bmad/_cfg/agent-manifest.csv +0 -5
  592. package/bmad/_cfg/files-manifest.csv +0 -82
  593. package/bmad/_cfg/ides/claude-code.yaml +0 -6
  594. package/bmad/_cfg/manifest.yaml +0 -11
  595. package/bmad/_cfg/task-manifest.csv +0 -13
  596. package/bmad/_cfg/tool-manifest.csv +0 -4
  597. package/bmad/_cfg/workflow-manifest.csv +0 -17
  598. package/bmad/bmb/config.yaml +0 -14
  599. package/bmad/core/workflows/party-mode/workflow.yaml +0 -23
  600. package/bmd/README.md +0 -193
  601. package/bmd/agents/cli-chief-sidecar/instructions.md +0 -102
  602. package/bmd/agents/cli-chief-sidecar/knowledge/README.md +0 -68
  603. package/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md +0 -123
  604. package/bmd/agents/cli-chief-sidecar/memories.md +0 -53
  605. package/bmd/agents/cli-chief.agent.yaml +0 -126
  606. package/bmd/agents/doc-keeper-sidecar/instructions.md +0 -177
  607. package/bmd/agents/doc-keeper-sidecar/knowledge/README.md +0 -81
  608. package/bmd/agents/doc-keeper-sidecar/memories.md +0 -88
  609. package/bmd/agents/doc-keeper.agent.yaml +0 -137
  610. package/bmd/agents/release-chief-sidecar/instructions.md +0 -164
  611. package/bmd/agents/release-chief-sidecar/knowledge/README.md +0 -82
  612. package/bmd/agents/release-chief-sidecar/memories.md +0 -73
  613. package/bmd/agents/release-chief.agent.yaml +0 -127
  614. package/bmd/bmad-custom-module-installer-plan.md +0 -1176
  615. package/bmd/config.yaml +0 -12
  616. package/test/fixtures/agent-schema/invalid/persona/principles-as-string.agent.yaml +0 -23
  617. /package/{bmad → .bmad}/_cfg/agents/bmb-bmad-builder.customize.yaml +0 -0
  618. /package/{bmad/_cfg/agents/core-bmad-master.customize.yaml → .bmad/_cfg/agents/bmm-analyst.customize.yaml} +0 -0
  619. /package/{bmad → .bmad}/bmb/README.md +0 -0
  620. /package/{bmad → .bmad}/bmb/workflows/audit-workflow/template.md +0 -0
  621. /package/{bmad → .bmad}/bmb/workflows/create-agent/brainstorm-context.md +0 -0
  622. /package/{bmad → .bmad}/bmb/workflows/create-agent/communication-styles.md +0 -0
  623. /package/{bmad → .bmad}/bmb/workflows/create-module/brainstorm-context.md +0 -0
  624. /package/{bmad → .bmad}/bmb/workflows/create-module/installer-templates/installer.js +0 -0
  625. /package/{bmad → .bmad}/bmb/workflows/create-workflow/brainstorm-context.md +0 -0
  626. /package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow-template/checklist.md +0 -0
  627. /package/{bmad → .bmad}/bmb/workflows/create-workflow/workflow-template/template.md +0 -0
  628. /package/{bmad → .bmad}/bmb/workflows/edit-agent/README.md +0 -0
  629. /package/{bmad → .bmad}/bmb/workflows/edit-workflow/README.md +0 -0
  630. /package/{bmad → .bmad}/bmb/workflows/edit-workflow/checklist.md +0 -0
  631. /package/{bmad → .bmad}/bmb/workflows/module-brief/checklist.md +0 -0
  632. /package/{bmad → .bmad}/bmb/workflows/module-brief/template.md +0 -0
  633. /package/{bmad → .bmad}/bmb/workflows/redoc/checklist.md +0 -0
  634. /package/{bmad → .bmad}/core/tasks/adv-elicit-methods.csv +0 -0
  635. /package/{bmad → .bmad}/core/workflows/brainstorming/brain-methods.csv +0 -0
  636. /package/{bmad → .bmad}/core/workflows/brainstorming/template.md +0 -0
  637. /package/{bmad → .bmad}/docs/claude-code-instructions.md +0 -0
@@ -0,0 +1,621 @@
1
+ <!-- Powered by BMAD-CORE™ -->
2
+
3
+ # Test Design and Risk Assessment
4
+
5
+ **Workflow ID**: `.bmad/bmm/testarch/test-design`
6
+ **Version**: 4.0 (BMad v6)
7
+
8
+ ---
9
+
10
+ ## Overview
11
+
12
+ Plans comprehensive test coverage strategy with risk assessment, priority classification, and execution ordering. This workflow generates a test design document that identifies high-risk areas, maps requirements to test levels, prioritizes scenarios (P0-P3), and provides resource estimates for the testing effort.
13
+
14
+ ---
15
+
16
+ ## Preflight Requirements
17
+
18
+ **Critical:** Verify these requirements before proceeding. If any fail, HALT and notify the user.
19
+
20
+ - ✅ Story markdown with acceptance criteria available
21
+ - ✅ PRD or epic documentation exists for context
22
+ - ✅ Architecture documents available (optional but recommended)
23
+ - ✅ Requirements are clear and testable
24
+
25
+ ---
26
+
27
+ ## Step 1: Load Context and Requirements
28
+
29
+ ### Actions
30
+
31
+ 1. **Read Requirements Documentation**
32
+ - Load PRD.md for high-level product requirements
33
+ - Read epics.md or specific epic for feature scope
34
+ - Read story markdown for detailed acceptance criteria
35
+ - Identify all testable requirements
36
+
37
+ 2. **Load Architecture Context**
38
+ - Read architecture.md for system design
39
+ - Read tech-spec for implementation details
40
+ - Identify technical constraints and dependencies
41
+ - Note integration points and external systems
42
+
43
+ 3. **Analyze Existing Test Coverage**
44
+ - Search for existing test files in `{test_dir}`
45
+ - Identify coverage gaps
46
+ - Note areas with insufficient testing
47
+ - Check for flaky or outdated tests
48
+
49
+ 4. **Load Knowledge Base Fragments**
50
+
51
+ **Critical:** Consult `{project-root}/.bmad/bmm/testarch/tea-index.csv` to load:
52
+ - `risk-governance.md` - Risk classification framework (6 categories: TECH, SEC, PERF, DATA, BUS, OPS), automated scoring, gate decision engine, owner tracking (625 lines, 4 examples)
53
+ - `probability-impact.md` - Risk scoring methodology (probability × impact matrix, automated classification, dynamic re-assessment, gate integration, 604 lines, 4 examples)
54
+ - `test-levels-framework.md` - Test level selection guidance (E2E vs API vs Component vs Unit with decision matrix, characteristics, when to use each, 467 lines, 4 examples)
55
+ - `test-priorities-matrix.md` - P0-P3 prioritization criteria (automated priority calculation, risk-based mapping, tagging strategy, time budgets, 389 lines, 2 examples)
56
+
57
+ **Halt Condition:** If story data or acceptance criteria are missing, check if brownfield exploration is needed. If neither requirements NOR exploration possible, HALT with message: "Test design requires clear requirements, acceptance criteria, or brownfield app URL for exploration"
58
+
59
+ ---
60
+
61
+ ## Step 1.5: Mode Selection (NEW - Phase 2.5)
62
+
63
+ ### Actions
64
+
65
+ 1. **Detect Planning Mode**
66
+
67
+ Determine mode based on context:
68
+
69
+ **Requirements-Based Mode (DEFAULT)**:
70
+ - Have clear story/PRD with acceptance criteria
71
+ - Uses: Existing workflow (Steps 2-4)
72
+ - Appropriate for: Documented features, greenfield projects
73
+
74
+ **Exploratory Mode (OPTIONAL - Brownfield)**:
75
+ - Missing/incomplete requirements AND brownfield application exists
76
+ - Uses: UI exploration to discover functionality
77
+ - Appropriate for: Undocumented brownfield apps, legacy systems
78
+
79
+ 2. **Requirements-Based Mode (DEFAULT - Skip to Step 2)**
80
+
81
+ If requirements are clear:
82
+ - Continue with existing workflow (Step 2: Assess and Classify Risks)
83
+ - Use loaded requirements from Step 1
84
+ - Proceed with risk assessment based on documented requirements
85
+
86
+ 3. **Exploratory Mode (OPTIONAL - Brownfield Apps)**
87
+
88
+ If exploring brownfield application:
89
+
90
+ **A. Check MCP Availability**
91
+
92
+ If config.tea_use_mcp_enhancements is true AND Playwright MCP tools available:
93
+ - Use MCP-assisted exploration (Step 3.B)
94
+
95
+ If MCP unavailable OR config.tea_use_mcp_enhancements is false:
96
+ - Use manual exploration fallback (Step 3.C)
97
+
98
+ **B. MCP-Assisted Exploration (If MCP Tools Available)**
99
+
100
+ Use Playwright MCP browser tools to explore UI:
101
+
102
+ **Setup:**
103
+
104
+ ```
105
+ 1. Use planner_setup_page to initialize browser
106
+ 2. Navigate to {exploration_url}
107
+ 3. Capture initial state with browser_snapshot
108
+ ```
109
+
110
+ **Exploration Process:**
111
+
112
+ ```
113
+ 4. Use browser_navigate to explore different pages
114
+ 5. Use browser_click to interact with buttons, links, forms
115
+ 6. Use browser_hover to reveal hidden menus/tooltips
116
+ 7. Capture browser_snapshot at each significant state
117
+ 8. Take browser_screenshot for documentation
118
+ 9. Monitor browser_console_messages for JavaScript errors
119
+ 10. Track browser_network_requests to identify API calls
120
+ 11. Map user flows and interactive elements
121
+ 12. Document discovered functionality
122
+ ```
123
+
124
+ **Discovery Documentation:**
125
+ - Create list of discovered features (pages, workflows, forms)
126
+ - Identify user journeys (navigation paths)
127
+ - Map API endpoints (from network requests)
128
+ - Note error states (from console messages)
129
+ - Capture screenshots for visual reference
130
+
131
+ **Convert to Test Scenarios:**
132
+ - Transform discoveries into testable requirements
133
+ - Prioritize based on user flow criticality
134
+ - Identify risks from discovered functionality
135
+ - Continue with Step 2 (Assess and Classify Risks) using discovered requirements
136
+
137
+ **C. Manual Exploration Fallback (If MCP Unavailable)**
138
+
139
+ If Playwright MCP is not available:
140
+
141
+ **Notify User:**
142
+
143
+ ```markdown
144
+ Exploratory mode enabled but Playwright MCP unavailable.
145
+
146
+ **Manual exploration required:**
147
+
148
+ 1. Open application at: {exploration_url}
149
+ 2. Explore all pages, workflows, and features
150
+ 3. Document findings in markdown:
151
+ - List of pages/features discovered
152
+ - User journeys identified
153
+ - API endpoints observed (DevTools Network tab)
154
+ - JavaScript errors noted (DevTools Console)
155
+ - Critical workflows mapped
156
+
157
+ 4. Provide exploration findings to continue workflow
158
+
159
+ **Alternative:** Disable exploratory_mode and provide requirements documentation
160
+ ```
161
+
162
+ Wait for user to provide exploration findings, then:
163
+ - Parse user-provided discovery documentation
164
+ - Convert to testable requirements
165
+ - Continue with Step 2 (risk assessment)
166
+
167
+ 4. **Proceed to Risk Assessment**
168
+
169
+ After mode selection (Requirements-Based OR Exploratory):
170
+ - Continue to Step 2: Assess and Classify Risks
171
+ - Use requirements from documentation (Requirements-Based) OR discoveries (Exploratory)
172
+
173
+ ---
174
+
175
+ ## Step 2: Assess and Classify Risks
176
+
177
+ ### Actions
178
+
179
+ 1. **Identify Genuine Risks**
180
+
181
+ Filter requirements to isolate actual risks (not just features):
182
+ - Unresolved technical gaps
183
+ - Security vulnerabilities
184
+ - Performance bottlenecks
185
+ - Data loss or corruption potential
186
+ - Business impact failures
187
+ - Operational deployment issues
188
+
189
+ 2. **Classify Risks by Category**
190
+
191
+ Use these standard risk categories:
192
+
193
+ **TECH** (Technical/Architecture):
194
+ - Architecture flaws
195
+ - Integration failures
196
+ - Scalability issues
197
+ - Technical debt
198
+
199
+ **SEC** (Security):
200
+ - Missing access controls
201
+ - Authentication bypass
202
+ - Data exposure
203
+ - Injection vulnerabilities
204
+
205
+ **PERF** (Performance):
206
+ - SLA violations
207
+ - Response time degradation
208
+ - Resource exhaustion
209
+ - Scalability limits
210
+
211
+ **DATA** (Data Integrity):
212
+ - Data loss
213
+ - Data corruption
214
+ - Inconsistent state
215
+ - Migration failures
216
+
217
+ **BUS** (Business Impact):
218
+ - User experience degradation
219
+ - Business logic errors
220
+ - Revenue impact
221
+ - Compliance violations
222
+
223
+ **OPS** (Operations):
224
+ - Deployment failures
225
+ - Configuration errors
226
+ - Monitoring gaps
227
+ - Rollback issues
228
+
229
+ 3. **Score Risk Probability**
230
+
231
+ Rate likelihood (1-3):
232
+ - **1 (Unlikely)**: <10% chance, edge case
233
+ - **2 (Possible)**: 10-50% chance, known scenario
234
+ - **3 (Likely)**: >50% chance, common occurrence
235
+
236
+ 4. **Score Risk Impact**
237
+
238
+ Rate severity (1-3):
239
+ - **1 (Minor)**: Cosmetic, workaround exists, limited users
240
+ - **2 (Degraded)**: Feature impaired, workaround difficult, affects many users
241
+ - **3 (Critical)**: System failure, data loss, no workaround, blocks usage
242
+
243
+ 5. **Calculate Risk Score**
244
+
245
+ ```
246
+ Risk Score = Probability × Impact
247
+
248
+ Scores:
249
+ 1-2: Low risk (monitor)
250
+ 3-4: Medium risk (plan mitigation)
251
+ 6-9: High risk (immediate mitigation required)
252
+ ```
253
+
254
+ 6. **Highlight High-Priority Risks**
255
+
256
+ Flag all risks with score ≥6 for immediate attention.
257
+
258
+ 7. **Request Clarification**
259
+
260
+ If evidence is missing or assumptions required:
261
+ - Document assumptions clearly
262
+ - Request user clarification
263
+ - Do NOT speculate on business impact
264
+
265
+ 8. **Plan Mitigations**
266
+
267
+ For each high-priority risk:
268
+ - Define mitigation strategy
269
+ - Assign owner (dev, QA, ops)
270
+ - Set timeline
271
+ - Update residual risk expectation
272
+
273
+ ---
274
+
275
+ ## Step 3: Design Test Coverage
276
+
277
+ ### Actions
278
+
279
+ 1. **Break Down Acceptance Criteria**
280
+
281
+ Convert each acceptance criterion into atomic test scenarios:
282
+ - One scenario per testable behavior
283
+ - Scenarios are independent
284
+ - Scenarios are repeatable
285
+ - Scenarios tie back to risk mitigations
286
+
287
+ 2. **Select Appropriate Test Levels**
288
+
289
+ **Knowledge Base Reference**: `test-levels-framework.md`
290
+
291
+ Map requirements to optimal test levels (avoid duplication):
292
+
293
+ **E2E (End-to-End)**:
294
+ - Critical user journeys
295
+ - Multi-system integration
296
+ - Production-like environment
297
+ - Highest confidence, slowest execution
298
+
299
+ **API (Integration)**:
300
+ - Service contracts
301
+ - Business logic validation
302
+ - Fast feedback
303
+ - Good for complex scenarios
304
+
305
+ **Component**:
306
+ - UI component behavior
307
+ - Interaction testing
308
+ - Visual regression
309
+ - Fast, isolated
310
+
311
+ **Unit**:
312
+ - Business logic
313
+ - Edge cases
314
+ - Error handling
315
+ - Fastest, most granular
316
+
317
+ **Avoid duplicate coverage**: Don't test same behavior at multiple levels unless necessary.
318
+
319
+ 3. **Assign Priority Levels**
320
+
321
+ **Knowledge Base Reference**: `test-priorities-matrix.md`
322
+
323
+ **P0 (Critical)**:
324
+ - Blocks core user journey
325
+ - High-risk areas (score ≥6)
326
+ - Revenue-impacting
327
+ - Security-critical
328
+ - **Run on every commit**
329
+
330
+ **P1 (High)**:
331
+ - Important user features
332
+ - Medium-risk areas (score 3-4)
333
+ - Common workflows
334
+ - **Run on PR to main**
335
+
336
+ **P2 (Medium)**:
337
+ - Secondary features
338
+ - Low-risk areas (score 1-2)
339
+ - Edge cases
340
+ - **Run nightly or weekly**
341
+
342
+ **P3 (Low)**:
343
+ - Nice-to-have
344
+ - Exploratory
345
+ - Performance benchmarks
346
+ - **Run on-demand**
347
+
348
+ 4. **Outline Data and Tooling Prerequisites**
349
+
350
+ For each test scenario, identify:
351
+ - Test data requirements (factories, fixtures)
352
+ - External services (mocks, stubs)
353
+ - Environment setup
354
+ - Tools and dependencies
355
+
356
+ 5. **Define Execution Order**
357
+
358
+ Recommend test execution sequence:
359
+ 1. **Smoke tests** (P0 subset, <5 min)
360
+ 2. **P0 tests** (critical paths, <10 min)
361
+ 3. **P1 tests** (important features, <30 min)
362
+ 4. **P2/P3 tests** (full regression, <60 min)
363
+
364
+ ---
365
+
366
+ ## Step 4: Generate Deliverables
367
+
368
+ ### Actions
369
+
370
+ 1. **Create Risk Assessment Matrix**
371
+
372
+ Use template structure:
373
+
374
+ ```markdown
375
+ | Risk ID | Category | Description | Probability | Impact | Score | Mitigation |
376
+ | ------- | -------- | ----------- | ----------- | ------ | ----- | --------------- |
377
+ | R-001 | SEC | Auth bypass | 2 | 3 | 6 | Add authz check |
378
+ ```
379
+
380
+ 2. **Create Coverage Matrix**
381
+
382
+ ```markdown
383
+ | Requirement | Test Level | Priority | Risk Link | Test Count | Owner |
384
+ | ----------- | ---------- | -------- | --------- | ---------- | ----- |
385
+ | Login flow | E2E | P0 | R-001 | 3 | QA |
386
+ ```
387
+
388
+ 3. **Document Execution Order**
389
+
390
+ ```markdown
391
+ ### Smoke Tests (<5 min)
392
+
393
+ - Login successful
394
+ - Dashboard loads
395
+
396
+ ### P0 Tests (<10 min)
397
+
398
+ - [Full P0 list]
399
+
400
+ ### P1 Tests (<30 min)
401
+
402
+ - [Full P1 list]
403
+ ```
404
+
405
+ 4. **Include Resource Estimates**
406
+
407
+ ```markdown
408
+ ### Test Effort Estimates
409
+
410
+ - P0 scenarios: 15 tests × 2 hours = 30 hours
411
+ - P1 scenarios: 25 tests × 1 hour = 25 hours
412
+ - P2 scenarios: 40 tests × 0.5 hour = 20 hours
413
+ - **Total:** 75 hours (~10 days)
414
+ ```
415
+
416
+ 5. **Add Gate Criteria**
417
+
418
+ ```markdown
419
+ ### Quality Gate Criteria
420
+
421
+ - All P0 tests pass (100%)
422
+ - P1 tests pass rate ≥95%
423
+ - No high-risk (score ≥6) items unmitigated
424
+ - Test coverage ≥80% for critical paths
425
+ ```
426
+
427
+ 6. **Write to Output File**
428
+
429
+ Save to `{output_folder}/test-design-epic-{epic_num}.md` using template structure.
430
+
431
+ ---
432
+
433
+ ## Important Notes
434
+
435
+ ### Risk Category Definitions
436
+
437
+ **TECH** (Technical/Architecture):
438
+
439
+ - Architecture flaws or technical debt
440
+ - Integration complexity
441
+ - Scalability concerns
442
+
443
+ **SEC** (Security):
444
+
445
+ - Missing security controls
446
+ - Authentication/authorization gaps
447
+ - Data exposure risks
448
+
449
+ **PERF** (Performance):
450
+
451
+ - SLA risk or performance degradation
452
+ - Resource constraints
453
+ - Scalability bottlenecks
454
+
455
+ **DATA** (Data Integrity):
456
+
457
+ - Data loss or corruption potential
458
+ - State consistency issues
459
+ - Migration risks
460
+
461
+ **BUS** (Business Impact):
462
+
463
+ - User experience harm
464
+ - Business logic errors
465
+ - Revenue or compliance impact
466
+
467
+ **OPS** (Operations):
468
+
469
+ - Deployment or runtime failures
470
+ - Configuration issues
471
+ - Monitoring/observability gaps
472
+
473
+ ### Risk Scoring Methodology
474
+
475
+ **Probability × Impact = Risk Score**
476
+
477
+ Examples:
478
+
479
+ - High likelihood (3) × Critical impact (3) = **Score 9** (highest priority)
480
+ - Possible (2) × Critical (3) = **Score 6** (high priority threshold)
481
+ - Unlikely (1) × Minor (1) = **Score 1** (low priority)
482
+
483
+ **Threshold**: Scores ≥6 require immediate mitigation.
484
+
485
+ ### Test Level Selection Strategy
486
+
487
+ **Avoid duplication:**
488
+
489
+ - Don't test same behavior at E2E and API level
490
+ - Use E2E for critical paths only
491
+ - Use API tests for complex business logic
492
+ - Use unit tests for edge cases
493
+
494
+ **Tradeoffs:**
495
+
496
+ - E2E: High confidence, slow execution, brittle
497
+ - API: Good balance, fast, stable
498
+ - Unit: Fastest feedback, narrow scope
499
+
500
+ ### Priority Assignment Guidelines
501
+
502
+ **P0 criteria** (all must be true):
503
+
504
+ - Blocks core functionality
505
+ - High-risk (score ≥6)
506
+ - No workaround exists
507
+ - Affects majority of users
508
+
509
+ **P1 criteria**:
510
+
511
+ - Important feature
512
+ - Medium risk (score 3-5)
513
+ - Workaround exists but difficult
514
+
515
+ **P2/P3**: Everything else, prioritized by value
516
+
517
+ ### Knowledge Base Integration
518
+
519
+ **Core Fragments (Auto-loaded in Step 1):**
520
+
521
+ - `risk-governance.md` - Risk classification (6 categories), automated scoring, gate decision engine, coverage traceability, owner tracking (625 lines, 4 examples)
522
+ - `probability-impact.md` - Probability × impact matrix, automated classification thresholds, dynamic re-assessment, gate integration (604 lines, 4 examples)
523
+ - `test-levels-framework.md` - E2E vs API vs Component vs Unit decision framework with characteristics matrix (467 lines, 4 examples)
524
+ - `test-priorities-matrix.md` - P0-P3 automated priority calculation, risk-based mapping, tagging strategy, time budgets (389 lines, 2 examples)
525
+
526
+ **Reference for Test Planning:**
527
+
528
+ - `selective-testing.md` - Execution strategy: tag-based, spec filters, diff-based selection, promotion rules (727 lines, 4 examples)
529
+ - `fixture-architecture.md` - Data setup patterns: pure function → fixture → mergeTests, auto-cleanup (406 lines, 5 examples)
530
+
531
+ **Manual Reference (Optional):**
532
+
533
+ - Use `tea-index.csv` to find additional specialized fragments as needed
534
+
535
+ ### Evidence-Based Assessment
536
+
537
+ **Critical principle:** Base risk assessment on evidence, not speculation.
538
+
539
+ **Evidence sources:**
540
+
541
+ - PRD and user research
542
+ - Architecture documentation
543
+ - Historical bug data
544
+ - User feedback
545
+ - Security audit results
546
+
547
+ **Avoid:**
548
+
549
+ - Guessing business impact
550
+ - Assuming user behavior
551
+ - Inventing requirements
552
+
553
+ **When uncertain:** Document assumptions and request clarification from user.
554
+
555
+ ---
556
+
557
+ ## Output Summary
558
+
559
+ After completing this workflow, provide a summary:
560
+
561
+ ```markdown
562
+ ## Test Design Complete
563
+
564
+ **Epic**: {epic_num}
565
+ **Scope**: {design_level}
566
+
567
+ **Risk Assessment**:
568
+
569
+ - Total risks identified: {count}
570
+ - High-priority risks (≥6): {high_count}
571
+ - Categories: {categories}
572
+
573
+ **Coverage Plan**:
574
+
575
+ - P0 scenarios: {p0_count} ({p0_hours} hours)
576
+ - P1 scenarios: {p1_count} ({p1_hours} hours)
577
+ - P2/P3 scenarios: {p2p3_count} ({p2p3_hours} hours)
578
+ - **Total effort**: {total_hours} hours (~{total_days} days)
579
+
580
+ **Test Levels**:
581
+
582
+ - E2E: {e2e_count}
583
+ - API: {api_count}
584
+ - Component: {component_count}
585
+ - Unit: {unit_count}
586
+
587
+ **Quality Gate Criteria**:
588
+
589
+ - P0 pass rate: 100%
590
+ - P1 pass rate: ≥95%
591
+ - High-risk mitigations: 100%
592
+ - Coverage: ≥80%
593
+
594
+ **Output File**: {output_file}
595
+
596
+ **Next Steps**:
597
+
598
+ 1. Review risk assessment with team
599
+ 2. Prioritize mitigation for high-risk items (score ≥6)
600
+ 3. Run `atdd` workflow to generate failing tests for P0 scenarios
601
+ 4. Allocate resources per effort estimates
602
+ 5. Set up test data factories and fixtures
603
+ ```
604
+
605
+ ---
606
+
607
+ ## Validation
608
+
609
+ After completing all steps, verify:
610
+
611
+ - [ ] Risk assessment complete with all categories
612
+ - [ ] All risks scored (probability × impact)
613
+ - [ ] High-priority risks (≥6) flagged
614
+ - [ ] Coverage matrix maps requirements to test levels
615
+ - [ ] Priority levels assigned (P0-P3)
616
+ - [ ] Execution order defined
617
+ - [ ] Resource estimates provided
618
+ - [ ] Quality gate criteria defined
619
+ - [ ] Output file created and formatted correctly
620
+
621
+ Refer to `checklist.md` for comprehensive validation criteria.