bmad-method 6.0.0-alpha.3 → 6.0.0-alpha.5

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 (540) hide show
  1. package/.claude/commands/bmad/bmm/agents/analyst.md +67 -0
  2. package/.claude/commands/bmad/bmm/agents/architect.md +72 -0
  3. package/.claude/commands/bmad/bmm/agents/dev.md +69 -0
  4. package/.claude/commands/bmad/bmm/agents/paige.md +82 -0
  5. package/.claude/commands/bmad/bmm/agents/pm.md +76 -0
  6. package/.claude/commands/bmad/bmm/agents/sm.md +85 -0
  7. package/.claude/commands/bmad/bmm/agents/tea.md +72 -0
  8. package/.claude/commands/bmad/bmm/agents/tech-writer.md +82 -0
  9. package/.claude/commands/bmad/bmm/agents/ux-designer.md +71 -0
  10. package/.claude/commands/bmad/bmm/workflows/README.md +132 -0
  11. package/.claude/commands/bmad/bmm/workflows/architecture.md +15 -0
  12. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +15 -0
  13. package/.claude/commands/bmad/bmm/workflows/code-review.md +15 -0
  14. package/.claude/commands/bmad/bmm/workflows/correct-course.md +15 -0
  15. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +15 -0
  16. package/.claude/commands/bmad/bmm/workflows/create-story.md +15 -0
  17. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +15 -0
  18. package/.claude/commands/bmad/bmm/workflows/dev-story.md +15 -0
  19. package/.claude/commands/bmad/bmm/workflows/document-project.md +15 -0
  20. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +15 -0
  21. package/.claude/commands/bmad/bmm/workflows/narrative.md +15 -0
  22. package/.claude/commands/bmad/bmm/workflows/prd.md +15 -0
  23. package/.claude/commands/bmad/bmm/workflows/product-brief.md +15 -0
  24. package/.claude/commands/bmad/bmm/workflows/research.md +15 -0
  25. package/.claude/commands/bmad/bmm/workflows/retrospective.md +15 -0
  26. package/.claude/commands/bmad/bmm/workflows/solutioning-gate-check.md +15 -0
  27. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +15 -0
  28. package/.claude/commands/bmad/bmm/workflows/story-context.md +15 -0
  29. package/.claude/commands/bmad/bmm/workflows/story-done.md +15 -0
  30. package/.claude/commands/bmad/bmm/workflows/story-ready.md +15 -0
  31. package/.claude/commands/bmad/bmm/workflows/tech-spec-sm.md +15 -0
  32. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +15 -0
  33. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +15 -0
  34. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +15 -0
  35. package/.claude/commands/bmad/cis/agents/README.md +104 -0
  36. package/.claude/commands/bmad/cis/agents/brainstorming-coach.md +62 -0
  37. package/.claude/commands/bmad/cis/agents/creative-problem-solver.md +62 -0
  38. package/.claude/commands/bmad/cis/agents/design-thinking-coach.md +62 -0
  39. package/.claude/commands/bmad/cis/agents/innovation-strategist.md +62 -0
  40. package/.claude/commands/bmad/cis/agents/storyteller.md +59 -0
  41. package/.claude/commands/bmad/cis/workflows/README.md +37 -0
  42. package/.claude/commands/bmad/cis/workflows/design-thinking.md +15 -0
  43. package/.claude/commands/bmad/cis/workflows/innovation-strategy.md +15 -0
  44. package/.claude/commands/bmad/cis/workflows/problem-solving.md +15 -0
  45. package/.claude/commands/bmad/cis/workflows/storytelling.md +15 -0
  46. package/.claude/commands/bmad/core/workflows/README.md +10 -0
  47. package/.claude/settings.local.json +7 -42
  48. package/CHANGELOG.md +544 -0
  49. package/README.md +266 -101
  50. package/bmad/_cfg/agent-manifest.csv +13 -3
  51. package/bmad/_cfg/agents/bmm-dev.customize.yaml +42 -0
  52. package/bmad/_cfg/agents/bmm-paige.customize.yaml +42 -0
  53. package/bmad/_cfg/agents/bmm-pm.customize.yaml +42 -0
  54. package/bmad/_cfg/agents/bmm-sm.customize.yaml +42 -0
  55. package/bmad/_cfg/agents/bmm-tea.customize.yaml +42 -0
  56. package/bmad/_cfg/agents/bmm-tech-writer.customize.yaml +42 -0
  57. package/bmad/_cfg/agents/bmm-ux-designer.customize.yaml +42 -0
  58. package/bmad/_cfg/agents/cis-brainstorming-coach.customize.yaml +42 -0
  59. package/bmad/_cfg/agents/cis-creative-problem-solver.customize.yaml +42 -0
  60. package/bmad/_cfg/agents/cis-design-thinking-coach.customize.yaml +42 -0
  61. package/bmad/_cfg/agents/cis-innovation-strategist.customize.yaml +42 -0
  62. package/bmad/_cfg/agents/cis-storyteller.customize.yaml +42 -0
  63. package/bmad/_cfg/files-manifest.csv +267 -22
  64. package/bmad/_cfg/ides/claude-code.yaml +6 -0
  65. package/bmad/_cfg/manifest.yaml +5 -5
  66. package/bmad/_cfg/task-manifest.csv +5 -0
  67. package/bmad/_cfg/tool-manifest.csv +1 -0
  68. package/bmad/_cfg/workflow-manifest.csv +37 -2
  69. package/bmad/bmb/README.md +135 -73
  70. package/bmad/bmb/agents/bmad-builder.md.bak +70 -0
  71. package/bmad/bmb/config.yaml +2 -2
  72. package/bmad/bmb/workflows/audit-workflow/instructions.md +1 -1
  73. package/bmad/bmb/workflows/audit-workflow/workflow.yaml.bak +3 -1
  74. package/bmad/bmb/workflows/create-agent/README.md +126 -243
  75. package/bmad/bmb/workflows/create-agent/instructions.md +25 -12
  76. package/bmad/bmb/workflows/create-module/README.md +163 -154
  77. package/bmad/bmb/workflows/create-module/workflow.yaml.bak +2 -0
  78. package/bmad/bmb/workflows/create-workflow/instructions.md +16 -8
  79. package/bmad/bmb/workflows/create-workflow/workflow-creation-guide.md +158 -0
  80. package/bmad/bmb/workflows/create-workflow/workflow.yaml.bak +2 -0
  81. package/bmad/bmb/workflows/edit-agent/workflow.yaml.bak +33 -0
  82. package/bmad/bmb/workflows/edit-module/workflow.yaml.bak +34 -0
  83. package/bmad/bmb/workflows/edit-workflow/workflow.yaml.bak +2 -0
  84. package/bmad/bmb/workflows/module-brief/workflow.yaml.bak +2 -0
  85. package/bmad/bmb/workflows/redoc/workflow.yaml.bak +1 -0
  86. package/bmad/bmm/README.md +128 -0
  87. package/bmad/bmm/README.md.bak +169 -0
  88. package/bmad/bmm/agents/analyst.md +67 -0
  89. package/bmad/bmm/agents/analyst.md.bak +67 -0
  90. package/bmad/bmm/agents/architect.md +72 -0
  91. package/bmad/bmm/agents/architect.md.bak +73 -0
  92. package/bmad/bmm/agents/dev.md +69 -0
  93. package/bmad/bmm/agents/dev.md.bak +69 -0
  94. package/bmad/bmm/agents/paige.md.bak +82 -0
  95. package/bmad/bmm/agents/pm.md +76 -0
  96. package/bmad/bmm/agents/pm.md.bak +76 -0
  97. package/bmad/bmm/agents/sm.md +85 -0
  98. package/bmad/bmm/agents/sm.md.bak +85 -0
  99. package/bmad/bmm/agents/tea.md +72 -0
  100. package/bmad/bmm/agents/tea.md.bak +72 -0
  101. package/bmad/bmm/agents/tech-writer.md +82 -0
  102. package/bmad/bmm/agents/ux-designer.md +71 -0
  103. package/bmad/bmm/agents/ux-designer.md.bak +71 -0
  104. package/bmad/bmm/config.yaml +17 -0
  105. package/bmad/bmm/docs/README.md +235 -0
  106. package/bmad/bmm/docs/agents-guide.md +1057 -0
  107. package/bmad/bmm/docs/brownfield-guide.md +759 -0
  108. package/bmad/bmm/docs/enterprise-agentic-development.md +680 -0
  109. package/bmad/bmm/docs/faq.md +589 -0
  110. package/bmad/bmm/docs/glossary.md +321 -0
  111. package/bmad/bmm/docs/party-mode.md +224 -0
  112. package/bmad/bmm/docs/quick-spec-flow.md +652 -0
  113. package/{docs/BMad-Method-V6-Quick-Start.md → bmad/bmm/docs/quick-start.md} +72 -47
  114. package/bmad/bmm/docs/scale-adaptive-system.md +599 -0
  115. package/bmad/bmm/docs/troubleshooting.md +680 -0
  116. package/{src/modules/bmm/workflows/3-solutioning/architecture/README.md → bmad/bmm/docs/workflow-architecture-reference.md} +130 -77
  117. package/{src/modules/bmm/workflows/document-project/README.md → bmad/bmm/docs/workflow-document-project-reference.md} +45 -2
  118. package/bmad/bmm/docs/workflows-analysis.md +670 -0
  119. package/bmad/bmm/docs/workflows-implementation.md +1758 -0
  120. package/bmad/bmm/docs/workflows-planning.md +1086 -0
  121. package/bmad/bmm/docs/workflows-solutioning.md +726 -0
  122. package/bmad/bmm/tasks/daily-standup.xml +85 -0
  123. package/bmad/bmm/teams/team-fullstack.yaml +11 -0
  124. package/bmad/bmm/teams/team-gamedev.yaml +14 -0
  125. package/bmad/bmm/testarch/knowledge/ci-burn-in.md +675 -0
  126. package/bmad/bmm/testarch/knowledge/component-tdd.md +486 -0
  127. package/bmad/bmm/testarch/knowledge/contract-testing.md +957 -0
  128. package/bmad/bmm/testarch/knowledge/data-factories.md +500 -0
  129. package/bmad/bmm/testarch/knowledge/email-auth.md +721 -0
  130. package/bmad/bmm/testarch/knowledge/error-handling.md +725 -0
  131. package/bmad/bmm/testarch/knowledge/feature-flags.md +750 -0
  132. package/bmad/bmm/testarch/knowledge/fixture-architecture.md +401 -0
  133. package/bmad/bmm/testarch/knowledge/network-first.md +486 -0
  134. package/bmad/bmm/testarch/knowledge/nfr-criteria.md +670 -0
  135. package/bmad/bmm/testarch/knowledge/playwright-config.md +730 -0
  136. package/bmad/bmm/testarch/knowledge/probability-impact.md +601 -0
  137. package/bmad/bmm/testarch/knowledge/risk-governance.md +615 -0
  138. package/bmad/bmm/testarch/knowledge/selective-testing.md +732 -0
  139. package/bmad/bmm/testarch/knowledge/selector-resilience.md +527 -0
  140. package/bmad/bmm/testarch/knowledge/test-healing-patterns.md +644 -0
  141. package/bmad/bmm/testarch/knowledge/test-levels-framework.md +473 -0
  142. package/bmad/bmm/testarch/knowledge/test-priorities-matrix.md +373 -0
  143. package/bmad/bmm/testarch/knowledge/test-quality.md +664 -0
  144. package/bmad/bmm/testarch/knowledge/timing-debugging.md +372 -0
  145. package/bmad/bmm/testarch/knowledge/visual-debugging.md +524 -0
  146. package/bmad/bmm/testarch/tea-index.csv +22 -0
  147. package/bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +110 -0
  148. package/bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +25 -0
  149. package/bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +26 -0
  150. package/bmad/bmm/workflows/1-analysis/domain-research/instructions.md +423 -0
  151. package/bmad/bmm/workflows/1-analysis/domain-research/template.md +180 -0
  152. package/bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +36 -0
  153. package/bmad/bmm/workflows/1-analysis/product-brief/checklist.md +115 -0
  154. package/bmad/bmm/workflows/1-analysis/product-brief/instructions.md +524 -0
  155. package/bmad/bmm/workflows/1-analysis/product-brief/template.md +181 -0
  156. package/bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +45 -0
  157. package/bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  158. package/bmad/bmm/workflows/1-analysis/research/checklist-technical.md +249 -0
  159. package/bmad/bmm/workflows/1-analysis/research/checklist.md +299 -0
  160. package/bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +114 -0
  161. package/bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +439 -0
  162. package/bmad/bmm/workflows/1-analysis/research/instructions-market.md +679 -0
  163. package/bmad/bmm/workflows/1-analysis/research/instructions-router.md +133 -0
  164. package/bmad/bmm/workflows/1-analysis/research/instructions-technical.md +538 -0
  165. package/bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +94 -0
  166. package/bmad/bmm/workflows/1-analysis/research/template-market.md +347 -0
  167. package/bmad/bmm/workflows/1-analysis/research/template-technical.md +245 -0
  168. package/bmad/bmm/workflows/1-analysis/research/workflow.yaml +44 -0
  169. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +310 -0
  170. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1319 -0
  171. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +145 -0
  172. package/bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +64 -0
  173. package/bmad/bmm/workflows/2-plan-workflows/narrative/checklist.md +139 -0
  174. package/bmad/bmm/workflows/2-plan-workflows/narrative/instructions-narrative.md +608 -0
  175. package/bmad/bmm/workflows/2-plan-workflows/narrative/narrative-template.md +195 -0
  176. package/bmad/bmm/workflows/2-plan-workflows/narrative/workflow.yaml +29 -0
  177. package/bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +349 -0
  178. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +395 -0
  179. package/bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +33 -0
  180. package/bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  181. package/bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +423 -0
  182. package/bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +237 -0
  183. package/bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  184. package/bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +46 -0
  185. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +214 -0
  186. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +58 -0
  187. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +200 -0
  188. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +451 -0
  189. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +1133 -0
  190. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +181 -0
  191. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +87 -0
  192. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +60 -0
  193. package/bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml.bak +60 -0
  194. package/bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +347 -0
  195. package/bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +103 -0
  196. package/bmad/bmm/workflows/3-solutioning/architecture/checklist.md +244 -0
  197. package/bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +222 -0
  198. package/bmad/bmm/workflows/3-solutioning/architecture/instructions.md +715 -0
  199. package/bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +13 -0
  200. package/bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +67 -0
  201. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/checklist.md +175 -0
  202. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +322 -0
  203. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/template.md +146 -0
  204. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/validation-criteria.yaml +189 -0
  205. package/bmad/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +64 -0
  206. package/bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +12 -0
  207. package/bmad/bmm/workflows/4-implementation/code-review/checklist.md +22 -0
  208. package/bmad/bmm/workflows/4-implementation/code-review/instructions.md +420 -0
  209. package/bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +74 -0
  210. package/bmad/bmm/workflows/4-implementation/correct-course/checklist.md +279 -0
  211. package/bmad/bmm/workflows/4-implementation/correct-course/instructions.md +201 -0
  212. package/bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +43 -0
  213. package/bmad/bmm/workflows/4-implementation/create-story/checklist.md +240 -0
  214. package/bmad/bmm/workflows/4-implementation/create-story/instructions.md +283 -0
  215. package/bmad/bmm/workflows/4-implementation/create-story/template.md +51 -0
  216. package/bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +74 -0
  217. package/bmad/bmm/workflows/4-implementation/dev-story/AUDIT-REPORT.md +367 -0
  218. package/bmad/bmm/workflows/4-implementation/dev-story/checklist.md +38 -0
  219. package/bmad/bmm/workflows/4-implementation/dev-story/instructions.md +262 -0
  220. package/bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +26 -0
  221. package/bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +17 -0
  222. package/bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +189 -0
  223. package/bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +76 -0
  224. package/bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +58 -0
  225. package/bmad/bmm/workflows/4-implementation/retrospective/instructions.md +1460 -0
  226. package/bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +71 -0
  227. package/bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +33 -0
  228. package/bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +238 -0
  229. package/bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +55 -0
  230. package/bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +47 -0
  231. package/bmad/bmm/workflows/4-implementation/story-context/checklist.md +16 -0
  232. package/bmad/bmm/workflows/4-implementation/story-context/context-template.xml +34 -0
  233. package/bmad/bmm/workflows/4-implementation/story-context/instructions.md +234 -0
  234. package/bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +57 -0
  235. package/bmad/bmm/workflows/4-implementation/story-done/instructions.md +111 -0
  236. package/bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +25 -0
  237. package/bmad/bmm/workflows/4-implementation/story-ready/instructions.md +117 -0
  238. package/bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +25 -0
  239. package/bmad/bmm/workflows/document-project/checklist.md +245 -0
  240. package/bmad/bmm/workflows/document-project/documentation-requirements.csv +12 -0
  241. package/bmad/bmm/workflows/document-project/instructions.md +222 -0
  242. package/bmad/bmm/workflows/document-project/templates/deep-dive-template.md +345 -0
  243. package/bmad/bmm/workflows/document-project/templates/index-template.md +169 -0
  244. package/bmad/bmm/workflows/document-project/templates/project-overview-template.md +103 -0
  245. package/bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +160 -0
  246. package/bmad/bmm/workflows/document-project/templates/source-tree-template.md +135 -0
  247. package/bmad/bmm/workflows/document-project/workflow.yaml +34 -0
  248. package/bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +298 -0
  249. package/bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +31 -0
  250. package/bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +1106 -0
  251. package/bmad/bmm/workflows/document-project/workflows/full-scan.yaml +31 -0
  252. package/bmad/bmm/workflows/techdoc/documentation-standards.md +239 -0
  253. package/bmad/bmm/workflows/techdoc/documentation-standards.md.bak +238 -0
  254. package/bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +363 -0
  255. package/bmad/bmm/workflows/testarch/atdd/checklist.md +373 -0
  256. package/bmad/bmm/workflows/testarch/atdd/instructions.md +785 -0
  257. package/bmad/bmm/workflows/testarch/atdd/workflow.yaml +52 -0
  258. package/bmad/bmm/workflows/testarch/automate/checklist.md +580 -0
  259. package/bmad/bmm/workflows/testarch/automate/instructions.md +1303 -0
  260. package/bmad/bmm/workflows/testarch/automate/workflow.yaml +61 -0
  261. package/bmad/bmm/workflows/testarch/ci/checklist.md +246 -0
  262. package/bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +165 -0
  263. package/bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +128 -0
  264. package/bmad/bmm/workflows/testarch/ci/instructions.md +517 -0
  265. package/bmad/bmm/workflows/testarch/ci/workflow.yaml +53 -0
  266. package/bmad/bmm/workflows/testarch/framework/checklist.md +321 -0
  267. package/bmad/bmm/workflows/testarch/framework/instructions.md +455 -0
  268. package/bmad/bmm/workflows/testarch/framework/workflow.yaml +53 -0
  269. package/bmad/bmm/workflows/testarch/nfr-assess/checklist.md +405 -0
  270. package/bmad/bmm/workflows/testarch/nfr-assess/instructions.md +722 -0
  271. package/bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +443 -0
  272. package/bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +56 -0
  273. package/bmad/bmm/workflows/testarch/test-design/checklist.md +234 -0
  274. package/bmad/bmm/workflows/testarch/test-design/instructions.md +621 -0
  275. package/bmad/bmm/workflows/testarch/test-design/test-design-template.md +285 -0
  276. package/bmad/bmm/workflows/testarch/test-design/workflow.yaml +52 -0
  277. package/bmad/bmm/workflows/testarch/test-review/checklist.md +470 -0
  278. package/bmad/bmm/workflows/testarch/test-review/instructions.md +608 -0
  279. package/bmad/bmm/workflows/testarch/test-review/test-review-template.md +388 -0
  280. package/bmad/bmm/workflows/testarch/test-review/workflow.yaml +53 -0
  281. package/bmad/bmm/workflows/testarch/trace/checklist.md +654 -0
  282. package/bmad/bmm/workflows/testarch/trace/instructions.md +1045 -0
  283. package/bmad/bmm/workflows/testarch/trace/trace-template.md +673 -0
  284. package/bmad/bmm/workflows/testarch/trace/workflow.yaml +66 -0
  285. package/bmad/bmm/workflows/workflow-status/init/instructions.md +771 -0
  286. package/bmad/bmm/workflows/workflow-status/init/workflow.yaml +27 -0
  287. package/bmad/bmm/workflows/workflow-status/init/workflow.yaml.bak +27 -0
  288. package/bmad/bmm/workflows/workflow-status/instructions.md +386 -0
  289. package/bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  290. package/bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  291. package/bmad/bmm/workflows/workflow-status/paths/game-design.yaml +75 -0
  292. package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-3.yaml → bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml} +33 -31
  293. package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-2.yaml → bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml} +31 -21
  294. package/{src/modules/bmm/workflows/workflow-status/paths/brownfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml} +18 -18
  295. package/{src/modules/bmm/workflows/workflow-status/paths/greenfield-level-1.yaml → bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml} +16 -18
  296. package/bmad/bmm/workflows/workflow-status/project-levels.yaml +59 -0
  297. package/bmad/bmm/workflows/workflow-status/sample-level-3-workflow.yaml +49 -0
  298. package/bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +31 -0
  299. package/bmad/bmm/workflows/workflow-status/workflow.yaml +28 -0
  300. package/bmad/cis/README.md +153 -0
  301. package/bmad/cis/agents/README.md +104 -0
  302. package/bmad/cis/agents/brainstorming-coach.md +62 -0
  303. package/bmad/cis/agents/brainstorming-coach.md.bak +62 -0
  304. package/bmad/cis/agents/creative-problem-solver.md +62 -0
  305. package/bmad/cis/agents/creative-problem-solver.md.bak +62 -0
  306. package/bmad/cis/agents/design-thinking-coach.md +62 -0
  307. package/bmad/cis/agents/design-thinking-coach.md.bak +62 -0
  308. package/bmad/cis/agents/innovation-strategist.md +62 -0
  309. package/bmad/cis/agents/innovation-strategist.md.bak +62 -0
  310. package/bmad/cis/agents/storyteller.md +59 -0
  311. package/bmad/cis/agents/storyteller.md.bak +59 -0
  312. package/bmad/{bmd → cis}/config.yaml +3 -3
  313. package/bmad/cis/teams/creative-squad.yaml +6 -0
  314. package/bmad/cis/workflows/README.md +139 -0
  315. package/bmad/cis/workflows/design-thinking/README.md +56 -0
  316. package/bmad/cis/workflows/design-thinking/design-methods.csv +31 -0
  317. package/bmad/cis/workflows/design-thinking/instructions.md +200 -0
  318. package/bmad/cis/workflows/design-thinking/template.md +111 -0
  319. package/bmad/cis/workflows/design-thinking/workflow.yaml +32 -0
  320. package/bmad/cis/workflows/innovation-strategy/README.md +56 -0
  321. package/bmad/cis/workflows/innovation-strategy/innovation-frameworks.csv +31 -0
  322. package/bmad/cis/workflows/innovation-strategy/instructions.md +274 -0
  323. package/bmad/cis/workflows/innovation-strategy/template.md +189 -0
  324. package/bmad/cis/workflows/innovation-strategy/workflow.yaml +32 -0
  325. package/bmad/cis/workflows/problem-solving/README.md +56 -0
  326. package/bmad/cis/workflows/problem-solving/instructions.md +250 -0
  327. package/bmad/cis/workflows/problem-solving/solving-methods.csv +31 -0
  328. package/bmad/cis/workflows/problem-solving/template.md +165 -0
  329. package/bmad/cis/workflows/problem-solving/workflow.yaml +32 -0
  330. package/bmad/cis/workflows/storytelling/README.md +58 -0
  331. package/bmad/cis/workflows/storytelling/instructions.md +291 -0
  332. package/bmad/cis/workflows/storytelling/story-types.csv +26 -0
  333. package/bmad/cis/workflows/storytelling/template.md +113 -0
  334. package/bmad/cis/workflows/storytelling/workflow.yaml +32 -0
  335. package/bmad/core/agents/bmad-master.md.bak +71 -0
  336. package/bmad/core/config.yaml +2 -2
  337. package/bmad/core/tasks/workflow.xml +1 -19
  338. package/bmad/core/tools/shard-doc.xml +8 -43
  339. package/docs/document-sharding-guide.md +447 -0
  340. package/docs/index.md +37 -41
  341. package/package.json +1 -1
  342. package/src/core/tasks/workflow.xml +1 -11
  343. package/src/core/tools/shard-doc.xml +8 -43
  344. package/src/modules/bmb/workflows/audit-workflow/instructions.md +1 -1
  345. package/src/modules/bmb/workflows/create-workflow/workflow-creation-guide.md +158 -0
  346. package/src/modules/bmm/README.md +79 -95
  347. package/src/modules/bmm/agents/architect.agent.yaml +0 -4
  348. package/src/modules/bmm/agents/game-designer.agent.yaml +2 -2
  349. package/src/modules/bmm/agents/game-dev.agent.yaml +8 -12
  350. package/src/modules/bmm/agents/pm.agent.yaml +11 -1
  351. package/src/modules/bmm/agents/sm.agent.yaml +1 -1
  352. package/src/modules/bmm/agents/tech-writer.agent.yaml +69 -0
  353. package/src/modules/bmm/docs/README.md +235 -0
  354. package/src/modules/bmm/docs/agents-guide.md +1057 -0
  355. package/src/modules/bmm/docs/brownfield-guide.md +759 -0
  356. package/src/modules/bmm/docs/enterprise-agentic-development.md +680 -0
  357. package/src/modules/bmm/docs/faq.md +589 -0
  358. package/src/modules/bmm/docs/glossary.md +321 -0
  359. package/src/modules/bmm/docs/party-mode.md +224 -0
  360. package/src/modules/bmm/docs/quick-spec-flow.md +652 -0
  361. package/src/modules/bmm/docs/quick-start.md +366 -0
  362. package/src/modules/bmm/docs/scale-adaptive-system.md +599 -0
  363. package/src/modules/bmm/docs/troubleshooting.md +680 -0
  364. package/src/modules/bmm/docs/workflow-architecture-reference.md +371 -0
  365. package/src/modules/bmm/docs/workflow-document-project-reference.md +487 -0
  366. package/src/modules/bmm/docs/workflows-analysis.md +670 -0
  367. package/src/modules/bmm/docs/workflows-implementation.md +1758 -0
  368. package/src/modules/bmm/docs/workflows-planning.md +1086 -0
  369. package/src/modules/bmm/docs/workflows-solutioning.md +726 -0
  370. package/src/modules/bmm/tasks/daily-standup.xml +1 -1
  371. package/src/modules/bmm/workflows/1-analysis/domain-research/instructions.md +423 -0
  372. package/src/modules/bmm/workflows/1-analysis/domain-research/template.md +180 -0
  373. package/src/modules/bmm/workflows/1-analysis/domain-research/workflow.yaml +36 -0
  374. package/src/modules/bmm/workflows/1-analysis/product-brief/instructions.md +405 -213
  375. package/src/modules/bmm/workflows/1-analysis/product-brief/template.md +93 -77
  376. package/src/modules/bmm/workflows/1-analysis/product-brief/workflow.yaml +14 -0
  377. package/src/modules/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +144 -0
  378. package/src/modules/bmm/workflows/1-analysis/research/checklist-technical.md +249 -0
  379. package/src/modules/bmm/workflows/1-analysis/research/checklist.md +154 -57
  380. package/src/modules/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +45 -29
  381. package/src/modules/bmm/workflows/1-analysis/research/instructions-market.md +181 -104
  382. package/src/modules/bmm/workflows/1-analysis/research/instructions-router.md +24 -32
  383. package/src/modules/bmm/workflows/1-analysis/research/instructions-technical.md +94 -46
  384. package/src/modules/bmm/workflows/1-analysis/research/template-market.md +37 -1
  385. package/src/modules/bmm/workflows/1-analysis/research/template-technical.md +36 -1
  386. package/src/modules/bmm/workflows/1-analysis/research/workflow.yaml +13 -0
  387. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +1 -1
  388. package/src/modules/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +22 -0
  389. package/src/modules/bmm/workflows/2-plan-workflows/gdd/instructions-gdd.md +18 -0
  390. package/src/modules/bmm/workflows/2-plan-workflows/gdd/workflow.yaml +14 -0
  391. package/src/modules/bmm/workflows/2-plan-workflows/prd/checklist.md +296 -63
  392. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/epics-template.md +52 -0
  393. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/instructions.md +169 -0
  394. package/src/modules/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories/workflow.yaml +55 -0
  395. package/src/modules/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +13 -0
  396. package/src/modules/bmm/workflows/2-plan-workflows/prd/instructions.md +268 -291
  397. package/src/modules/bmm/workflows/2-plan-workflows/prd/prd-template.md +198 -23
  398. package/src/modules/bmm/workflows/2-plan-workflows/prd/project-types.csv +11 -0
  399. package/src/modules/bmm/workflows/2-plan-workflows/prd/workflow.yaml +26 -8
  400. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +138 -31
  401. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +73 -4
  402. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level0-story.md +50 -17
  403. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions-level1-stories.md +199 -26
  404. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +971 -109
  405. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +132 -6
  406. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +54 -20
  407. package/src/modules/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +23 -2
  408. package/src/modules/bmm/workflows/3-solutioning/architecture/architecture-template.md +1 -1
  409. package/src/modules/bmm/workflows/3-solutioning/architecture/instructions.md +40 -32
  410. package/src/modules/bmm/workflows/3-solutioning/architecture/workflow.yaml +17 -4
  411. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/instructions.md +1 -0
  412. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/workflow.yaml +32 -6
  413. package/src/modules/bmm/workflows/4-implementation/code-review/instructions.md +29 -0
  414. package/src/modules/bmm/workflows/4-implementation/code-review/workflow.yaml +20 -0
  415. package/src/modules/bmm/workflows/4-implementation/create-story/instructions.md +29 -0
  416. package/src/modules/bmm/workflows/4-implementation/create-story/workflow.yaml +27 -0
  417. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/instructions.md +29 -0
  418. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +32 -6
  419. package/src/modules/bmm/workflows/4-implementation/retrospective/instructions.md +1222 -241
  420. package/src/modules/bmm/workflows/4-implementation/retrospective/workflow.yaml +28 -0
  421. package/src/modules/bmm/workflows/4-implementation/sprint-planning/instructions.md +17 -0
  422. package/src/modules/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +8 -0
  423. package/src/modules/bmm/workflows/4-implementation/story-context/instructions.md +31 -1
  424. package/src/modules/bmm/workflows/4-implementation/story-context/workflow.yaml +27 -0
  425. package/src/modules/bmm/workflows/techdoc/documentation-standards.md +239 -0
  426. package/src/modules/bmm/workflows/workflow-status/init/instructions.md +623 -242
  427. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +120 -0
  428. package/src/modules/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +108 -0
  429. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-4.yaml → method-brownfield.yaml} +35 -26
  430. package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-3.yaml → method-greenfield.yaml} +32 -17
  431. package/src/modules/bmm/workflows/workflow-status/paths/{brownfield-level-0.yaml → quick-flow-brownfield.yaml} +23 -19
  432. package/src/modules/bmm/workflows/workflow-status/paths/{greenfield-level-0.yaml → quick-flow-greenfield.yaml} +18 -16
  433. package/src/modules/bmm/workflows/workflow-status/workflow-status-template.yaml +4 -4
  434. package/tools/cli/commands/install.js +1 -1
  435. package/.claude/commands/bmad/bmd/agents/cli-chief.md +0 -108
  436. package/.claude/commands/bmad/bmd/agents/doc-keeper.md +0 -115
  437. package/.claude/commands/bmad/bmd/agents/release-chief.md +0 -109
  438. package/.claude/hooks/bmad-tts-injector.sh +0 -415
  439. package/.claude/hooks/bmad-voice-manager.sh +0 -511
  440. package/.claude/hooks/check-output-style.sh +0 -112
  441. package/.claude/hooks/download-extra-voices.sh +0 -244
  442. package/.claude/hooks/github-star-reminder.sh +0 -154
  443. package/.claude/hooks/language-manager.sh +0 -392
  444. package/.claude/hooks/learn-manager.sh +0 -475
  445. package/.claude/hooks/personality-manager.sh +0 -438
  446. package/.claude/hooks/piper-download-voices.sh +0 -165
  447. package/.claude/hooks/piper-installer.sh +0 -178
  448. package/.claude/hooks/piper-multispeaker-registry.sh +0 -165
  449. package/.claude/hooks/piper-voice-manager.sh +0 -293
  450. package/.claude/hooks/play-tts-elevenlabs.sh +0 -404
  451. package/.claude/hooks/play-tts-piper.sh +0 -338
  452. package/.claude/hooks/play-tts.sh +0 -100
  453. package/.claude/hooks/provider-commands.sh +0 -540
  454. package/.claude/hooks/provider-manager.sh +0 -298
  455. package/.claude/hooks/replay-target-audio.sh +0 -95
  456. package/.claude/hooks/sentiment-manager.sh +0 -201
  457. package/.claude/hooks/speed-manager.sh +0 -291
  458. package/.claude/hooks/voice-manager.sh +0 -594
  459. package/.claude/hooks/voices-config.sh +0 -70
  460. package/bmad/_cfg/agents/bmd-cli-chief.customize.yaml +0 -32
  461. package/bmad/bmb/workflows/create-agent/agent-architecture.md.bak +0 -412
  462. package/bmad/bmb/workflows/create-agent/agent-command-patterns.md.bak +0 -759
  463. package/bmad/bmb/workflows/create-module/README.md.bak +0 -218
  464. package/bmad/bmb/workflows/create-module/checklist.md.bak +0 -245
  465. package/bmad/bmb/workflows/create-module/installer-templates/installer.js.bak +0 -231
  466. package/bmad/bmb/workflows/create-module/instructions.md.bak +0 -521
  467. package/bmad/bmb/workflows/create-module/module-structure.md.bak +0 -310
  468. package/bmad/bmd/README.md +0 -193
  469. package/bmad/bmd/README.md.bak +0 -193
  470. package/bmad/bmd/agents/cli-chief-sidecar/instructions.md +0 -102
  471. package/bmad/bmd/agents/cli-chief-sidecar/instructions.md.bak +0 -102
  472. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/README.md +0 -68
  473. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/README.md.bak +0 -68
  474. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md +0 -123
  475. package/bmad/bmd/agents/cli-chief-sidecar/knowledge/cli-reference.md.bak +0 -123
  476. package/bmad/bmd/agents/cli-chief-sidecar/memories.md +0 -53
  477. package/bmad/bmd/agents/cli-chief-sidecar/memories.md.bak +0 -53
  478. package/bmad/bmd/agents/cli-chief.md +0 -108
  479. package/bmad/bmd/agents/cli-chief.md.bak +0 -108
  480. package/bmad/bmd/agents/doc-keeper-sidecar/instructions.md +0 -177
  481. package/bmad/bmd/agents/doc-keeper-sidecar/instructions.md.bak +0 -177
  482. package/bmad/bmd/agents/doc-keeper-sidecar/knowledge/README.md +0 -81
  483. package/bmad/bmd/agents/doc-keeper-sidecar/knowledge/README.md.bak +0 -81
  484. package/bmad/bmd/agents/doc-keeper-sidecar/memories.md +0 -88
  485. package/bmad/bmd/agents/doc-keeper-sidecar/memories.md.bak +0 -88
  486. package/bmad/bmd/agents/doc-keeper.md +0 -115
  487. package/bmad/bmd/agents/doc-keeper.md.bak +0 -115
  488. package/bmad/bmd/agents/release-chief-sidecar/instructions.md +0 -164
  489. package/bmad/bmd/agents/release-chief-sidecar/instructions.md.bak +0 -164
  490. package/bmad/bmd/agents/release-chief-sidecar/knowledge/README.md +0 -82
  491. package/bmad/bmd/agents/release-chief-sidecar/knowledge/README.md.bak +0 -82
  492. package/bmad/bmd/agents/release-chief-sidecar/memories.md +0 -73
  493. package/bmad/bmd/agents/release-chief-sidecar/memories.md.bak +0 -73
  494. package/bmad/bmd/agents/release-chief.md +0 -109
  495. package/bmad/bmd/agents/release-chief.md.bak +0 -109
  496. package/bmad/docs/codex-instructions.md +0 -21
  497. package/docs/bmad-brownfield-guide.md +0 -1260
  498. package/docs/conversion-report-shard-doc-2025-10-26.md +0 -188
  499. package/src/modules/bmm/tasks/retrospective.xml +0 -104
  500. package/src/modules/bmm/testarch/README.md +0 -311
  501. package/src/modules/bmm/workflows/1-analysis/brainstorm-game/README.md +0 -38
  502. package/src/modules/bmm/workflows/1-analysis/brainstorm-project/README.md +0 -113
  503. package/src/modules/bmm/workflows/1-analysis/game-brief/README.md +0 -221
  504. package/src/modules/bmm/workflows/1-analysis/product-brief/README.md +0 -180
  505. package/src/modules/bmm/workflows/1-analysis/research/README.md +0 -454
  506. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-competitor-analyzer.md +0 -259
  507. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-data-analyst.md +0 -190
  508. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-market-researcher.md +0 -337
  509. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-trend-spotter.md +0 -107
  510. package/src/modules/bmm/workflows/1-analysis/research/claude-code/sub-agents/bmm-user-researcher.md +0 -329
  511. package/src/modules/bmm/workflows/2-plan-workflows/README.md +0 -258
  512. package/src/modules/bmm/workflows/2-plan-workflows/gdd/README.md +0 -222
  513. package/src/modules/bmm/workflows/3-solutioning/README.md +0 -1
  514. package/src/modules/bmm/workflows/3-solutioning/solutioning-gate-check/README.md +0 -177
  515. package/src/modules/bmm/workflows/4-implementation/README.md +0 -221
  516. package/src/modules/bmm/workflows/4-implementation/code-review/README.md +0 -69
  517. package/src/modules/bmm/workflows/4-implementation/correct-course/README.md +0 -73
  518. package/src/modules/bmm/workflows/4-implementation/create-story/README.md +0 -146
  519. package/src/modules/bmm/workflows/4-implementation/dev-story/README.md +0 -206
  520. package/src/modules/bmm/workflows/4-implementation/epic-tech-context/README.md +0 -195
  521. package/src/modules/bmm/workflows/4-implementation/retrospective/README.md +0 -77
  522. package/src/modules/bmm/workflows/4-implementation/sprint-planning/README.md +0 -156
  523. package/src/modules/bmm/workflows/4-implementation/story-context/README.md +0 -234
  524. package/src/modules/bmm/workflows/README.md +0 -215
  525. package/src/modules/bmm/workflows/document-project/templates/README.md +0 -38
  526. package/src/modules/bmm/workflows/testarch/README.md +0 -26
  527. package/src/modules/bmm/workflows/testarch/atdd/README.md +0 -672
  528. package/src/modules/bmm/workflows/testarch/automate/README.md +0 -869
  529. package/src/modules/bmm/workflows/testarch/ci/README.md +0 -493
  530. package/src/modules/bmm/workflows/testarch/framework/README.md +0 -340
  531. package/src/modules/bmm/workflows/testarch/nfr-assess/README.md +0 -469
  532. package/src/modules/bmm/workflows/testarch/test-design/README.md +0 -493
  533. package/src/modules/bmm/workflows/testarch/test-review/README.md +0 -775
  534. package/src/modules/bmm/workflows/testarch/trace/README.md +0 -802
  535. package/src/modules/bmm/workflows/workflow-status/README.md +0 -260
  536. package/src/modules/bmm/workflows/workflow-status/paths/brownfield-level-2.yaml +0 -76
  537. package/src/modules/bmm/workflows/workflow-status/paths/greenfield-level-4.yaml +0 -75
  538. /package/bmad/_cfg/agents/{bmd-doc-keeper.customize.yaml → bmm-analyst.customize.yaml} +0 -0
  539. /package/bmad/_cfg/agents/{bmd-release-chief.customize.yaml → bmm-architect.customize.yaml} +0 -0
  540. /package/{src/modules/bmm/workflows/2-plan-workflows/prd → bmad/bmm/workflows/2-plan-workflows/prd/create-epics-and-stories}/epics-template.md +0 -0
