agentvibes 2.10.0 → 2.12.0

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 (437) hide show
  1. package/.claude/commands/agent-vibes/agent-vibes.md +1 -1
  2. package/.claude/commands/agent-vibes/bmad.md +3 -3
  3. package/.claude/commands/agent-vibes/set-pretext.md +2 -2
  4. package/.claude/commands/agent-vibes-bmad-voices.md +5 -5
  5. package/.claude/hooks/bmad-speak.sh +1 -1
  6. package/.claude/hooks/migrate-to-agentvibes.sh +161 -0
  7. package/.claude/hooks/play-tts-elevenlabs.sh +1 -1
  8. package/.claude/output-styles/agent-vibes.md +3 -3
  9. package/README.md +9 -6
  10. package/RELEASE_NOTES.md +341 -0
  11. package/docs/architecture/provider-system.md +3 -3
  12. package/docs/bmad-v6-support.md +1 -1
  13. package/docs/technical-deep-dive.md +1 -1
  14. package/docs/voice-mapping-format.md +1 -1
  15. package/package.json +1 -1
  16. package/src/installer.js +88 -16
  17. package/test-migration.sh +539 -0
  18. package/.agentvibes/bmad/bmad-voices-enabled.flag +0 -0
  19. package/.agentvibes/bmad/bmad-voices.md +0 -68
  20. package/.bmad/_cfg/agent-manifest.csv +0 -11
  21. package/.bmad/_cfg/agent-voice-map.csv +0 -11
  22. package/.bmad/_cfg/agents/bmm-analyst.customize.yaml +0 -42
  23. package/.bmad/_cfg/agents/bmm-architect.customize.yaml +0 -42
  24. package/.bmad/_cfg/agents/bmm-dev.customize.yaml +0 -42
  25. package/.bmad/_cfg/agents/bmm-frame-expert.customize.yaml +0 -42
  26. package/.bmad/_cfg/agents/bmm-pm.customize.yaml +0 -42
  27. package/.bmad/_cfg/agents/bmm-sm.customize.yaml +0 -42
  28. package/.bmad/_cfg/agents/bmm-tea.customize.yaml +0 -42
  29. package/.bmad/_cfg/agents/bmm-tech-writer.customize.yaml +0 -42
  30. package/.bmad/_cfg/agents/bmm-ux-designer.customize.yaml +0 -42
  31. package/.bmad/_cfg/agents/core-bmad-master.customize.yaml +0 -42
  32. package/.bmad/_cfg/files-manifest.csv +0 -243
  33. package/.bmad/_cfg/ides/claude-code.yaml +0 -6
  34. package/.bmad/_cfg/manifest.yaml +0 -9
  35. package/.bmad/_cfg/task-manifest.csv +0 -5
  36. package/.bmad/_cfg/tool-manifest.csv +0 -2
  37. package/.bmad/_cfg/workflow-manifest.csv +0 -38
  38. package/.bmad/bmm/README.md +0 -128
  39. package/.bmad/bmm/agents/analyst.md +0 -79
  40. package/.bmad/bmm/agents/analyst.md.backup-pre-tts +0 -75
  41. package/.bmad/bmm/agents/architect.md +0 -80
  42. package/.bmad/bmm/agents/dev.md +0 -70
  43. package/.bmad/bmm/agents/frame-expert.md +0 -72
  44. package/.bmad/bmm/agents/pm.md +0 -84
  45. package/.bmad/bmm/agents/sm.md +0 -93
  46. package/.bmad/bmm/agents/tea.md +0 -80
  47. package/.bmad/bmm/agents/tech-writer.md +0 -84
  48. package/.bmad/bmm/agents/ux-designer.md +0 -79
  49. package/.bmad/bmm/config.yaml +0 -17
  50. package/.bmad/bmm/docs/README.md +0 -236
  51. package/.bmad/bmm/docs/agents-guide.md +0 -1058
  52. package/.bmad/bmm/docs/brownfield-guide.md +0 -762
  53. package/.bmad/bmm/docs/enterprise-agentic-development.md +0 -686
  54. package/.bmad/bmm/docs/faq.md +0 -588
  55. package/.bmad/bmm/docs/glossary.md +0 -320
  56. package/.bmad/bmm/docs/party-mode.md +0 -224
  57. package/.bmad/bmm/docs/quick-spec-flow.md +0 -652
  58. package/.bmad/bmm/docs/quick-start.md +0 -376
  59. package/.bmad/bmm/docs/scale-adaptive-system.md +0 -612
  60. package/.bmad/bmm/docs/test-architecture.md +0 -396
  61. package/.bmad/bmm/docs/workflow-architecture-reference.md +0 -366
  62. package/.bmad/bmm/docs/workflow-document-project-reference.md +0 -489
  63. package/.bmad/bmm/docs/workflows-analysis.md +0 -370
  64. package/.bmad/bmm/docs/workflows-implementation.md +0 -286
  65. package/.bmad/bmm/docs/workflows-planning.md +0 -612
  66. package/.bmad/bmm/docs/workflows-solutioning.md +0 -554
  67. package/.bmad/bmm/teams/default-party.csv +0 -20
  68. package/.bmad/bmm/teams/team-fullstack.yaml +0 -13
  69. package/.bmad/bmm/testarch/knowledge/ci-burn-in.md +0 -675
  70. package/.bmad/bmm/testarch/knowledge/component-tdd.md +0 -486
  71. package/.bmad/bmm/testarch/knowledge/contract-testing.md +0 -957
  72. package/.bmad/bmm/testarch/knowledge/data-factories.md +0 -500
  73. package/.bmad/bmm/testarch/knowledge/email-auth.md +0 -721
  74. package/.bmad/bmm/testarch/knowledge/error-handling.md +0 -725
  75. package/.bmad/bmm/testarch/knowledge/feature-flags.md +0 -750
  76. package/.bmad/bmm/testarch/knowledge/fixture-architecture.md +0 -401
  77. package/.bmad/bmm/testarch/knowledge/network-first.md +0 -486
  78. package/.bmad/bmm/testarch/knowledge/nfr-criteria.md +0 -670
  79. package/.bmad/bmm/testarch/knowledge/playwright-config.md +0 -730
  80. package/.bmad/bmm/testarch/knowledge/probability-impact.md +0 -601
  81. package/.bmad/bmm/testarch/knowledge/risk-governance.md +0 -615
  82. package/.bmad/bmm/testarch/knowledge/selective-testing.md +0 -732
  83. package/.bmad/bmm/testarch/knowledge/selector-resilience.md +0 -527
  84. package/.bmad/bmm/testarch/knowledge/test-healing-patterns.md +0 -644
  85. package/.bmad/bmm/testarch/knowledge/test-levels-framework.md +0 -473
  86. package/.bmad/bmm/testarch/knowledge/test-priorities-matrix.md +0 -373
  87. package/.bmad/bmm/testarch/knowledge/test-quality.md +0 -664
  88. package/.bmad/bmm/testarch/knowledge/timing-debugging.md +0 -372
  89. package/.bmad/bmm/testarch/knowledge/visual-debugging.md +0 -524
  90. package/.bmad/bmm/testarch/tea-index.csv +0 -22
  91. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/instructions.md +0 -112
  92. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/project-context.md +0 -25
  93. package/.bmad/bmm/workflows/1-analysis/brainstorm-project/workflow.yaml +0 -26
  94. package/.bmad/bmm/workflows/1-analysis/domain-research/instructions.md +0 -425
  95. package/.bmad/bmm/workflows/1-analysis/domain-research/template.md +0 -180
  96. package/.bmad/bmm/workflows/1-analysis/domain-research/workflow.yaml +0 -28
  97. package/.bmad/bmm/workflows/1-analysis/product-brief/checklist.md +0 -115
  98. package/.bmad/bmm/workflows/1-analysis/product-brief/instructions.md +0 -524
  99. package/.bmad/bmm/workflows/1-analysis/product-brief/template.md +0 -181
  100. package/.bmad/bmm/workflows/1-analysis/product-brief/workflow.yaml +0 -45
  101. package/.bmad/bmm/workflows/1-analysis/research/checklist-deep-prompt.md +0 -144
  102. package/.bmad/bmm/workflows/1-analysis/research/checklist-technical.md +0 -249
  103. package/.bmad/bmm/workflows/1-analysis/research/checklist.md +0 -299
  104. package/.bmad/bmm/workflows/1-analysis/research/claude-code/injections.yaml +0 -114
  105. package/.bmad/bmm/workflows/1-analysis/research/instructions-deep-prompt.md +0 -438
  106. package/.bmad/bmm/workflows/1-analysis/research/instructions-market.md +0 -675
  107. package/.bmad/bmm/workflows/1-analysis/research/instructions-router.md +0 -134
  108. package/.bmad/bmm/workflows/1-analysis/research/instructions-technical.md +0 -534
  109. package/.bmad/bmm/workflows/1-analysis/research/template-deep-prompt.md +0 -94
  110. package/.bmad/bmm/workflows/1-analysis/research/template-market.md +0 -347
  111. package/.bmad/bmm/workflows/1-analysis/research/template-technical.md +0 -245
  112. package/.bmad/bmm/workflows/1-analysis/research/workflow.yaml +0 -44
  113. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/epics-template.md +0 -80
  114. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/instructions.md +0 -616
  115. package/.bmad/bmm/workflows/2-plan-workflows/create-epics-and-stories/workflow.yaml +0 -53
  116. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/checklist.md +0 -310
  117. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/instructions.md +0 -1308
  118. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/ux-design-template.md +0 -145
  119. package/.bmad/bmm/workflows/2-plan-workflows/create-ux-design/workflow.yaml +0 -61
  120. package/.bmad/bmm/workflows/2-plan-workflows/prd/checklist.md +0 -346
  121. package/.bmad/bmm/workflows/2-plan-workflows/prd/domain-complexity.csv +0 -13
  122. package/.bmad/bmm/workflows/2-plan-workflows/prd/instructions.md +0 -703
  123. package/.bmad/bmm/workflows/2-plan-workflows/prd/prd-template.md +0 -204
  124. package/.bmad/bmm/workflows/2-plan-workflows/prd/project-types.csv +0 -11
  125. package/.bmad/bmm/workflows/2-plan-workflows/prd/workflow.yaml +0 -52
  126. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/checklist.md +0 -217
  127. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/epics-template.md +0 -74
  128. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions-generate-stories.md +0 -436
  129. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/instructions.md +0 -980
  130. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/tech-spec-template.md +0 -181
  131. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/user-story-template.md +0 -90
  132. package/.bmad/bmm/workflows/2-plan-workflows/tech-spec/workflow.yaml +0 -58
  133. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-patterns.yaml +0 -321
  134. package/.bmad/bmm/workflows/3-solutioning/architecture/architecture-template.md +0 -103
  135. package/.bmad/bmm/workflows/3-solutioning/architecture/checklist.md +0 -240
  136. package/.bmad/bmm/workflows/3-solutioning/architecture/decision-catalog.yaml +0 -222
  137. package/.bmad/bmm/workflows/3-solutioning/architecture/instructions.md +0 -768
  138. package/.bmad/bmm/workflows/3-solutioning/architecture/pattern-categories.csv +0 -13
  139. package/.bmad/bmm/workflows/3-solutioning/architecture/workflow.yaml +0 -55
  140. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/checklist.md +0 -169
  141. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/instructions.md +0 -332
  142. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/template.md +0 -146
  143. package/.bmad/bmm/workflows/3-solutioning/implementation-readiness/workflow.yaml +0 -62
  144. package/.bmad/bmm/workflows/4-implementation/code-review/backlog_template.md +0 -12
  145. package/.bmad/bmm/workflows/4-implementation/code-review/checklist.md +0 -22
  146. package/.bmad/bmm/workflows/4-implementation/code-review/instructions.md +0 -398
  147. package/.bmad/bmm/workflows/4-implementation/code-review/workflow.yaml +0 -60
  148. package/.bmad/bmm/workflows/4-implementation/correct-course/checklist.md +0 -279
  149. package/.bmad/bmm/workflows/4-implementation/correct-course/instructions.md +0 -206
  150. package/.bmad/bmm/workflows/4-implementation/correct-course/workflow.yaml +0 -56
  151. package/.bmad/bmm/workflows/4-implementation/create-story/checklist.md +0 -240
  152. package/.bmad/bmm/workflows/4-implementation/create-story/instructions.md +0 -256
  153. package/.bmad/bmm/workflows/4-implementation/create-story/template.md +0 -51
  154. package/.bmad/bmm/workflows/4-implementation/create-story/workflow.yaml +0 -71
  155. package/.bmad/bmm/workflows/4-implementation/dev-story/checklist.md +0 -38
  156. package/.bmad/bmm/workflows/4-implementation/dev-story/instructions.md +0 -267
  157. package/.bmad/bmm/workflows/4-implementation/dev-story/workflow.yaml +0 -56
  158. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/checklist.md +0 -17
  159. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/instructions.md +0 -164
  160. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/template.md +0 -76
  161. package/.bmad/bmm/workflows/4-implementation/epic-tech-context/workflow.yaml +0 -57
  162. package/.bmad/bmm/workflows/4-implementation/retrospective/instructions.md +0 -1443
  163. package/.bmad/bmm/workflows/4-implementation/retrospective/workflow.yaml +0 -56
  164. package/.bmad/bmm/workflows/4-implementation/sprint-planning/checklist.md +0 -33
  165. package/.bmad/bmm/workflows/4-implementation/sprint-planning/instructions.md +0 -234
  166. package/.bmad/bmm/workflows/4-implementation/sprint-planning/sprint-status-template.yaml +0 -55
  167. package/.bmad/bmm/workflows/4-implementation/sprint-planning/workflow.yaml +0 -49
  168. package/.bmad/bmm/workflows/4-implementation/story-context/checklist.md +0 -16
  169. package/.bmad/bmm/workflows/4-implementation/story-context/context-template.xml +0 -34
  170. package/.bmad/bmm/workflows/4-implementation/story-context/instructions.md +0 -209
  171. package/.bmad/bmm/workflows/4-implementation/story-context/workflow.yaml +0 -61
  172. package/.bmad/bmm/workflows/4-implementation/story-done/instructions.md +0 -111
  173. package/.bmad/bmm/workflows/4-implementation/story-done/workflow.yaml +0 -26
  174. package/.bmad/bmm/workflows/4-implementation/story-ready/instructions.md +0 -117
  175. package/.bmad/bmm/workflows/4-implementation/story-ready/workflow.yaml +0 -23
  176. package/.bmad/bmm/workflows/document-project/checklist.md +0 -245
  177. package/.bmad/bmm/workflows/document-project/documentation-requirements.csv +0 -12
  178. package/.bmad/bmm/workflows/document-project/instructions.md +0 -222
  179. package/.bmad/bmm/workflows/document-project/templates/deep-dive-template.md +0 -345
  180. package/.bmad/bmm/workflows/document-project/templates/index-template.md +0 -169
  181. package/.bmad/bmm/workflows/document-project/templates/project-overview-template.md +0 -103
  182. package/.bmad/bmm/workflows/document-project/templates/project-scan-report-schema.json +0 -160
  183. package/.bmad/bmm/workflows/document-project/templates/source-tree-template.md +0 -135
  184. package/.bmad/bmm/workflows/document-project/workflow.yaml +0 -29
  185. package/.bmad/bmm/workflows/document-project/workflows/deep-dive-instructions.md +0 -298
  186. package/.bmad/bmm/workflows/document-project/workflows/deep-dive.yaml +0 -31
  187. package/.bmad/bmm/workflows/document-project/workflows/full-scan-instructions.md +0 -1106
  188. package/.bmad/bmm/workflows/document-project/workflows/full-scan.yaml +0 -31
  189. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-helpers.md +0 -127
  190. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-library.json +0 -90
  191. package/.bmad/bmm/workflows/frame-expert/_shared/excalidraw-templates.yaml +0 -127
  192. package/.bmad/bmm/workflows/frame-expert/_shared/validate-json-instructions.md +0 -79
  193. package/.bmad/bmm/workflows/frame-expert/create-dataflow/checklist.md +0 -39
  194. package/.bmad/bmm/workflows/frame-expert/create-dataflow/instructions.md +0 -131
  195. package/.bmad/bmm/workflows/frame-expert/create-dataflow/workflow.yaml +0 -23
  196. package/.bmad/bmm/workflows/frame-expert/create-diagram/checklist.md +0 -43
  197. package/.bmad/bmm/workflows/frame-expert/create-diagram/instructions.md +0 -142
  198. package/.bmad/bmm/workflows/frame-expert/create-diagram/workflow.yaml +0 -24
  199. package/.bmad/bmm/workflows/frame-expert/create-flowchart/checklist.md +0 -49
  200. package/.bmad/bmm/workflows/frame-expert/create-flowchart/instructions.md +0 -242
  201. package/.bmad/bmm/workflows/frame-expert/create-flowchart/workflow.yaml +0 -27
  202. package/.bmad/bmm/workflows/frame-expert/create-wireframe/checklist.md +0 -38
  203. package/.bmad/bmm/workflows/frame-expert/create-wireframe/instructions.md +0 -133
  204. package/.bmad/bmm/workflows/frame-expert/create-wireframe/workflow.yaml +0 -23
  205. package/.bmad/bmm/workflows/techdoc/documentation-standards.md +0 -262
  206. package/.bmad/bmm/workflows/testarch/atdd/atdd-checklist-template.md +0 -363
  207. package/.bmad/bmm/workflows/testarch/atdd/checklist.md +0 -373
  208. package/.bmad/bmm/workflows/testarch/atdd/instructions.md +0 -785
  209. package/.bmad/bmm/workflows/testarch/atdd/workflow.yaml +0 -45
  210. package/.bmad/bmm/workflows/testarch/automate/checklist.md +0 -580
  211. package/.bmad/bmm/workflows/testarch/automate/instructions.md +0 -1303
  212. package/.bmad/bmm/workflows/testarch/automate/workflow.yaml +0 -52
  213. package/.bmad/bmm/workflows/testarch/ci/checklist.md +0 -246
  214. package/.bmad/bmm/workflows/testarch/ci/github-actions-template.yaml +0 -165
  215. package/.bmad/bmm/workflows/testarch/ci/gitlab-ci-template.yaml +0 -128
  216. package/.bmad/bmm/workflows/testarch/ci/instructions.md +0 -517
  217. package/.bmad/bmm/workflows/testarch/ci/workflow.yaml +0 -45
  218. package/.bmad/bmm/workflows/testarch/framework/checklist.md +0 -321
  219. package/.bmad/bmm/workflows/testarch/framework/instructions.md +0 -455
  220. package/.bmad/bmm/workflows/testarch/framework/workflow.yaml +0 -47
  221. package/.bmad/bmm/workflows/testarch/nfr-assess/checklist.md +0 -405
  222. package/.bmad/bmm/workflows/testarch/nfr-assess/instructions.md +0 -722
  223. package/.bmad/bmm/workflows/testarch/nfr-assess/nfr-report-template.md +0 -443
  224. package/.bmad/bmm/workflows/testarch/nfr-assess/workflow.yaml +0 -47
  225. package/.bmad/bmm/workflows/testarch/test-design/checklist.md +0 -234
  226. package/.bmad/bmm/workflows/testarch/test-design/instructions.md +0 -782
  227. package/.bmad/bmm/workflows/testarch/test-design/test-design-template.md +0 -285
  228. package/.bmad/bmm/workflows/testarch/test-design/workflow.yaml +0 -48
  229. package/.bmad/bmm/workflows/testarch/test-review/checklist.md +0 -470
  230. package/.bmad/bmm/workflows/testarch/test-review/instructions.md +0 -608
  231. package/.bmad/bmm/workflows/testarch/test-review/test-review-template.md +0 -388
  232. package/.bmad/bmm/workflows/testarch/test-review/workflow.yaml +0 -46
  233. package/.bmad/bmm/workflows/testarch/trace/checklist.md +0 -654
  234. package/.bmad/bmm/workflows/testarch/trace/instructions.md +0 -1045
  235. package/.bmad/bmm/workflows/testarch/trace/trace-template.md +0 -673
  236. package/.bmad/bmm/workflows/testarch/trace/workflow.yaml +0 -55
  237. package/.bmad/bmm/workflows/workflow-status/init/instructions.md +0 -334
  238. package/.bmad/bmm/workflows/workflow-status/init/workflow.yaml +0 -28
  239. package/.bmad/bmm/workflows/workflow-status/instructions.md +0 -388
  240. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-brownfield.yaml +0 -138
  241. package/.bmad/bmm/workflows/workflow-status/paths/enterprise-greenfield.yaml +0 -126
  242. package/.bmad/bmm/workflows/workflow-status/paths/game-design.yaml +0 -52
  243. package/.bmad/bmm/workflows/workflow-status/paths/method-brownfield.yaml +0 -122
  244. package/.bmad/bmm/workflows/workflow-status/paths/method-greenfield.yaml +0 -113
  245. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-brownfield.yaml +0 -58
  246. package/.bmad/bmm/workflows/workflow-status/paths/quick-flow-greenfield.yaml +0 -47
  247. package/.bmad/bmm/workflows/workflow-status/project-levels.yaml +0 -59
  248. package/.bmad/bmm/workflows/workflow-status/workflow-status-template.yaml +0 -24
  249. package/.bmad/bmm/workflows/workflow-status/workflow.yaml +0 -28
  250. package/.bmad/core/agents/bmad-master.md +0 -72
  251. package/.bmad/core/agents/bmad-web-orchestrator.agent.xml +0 -113
  252. package/.bmad/core/config.yaml +0 -11
  253. package/.bmad/core/tasks/adv-elicit-methods.csv +0 -39
  254. package/.bmad/core/tasks/advanced-elicitation-methods.csv +0 -21
  255. package/.bmad/core/tasks/advanced-elicitation.xml +0 -106
  256. package/.bmad/core/tasks/index-docs.xml +0 -65
  257. package/.bmad/core/tasks/validate-workflow.xml +0 -89
  258. package/.bmad/core/tasks/workflow.xml +0 -270
  259. package/.bmad/core/tools/shard-doc.xml +0 -109
  260. package/.bmad/core/workflows/brainstorming/README.md +0 -261
  261. package/.bmad/core/workflows/brainstorming/brain-methods.csv +0 -36
  262. package/.bmad/core/workflows/brainstorming/instructions.md +0 -315
  263. package/.bmad/core/workflows/brainstorming/template.md +0 -106
  264. package/.bmad/core/workflows/brainstorming/workflow.yaml +0 -38
  265. package/.bmad/core/workflows/party-mode/instructions.md +0 -203
  266. package/.bmad/core/workflows/party-mode/workflow.yaml +0 -28
  267. package/.bmad/docs/claude-code-instructions.md +0 -25
  268. package/.claude/commands/BMad/analyst.md +0 -88
  269. package/.claude/commands/BMad/architect.md +0 -89
  270. package/.claude/commands/BMad/bmad-master.md +0 -114
  271. package/.claude/commands/BMad/bmad-orchestrator.md +0 -151
  272. package/.claude/commands/BMad/dev.md +0 -85
  273. package/.claude/commands/BMad/pm.md +0 -88
  274. package/.claude/commands/BMad/po.md +0 -83
  275. package/.claude/commands/BMad/qa.md +0 -91
  276. package/.claude/commands/BMad/sm.md +0 -69
  277. package/.claude/commands/BMad/tasks/advanced-elicitation.md +0 -123
  278. package/.claude/commands/BMad/tasks/apply-qa-fixes.md +0 -154
  279. package/.claude/commands/BMad/tasks/brownfield-create-epic.md +0 -166
  280. package/.claude/commands/BMad/tasks/brownfield-create-story.md +0 -153
  281. package/.claude/commands/BMad/tasks/correct-course.md +0 -76
  282. package/.claude/commands/BMad/tasks/create-brownfield-story.md +0 -318
  283. package/.claude/commands/BMad/tasks/create-deep-research-prompt.md +0 -284
  284. package/.claude/commands/BMad/tasks/create-doc.md +0 -107
  285. package/.claude/commands/BMad/tasks/create-next-story.md +0 -118
  286. package/.claude/commands/BMad/tasks/document-project.md +0 -349
  287. package/.claude/commands/BMad/tasks/execute-checklist.md +0 -92
  288. package/.claude/commands/BMad/tasks/facilitate-brainstorming-session.md +0 -142
  289. package/.claude/commands/BMad/tasks/generate-ai-frontend-prompt.md +0 -57
  290. package/.claude/commands/BMad/tasks/index-docs.md +0 -179
  291. package/.claude/commands/BMad/tasks/kb-mode-interaction.md +0 -81
  292. package/.claude/commands/BMad/tasks/nfr-assess.md +0 -349
  293. package/.claude/commands/BMad/tasks/qa-gate.md +0 -167
  294. package/.claude/commands/BMad/tasks/review-story.md +0 -320
  295. package/.claude/commands/BMad/tasks/risk-profile.md +0 -359
  296. package/.claude/commands/BMad/tasks/shard-doc.md +0 -191
  297. package/.claude/commands/BMad/tasks/test-design.md +0 -180
  298. package/.claude/commands/BMad/tasks/trace-requirements.md +0 -270
  299. package/.claude/commands/BMad/tasks/validate-next-story.md +0 -140
  300. package/.claude/commands/BMad/ux-expert.md +0 -73
  301. package/.claude/commands/bmad/bmm/agents/analyst.md +0 -14
  302. package/.claude/commands/bmad/bmm/agents/architect.md +0 -14
  303. package/.claude/commands/bmad/bmm/agents/dev.md +0 -14
  304. package/.claude/commands/bmad/bmm/agents/frame-expert.md +0 -14
  305. package/.claude/commands/bmad/bmm/agents/pm.md +0 -14
  306. package/.claude/commands/bmad/bmm/agents/sm.md +0 -14
  307. package/.claude/commands/bmad/bmm/agents/tea.md +0 -14
  308. package/.claude/commands/bmad/bmm/agents/tech-writer.md +0 -14
  309. package/.claude/commands/bmad/bmm/agents/ux-designer.md +0 -14
  310. package/.claude/commands/bmad/bmm/workflows/architecture.md +0 -13
  311. package/.claude/commands/bmad/bmm/workflows/brainstorm-project.md +0 -13
  312. package/.claude/commands/bmad/bmm/workflows/code-review.md +0 -13
  313. package/.claude/commands/bmad/bmm/workflows/correct-course.md +0 -13
  314. package/.claude/commands/bmad/bmm/workflows/create-dataflow.md +0 -13
  315. package/.claude/commands/bmad/bmm/workflows/create-diagram.md +0 -13
  316. package/.claude/commands/bmad/bmm/workflows/create-epics-and-stories.md +0 -13
  317. package/.claude/commands/bmad/bmm/workflows/create-flowchart.md +0 -13
  318. package/.claude/commands/bmad/bmm/workflows/create-story.md +0 -13
  319. package/.claude/commands/bmad/bmm/workflows/create-ux-design.md +0 -13
  320. package/.claude/commands/bmad/bmm/workflows/create-wireframe.md +0 -13
  321. package/.claude/commands/bmad/bmm/workflows/dev-story.md +0 -13
  322. package/.claude/commands/bmad/bmm/workflows/document-project.md +0 -13
  323. package/.claude/commands/bmad/bmm/workflows/domain-research.md +0 -13
  324. package/.claude/commands/bmad/bmm/workflows/epic-tech-context.md +0 -13
  325. package/.claude/commands/bmad/bmm/workflows/implementation-readiness.md +0 -13
  326. package/.claude/commands/bmad/bmm/workflows/prd.md +0 -13
  327. package/.claude/commands/bmad/bmm/workflows/product-brief.md +0 -13
  328. package/.claude/commands/bmad/bmm/workflows/research.md +0 -13
  329. package/.claude/commands/bmad/bmm/workflows/retrospective.md +0 -13
  330. package/.claude/commands/bmad/bmm/workflows/sprint-planning.md +0 -13
  331. package/.claude/commands/bmad/bmm/workflows/story-context.md +0 -13
  332. package/.claude/commands/bmad/bmm/workflows/story-done.md +0 -13
  333. package/.claude/commands/bmad/bmm/workflows/story-ready.md +0 -13
  334. package/.claude/commands/bmad/bmm/workflows/tech-spec.md +0 -13
  335. package/.claude/commands/bmad/bmm/workflows/workflow-init.md +0 -13
  336. package/.claude/commands/bmad/bmm/workflows/workflow-status.md +0 -13
  337. package/.claude/commands/bmad/core/agents/bmad-master.md +0 -14
  338. package/.claude/commands/bmad/core/tasks/advanced-elicitation.md +0 -9
  339. package/.claude/commands/bmad/core/tasks/index-docs.md +0 -9
  340. package/.claude/commands/bmad/core/tools/shard-doc.md +0 -9
  341. package/.claude/commands/bmad/core/workflows/brainstorming.md +0 -13
  342. package/.claude/commands/bmad/core/workflows/party-mode.md +0 -13
  343. package/.claude/github-star-reminder.txt +0 -1
  344. package/.claude/hooks/bmad-party-manager.sh +0 -225
  345. package/.claude/hooks/stop.sh +0 -221
  346. package/.claude/piper-voices-dir.txt +0 -1
  347. package/.claude/plugins/bmad-voices-enabled.flag +0 -0
  348. package/.mcp.json +0 -88
  349. package/RELEASE_NOTES_v2.4.0_DRAFT.md +0 -116
  350. package/RELEASE_NOTES_v2.4.1_DRAFT.md +0 -61
  351. package/docs/2025-11-15_15-14-33.snagx +0 -0
  352. package/docs/Screenshot 2025-11-15 151325.png +0 -0
  353. package/docs/Screenshot 2025-11-15 151432.png +0 -0
  354. package/docs/macos-piper-issue.md +0 -172
  355. package/docs/stargazer-cms-prd.md +0 -1918
  356. package/docs/whatsapp-plugin-github-issue.md +0 -393
  357. package/docs/whatsapp-tts-plugin-feasibility.md +0 -418
  358. package/docs/whatsapp-tts-standalone-plugin.md +0 -628
  359. package/github-profile-draft.md +0 -57
  360. package/linkedin/vibe-coding-and-pulseaudio.md +0 -121
  361. package/mcp-server/agentvibes.db +0 -0
  362. package/scripts/audio-tunnel.config +0 -17
  363. package/v4-backup/.bmad-core/agent-teams/team-all.yaml +0 -15
  364. package/v4-backup/.bmad-core/agent-teams/team-fullstack.yaml +0 -19
  365. package/v4-backup/.bmad-core/agent-teams/team-ide-minimal.yaml +0 -11
  366. package/v4-backup/.bmad-core/agent-teams/team-no-ui.yaml +0 -14
  367. package/v4-backup/.bmad-core/agents/analyst.md +0 -84
  368. package/v4-backup/.bmad-core/agents/architect.md +0 -85
  369. package/v4-backup/.bmad-core/agents/bmad-master.md +0 -110
  370. package/v4-backup/.bmad-core/agents/bmad-orchestrator.md +0 -147
  371. package/v4-backup/.bmad-core/agents/dev.md +0 -81
  372. package/v4-backup/.bmad-core/agents/pm.md +0 -84
  373. package/v4-backup/.bmad-core/agents/po.md +0 -79
  374. package/v4-backup/.bmad-core/agents/qa.md +0 -87
  375. package/v4-backup/.bmad-core/agents/sm.md +0 -65
  376. package/v4-backup/.bmad-core/agents/ux-expert.md +0 -69
  377. package/v4-backup/.bmad-core/checklists/architect-checklist.md +0 -440
  378. package/v4-backup/.bmad-core/checklists/change-checklist.md +0 -184
  379. package/v4-backup/.bmad-core/checklists/pm-checklist.md +0 -372
  380. package/v4-backup/.bmad-core/checklists/po-master-checklist.md +0 -434
  381. package/v4-backup/.bmad-core/checklists/story-dod-checklist.md +0 -96
  382. package/v4-backup/.bmad-core/checklists/story-draft-checklist.md +0 -155
  383. package/v4-backup/.bmad-core/core-config.yaml +0 -22
  384. package/v4-backup/.bmad-core/data/bmad-kb.md +0 -809
  385. package/v4-backup/.bmad-core/data/brainstorming-techniques.md +0 -38
  386. package/v4-backup/.bmad-core/data/elicitation-methods.md +0 -156
  387. package/v4-backup/.bmad-core/data/technical-preferences.md +0 -5
  388. package/v4-backup/.bmad-core/data/test-levels-framework.md +0 -148
  389. package/v4-backup/.bmad-core/data/test-priorities-matrix.md +0 -174
  390. package/v4-backup/.bmad-core/enhanced-ide-development-workflow.md +0 -248
  391. package/v4-backup/.bmad-core/install-manifest.yaml +0 -230
  392. package/v4-backup/.bmad-core/tasks/advanced-elicitation.md +0 -119
  393. package/v4-backup/.bmad-core/tasks/apply-qa-fixes.md +0 -150
  394. package/v4-backup/.bmad-core/tasks/brownfield-create-epic.md +0 -162
  395. package/v4-backup/.bmad-core/tasks/brownfield-create-story.md +0 -149
  396. package/v4-backup/.bmad-core/tasks/correct-course.md +0 -72
  397. package/v4-backup/.bmad-core/tasks/create-brownfield-story.md +0 -314
  398. package/v4-backup/.bmad-core/tasks/create-deep-research-prompt.md +0 -280
  399. package/v4-backup/.bmad-core/tasks/create-doc.md +0 -103
  400. package/v4-backup/.bmad-core/tasks/create-next-story.md +0 -114
  401. package/v4-backup/.bmad-core/tasks/document-project.md +0 -345
  402. package/v4-backup/.bmad-core/tasks/execute-checklist.md +0 -88
  403. package/v4-backup/.bmad-core/tasks/facilitate-brainstorming-session.md +0 -138
  404. package/v4-backup/.bmad-core/tasks/generate-ai-frontend-prompt.md +0 -53
  405. package/v4-backup/.bmad-core/tasks/index-docs.md +0 -175
  406. package/v4-backup/.bmad-core/tasks/kb-mode-interaction.md +0 -77
  407. package/v4-backup/.bmad-core/tasks/nfr-assess.md +0 -345
  408. package/v4-backup/.bmad-core/tasks/qa-gate.md +0 -163
  409. package/v4-backup/.bmad-core/tasks/review-story.md +0 -316
  410. package/v4-backup/.bmad-core/tasks/risk-profile.md +0 -355
  411. package/v4-backup/.bmad-core/tasks/shard-doc.md +0 -187
  412. package/v4-backup/.bmad-core/tasks/test-design.md +0 -176
  413. package/v4-backup/.bmad-core/tasks/trace-requirements.md +0 -266
  414. package/v4-backup/.bmad-core/tasks/validate-next-story.md +0 -136
  415. package/v4-backup/.bmad-core/templates/architecture-tmpl.yaml +0 -651
  416. package/v4-backup/.bmad-core/templates/brainstorming-output-tmpl.yaml +0 -156
  417. package/v4-backup/.bmad-core/templates/brownfield-architecture-tmpl.yaml +0 -477
  418. package/v4-backup/.bmad-core/templates/brownfield-prd-tmpl.yaml +0 -281
  419. package/v4-backup/.bmad-core/templates/competitor-analysis-tmpl.yaml +0 -307
  420. package/v4-backup/.bmad-core/templates/front-end-architecture-tmpl.yaml +0 -219
  421. package/v4-backup/.bmad-core/templates/front-end-spec-tmpl.yaml +0 -350
  422. package/v4-backup/.bmad-core/templates/fullstack-architecture-tmpl.yaml +0 -824
  423. package/v4-backup/.bmad-core/templates/market-research-tmpl.yaml +0 -253
  424. package/v4-backup/.bmad-core/templates/prd-tmpl.yaml +0 -203
  425. package/v4-backup/.bmad-core/templates/project-brief-tmpl.yaml +0 -222
  426. package/v4-backup/.bmad-core/templates/qa-gate-tmpl.yaml +0 -103
  427. package/v4-backup/.bmad-core/templates/story-tmpl.yaml +0 -138
  428. package/v4-backup/.bmad-core/user-guide.md +0 -577
  429. package/v4-backup/.bmad-core/utils/bmad-doc-template.md +0 -327
  430. package/v4-backup/.bmad-core/utils/workflow-management.md +0 -71
  431. package/v4-backup/.bmad-core/workflows/brownfield-fullstack.yaml +0 -298
  432. package/v4-backup/.bmad-core/workflows/brownfield-service.yaml +0 -188
  433. package/v4-backup/.bmad-core/workflows/brownfield-ui.yaml +0 -198
  434. package/v4-backup/.bmad-core/workflows/greenfield-fullstack.yaml +0 -241
  435. package/v4-backup/.bmad-core/workflows/greenfield-service.yaml +0 -207
  436. package/v4-backup/.bmad-core/workflows/greenfield-ui.yaml +0 -236
  437. package/v4-backup/.bmad-core/working-in-the-brownfield.md +0 -606
