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,1115 @@
1
+ # Tech-Spec Workflow - Context-Aware Technical Planning (Level 0-1)
2
+
3
+ <workflow>
4
+
5
+ <critical>The workflow execution engine is governed by: {project-root}/.bmad/core/tasks/workflow.xml</critical>
6
+ <critical>You MUST have already loaded and processed: {installed_path}/workflow.yaml</critical>
7
+ <critical>Communicate all responses in {communication_language} and language MUST be tailored to {user_skill_level}</critical>
8
+ <critical>Generate all documents in {document_output_language}</critical>
9
+ <critical>This is for Level 0-1 projects - tech-spec with context-rich story generation</critical>
10
+ <critical>Level 0: tech-spec + single user story | Level 1: tech-spec + epic/stories</critical>
11
+ <critical>LIVING DOCUMENT: Write to tech-spec.md continuously as you discover - never wait until the end</critical>
12
+ <critical>CONTEXT IS KING: Gather ALL available context before generating specs</critical>
13
+ <critical>DOCUMENT OUTPUT: Technical, precise, definitive. Specific versions only. User skill level ({user_skill_level}) affects conversation style ONLY, not document content.</critical>
14
+ <critical>Input documents specified in workflow.yaml input_file_patterns - workflow engine handles fuzzy matching, whole vs sharded document discovery automatically</critical>
15
+
16
+ <step n="0" goal="Validate workflow readiness and detect project level" tag="workflow-status">
17
+ <action>Check if {output_folder}/bmm-workflow-status.yaml exists</action>
18
+
19
+ <check if="status file not found">
20
+ <output>No workflow status file found. Tech-spec workflow can run standalone or as part of BMM workflow path.</output>
21
+ <output>**Recommended:** Run `workflow-init` first for project context tracking and workflow sequencing.</output>
22
+ <output>**Quick Start:** Continue in standalone mode - perfect for rapid prototyping and quick changes!</output>
23
+ <ask>Continue in standalone mode or exit to run workflow-init? (continue/exit)</ask>
24
+ <check if="continue">
25
+ <action>Set standalone_mode = true</action>
26
+
27
+ <output>Great! Let's quickly configure your project...</output>
28
+
29
+ <ask>What level is this project?
30
+
31
+ **Level 0** - Single atomic change (bug fix, small isolated feature, single file change)
32
+ → Generates: 1 tech-spec + 1 story
33
+ → Example: "Fix login validation bug" or "Add email field to user form"
34
+
35
+ **Level 1** - Coherent feature (multiple related changes, small feature set)
36
+ → Generates: 1 tech-spec + 1 epic + 2-3 stories
37
+ → Example: "Add OAuth integration" or "Build user profile page"
38
+
39
+ Enter **0** or **1**:</ask>
40
+
41
+ <action>Capture user response as project_level (0 or 1)</action>
42
+ <action>Validate: If not 0 or 1, ask again</action>
43
+
44
+ <ask>Is this a **greenfield** (new/empty codebase) or **brownfield** (existing codebase) project?
45
+
46
+ **Greenfield** - Starting fresh, no existing code
47
+ **Brownfield** - Adding to or modifying existing code
48
+
49
+ Enter **greenfield** or **brownfield**:</ask>
50
+
51
+ <action>Capture user response as field_type (greenfield or brownfield)</action>
52
+ <action>Validate: If not greenfield or brownfield, ask again</action>
53
+
54
+ <output>Perfect! Running as:
55
+
56
+ - **Project Level:** {{project_level}}
57
+ - **Field Type:** {{field_type}}
58
+ - **Mode:** Standalone (no status file tracking)
59
+
60
+ Let's build your tech-spec!</output>
61
+ </check>
62
+ <check if="exit">
63
+ <action>Exit workflow</action>
64
+ </check>
65
+ </check>
66
+
67
+ <check if="status file found">
68
+ <action>Load the FULL file: {output_folder}/bmm-workflow-status.yaml</action>
69
+ <action>Parse workflow_status section</action>
70
+ <action>Check status of "tech-spec" workflow</action>
71
+ <action>Get project_level from YAML metadata</action>
72
+ <action>Get field_type from YAML metadata (greenfield or brownfield)</action>
73
+ <action>Find first non-completed workflow (next expected workflow)</action>
74
+
75
+ <check if="project_level >= 2">
76
+ <output>**Incorrect Workflow for Level {{project_level}}**
77
+
78
+ Tech-spec is for Level 0-1 projects. Level 2-4 should use PRD workflow.
79
+
80
+ **Correct workflow:** `create-prd` (PM agent)
81
+ </output>
82
+ <action>Exit and redirect to prd</action>
83
+ </check>
84
+
85
+ <check if="tech-spec status is file path (already completed)">
86
+ <output>⚠️ Tech-spec already completed: {{tech-spec status}}</output>
87
+ <ask>Re-running will overwrite the existing tech-spec. Continue? (y/n)</ask>
88
+ <check if="n">
89
+ <output>Exiting. Use workflow-status to see your next step.</output>
90
+ <action>Exit workflow</action>
91
+ </check>
92
+ </check>
93
+
94
+ <check if="tech-spec is not the next expected workflow">
95
+ <output>⚠️ Next expected workflow: {{next_workflow}}. Tech-spec is out of sequence.</output>
96
+ <ask>Continue with tech-spec anyway? (y/n)</ask>
97
+ <check if="n">
98
+ <output>Exiting. Run {{next_workflow}} instead.</output>
99
+ <action>Exit workflow</action>
100
+ </check>
101
+ </check>
102
+
103
+ <action>Set standalone_mode = false</action>
104
+ </check>
105
+ </step>
106
+
107
+ <step n="1" goal="Comprehensive context discovery - gather everything available">
108
+
109
+ <action>Welcome {user_name} warmly and explain what we're about to do:
110
+
111
+ "I'm going to gather all available context about your project before we dive into the technical spec. This includes:
112
+
113
+ - Any existing documentation (product briefs, research)
114
+ - Brownfield codebase analysis (if applicable)
115
+ - Your project's tech stack and dependencies
116
+ - Existing code patterns and structure
117
+
118
+ This ensures the tech-spec is grounded in reality and gives developers everything they need."
119
+ </action>
120
+
121
+ <action>**PHASE 1: Load Existing Documents**
122
+
123
+ Search for and load (using dual-strategy: whole first, then sharded):
124
+
125
+ 1. **Product Brief:**
126
+ - Search pattern: {output*folder}/\_brief*.md
127
+ - Sharded: {output*folder}/\_brief*/index.md
128
+ - If found: Load completely and extract key context
129
+
130
+ 2. **Research Documents:**
131
+ - Search pattern: {output*folder}/\_research*.md
132
+ - Sharded: {output*folder}/\_research*/index.md
133
+ - If found: Load completely and extract insights
134
+
135
+ 3. **Document-Project Output (CRITICAL for brownfield):**
136
+ - Always check: {output_folder}/docs/index.md
137
+ - If found: This is the brownfield codebase map - load ALL shards!
138
+ - Extract: File structure, key modules, existing patterns, naming conventions
139
+
140
+ Create a summary of what was found:
141
+
142
+ - List of loaded documents
143
+ - Key insights from each
144
+ - Brownfield vs greenfield determination
145
+ </action>
146
+
147
+ <action>**PHASE 2: Detect Project Type from Setup Files**
148
+
149
+ Search for project setup files in {project-root}:
150
+
151
+ **Node.js/JavaScript:**
152
+
153
+ - package.json → Parse for framework, dependencies, scripts
154
+
155
+ **Python:**
156
+
157
+ - requirements.txt → Parse for packages
158
+ - pyproject.toml → Parse for modern Python projects
159
+ - Pipfile → Parse for pipenv projects
160
+
161
+ **Ruby:**
162
+
163
+ - Gemfile → Parse for gems and versions
164
+
165
+ **Java:**
166
+
167
+ - pom.xml → Parse for Maven dependencies
168
+ - build.gradle → Parse for Gradle dependencies
169
+
170
+ **Go:**
171
+
172
+ - go.mod → Parse for modules
173
+
174
+ **Rust:**
175
+
176
+ - Cargo.toml → Parse for crates
177
+
178
+ **PHP:**
179
+
180
+ - composer.json → Parse for packages
181
+
182
+ If setup file found, extract:
183
+
184
+ 1. Framework name and EXACT version (e.g., "React 18.2.0", "Django 4.2.1")
185
+ 2. All production dependencies with versions
186
+ 3. Dev dependencies and tools (TypeScript, Jest, ESLint, pytest, etc.)
187
+ 4. Available scripts (npm run test, npm run build, etc.)
188
+ 5. Project type indicators (is it an API? Web app? CLI tool?)
189
+ 6. **Test framework** (Jest, pytest, RSpec, JUnit, Mocha, etc.)
190
+
191
+ **Check for Outdated Dependencies:**
192
+ <check if="major framework version > 2 years old">
193
+ <action>Use WebSearch to find current recommended version</action>
194
+ <example>
195
+ If package.json shows "react": "16.14.0" (from 2020):
196
+ <WebSearch query="React latest stable version 2025 migration guide" />
197
+ Note both current version AND migration complexity in stack summary
198
+ </example>
199
+ </check>
200
+
201
+ **For Greenfield Projects:**
202
+ <check if="field_type == greenfield">
203
+ <action>Use WebSearch for current best practices AND starter templates</action>
204
+ <example>
205
+ <WebSearch query="{detected_framework} best practices {current_year}" />
206
+ <WebSearch query="{detected_framework} recommended packages {current_year}" />
207
+ <WebSearch query="{detected_framework} official starter template {current_year}" />
208
+ <WebSearch query="{project_type} {detected_framework} boilerplate {current_year}" />
209
+ </example>
210
+
211
+ **RECOMMEND STARTER TEMPLATES:**
212
+ Look for official or well-maintained starter templates:
213
+
214
+ - React: Create React App, Vite, Next.js starter
215
+ - Vue: create-vue, Nuxt starter
216
+ - Python: cookiecutter templates, FastAPI template
217
+ - Node.js: express-generator, NestJS CLI
218
+ - Ruby: Rails new, Sinatra template
219
+ - Go: go-blueprint, standard project layout
220
+
221
+ Benefits of starters:
222
+
223
+ - ✅ Modern best practices baked in
224
+ - ✅ Proper project structure
225
+ - ✅ Build tooling configured
226
+ - ✅ Testing framework set up
227
+ - ✅ Linting/formatting included
228
+ - ✅ Faster time to first feature
229
+
230
+ **Present recommendations to user:**
231
+ "I found these starter templates for {{framework}}:
232
+
233
+ 1. {{official_template}} - Official, well-maintained
234
+ 2. {{community_template}} - Popular community template
235
+
236
+ These provide {{benefits}}. Would you like to use one? (yes/no/show-me-more)"
237
+
238
+ <action>Capture user preference on starter template</action>
239
+ <action>If yes, include starter setup in implementation stack</action>
240
+ </check>
241
+
242
+ Store this as {{project_stack_summary}}
243
+ </action>
244
+
245
+ <action>**PHASE 3: Brownfield Codebase Reconnaissance** (if applicable)
246
+
247
+ <check if="field_type == brownfield OR document-project output found">
248
+
249
+ Analyze the existing project structure:
250
+
251
+ 1. **Directory Structure:**
252
+ - Identify main code directories (src/, lib/, app/, components/, services/)
253
+ - Note organization patterns (feature-based, layer-based, domain-driven)
254
+ - Identify test directories and patterns
255
+
256
+ 2. **Code Patterns:**
257
+ - Look for dominant patterns (class-based, functional, MVC, microservices)
258
+ - Identify naming conventions (camelCase, snake_case, PascalCase)
259
+ - Note file organization patterns
260
+
261
+ 3. **Key Modules/Services:**
262
+ - Identify major modules or services already in place
263
+ - Note entry points (main.js, app.py, index.ts)
264
+ - Document important utilities or shared code
265
+
266
+ 4. **Testing Patterns & Standards (CRITICAL):**
267
+ - Identify test framework in use (from package.json/requirements.txt)
268
+ - Note test file naming patterns (.test.js, \_test.py, .spec.ts, Test.java)
269
+ - Document test organization (tests/, **tests**, spec/, test/)
270
+ - Look for test configuration files (jest.config.js, pytest.ini, .rspec)
271
+ - Check for coverage requirements (in CI config, test scripts)
272
+ - Identify mocking/stubbing libraries (jest.mock, unittest.mock, sinon)
273
+ - Note assertion styles (expect, assert, should)
274
+
275
+ 5. **Code Style & Conventions (MUST CONFORM):**
276
+ - Check for linter config (.eslintrc, .pylintrc, rubocop.yml)
277
+ - Check for formatter config (.prettierrc, .black, .editorconfig)
278
+ - Identify code style:
279
+ - Semicolons: yes/no (JavaScript/TypeScript)
280
+ - Quotes: single/double
281
+ - Indentation: spaces/tabs, size
282
+ - Line length limits
283
+ - Import/export patterns (named vs default, organization)
284
+ - Error handling patterns (try/catch, Result types, error classes)
285
+ - Logging patterns (console, winston, logging module, specific formats)
286
+ - Documentation style (JSDoc, docstrings, YARD, JavaDoc)
287
+
288
+ Store this as {{existing_structure_summary}}
289
+
290
+ **CRITICAL: Confirm Conventions with User**
291
+ <ask>I've detected these conventions in your codebase:
292
+
293
+ **Code Style:**
294
+ {{detected_code_style}}
295
+
296
+ **Test Patterns:**
297
+ {{detected_test_patterns}}
298
+
299
+ **File Organization:**
300
+ {{detected_file_organization}}
301
+
302
+ Should I follow these existing conventions for the new code?
303
+
304
+ Enter **yes** to conform to existing patterns, or **no** if you want to establish new standards:</ask>
305
+
306
+ <action>Capture user response as conform_to_conventions (yes/no)</action>
307
+
308
+ <check if="conform_to_conventions == no">
309
+ <ask>What conventions would you like to use instead? (Or should I suggest modern best practices?)</ask>
310
+ <action>Capture new conventions or use WebSearch for current best practices</action>
311
+ </check>
312
+
313
+ <action>Store confirmed conventions as {{existing_conventions}}</action>
314
+
315
+ </check>
316
+
317
+ <check if="field_type == greenfield">
318
+ <action>Note: Greenfield project - no existing code to analyze</action>
319
+ <action>Set {{existing_structure_summary}} = "Greenfield project - new codebase"</action>
320
+ </check>
321
+
322
+ </action>
323
+
324
+ <action>**PHASE 4: Synthesize Context Summary**
325
+
326
+ Create {{loaded_documents_summary}} that includes:
327
+
328
+ - Documents found and loaded
329
+ - Brownfield vs greenfield status
330
+ - Tech stack detected (or "To be determined" if greenfield)
331
+ - Existing patterns identified (or "None - greenfield" if applicable)
332
+
333
+ Present this summary to {user_name} conversationally:
334
+
335
+ "Here's what I found about your project:
336
+
337
+ **Documents Available:**
338
+ [List what was found]
339
+
340
+ **Project Type:**
341
+ [Brownfield with X framework Y version OR Greenfield - new project]
342
+
343
+ **Existing Stack:**
344
+ [Framework and dependencies OR "To be determined"]
345
+
346
+ **Code Structure:**
347
+ [Existing patterns OR "New codebase"]
348
+
349
+ This gives me a solid foundation for creating a context-rich tech spec!"
350
+ </action>
351
+
352
+ <template-output>loaded_documents_summary</template-output>
353
+ <template-output>project_stack_summary</template-output>
354
+ <template-output>existing_structure_summary</template-output>
355
+
356
+ </step>
357
+
358
+ <step n="2" goal="Conversational discovery of the change/feature">
359
+
360
+ <action>Now engage in natural conversation to understand what needs to be built.
361
+
362
+ Adapt questioning based on project_level:
363
+ </action>
364
+
365
+ <check if="project_level == 0">
366
+ <action>**Level 0: Atomic Change Discovery**
367
+
368
+ Engage warmly and get specific details:
369
+
370
+ "Let's talk about this change. I need to understand it deeply so the tech-spec gives developers everything they need."
371
+
372
+ **Core Questions (adapt naturally, don't interrogate):**
373
+
374
+ 1. "What problem are you solving?"
375
+ - Listen for: Bug fix, missing feature, technical debt, improvement
376
+ - Capture as {{change_type}}
377
+
378
+ 2. "Where in the codebase should this live?"
379
+ - If brownfield: "I see you have [existing modules]. Does this fit in any of those?"
380
+ - If greenfield: "Let's figure out the right structure for this."
381
+ - Capture affected areas
382
+
383
+ 3. <check if="brownfield">
384
+ "Are there existing patterns or similar code I should follow?"
385
+ - Look for consistency requirements
386
+ - Identify reference implementations
387
+ </check>
388
+
389
+ 4. "What's the expected behavior after this change?"
390
+ - Get specific success criteria
391
+ - Understand edge cases
392
+
393
+ 5. "Any constraints or gotchas I should know about?"
394
+ - Technical limitations
395
+ - Dependencies on other systems
396
+ - Performance requirements
397
+
398
+ **Discovery Goals:**
399
+
400
+ - Understand the WHY (problem)
401
+ - Understand the WHAT (solution)
402
+ - Understand the WHERE (location in code)
403
+ - Understand the HOW (approach and patterns)
404
+
405
+ Synthesize into clear problem statement and solution overview.
406
+ </action>
407
+ </check>
408
+
409
+ <check if="project_level == 1">
410
+ <action>**Level 1: Feature Discovery**
411
+
412
+ Engage in deeper feature exploration:
413
+
414
+ "This is a Level 1 feature - coherent but focused. Let's explore what you're building."
415
+
416
+ **Core Questions (natural conversation):**
417
+
418
+ 1. "What user need are you addressing?"
419
+ - Get to the core value
420
+ - Understand the user's pain point
421
+
422
+ 2. "How should this integrate with existing code?"
423
+ - If brownfield: "I saw [existing features]. How does this relate?"
424
+ - Identify integration points
425
+ - Note dependencies
426
+
427
+ 3. <check if="brownfield AND similar features exist">
428
+ "Can you point me to similar features I can reference for patterns?"
429
+ - Get example implementations
430
+ - Understand established patterns
431
+ </check>
432
+
433
+ 4. "What's IN scope vs OUT of scope for this feature?"
434
+ - Define clear boundaries
435
+ - Identify MVP vs future enhancements
436
+ - Keep it focused (remind: Level 1 = 2-3 stories max)
437
+
438
+ 5. "Are there dependencies on other systems or services?"
439
+ - External APIs
440
+ - Databases
441
+ - Third-party libraries
442
+
443
+ 6. "What does success look like?"
444
+ - Measurable outcomes
445
+ - User-facing impact
446
+ - Technical validation
447
+
448
+ **Discovery Goals:**
449
+
450
+ - Feature purpose and value
451
+ - Integration strategy
452
+ - Scope boundaries
453
+ - Success criteria
454
+ - Dependencies
455
+
456
+ Synthesize into comprehensive feature description.
457
+ </action>
458
+ </check>
459
+
460
+ <template-output>problem_statement</template-output>
461
+ <template-output>solution_overview</template-output>
462
+ <template-output>change_type</template-output>
463
+ <template-output>scope_in</template-output>
464
+ <template-output>scope_out</template-output>
465
+
466
+ </step>
467
+
468
+ <step n="3" goal="Generate context-aware, definitive technical specification">
469
+
470
+ <critical>ALL TECHNICAL DECISIONS MUST BE DEFINITIVE - NO AMBIGUITY ALLOWED</critical>
471
+ <critical>Use existing stack info to make SPECIFIC decisions</critical>
472
+ <critical>Reference brownfield code to guide implementation</critical>
473
+
474
+ <action>Initialize tech-spec.md with the rich template</action>
475
+
476
+ <action>**Generate Context Section (already captured):**
477
+
478
+ These template variables are already populated from Step 1:
479
+
480
+ - {{loaded_documents_summary}}
481
+ - {{project_stack_summary}}
482
+ - {{existing_structure_summary}}
483
+
484
+ Just save them to the file.
485
+ </action>
486
+
487
+ <template-output file="tech-spec.md">loaded_documents_summary</template-output>
488
+ <template-output file="tech-spec.md">project_stack_summary</template-output>
489
+ <template-output file="tech-spec.md">existing_structure_summary</template-output>
490
+
491
+ <action>**Generate The Change Section:**
492
+
493
+ Already captured from Step 2:
494
+
495
+ - {{problem_statement}}
496
+ - {{solution_overview}}
497
+ - {{scope_in}}
498
+ - {{scope_out}}
499
+
500
+ Save to file.
501
+ </action>
502
+
503
+ <template-output file="tech-spec.md">problem_statement</template-output>
504
+ <template-output file="tech-spec.md">solution_overview</template-output>
505
+ <template-output file="tech-spec.md">scope_in</template-output>
506
+ <template-output file="tech-spec.md">scope_out</template-output>
507
+
508
+ <action>**Generate Implementation Details:**
509
+
510
+ Now make DEFINITIVE technical decisions using all the context gathered.
511
+
512
+ **Source Tree Changes - BE SPECIFIC:**
513
+
514
+ Bad (NEVER do this):
515
+
516
+ - "Update some files in the services folder"
517
+ - "Add tests somewhere"
518
+
519
+ Good (ALWAYS do this):
520
+
521
+ - "src/services/UserService.ts - MODIFY - Add validateEmail() method at line 45"
522
+ - "src/routes/api/users.ts - MODIFY - Add POST /users/validate endpoint"
523
+ - "tests/services/UserService.test.ts - CREATE - Test suite for email validation"
524
+
525
+ Include:
526
+
527
+ - Exact file paths
528
+ - Action: CREATE, MODIFY, DELETE
529
+ - Specific what changes (methods, classes, endpoints, components)
530
+
531
+ **Use brownfield context:**
532
+
533
+ - If modifying existing files, reference current structure
534
+ - Follow existing naming patterns
535
+ - Place new code logically based on current organization
536
+ </action>
537
+
538
+ <template-output file="tech-spec.md">source_tree_changes</template-output>
539
+
540
+ <action>**Technical Approach - BE DEFINITIVE:**
541
+
542
+ Bad (ambiguous):
543
+
544
+ - "Use a logging library like winston or pino"
545
+ - "Use Python 2 or 3"
546
+ - "Set up some kind of validation"
547
+
548
+ Good (definitive):
549
+
550
+ - "Use winston v3.8.2 (already in package.json) for logging"
551
+ - "Implement using Python 3.11 as specified in pyproject.toml"
552
+ - "Use Joi v17.9.0 for request validation following pattern in UserController.ts"
553
+
554
+ **Use detected stack:**
555
+
556
+ - Reference exact versions from package.json/requirements.txt
557
+ - Specify frameworks already in use
558
+ - Make decisions based on what's already there
559
+
560
+ **For greenfield:**
561
+
562
+ - Make definitive choices and justify them
563
+ - Specify exact versions
564
+ - No "or" statements allowed
565
+ </action>
566
+
567
+ <template-output file="tech-spec.md">technical_approach</template-output>
568
+
569
+ <action>**Existing Patterns to Follow:**
570
+
571
+ <check if="brownfield">
572
+ Document patterns from the existing codebase:
573
+ - Class structure patterns
574
+ - Function naming conventions
575
+ - Error handling approach
576
+ - Testing patterns
577
+ - Documentation style
578
+
579
+ Example:
580
+ "Follow the service pattern established in UserService.ts:
581
+
582
+ - Export class with constructor injection
583
+ - Use async/await for all asynchronous operations
584
+ - Throw ServiceError with error codes
585
+ - Include JSDoc comments for all public methods"
586
+ </check>
587
+
588
+ <check if="greenfield">
589
+ "Greenfield project - establishing new patterns:
590
+ - [Define the patterns to establish]"
591
+ </check>
592
+
593
+ </action>
594
+
595
+ <template-output file="tech-spec.md">existing_patterns</template-output>
596
+
597
+ <action>**Integration Points:**
598
+
599
+ Identify how this change connects:
600
+
601
+ - Internal modules it depends on
602
+ - External APIs or services
603
+ - Database interactions
604
+ - Event emitters/listeners
605
+ - State management
606
+
607
+ Be specific about interfaces and contracts.
608
+ </action>
609
+
610
+ <template-output file="tech-spec.md">integration_points</template-output>
611
+
612
+ <action>**Development Context:**
613
+
614
+ **Relevant Existing Code:**
615
+ <check if="brownfield">
616
+ Reference specific files or code sections developers should review:
617
+
618
+ - "See UserService.ts lines 120-150 for similar validation pattern"
619
+ - "Reference AuthMiddleware.ts for authentication approach"
620
+ - "Follow error handling in PaymentService.ts"
621
+ </check>
622
+
623
+ **Framework/Libraries:**
624
+ List with EXACT versions from detected stack:
625
+
626
+ - Express 4.18.2 (web framework)
627
+ - winston 3.8.2 (logging)
628
+ - Joi 17.9.0 (validation)
629
+ - TypeScript 5.1.6 (language)
630
+
631
+ **Internal Modules:**
632
+ List internal dependencies:
633
+
634
+ - @/services/UserService
635
+ - @/middleware/auth
636
+ - @/utils/validation
637
+
638
+ **Configuration Changes:**
639
+ Any config files to update:
640
+
641
+ - Update .env with new SMTP settings
642
+ - Add validation schema to config/schemas.ts
643
+ - Update package.json scripts if needed
644
+ </action>
645
+
646
+ <template-output file="tech-spec.md">existing_code_references</template-output>
647
+ <template-output file="tech-spec.md">framework_dependencies</template-output>
648
+ <template-output file="tech-spec.md">internal_dependencies</template-output>
649
+ <template-output file="tech-spec.md">configuration_changes</template-output>
650
+
651
+ <check if="field_type == brownfield">
652
+ <template-output file="tech-spec.md">existing_conventions</template-output>
653
+ </check>
654
+
655
+ <check if="field_type == greenfield">
656
+ <action>Set {{existing_conventions}} = "Greenfield project - establishing new conventions per modern best practices"</action>
657
+ <template-output file="tech-spec.md">existing_conventions</template-output>
658
+ </check>
659
+
660
+ <action>**Implementation Stack:**
661
+
662
+ Comprehensive stack with versions:
663
+
664
+ - Runtime: Node.js 20.x
665
+ - Framework: Express 4.18.2
666
+ - Language: TypeScript 5.1.6
667
+ - Testing: Jest 29.5.0
668
+ - Linting: ESLint 8.42.0
669
+ - Validation: Joi 17.9.0
670
+
671
+ All from detected project setup!
672
+ </action>
673
+
674
+ <template-output file="tech-spec.md">implementation_stack</template-output>
675
+
676
+ <action>**Technical Details:**
677
+
678
+ Deep technical specifics:
679
+
680
+ - Algorithms to implement
681
+ - Data structures to use
682
+ - Performance considerations
683
+ - Security considerations
684
+ - Error scenarios and handling
685
+ - Edge cases
686
+
687
+ Be thorough - developers need details!
688
+ </action>
689
+
690
+ <template-output file="tech-spec.md">technical_details</template-output>
691
+
692
+ <action>**Development Setup:**
693
+
694
+ What does a developer need to run this locally?
695
+
696
+ Based on detected stack and scripts:
697
+
698
+ ```
699
+ 1. Clone repo (if not already)
700
+ 2. npm install (installs all deps from package.json)
701
+ 3. cp .env.example .env (configure environment)
702
+ 4. npm run dev (starts development server)
703
+ 5. npm test (runs test suite)
704
+ ```
705
+
706
+ Or for Python:
707
+
708
+ ```
709
+ 1. python -m venv venv
710
+ 2. source venv/bin/activate
711
+ 3. pip install -r requirements.txt
712
+ 4. python manage.py runserver
713
+ ```
714
+
715
+ Use the actual scripts from package.json/setup files!
716
+ </action>
717
+
718
+ <template-output file="tech-spec.md">development_setup</template-output>
719
+
720
+ <action>**Implementation Guide:**
721
+
722
+ **Setup Steps:**
723
+ Pre-implementation checklist:
724
+
725
+ - Create feature branch
726
+ - Verify dev environment running
727
+ - Review existing code references
728
+ - Set up test data if needed
729
+
730
+ **Implementation Steps:**
731
+ Step-by-step breakdown:
732
+
733
+ For Level 0:
734
+
735
+ 1. [Step 1 with specific file and action]
736
+ 2. [Step 2 with specific file and action]
737
+ 3. [Write tests]
738
+ 4. [Verify acceptance criteria]
739
+
740
+ For Level 1:
741
+ Organize by story/phase:
742
+
743
+ 1. Phase 1: [Foundation work]
744
+ 2. Phase 2: [Core implementation]
745
+ 3. Phase 3: [Testing and validation]
746
+
747
+ **Testing Strategy:**
748
+
749
+ - Unit tests for [specific functions]
750
+ - Integration tests for [specific flows]
751
+ - Manual testing checklist
752
+ - Performance testing if applicable
753
+
754
+ **Acceptance Criteria:**
755
+ Specific, measurable, testable criteria:
756
+
757
+ 1. Given [scenario], when [action], then [outcome]
758
+ 2. [Metric] meets [threshold]
759
+ 3. [Feature] works in [environment]
760
+ </action>
761
+
762
+ <template-output file="tech-spec.md">setup_steps</template-output>
763
+ <template-output file="tech-spec.md">implementation_steps</template-output>
764
+ <template-output file="tech-spec.md">testing_strategy</template-output>
765
+ <template-output file="tech-spec.md">acceptance_criteria</template-output>
766
+
767
+ <action>**Developer Resources:**
768
+
769
+ **File Paths Reference:**
770
+ Complete list of all files involved:
771
+
772
+ - /src/services/UserService.ts
773
+ - /src/routes/api/users.ts
774
+ - /tests/services/UserService.test.ts
775
+ - /src/types/user.ts
776
+
777
+ **Key Code Locations:**
778
+ Important functions, classes, modules:
779
+
780
+ - UserService class (src/services/UserService.ts:15)
781
+ - validateUser function (src/utils/validation.ts:42)
782
+ - User type definition (src/types/user.ts:8)
783
+
784
+ **Testing Locations:**
785
+ Where tests go:
786
+
787
+ - Unit: tests/services/
788
+ - Integration: tests/integration/
789
+ - E2E: tests/e2e/
790
+
791
+ **Documentation to Update:**
792
+ Docs that need updating:
793
+
794
+ - README.md - Add new endpoint documentation
795
+ - API.md - Document /users/validate endpoint
796
+ - CHANGELOG.md - Note the new feature
797
+ </action>
798
+
799
+ <template-output file="tech-spec.md">file_paths_complete</template-output>
800
+ <template-output file="tech-spec.md">key_code_locations</template-output>
801
+ <template-output file="tech-spec.md">testing_locations</template-output>
802
+ <template-output file="tech-spec.md">documentation_updates</template-output>
803
+
804
+ <action>**UX/UI Considerations:**
805
+
806
+ <check if="change affects user interface OR user experience">
807
+ **Determine if this change has UI/UX impact:**
808
+ - Does it change what users see?
809
+ - Does it change how users interact?
810
+ - Does it affect user workflows?
811
+
812
+ If YES, document:
813
+
814
+ **UI Components Affected:**
815
+
816
+ - List specific components (buttons, forms, modals, pages)
817
+ - Note which need creation vs modification
818
+
819
+ **UX Flow Changes:**
820
+
821
+ - Current flow vs new flow
822
+ - User journey impact
823
+ - Navigation changes
824
+
825
+ **Visual/Interaction Patterns:**
826
+
827
+ - Follow existing design system? (check for design tokens, component library)
828
+ - New patterns needed?
829
+ - Responsive design considerations (mobile, tablet, desktop)
830
+
831
+ **Accessibility:**
832
+
833
+ - Keyboard navigation requirements
834
+ - Screen reader compatibility
835
+ - ARIA labels needed
836
+ - Color contrast standards
837
+
838
+ **User Feedback:**
839
+
840
+ - Loading states
841
+ - Error messages
842
+ - Success confirmations
843
+ - Progress indicators
844
+ </check>
845
+
846
+ <check if="no UI/UX impact">
847
+ "No UI/UX impact - backend/API/infrastructure change only"
848
+ </check>
849
+ </action>
850
+
851
+ <template-output file="tech-spec.md">ux_ui_considerations</template-output>
852
+
853
+ <action>**Testing Approach:**
854
+
855
+ Comprehensive testing strategy using {{test_framework_info}}:
856
+
857
+ **CONFORM TO EXISTING TEST STANDARDS:**
858
+ <check if="conform_to_conventions == yes">
859
+
860
+ - Follow existing test file naming: {{detected_test_patterns.file_naming}}
861
+ - Use existing test organization: {{detected_test_patterns.organization}}
862
+ - Match existing assertion style: {{detected_test_patterns.assertion_style}}
863
+ - Meet existing coverage requirements: {{detected_test_patterns.coverage}}
864
+ </check>
865
+
866
+ **Test Strategy:**
867
+
868
+ - Test framework: {{detected_test_framework}} (from project dependencies)
869
+ - Unit tests for [specific functions/methods]
870
+ - Integration tests for [specific flows/APIs]
871
+ - E2E tests if UI changes
872
+ - Mock/stub strategies (use existing patterns: {{detected_test_patterns.mocking}})
873
+ - Performance benchmarks if applicable
874
+ - Accessibility tests if UI changes
875
+
876
+ **Coverage:**
877
+
878
+ - Unit test coverage: [target %]
879
+ - Integration coverage: [critical paths]
880
+ - Ensure all acceptance criteria have corresponding tests
881
+ </action>
882
+
883
+ <template-output file="tech-spec.md">test_framework_info</template-output>
884
+ <template-output file="tech-spec.md">testing_approach</template-output>
885
+
886
+ <action>**Deployment Strategy:**
887
+
888
+ **Deployment Steps:**
889
+ How to deploy this change:
890
+
891
+ 1. Merge to main branch
892
+ 2. Run CI/CD pipeline
893
+ 3. Deploy to staging
894
+ 4. Verify in staging
895
+ 5. Deploy to production
896
+ 6. Monitor for issues
897
+
898
+ **Rollback Plan:**
899
+ How to undo if problems:
900
+
901
+ 1. Revert commit [hash]
902
+ 2. Redeploy previous version
903
+ 3. Verify rollback successful
904
+
905
+ **Monitoring:**
906
+ What to watch after deployment:
907
+
908
+ - Error rates in [logging service]
909
+ - Response times for [endpoint]
910
+ - User feedback on [feature]
911
+ </action>
912
+
913
+ <template-output file="tech-spec.md">deployment_steps</template-output>
914
+ <template-output file="tech-spec.md">rollback_plan</template-output>
915
+ <template-output file="tech-spec.md">monitoring_approach</template-output>
916
+
917
+ <invoke-task halt="true">{project-root}/.bmad/core/tasks/adv-elicit.xml</invoke-task>
918
+
919
+ </step>
920
+
921
+ <step n="4" goal="Auto-validate cohesion, completeness, and quality">
922
+
923
+ <critical>Always run validation - this is NOT optional!</critical>
924
+
925
+ <action>Tech-spec generation complete! Now running automatic validation...</action>
926
+
927
+ <action>Load {installed_path}/checklist.md</action>
928
+ <action>Review tech-spec.md against ALL checklist criteria:
929
+
930
+ **Section 1: Output Files Exist**
931
+
932
+ - Verify tech-spec.md created
933
+ - Check for unfilled template variables
934
+
935
+ **Section 2: Context Gathering**
936
+
937
+ - Validate all available documents were loaded
938
+ - Confirm stack detection worked
939
+ - Verify brownfield analysis (if applicable)
940
+
941
+ **Section 3: Tech-Spec Definitiveness**
942
+
943
+ - Scan for "or" statements (FAIL if found)
944
+ - Verify all versions are specific
945
+ - Check stack alignment
946
+
947
+ **Section 4: Context-Rich Content**
948
+
949
+ - Verify all new template sections populated
950
+ - Check existing code references (brownfield)
951
+ - Validate framework dependencies listed
952
+
953
+ **Section 5-6: Story Quality (deferred to Step 5)**
954
+
955
+ **Section 7: Workflow Status (if applicable)**
956
+
957
+ **Section 8: Implementation Readiness**
958
+
959
+ - Can developer start immediately?
960
+ - Is tech-spec comprehensive enough?
961
+ </action>
962
+
963
+ <action>Generate validation report with specific scores:
964
+
965
+ - Context Gathering: [Comprehensive/Partial/Insufficient]
966
+ - Definitiveness: [All definitive/Some ambiguity/Major issues]
967
+ - Brownfield Integration: [N/A/Excellent/Partial/Missing]
968
+ - Stack Alignment: [Perfect/Good/Partial/None]
969
+ - Implementation Readiness: [Yes/No]
970
+ </action>
971
+
972
+ <check if="validation issues found">
973
+ <output>⚠️ **Validation Issues Detected:**
974
+
975
+ {{list_of_issues}}
976
+
977
+ I can fix these automatically. Shall I proceed? (yes/no)</output>
978
+
979
+ <ask>Fix validation issues? (yes/no)</ask>
980
+
981
+ <check if="yes">
982
+ <action>Fix each issue and re-validate</action>
983
+ <output>✅ Issues fixed! Re-validation passed.</output>
984
+ </check>
985
+
986
+ <check if="no">
987
+ <output>⚠️ Proceeding with warnings. Issues should be addressed manually.</output>
988
+ </check>
989
+ </check>
990
+
991
+ <check if="validation passes">
992
+ <output>✅ **Validation Passed!**
993
+
994
+ **Scores:**
995
+
996
+ - Context Gathering: {{context_score}}
997
+ - Definitiveness: {{definitiveness_score}}
998
+ - Brownfield Integration: {{brownfield_score}}
999
+ - Stack Alignment: {{stack_score}}
1000
+ - Implementation Readiness: ✅ Ready
1001
+
1002
+ Tech-spec is high quality and ready for story generation!</output>
1003
+ </check>
1004
+
1005
+ </step>
1006
+
1007
+ <step n="5" goal="Generate context-rich user stories">
1008
+
1009
+ <action>Now generate stories that reference the rich tech-spec context</action>
1010
+
1011
+ <check if="project_level == 0">
1012
+ <action>Invoke {installed_path}/instructions-level0-story.md to generate single user story</action>
1013
+ <action>Story will leverage tech-spec.md as primary context</action>
1014
+ <action>Developers can skip story-context workflow since tech-spec is comprehensive</action>
1015
+ </check>
1016
+
1017
+ <check if="project_level == 1">
1018
+ <action>Invoke {installed_path}/instructions-level1-stories.md to generate epic and stories</action>
1019
+ <action>Stories will reference tech-spec.md for all technical details</action>
1020
+ <action>Epic provides organization, tech-spec provides implementation context</action>
1021
+ </check>
1022
+
1023
+ </step>
1024
+
1025
+ <step n="6" goal="Finalize and guide next steps">
1026
+
1027
+ <output>**✅ Tech-Spec Complete, {user_name}!**
1028
+
1029
+ **Deliverables Created:**
1030
+
1031
+ <check if="project_level == 0">
1032
+ - ✅ **tech-spec.md** - Context-rich technical specification
1033
+ - Includes: brownfield analysis, framework details, existing patterns
1034
+ - ✅ **story-{slug}.md** - Implementation-ready user story
1035
+ - References tech-spec as primary context
1036
+ </check>
1037
+
1038
+ <check if="project_level == 1">
1039
+ - ✅ **tech-spec.md** - Context-rich technical specification
1040
+ - ✅ **epics.md** - Epic and story organization
1041
+ - ✅ **story-{epic-slug}-1.md** - First story
1042
+ - ✅ **story-{epic-slug}-2.md** - Second story
1043
+ {{#if story_3}}
1044
+ - ✅ **story-{epic-slug}-3.md** - Third story
1045
+ {{/if}}
1046
+ </check>
1047
+
1048
+ **What Makes This Tech-Spec Special:**
1049
+
1050
+ The tech-spec is comprehensive enough to serve as the primary context document:
1051
+
1052
+ - ✨ Brownfield codebase analysis (if applicable)
1053
+ - ✨ Exact framework and library versions from your project
1054
+ - ✨ Existing patterns and code references
1055
+ - ✨ Specific file paths and integration points
1056
+ - ✨ Complete developer resources
1057
+
1058
+ **Next Steps:**
1059
+
1060
+ <check if="project_level == 0">
1061
+ **For Single Story (Level 0):**
1062
+
1063
+ **Option A - With Story Context (for complex changes):**
1064
+
1065
+ 1. Ask SM agent to run `create-story-context` for the story
1066
+ - This generates additional XML context if needed
1067
+ 2. Then ask DEV agent to run `dev-story` to implement
1068
+
1069
+ **Option B - Direct to Dev (most Level 0):**
1070
+
1071
+ 1. Ask DEV agent to run `dev-story` directly
1072
+ - Tech-spec provides all the context needed!
1073
+ - Story is ready to implement
1074
+
1075
+ 💡 **Tip:** Most Level 0 changes don't need separate story context since tech-spec is comprehensive!
1076
+ </check>
1077
+
1078
+ <check if="project_level == 1">
1079
+ **For Multiple Stories (Level 1):**
1080
+
1081
+ **Recommended: Story-by-Story Approach**
1082
+
1083
+ For the **first story** ({{first_story_name}}):
1084
+
1085
+ **Option A - With Story Context (recommended for first story):**
1086
+
1087
+ 1. Ask SM agent to run `create-story-context` for story 1
1088
+ - Generates focused context for this specific story
1089
+ 2. Then ask DEV agent to run `dev-story` to implement story 1
1090
+
1091
+ **Option B - Direct to Dev:**
1092
+
1093
+ 1. Ask DEV agent to run `dev-story` for story 1
1094
+ - Tech-spec has most context needed
1095
+
1096
+ After completing story 1, repeat for stories 2 and 3.
1097
+
1098
+ **Alternative: Sprint Planning Approach**
1099
+
1100
+ - If managing multiple stories as a sprint, ask SM agent to run `sprint-planning`
1101
+ - This organizes all stories for coordinated implementation
1102
+ </check>
1103
+
1104
+ **Your Tech-Spec:**
1105
+
1106
+ - 📄 Saved to: `{output_folder}/tech-spec.md`
1107
+ - Contains: All context, decisions, patterns, and implementation guidance
1108
+ - Ready for: Direct development or story context generation
1109
+
1110
+ The tech-spec is your single source of truth! 🚀
1111
+ </output>
1112
+
1113
+ </step>
1114
+
1115
+ </workflow>