@@ -1,672 +0,0 @@
1
- # ATDD (Acceptance Test-Driven Development) Workflow
2
-
3
- Generates failing acceptance tests BEFORE implementation following TDD's red-green-refactor cycle. Creates comprehensive test coverage at appropriate levels (E2E, API, Component) with supporting infrastructure (fixtures, factories, mocks) and provides an implementation checklist to guide development toward passing tests.
4
-
5
- **Core Principle**: Tests fail first (red phase), guide development to green, then enable confident refactoring.
6
-
7
- ## Usage
8
-
9
- ```bash
10
- bmad tea *atdd
11
- ```
12
-
13
- The TEA agent runs this workflow when:
14
-
15
- - User story is approved with clear acceptance criteria
16
- - Development is about to begin (before any implementation code)
17
- - Team is practicing Test-Driven Development (TDD)
18
- - Need to establish test-first contract with DEV team
19
-
20
- ## Inputs
21
-
22
- **Required Context Files:**
23
-
24
- - **Story markdown** (`{story_file}`): User story with acceptance criteria, functional requirements, and technical constraints
25
- - **Framework configuration**: Test framework config (playwright.config.ts or cypress.config.ts) from framework workflow
26
-
27
- **Workflow Variables:**
28
-
29
- - `story_file`: Path to story markdown with acceptance criteria (required)
30
- - `test_dir`: Directory for test files (default: `{project-root}/tests`)
31
- - `test_framework`: Detected from framework workflow (playwright or cypress)
32
- - `test_levels`: Which test levels to generate (default: "e2e,api,component")
33
- - `primary_level`: Primary test level for acceptance criteria (default: "e2e")
34
- - `start_failing`: Tests must fail initially - red phase (default: true)
35
- - `use_given_when_then`: BDD-style test structure (default: true)
36
- - `network_first`: Route interception before navigation to prevent race conditions (default: true)
37
- - `one_assertion_per_test`: Atomic test design (default: true)
38
- - `generate_factories`: Create data factory stubs using faker (default: true)
39
- - `generate_fixtures`: Create fixture architecture with auto-cleanup (default: true)
40
- - `auto_cleanup`: Fixtures clean up their data automatically (default: true)
41
- - `include_data_testids`: List required data-testid attributes for DEV (default: true)
42
- - `include_mock_requirements`: Document mock/stub needs (default: true)
43
- - `auto_load_knowledge`: Load fixture-architecture, data-factories, component-tdd fragments (default: true)
44
- - `share_with_dev`: Provide implementation checklist to DEV agent (default: true)
45
- - `output_checklist`: Path for implementation checklist (default: `{output_folder}/atdd-checklist-{story_id}.md`)
46
-
47
- **Optional Context:**
48
-
49
- - **Test design document**: For risk/priority context alignment (P0-P3 scenarios)
50
- - **Existing fixtures/helpers**: For consistency with established patterns
51
- - **Architecture documents**: For understanding system boundaries and integration points
52
-
53
- ## Outputs
54
-
55
- **Primary Deliverable:**
56
-
57
- - **ATDD Checklist** (`atdd-checklist-{story_id}.md`): Implementation guide containing:
58
- - Story summary and acceptance criteria breakdown
59
- - Test files created with paths and line counts
60
- - Data factories created with patterns
61
- - Fixtures created with auto-cleanup logic
62
- - Mock requirements for external services
63
- - Required data-testid attributes list
64
- - Implementation checklist mapping tests to code tasks
65
- - Red-green-refactor workflow guidance
66
- - Execution commands for running tests
67
-
68
- **Test Files Created:**
69
-
70
- - **E2E tests** (`tests/e2e/{feature-name}.spec.ts`): Full user journey tests for critical paths
71
- - **API tests** (`tests/api/{feature-name}.api.spec.ts`): Business logic and service contract tests
72
- - **Component tests** (`tests/component/{ComponentName}.test.tsx`): UI component behavior tests
73
-
74
- **Supporting Infrastructure:**
75
-
76
- - **Data factories** (`tests/support/factories/{entity}.factory.ts`): Factory functions using @faker-js/faker for generating test data with overrides support
77
- - **Test fixtures** (`tests/support/fixtures/{feature}.fixture.ts`): Playwright fixtures with setup/teardown and auto-cleanup
78
- - **Mock/stub documentation**: Requirements for external service mocking (payment gateways, email services, etc.)
79
- - **data-testid requirements**: List of required test IDs for stable selectors in UI implementation
80
-
81
- **Validation Safeguards:**
82
-
83
- - All tests must fail initially (red phase verified by local test run)
84
- - Failure messages are clear and actionable
85
- - Tests use Given-When-Then format for readability
86
- - Network-first pattern applied (route interception before navigation)
87
- - One assertion per test (atomic test design)
88
- - No hard waits or sleeps (explicit waits only)
89
-
90
- ## Key Features
91
-
92
- ### Red-Green-Refactor Cycle
93
-
94
- **RED Phase** (TEA Agent responsibility):
95
-
96
- - Write failing tests first defining expected behavior
97
- - Tests fail for right reason (missing implementation, not test bugs)
98
- - All supporting infrastructure (factories, fixtures, mocks) created
99
-
100
- **GREEN Phase** (DEV Agent responsibility):
101
-
102
- - Implement minimal code to pass one test at a time
103
- - Use implementation checklist as guide
104
- - Run tests frequently to verify progress
105
-
106
- **REFACTOR Phase** (DEV Agent responsibility):
107
-
108
- - Improve code quality with confidence (tests provide safety net)
109
- - Extract duplications, optimize performance
110
- - Ensure tests still pass after changes
111
-
112
- ### Test Level Selection Framework
113
-
114
- **E2E (End-to-End)**:
115
-
116
- - Critical user journeys (login, checkout, core workflows)
117
- - Multi-system integration
118
- - User-facing acceptance criteria
119
- - Characteristics: High confidence, slow execution, brittle
120
-
121
- **API (Integration)**:
122
-
123
- - Business logic validation
124
- - Service contracts and data transformations
125
- - Backend integration without UI
126
- - Characteristics: Fast feedback, good balance, stable
127
-
128
- **Component**:
129
-
130
- - UI component behavior (buttons, forms, modals)
131
- - Interaction testing (click, hover, keyboard navigation)
132
- - Visual regression and state management
133
- - Characteristics: Fast, isolated, granular
134
-
135
- **Unit**:
136
-
137
- - Pure business logic and algorithms
138
- - Edge cases and error handling
139
- - Minimal dependencies
140
- - Characteristics: Fastest, most granular
141
-
142
- **Selection Strategy**: Avoid duplicate coverage. Use E2E for critical happy path, API for business logic variations, component for UI edge cases, unit for pure logic.
143
-
144
- ### Recording Mode (NEW - Phase 2.5)
145
-
146
- **atdd** can record complex UI interactions instead of AI generation.
147
-
148
- **Activation**: Automatic for complex UI when config.tea_use_mcp_enhancements is true and MCP available
149
-
150
- - Fallback: AI generation (silent, automatic)
151
-
152
- **When to Use Recording Mode:**
153
-
154
- - ✅ Complex UI interactions (drag-drop, multi-step forms, wizards)
155
- - ✅ Visual workflows (modals, dialogs, animations)
156
- - ✅ Unclear requirements (exploratory, discovering expected behavior)
157
- - ✅ Multi-page flows (checkout, registration, onboarding)
158
- - ❌ NOT for simple CRUD (AI generation faster)
159
- - ❌ NOT for API-only tests (no UI to record)
160
-
161
- **When to Use AI Generation (Default):**
162
-
163
- - ✅ Clear acceptance criteria available
164
- - ✅ Standard patterns (login, CRUD, navigation)
165
- - ✅ Need many tests quickly
166
- - ✅ API/backend tests (no UI interaction)
167
-
168
- **How Test Generation Works (Default - AI-Based):**
169
-
170
- TEA generates tests using AI by:
171
-
172
- 1. **Analyzing acceptance criteria** from story markdown
173
- 2. **Inferring selectors** from requirement descriptions (e.g., "login button" → `[data-testid="login-button"]`)
174
- 3. **Synthesizing test code** based on knowledge base patterns
175
- 4. **Estimating interactions** using common UI patterns (click, type, verify)
176
- 5. **Applying best practices** from knowledge fragments (Given-When-Then, network-first, fixtures)
177
-
178
- **This works well for:**
179
-
180
- - ✅ Clear requirements with known UI patterns
181
- - ✅ Standard workflows (login, CRUD, navigation)
182
- - ✅ When selectors follow conventions (data-testid attributes)
183
-
184
- **What MCP Adds (Interactive Verification & Enhancement):**
185
-
186
- When Playwright MCP is available, TEA **additionally**:
187
-
188
- 1. **Verifies generated tests** by:
189
- - **Launching real browser** with `generator_setup_page`
190
- - **Executing generated test steps** with `browser_*` tools (`navigate`, `click`, `type`)
191
- - **Seeing actual UI** with `browser_snapshot` (visual verification)
192
- - **Discovering real selectors** with `browser_generate_locator` (auto-generate from live DOM)
193
-
194
- 2. **Enhances AI-generated tests** by:
195
- - **Validating selectors exist** in actual DOM (not just guesses)
196
- - **Verifying behavior** with `browser_verify_text`, `browser_verify_visible`, `browser_verify_url`
197
- - **Capturing actual interaction log** with `generator_read_log`
198
- - **Refining test code** with real observed behavior
199
-
200
- 3. **Catches issues early** by:
201
- - **Finding missing selectors** before DEV implements (requirements clarification)
202
- - **Discovering edge cases** not in requirements (loading states, error messages)
203
- - **Validating assumptions** about UI structure and behavior
204
-
205
- **Key Benefits of MCP Enhancement:**
206
-
207
- - ✅ **AI generates tests** (fast, based on requirements) **+** **MCP verifies tests** (accurate, based on reality)
208
- - ✅ **Accurate selectors**: Validated against actual DOM, not just inferred
209
- - ✅ **Visual validation**: TEA sees what user sees (modals, animations, state changes)
210
- - ✅ **Complex flows**: Records multi-step interactions precisely
211
- - ✅ **Edge case discovery**: Observes actual app behavior beyond requirements
212
- - ✅ **Selector resilience**: MCP generates robust locators from live page (role-based, text-based, fallback chains)
213
-
214
- **Example Enhancement Flow:**
215
-
216
- ```
217
- 1. AI generates test based on acceptance criteria
218
- → await page.click('[data-testid="submit-button"]')
219
-
220
- 2. MCP verifies selector exists (browser_generate_locator)
221
- → Found: button[type="submit"].btn-primary
222
- → No data-testid attribute exists!
223
-
224
- 3. TEA refines test with actual selector
225
- → await page.locator('button[type="submit"]').click()
226
- → Documents requirement: "Add data-testid='submit-button' to button"
227
- ```
228
-
229
- **Recording Workflow (MCP-Based):**
230
-
231
- ```
232
- 1. Set generation_mode: "recording"
233
- 2. Use generator_setup_page to init recording session
234
- 3. For each acceptance criterion:
235
- a. Execute scenario with browser_* tools:
236
- - browser_navigate, browser_click, browser_type
237
- - browser_select, browser_check
238
- b. Add verifications with browser_verify_* tools:
239
- - browser_verify_text, browser_verify_visible
240
- - browser_verify_url
241
- c. Capture log with generator_read_log
242
- d. Generate test with generator_write_test
243
- 4. Enhance generated tests with knowledge base patterns:
244
- - Add Given-When-Then comments
245
- - Replace selectors with data-testid
246
- - Add network-first interception
247
- - Add fixtures/factories
248
- 5. Verify tests fail (RED phase)
249
- ```
250
-
251
- **Example: Recording a Checkout Flow**
252
-
253
- ```markdown
254
- Recording session for: "User completes checkout with credit card"
255
-
256
- Actions recorded:
257
-
258
- 1. browser_navigate('/cart')
259
- 2. browser_click('[data-testid="checkout-button"]')
260
- 3. browser_type('[data-testid="card-number"]', '4242424242424242')
261
- 4. browser_type('[data-testid="expiry"]', '12/25')
262
- 5. browser_type('[data-testid="cvv"]', '123')
263
- 6. browser_click('[data-testid="place-order"]')
264
- 7. browser_verify_text('Order confirmed')
265
- 8. browser_verify_url('/confirmation')
266
-
267
- Generated test (enhanced):
268
-
269
- - Given-When-Then structure added
270
- - data-testid selectors used
271
- - Network-first payment API mock added
272
- - Card factory created for test data
273
- - Test verified to FAIL (checkout not implemented)
274
- ```
275
-
276
- **Graceful Degradation:**
277
-
278
- - Recording mode is OPTIONAL (default: AI generation)
279
- - Requires Playwright MCP (falls back to AI if unavailable)
280
- - Generated tests enhanced with knowledge base patterns
281
- - Same quality output regardless of generation method
282
-
283
- ### Given-When-Then Structure
284
-
285
- All tests follow BDD format for clarity:
286
-
287
- ```typescript
288
- test('should display error for invalid credentials', async ({ page }) => {
289
- // GIVEN: User is on login page
290
- await page.goto('/login');
291
-
292
- // WHEN: User submits invalid credentials
293
- await page.fill('[data-testid="email-input"]', 'invalid@example.com');
294
- await page.fill('[data-testid="password-input"]', 'wrongpassword');
295
- await page.click('[data-testid="login-button"]');
296
-
297
- // THEN: Error message is displayed
298
- await expect(page.locator('[data-testid="error-message"]')).toHaveText('Invalid email or password');
299
- });
300
- ```
301
-
302
- ### Network-First Testing Pattern
303
-
304
- **Critical pattern to prevent race conditions**:
305
-
306
- ```typescript
307
- // ✅ CORRECT: Intercept BEFORE navigation
308
- await page.route('**/api/data', handler);
309
- await page.goto('/page');
310
-
311
- // ❌ WRONG: Navigate then intercept (race condition)
312
- await page.goto('/page');
313
- await page.route('**/api/data', handler); // Too late!
314
- ```
315
-
316
- Always set up route interception before navigating to pages that make network requests.
317
-
318
- ### Data Factory Architecture
319
-
320
- Use faker for all test data generation:
321
-
322
- ```typescript
323
- // tests/support/factories/user.factory.ts
324
- import { faker } from '@faker-js/faker';
325
-
326
- export const createUser = (overrides = {}) => ({
327
- id: faker.number.int(),
328
- email: faker.internet.email(),
329
- name: faker.person.fullName(),
330
- createdAt: faker.date.recent().toISOString(),
331
- ...overrides,
332
- });
333
-
334
- export const createUsers = (count: number) => Array.from({ length: count }, () => createUser());
335
- ```
336
-
337
- **Factory principles:**
338
-
339
- - Use faker for random data (no hardcoded values to prevent collisions)
340
- - Support overrides for specific test scenarios
341
- - Generate complete valid objects matching API contracts
342
- - Include helper functions for bulk creation
343
-
344
- ### Fixture Architecture with Auto-Cleanup
345
-
346
- Playwright fixtures with automatic data cleanup:
347
-
348
- ```typescript
349
- // tests/support/fixtures/auth.fixture.ts
350
- import { test as base } from '@playwright/test';
351
-
352
- export const test = base.extend({
353
- authenticatedUser: async ({ page }, use) => {
354
- // Setup: Create and authenticate user
355
- const user = await createUser();
356
- await page.goto('/login');
357
- await page.fill('[data-testid="email"]', user.email);
358
- await page.fill('[data-testid="password"]', 'password123');
359
- await page.click('[data-testid="login-button"]');
360
- await page.waitForURL('/dashboard');
361
-
362
- // Provide to test
363
- await use(user);
364
-
365
- // Cleanup: Delete user (automatic)
366
- await deleteUser(user.id);
367
- },
368
- });
369
- ```
370
-
371
- **Fixture principles:**
372
-
373
- - Auto-cleanup (always delete created data in teardown)
374
- - Composable (fixtures can use other fixtures via mergeTests)
375
- - Isolated (each test gets fresh data)
376
- - Type-safe with TypeScript
377
-
378
- ### One Assertion Per Test (Atomic Design)
379
-
380
- Each test should verify exactly one behavior:
381
-
382
- ```typescript
383
- // ✅ CORRECT: One assertion
384
- test('should display user name', async ({ page }) => {
385
- await expect(page.locator('[data-testid="user-name"]')).toHaveText('John');
386
- });
387
-
388
- // ❌ WRONG: Multiple assertions (not atomic)
389
- test('should display user info', async ({ page }) => {
390
- await expect(page.locator('[data-testid="user-name"]')).toHaveText('John');
391
- await expect(page.locator('[data-testid="user-email"]')).toHaveText('john@example.com');
392
- });
393
- ```
394
-
395
- **Why?** If second assertion fails, you don't know if first is still valid. Split into separate tests for clear failure diagnosis.
396
-
397
- ### Implementation Checklist for DEV
398
-
399
- Maps each failing test to concrete implementation tasks:
400
-
401
- ```markdown
402
- ## Implementation Checklist
403
-
404
- ### Test: User Login with Valid Credentials
405
-
406
- - [ ] Create `/login` route
407
- - [ ] Implement login form component
408
- - [ ] Add email/password validation
409
- - [ ] Integrate authentication API
410
- - [ ] Add `data-testid` attributes: `email-input`, `password-input`, `login-button`
411
- - [ ] Implement error handling
412
- - [ ] Run test: `npm run test:e2e -- login.spec.ts`
413
- - [ ] ✅ Test passes (green phase)
414
- ```
415
-
416
- Provides clear path from red to green for each test.
417
-
418
- ## Integration with Other Workflows
419
-
420
- **Before this workflow:**
421
-
422
- - **framework** workflow: Must run first to establish test framework architecture (Playwright or Cypress config, directory structure, base fixtures)
423
- - **test-design** workflow: Optional but recommended for P0-P3 priority alignment and risk assessment context
424
-
425
- **After this workflow:**
426
-
427
- - **DEV agent** implements features guided by failing tests and implementation checklist
428
- - **test-review** workflow: Review generated test quality before sharing with DEV team
429
- - **automate** workflow: After story completion, expand regression suite with additional edge case coverage
430
-
431
- **Coordinates with:**
432
-
433
- - **Story approval process**: ATDD runs after story is approved but before DEV begins implementation
434
- - **Quality gates**: Failing tests serve as acceptance criteria for story completion (all tests must pass)
435
-
436
- ## Important Notes
437
-
438
- ### ATDD is Test-First, Not Test-After
439
-
440
- **Critical timing**: Tests must be written BEFORE any implementation code. This ensures:
441
-
442
- - Tests define the contract (what needs to be built)
443
- - Implementation is guided by tests (no over-engineering)
444
- - Tests verify behavior, not implementation details
445
- - Confidence in refactoring (tests catch regressions)
446
-
447
- ### All Tests Must Fail Initially
448
-
449
- **Red phase verification is mandatory**:
450
-
451
- - Run tests locally after creation to confirm RED phase
452
- - Failure should be due to missing implementation, not test bugs
453
- - Failure messages should be clear and actionable
454
- - Document expected failure messages in ATDD checklist
455
-
456
- If a test passes before implementation, it's not testing the right thing.
457
-
458
- ### Use data-testid for Stable Selectors
459
-
460
- **Why data-testid?**
461
-
462
- - CSS classes change frequently (styling refactors)
463
- - IDs may not be unique or stable
464
- - Text content changes with localization
465
- - data-testid is explicit contract between tests and UI
466
-
467
- ```typescript
468
- // ✅ CORRECT: Stable selector
469
- await page.click('[data-testid="login-button"]');
470
-
471
- // ❌ FRAGILE: Class-based selector
472
- await page.click('.btn.btn-primary.login-btn');
473
- ```
474
-
475
- ATDD checklist includes complete list of required data-testid attributes for DEV team.
476
-
477
- ### No Hard Waits or Sleeps
478
-
479
- **Use explicit waits only**:
480
-
481
- ```typescript
482
- // ✅ CORRECT: Explicit wait for condition
483
- await page.waitForSelector('[data-testid="user-name"]');
484
- await expect(page.locator('[data-testid="user-name"]')).toBeVisible();
485
-
486
- // ❌ WRONG: Hard wait (flaky, slow)
487
- await page.waitForTimeout(2000);
488
- ```
489
-
490
- Playwright's auto-waiting is preferred (expect() automatically waits up to timeout).
491
-
492
- ### Component Tests for Complex UI Only
493
-
494
- **When to use component tests:**
495
-
496
- - Complex UI interactions (drag-drop, keyboard navigation)
497
- - Form validation logic
498
- - State management within component
499
- - Visual edge cases
500
-
501
- **When NOT to use:**
502
-
503
- - Simple rendering (snapshot tests are sufficient)
504
- - Integration with backend (use E2E or API tests)
505
- - Full user journeys (use E2E tests)
506
-
507
- Component tests are valuable but should complement, not replace, E2E and API tests.
508
-
509
- ### Auto-Cleanup is Non-Negotiable
510
-
511
- **Every test must clean up its data**:
512
-
513
- - Use fixtures with automatic teardown
514
- - Never leave test data in database/storage
515
- - Each test should be isolated (no shared state)
516
-
517
- **Cleanup patterns:**
518
-
519
- - Fixtures: Cleanup in teardown function
520
- - Factories: Provide deletion helpers
521
- - Tests: Use `test.afterEach()` for manual cleanup if needed
522
-
523
- Without auto-cleanup, tests become flaky and depend on execution order.
524
-
525
- ## Knowledge Base References
526
-
527
- This workflow automatically consults:
528
-
529
- - **fixture-architecture.md** - Test fixture patterns with setup/teardown and auto-cleanup using Playwright's test.extend()
530
- - **data-factories.md** - Factory patterns using @faker-js/faker for random test data generation with overrides support
531
- - **component-tdd.md** - Component test strategies using Playwright Component Testing (@playwright/experimental-ct-react)
532
- - **network-first.md** - Route interception patterns (intercept before navigation to prevent race conditions)
533
- - **test-quality.md** - Test design principles (Given-When-Then, one assertion per test, determinism, isolation)
534
- - **test-levels-framework.md** - Test level selection framework (E2E vs API vs Component vs Unit)
535
-
536
- See `tea-index.csv` for complete knowledge fragment mapping and additional references.
537
-
538
- ## Example Output
539
-
540
- After running this workflow, the ATDD checklist will contain:
541
-
542
- ````markdown
543
- # ATDD Checklist - Epic 3, Story 5: User Authentication
544
-
545
- ## Story Summary
546
-
547
- As a user, I want to log in with email and password so that I can access my personalized dashboard.
548
-
549
- ## Acceptance Criteria
550
-
551
- 1. User can log in with valid credentials
552
- 2. User sees error message with invalid credentials
553
- 3. User is redirected to dashboard after successful login
554
-
555
- ## Failing Tests Created (RED Phase)
556
-
557
- ### E2E Tests (3 tests)
558
-
559
- - `tests/e2e/user-authentication.spec.ts` (87 lines)
560
- - ✅ should log in with valid credentials (RED - missing /login route)
561
- - ✅ should display error for invalid credentials (RED - error message not implemented)
562
- - ✅ should redirect to dashboard after login (RED - redirect logic missing)
563
-
564
- ### API Tests (2 tests)
565
-
566
- - `tests/api/auth.api.spec.ts` (54 lines)
567
- - ✅ POST /api/auth/login - should return token for valid credentials (RED - endpoint not implemented)
568
- - ✅ POST /api/auth/login - should return 401 for invalid credentials (RED - validation missing)
569
-
570
- ## Data Factories Created
571
-
572
- - `tests/support/factories/user.factory.ts` - createUser(), createUsers(count)
573
-
574
- ## Fixtures Created
575
-
576
- - `tests/support/fixtures/auth.fixture.ts` - authenticatedUser fixture with auto-cleanup
577
-
578
- ## Required data-testid Attributes
579
-
580
- ### Login Page
581
-
582
- - `email-input` - Email input field
583
- - `password-input` - Password input field
584
- - `login-button` - Submit button
585
- - `error-message` - Error message container
586
-
587
- ### Dashboard Page
588
-
589
- - `user-name` - User name display
590
- - `logout-button` - Logout button
591
-
592
- ## Implementation Checklist
593
-
594
- ### Test: User Login with Valid Credentials
595
-
596
- - [ ] Create `/login` route
597
- - [ ] Implement login form component
598
- - [ ] Add email/password validation
599
- - [ ] Integrate authentication API
600
- - [ ] Add data-testid attributes: `email-input`, `password-input`, `login-button`
601
- - [ ] Run test: `npm run test:e2e -- user-authentication.spec.ts`
602
- - [ ] ✅ Test passes (green phase)
603
-
604
- ### Test: Display Error for Invalid Credentials
605
-
606
- - [ ] Add error state management
607
- - [ ] Display error message UI
608
- - [ ] Add `data-testid="error-message"`
609
- - [ ] Run test: `npm run test:e2e -- user-authentication.spec.ts`
610
- - [ ] ✅ Test passes (green phase)
611
-
612
- ### Test: Redirect to Dashboard After Login
613
-
614
- - [ ] Implement redirect logic after successful auth
615
- - [ ] Verify authentication token stored
616
- - [ ] Add dashboard route protection
617
- - [ ] Run test: `npm run test:e2e -- user-authentication.spec.ts`
618
- - [ ] ✅ Test passes (green phase)
619
-
620
- ## Running Tests
621
-
622
- ```bash
623
- # Run all failing tests
624
- npm run test:e2e
625
-
626
- # Run specific test file
627
- npm run test:e2e -- user-authentication.spec.ts
628
-
629
- # Run tests in headed mode (see browser)
630
- npm run test:e2e -- --headed
631
-
632
- # Debug specific test
633
- npm run test:e2e -- user-authentication.spec.ts --debug
634
- ```
635
- ````
636
-
637
- ## Red-Green-Refactor Workflow
638
-
639
- **RED Phase** (Complete):
640
-
641
- - ✅ All tests written and failing
642
- - ✅ Fixtures and factories created
643
- - ✅ data-testid requirements documented
644
-
645
- **GREEN Phase** (DEV Team - Next Steps):
646
-
647
- 1. Pick one failing test from checklist
648
- 2. Implement minimal code to make it pass
649
- 3. Run test to verify green
650
- 4. Check off task in checklist
651
- 5. Move to next test
652
- 6. Repeat until all tests pass
653
-
654
- **REFACTOR Phase** (DEV Team - After All Tests Pass):
655
-
656
- 1. All tests passing (green)
657
- 2. Improve code quality (extract functions, optimize)
658
- 3. Remove duplications
659
- 4. Ensure tests still pass after each refactor
660
-
661
- ## Next Steps
662
-
663
- 1. Review this checklist with team
664
- 2. Run failing tests to confirm RED phase: `npm run test:e2e`
665
- 3. Begin implementation using checklist as guide
666
- 4. Share progress in daily standup
667
- 5. When all tests pass, run `bmad sm story-done` to move story to DONE
668
-
669
- ```
670
-
671
- This comprehensive checklist guides DEV team from red to green with clear tasks and validation steps.
672
- ```