@@ -1,608 +0,0 @@
1
- # Test Quality Review - Instructions v4.0
2
-
3
- **Workflow:** `testarch-test-review`
4
- **Purpose:** Review test quality using TEA's comprehensive knowledge base and validate against best practices for maintainability, determinism, isolation, and flakiness prevention
5
- **Agent:** Test Architect (TEA)
6
- **Format:** Pure Markdown v4.0 (no XML blocks)
7
-
8
- ---
9
-
10
- ## Overview
11
-
12
- This workflow performs comprehensive test quality reviews using TEA's knowledge base of best practices. It validates tests against proven patterns for fixture architecture, network-first safeguards, data factories, determinism, isolation, and flakiness prevention. The review generates actionable feedback with quality scoring.
13
-
14
- **Key Capabilities:**
15
-
16
- - **Knowledge-Based Review**: Applies patterns from tea-index.csv fragments
17
- - **Quality Scoring**: 0-100 score based on violations and best practices
18
- - **Multi-Scope**: Review single file, directory, or entire test suite
19
- - **Pattern Detection**: Identifies flaky patterns, hard waits, race conditions
20
- - **Best Practice Validation**: BDD format, test IDs, priorities, assertions
21
- - **Actionable Feedback**: Critical issues (must fix) vs recommendations (should fix)
22
- - **Integration**: Works with story files, test-design, acceptance criteria
23
-
24
- ---
25
-
26
- ## Prerequisites
27
-
28
- **Required:**
29
-
30
- - Test file(s) to review (auto-discovered or explicitly provided)
31
- - Test framework configuration (playwright.config.ts, jest.config.js, etc.)
32
-
33
- **Recommended:**
34
-
35
- - Story file with acceptance criteria (for context)
36
- - Test design document (for priority context)
37
- - Knowledge base fragments available in tea-index.csv
38
-
39
- **Halt Conditions:**
40
-
41
- - If test file path is invalid or file doesn't exist, halt and request correction
42
- - If test_dir is empty (no tests found), halt and notify user
43
-
44
- ---
45
-
46
- ## Workflow Steps
47
-
48
- ### Step 1: Load Context and Knowledge Base
49
-
50
- **Actions:**
51
-
52
- 1. Load relevant knowledge fragments from `{project-root}/.bmad/bmm/testarch/tea-index.csv`:
53
- - `test-quality.md` - Definition of Done (deterministic tests, isolated with cleanup, explicit assertions, <300 lines, <1.5 min, 658 lines, 5 examples)
54
- - `fixture-architecture.md` - Pure function → Fixture → mergeTests composition with auto-cleanup (406 lines, 5 examples)
55
- - `network-first.md` - Route intercept before navigate to prevent race conditions (intercept before navigate, HAR capture, deterministic waiting, 489 lines, 5 examples)
56
- - `data-factories.md` - Factory functions with faker: overrides, nested factories, API-first setup (498 lines, 5 examples)
57
- - `test-levels-framework.md` - E2E vs API vs Component vs Unit appropriateness with decision matrix (467 lines, 4 examples)
58
- - `playwright-config.md` - Environment-based configuration with fail-fast validation (722 lines, 5 examples)
59
- - `component-tdd.md` - Red-Green-Refactor patterns with provider isolation, accessibility, visual regression (480 lines, 4 examples)
60
- - `selective-testing.md` - Duplicate coverage detection with tag-based, spec filter, diff-based selection (727 lines, 4 examples)
61
- - `test-healing-patterns.md` - Common failure patterns: stale selectors, race conditions, dynamic data, network errors, hard waits (648 lines, 5 examples)
62
- - `selector-resilience.md` - Selector best practices (data-testid > ARIA > text > CSS hierarchy, anti-patterns, 541 lines, 4 examples)
63
- - `timing-debugging.md` - Race condition prevention and async debugging techniques (370 lines, 3 examples)
64
- - `ci-burn-in.md` - Flaky test detection with 10-iteration burn-in loop (678 lines, 4 examples)
65
-
66
- 2. Determine review scope:
67
- - **single**: Review one test file (`test_file_path` provided)
68
- - **directory**: Review all tests in directory (`test_dir` provided)
69
- - **suite**: Review entire test suite (discover all test files)
70
-
71
- 3. Auto-discover related artifacts (if `auto_discover_story: true`):
72
- - Extract test ID from filename (e.g., `1.3-E2E-001.spec.ts` → story 1.3)
73
- - Search for story file (`story-1.3.md`)
74
- - Search for test design (`test-design-story-1.3.md` or `test-design-epic-1.md`)
75
-
76
- 4. Read story file for context (if available):
77
- - Extract acceptance criteria
78
- - Extract priority classification
79
- - Extract expected test IDs
80
-
81
- **Output:** Complete knowledge base loaded, review scope determined, context gathered
82
-
83
- ---
84
-
85
- ### Step 2: Discover and Parse Test Files
86
-
87
- **Actions:**
88
-
89
- 1. **Discover test files** based on scope:
90
- - **single**: Use `test_file_path` variable
91
- - **directory**: Use `glob` to find all test files in `test_dir` (e.g., `*.spec.ts`, `*.test.js`)
92
- - **suite**: Use `glob` to find all test files recursively from project root
93
-
94
- 2. **Parse test file metadata**:
95
- - File path and name
96
- - File size (warn if >15 KB or >300 lines)
97
- - Test framework detected (Playwright, Jest, Cypress, Vitest, etc.)
98
- - Imports and dependencies
99
- - Test structure (describe/context/it blocks)
100
-
101
- 3. **Extract test structure**:
102
- - Count of describe blocks (test suites)
103
- - Count of it/test blocks (individual tests)
104
- - Test IDs (if present, e.g., `test.describe('1.3-E2E-001')`)
105
- - Priority markers (if present, e.g., `test.describe.only` for P0)
106
- - BDD structure (Given-When-Then comments or steps)
107
-
108
- 4. **Identify test patterns**:
109
- - Fixtures used
110
- - Data factories used
111
- - Network interception patterns
112
- - Assertions used (expect, assert, toHaveText, etc.)
113
- - Waits and timeouts (page.waitFor, sleep, hardcoded delays)
114
- - Conditionals (if/else, switch, ternary)
115
- - Try/catch blocks
116
- - Shared state or globals
117
-
118
- **Output:** Complete test file inventory with structure and pattern analysis
119
-
120
- ---
121
-
122
- ### Step 3: Validate Against Quality Criteria
123
-
124
- **Actions:**
125
-
126
- For each test file, validate against quality criteria (configurable via workflow variables):
127
-
128
- #### 1. BDD Format Validation (if `check_given_when_then: true`)
129
-
130
- - ✅ **PASS**: Tests use Given-When-Then structure (comments or step organization)
131
- - ⚠️ **WARN**: Tests have some structure but not explicit GWT
132
- - ❌ **FAIL**: Tests lack clear structure, hard to understand intent
133
-
134
- **Knowledge Fragment**: test-quality.md, tdd-cycles.md
135
-
136
- ---
137
-
138
- #### 2. Test ID Conventions (if `check_test_ids: true`)
139
-
140
- - ✅ **PASS**: Test IDs present and follow convention (e.g., `1.3-E2E-001`, `2.1-API-005`)
141
- - ⚠️ **WARN**: Some test IDs missing or inconsistent
142
- - ❌ **FAIL**: No test IDs, can't trace tests to requirements
143
-
144
- **Knowledge Fragment**: traceability.md, test-quality.md
145
-
146
- ---
147
-
148
- #### 3. Priority Markers (if `check_priority_markers: true`)
149
-
150
- - ✅ **PASS**: Tests classified as P0/P1/P2/P3 (via markers or test-design reference)
151
- - ⚠️ **WARN**: Some priority classifications missing
152
- - ❌ **FAIL**: No priority classification, can't determine criticality
153
-
154
- **Knowledge Fragment**: test-priorities.md, risk-governance.md
155
-
156
- ---
157
-
158
- #### 4. Hard Waits Detection (if `check_hard_waits: true`)
159
-
160
- - ✅ **PASS**: No hard waits detected (no `sleep()`, `wait(5000)`, hardcoded delays)
161
- - ⚠️ **WARN**: Some hard waits used but with justification comments
162
- - ❌ **FAIL**: Hard waits detected without justification (flakiness risk)
163
-
164
- **Patterns to detect:**
165
-
166
- - `sleep(1000)`, `setTimeout()`, `delay()`
167
- - `page.waitForTimeout(5000)` without explicit reason
168
- - `await new Promise(resolve => setTimeout(resolve, 3000))`
169
-
170
- **Knowledge Fragment**: test-quality.md, network-first.md
171
-
172
- ---
173
-
174
- #### 5. Determinism Check (if `check_determinism: true`)
175
-
176
- - ✅ **PASS**: Tests are deterministic (no conditionals, no try/catch abuse, no random values)
177
- - ⚠️ **WARN**: Some conditionals but with clear justification
178
- - ❌ **FAIL**: Tests use if/else, switch, or try/catch to control flow (flakiness risk)
179
-
180
- **Patterns to detect:**
181
-
182
- - `if (condition) { test logic }` - tests should work deterministically
183
- - `try { test } catch { fallback }` - tests shouldn't swallow errors
184
- - `Math.random()`, `Date.now()` without factory abstraction
185
-
186
- **Knowledge Fragment**: test-quality.md, data-factories.md
187
-
188
- ---
189
-
190
- #### 6. Isolation Validation (if `check_isolation: true`)
191
-
192
- - ✅ **PASS**: Tests clean up resources, no shared state, can run in any order
193
- - ⚠️ **WARN**: Some cleanup missing but isolated enough
194
- - ❌ **FAIL**: Tests share state, depend on execution order, leave resources
195
-
196
- **Patterns to check:**
197
-
198
- - afterEach/afterAll cleanup hooks present
199
- - No global variables mutated
200
- - Database/API state cleaned up after tests
201
- - Test data deleted or marked inactive
202
-
203
- **Knowledge Fragment**: test-quality.md, data-factories.md
204
-
205
- ---
206
-
207
- #### 7. Fixture Patterns (if `check_fixture_patterns: true`)
208
-
209
- - ✅ **PASS**: Uses pure function → Fixture → mergeTests pattern
210
- - ⚠️ **WARN**: Some fixtures used but not consistently
211
- - ❌ **FAIL**: No fixtures, tests repeat setup code (maintainability risk)
212
-
213
- **Patterns to check:**
214
-
215
- - Fixtures defined (e.g., `test.extend({ customFixture: async ({}, use) => { ... }})`)
216
- - Pure functions used for fixture logic
217
- - mergeTests used to combine fixtures
218
- - No beforeEach with complex setup (should be in fixtures)
219
-
220
- **Knowledge Fragment**: fixture-architecture.md
221
-
222
- ---
223
-
224
- #### 8. Data Factories (if `check_data_factories: true`)
225
-
226
- - ✅ **PASS**: Uses factory functions with overrides, API-first setup
227
- - ⚠️ **WARN**: Some factories used but also hardcoded data
228
- - ❌ **FAIL**: Hardcoded test data, magic strings/numbers (maintainability risk)
229
-
230
- **Patterns to check:**
231
-
232
- - Factory functions defined (e.g., `createUser()`, `generateInvoice()`)
233
- - Factories use faker.js or similar for realistic data
234
- - Factories accept overrides (e.g., `createUser({ email: 'custom@example.com' })`)
235
- - API-first setup (create via API, test via UI)
236
-
237
- **Knowledge Fragment**: data-factories.md
238
-
239
- ---
240
-
241
- #### 9. Network-First Pattern (if `check_network_first: true`)
242
-
243
- - ✅ **PASS**: Route interception set up BEFORE navigation (race condition prevention)
244
- - ⚠️ **WARN**: Some routes intercepted correctly, others after navigation
245
- - ❌ **FAIL**: Route interception after navigation (race condition risk)
246
-
247
- **Patterns to check:**
248
-
249
- - `page.route()` called before `page.goto()`
250
- - `page.waitForResponse()` used with explicit URL pattern
251
- - No navigation followed immediately by route setup
252
-
253
- **Knowledge Fragment**: network-first.md
254
-
255
- ---
256
-
257
- #### 10. Assertions (if `check_assertions: true`)
258
-
259
- - ✅ **PASS**: Explicit assertions present (expect, assert, toHaveText)
260
- - ⚠️ **WARN**: Some tests rely on implicit waits instead of assertions
261
- - ❌ **FAIL**: Missing assertions, tests don't verify behavior
262
-
263
- **Patterns to check:**
264
-
265
- - Each test has at least one assertion
266
- - Assertions are specific (not just truthy checks)
267
- - Assertions use framework-provided matchers (toHaveText, toBeVisible)
268
-
269
- **Knowledge Fragment**: test-quality.md
270
-
271
- ---
272
-
273
- #### 11. Test Length (if `check_test_length: true`)
274
-
275
- - ✅ **PASS**: Test file ≤200 lines (ideal), ≤300 lines (acceptable)
276
- - ⚠️ **WARN**: Test file 301-500 lines (consider splitting)
277
- - ❌ **FAIL**: Test file >500 lines (too large, maintainability risk)
278
-
279
- **Knowledge Fragment**: test-quality.md
280
-
281
- ---
282
-
283
- #### 12. Test Duration (if `check_test_duration: true`)
284
-
285
- - ✅ **PASS**: Individual tests ≤1.5 minutes (target: <30 seconds)
286
- - ⚠️ **WARN**: Some tests 1.5-3 minutes (consider optimization)
287
- - ❌ **FAIL**: Tests >3 minutes (too slow, impacts CI/CD)
288
-
289
- **Note:** Duration estimation based on complexity analysis if execution data unavailable
290
-
291
- **Knowledge Fragment**: test-quality.md, selective-testing.md
292
-
293
- ---
294
-
295
- #### 13. Flakiness Patterns (if `check_flakiness_patterns: true`)
296
-
297
- - ✅ **PASS**: No known flaky patterns detected
298
- - ⚠️ **WARN**: Some potential flaky patterns (e.g., tight timeouts, race conditions)
299
- - ❌ **FAIL**: Multiple flaky patterns detected (high flakiness risk)
300
-
301
- **Patterns to detect:**
302
-
303
- - Tight timeouts (e.g., `{ timeout: 1000 }`)
304
- - Race conditions (navigation before route interception)
305
- - Timing-dependent assertions (e.g., checking timestamps)
306
- - Retry logic in tests (hides flakiness)
307
- - Environment-dependent assumptions (hardcoded URLs, ports)
308
-
309
- **Knowledge Fragment**: test-quality.md, network-first.md, ci-burn-in.md
310
-
311
- ---
312
-
313
- ### Step 4: Calculate Quality Score
314
-
315
- **Actions:**
316
-
317
- 1. **Count violations** by severity:
318
- - **Critical (P0)**: Hard waits without justification, no assertions, race conditions, shared state
319
- - **High (P1)**: Missing test IDs, no BDD structure, hardcoded data, missing fixtures
320
- - **Medium (P2)**: Long test files (>300 lines), missing priorities, some conditionals
321
- - **Low (P3)**: Minor style issues, incomplete cleanup, verbose tests
322
-
323
- 2. **Calculate quality score** (if `quality_score_enabled: true`):
324
-
325
- ```
326
- Starting Score: 100
327
-
328
- Critical Violations: -10 points each
329
- High Violations: -5 points each
330
- Medium Violations: -2 points each
331
- Low Violations: -1 point each
332
-
333
- Bonus Points:
334
- + Excellent BDD structure: +5
335
- + Comprehensive fixtures: +5
336
- + Comprehensive data factories: +5
337
- + Network-first pattern: +5
338
- + Perfect isolation: +5
339
- + All test IDs present: +5
340
-
341
- Quality Score: max(0, min(100, Starting Score - Violations + Bonus))
342
- ```
343
-
344
- 3. **Quality Grade**:
345
- - **90-100**: Excellent (A+)
346
- - **80-89**: Good (A)
347
- - **70-79**: Acceptable (B)
348
- - **60-69**: Needs Improvement (C)
349
- - **<60**: Critical Issues (F)
350
-
351
- **Output:** Quality score calculated with violation breakdown
352
-
353
- ---
354
-
355
- ### Step 5: Generate Review Report
356
-
357
- **Actions:**
358
-
359
- 1. **Create review report** using `test-review-template.md`:
360
-
361
- **Header Section:**
362
- - Test file(s) reviewed
363
- - Review date
364
- - Review scope (single/directory/suite)
365
- - Quality score and grade
366
-
367
- **Executive Summary:**
368
- - Overall assessment (Excellent/Good/Needs Improvement/Critical)
369
- - Key strengths
370
- - Key weaknesses
371
- - Recommendation (Approve/Approve with comments/Request changes)
372
-
373
- **Quality Criteria Assessment:**
374
- - Table with all criteria evaluated
375
- - Status for each (PASS/WARN/FAIL)
376
- - Violation count per criterion
377
-
378
- **Critical Issues (Must Fix):**
379
- - Priority P0/P1 violations
380
- - Code location (file:line)
381
- - Explanation of issue
382
- - Recommended fix
383
- - Knowledge base reference
384
-
385
- **Recommendations (Should Fix):**
386
- - Priority P2/P3 violations
387
- - Code location (file:line)
388
- - Explanation of issue
389
- - Recommended improvement
390
- - Knowledge base reference
391
-
392
- **Best Practices Examples:**
393
- - Highlight good patterns found in tests
394
- - Reference knowledge base fragments
395
- - Provide examples for others to follow
396
-
397
- **Knowledge Base References:**
398
- - List all fragments consulted
399
- - Provide links to detailed guidance
400
-
401
- 2. **Generate inline comments** (if `generate_inline_comments: true`):
402
- - Add TODO comments in test files at violation locations
403
- - Format: `// TODO (TEA Review): [Issue description] - See test-review-{filename}.md`
404
- - Never modify test logic, only add comments
405
-
406
- 3. **Generate quality badge** (if `generate_quality_badge: true`):
407
- - Create badge with quality score (e.g., "Test Quality: 87/100 (A)")
408
- - Format for inclusion in README or documentation
409
-
410
- 4. **Append to story file** (if `append_to_story: true` and story file exists):
411
- - Add "Test Quality Review" section to story
412
- - Include quality score and critical issues
413
- - Link to full review report
414
-
415
- **Output:** Comprehensive review report with actionable feedback
416
-
417
- ---
418
-
419
- ### Step 6: Save Outputs and Notify
420
-
421
- **Actions:**
422
-
423
- 1. **Save review report** to `{output_file}`
424
- 2. **Save inline comments** to test files (if enabled)
425
- 3. **Save quality badge** to output folder (if enabled)
426
- 4. **Update story file** (if enabled)
427
- 5. **Generate summary message** for user:
428
- - Quality score and grade
429
- - Critical issue count
430
- - Recommendation
431
-
432
- **Output:** All review artifacts saved and user notified
433
-
434
- ---
435
-
436
- ## Quality Criteria Decision Matrix
437
-
438
- | Criterion | PASS | WARN | FAIL | Knowledge Fragment |
439
- | ------------------ | ------------------------- | -------------- | ------------------- | ----------------------- |
440
- | BDD Format | Given-When-Then present | Some structure | No structure | test-quality.md |
441
- | Test IDs | All tests have IDs | Some missing | No IDs | traceability.md |
442
- | Priority Markers | All classified | Some missing | No classification | test-priorities.md |
443
- | Hard Waits | No hard waits | Some justified | Hard waits present | test-quality.md |
444
- | Determinism | No conditionals/random | Some justified | Conditionals/random | test-quality.md |
445
- | Isolation | Clean up, no shared state | Some gaps | Shared state | test-quality.md |
446
- | Fixture Patterns | Pure fn → Fixture | Some fixtures | No fixtures | fixture-architecture.md |
447
- | Data Factories | Factory functions | Some factories | Hardcoded data | data-factories.md |
448
- | Network-First | Intercept before navigate | Some correct | Race conditions | network-first.md |
449
- | Assertions | Explicit assertions | Some implicit | Missing assertions | test-quality.md |
450
- | Test Length | ≤300 lines | 301-500 lines | >500 lines | test-quality.md |
451
- | Test Duration | ≤1.5 min | 1.5-3 min | >3 min | test-quality.md |
452
- | Flakiness Patterns | No flaky patterns | Some potential | Multiple patterns | ci-burn-in.md |
453
-
454
- ---
455
-
456
- ## Example Review Summary
457
-
458
- ````markdown
459
- # Test Quality Review: auth-login.spec.ts
460
-
461
- **Quality Score**: 78/100 (B - Acceptable)
462
- **Review Date**: 2025-10-14
463
- **Recommendation**: Approve with Comments
464
-
465
- ## Executive Summary
466
-
467
- Overall, the test demonstrates good structure and coverage of the login flow. However, there are several areas for improvement to enhance maintainability and prevent flakiness.
468
-
469
- **Strengths:**
470
-
471
- - Excellent BDD structure with clear Given-When-Then comments
472
- - Good use of test IDs (1.3-E2E-001, 1.3-E2E-002)
473
- - Comprehensive assertions on authentication state
474
-
475
- **Weaknesses:**
476
-
477
- - Hard wait detected (page.waitForTimeout(2000)) - flakiness risk
478
- - Hardcoded test data (email: 'test@example.com') - use factories instead
479
- - Missing fixture for common login setup - DRY violation
480
-
481
- **Recommendation**: Address critical issue (hard wait) before merging. Other improvements can be addressed in follow-up PR.
482
-
483
- ## Critical Issues (Must Fix)
484
-
485
- ### 1. Hard Wait Detected (Line 45)
486
-
487
- **Severity**: P0 (Critical)
488
- **Issue**: `await page.waitForTimeout(2000)` introduces flakiness
489
- **Fix**: Use explicit wait for element or network request instead
490
- **Knowledge**: See test-quality.md, network-first.md
491
-
492
- ```typescript
493
- // ❌ Bad (current)
494
- await page.waitForTimeout(2000);
495
- await expect(page.locator('[data-testid="user-menu"]')).toBeVisible();
496
-
497
- // ✅ Good (recommended)
498
- await expect(page.locator('[data-testid="user-menu"]')).toBeVisible({ timeout: 10000 });
499
- ```
500
- ````
501
-
502
- ## Recommendations (Should Fix)
503
-
504
- ### 1. Use Data Factory for Test User (Lines 23, 32, 41)
505
-
506
- **Severity**: P1 (High)
507
- **Issue**: Hardcoded email 'test@example.com' - maintainability risk
508
- **Fix**: Create factory function for test users
509
- **Knowledge**: See data-factories.md
510
-
511
- ```typescript
512
- // ✅ Good (recommended)
513
- import { createTestUser } from './factories/user-factory';
514
-
515
- const testUser = createTestUser({ role: 'admin' });
516
- await loginPage.login(testUser.email, testUser.password);
517
- ```
518
-
519
- ### 2. Extract Login Setup to Fixture (Lines 18-28)
520
-
521
- **Severity**: P1 (High)
522
- **Issue**: Login setup repeated across tests - DRY violation
523
- **Fix**: Create fixture for authenticated state
524
- **Knowledge**: See fixture-architecture.md
525
-
526
- ```typescript
527
- // ✅ Good (recommended)
528
- const test = base.extend({
529
- authenticatedPage: async ({ page }, use) => {
530
- const user = createTestUser();
531
- await loginPage.login(user.email, user.password);
532
- await use(page);
533
- },
534
- });
535
-
536
- test('user can access dashboard', async ({ authenticatedPage }) => {
537
- // Test starts already logged in
538
- });
539
- ```
540
-
541
- ## Quality Score Breakdown
542
-
543
- - Starting Score: 100
544
- - Critical Violations (1 × -10): -10
545
- - High Violations (2 × -5): -10
546
- - Medium Violations (0 × -2): 0
547
- - Low Violations (1 × -1): -1
548
- - Bonus (BDD +5, Test IDs +5): +10
549
- - **Final Score**: 78/100 (B)
550
-
551
- ```
552
-
553
- ---
554
-
555
- ## Integration with Other Workflows
556
-
557
- ### Before Test Review
558
-
559
- - **atdd**: Generate acceptance tests (TEA reviews them for quality)
560
- - **automate**: Expand regression suite (TEA reviews new tests)
561
- - **dev story**: Developer writes implementation tests (TEA reviews them)
562
-
563
- ### After Test Review
564
-
565
- - **Developer**: Addresses critical issues, improves based on recommendations
566
- - **gate**: Test quality review feeds into gate decision (high-quality tests increase confidence)
567
-
568
- ### Coordinates With
569
-
570
- - **Story File**: Review links to acceptance criteria context
571
- - **Test Design**: Review validates tests align with prioritization
572
- - **Knowledge Base**: Review references fragments for detailed guidance
573
-
574
- ---
575
-
576
- ## Important Notes
577
-
578
- 1. **Non-Prescriptive**: Review provides guidance, not rigid rules
579
- 2. **Context Matters**: Some violations may be justified for specific scenarios
580
- 3. **Knowledge-Based**: All feedback grounded in proven patterns from tea-index.csv
581
- 4. **Actionable**: Every issue includes recommended fix with code examples
582
- 5. **Quality Score**: Use as indicator, not absolute measure
583
- 6. **Continuous Improvement**: Review same tests periodically as patterns evolve
584
-
585
- ---
586
-
587
- ## Troubleshooting
588
-
589
- **Problem: No test files found**
590
- - Verify test_dir path is correct
591
- - Check test file extensions match glob pattern
592
- - Ensure test files exist in expected location
593
-
594
- **Problem: Quality score seems too low/high**
595
- - Review violation counts - may need to adjust thresholds
596
- - Consider context - some projects have different standards
597
- - Focus on critical issues first, not just score
598
-
599
- **Problem: Inline comments not generated**
600
- - Check generate_inline_comments: true in variables
601
- - Verify write permissions on test files
602
- - Review append_to_file: false (separate report mode)
603
-
604
- **Problem: Knowledge fragments not loading**
605
- - Verify tea-index.csv exists in testarch/ directory
606
- - Check fragment file paths are correct
607
- - Ensure auto_load_knowledge: true in variables
608
- ```