agentic-qe 3.7.15 → 3.7.17

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 (301) hide show
  1. package/.claude/agents/v3/qe-devils-advocate.md +20 -0
  2. package/.claude/agents/v3/qe-gap-detector.md +25 -0
  3. package/.claude/agents/v3/qe-quality-gate.md +8 -0
  4. package/.claude/agents/v3/qe-requirements-validator.md +25 -0
  5. package/.claude/agents/v3/subagents/qe-code-reviewer.md +11 -0
  6. package/.claude/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  7. package/.claude/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  8. package/.claude/agents/v3/subagents/qe-security-reviewer.md +11 -0
  9. package/.claude/helpers/adr-compliance.sh +10 -10
  10. package/.claude/helpers/auto-memory-hook.mjs +24 -9
  11. package/.claude/helpers/brain-checkpoint.cjs +55 -134
  12. package/.claude/helpers/ddd-tracker.sh +2 -2
  13. package/.claude/helpers/guidance-hooks.sh +2 -2
  14. package/.claude/helpers/hook-handler.cjs +57 -18
  15. package/.claude/helpers/statusline.cjs +414 -595
  16. package/.claude/helpers/v3/quality-criteria/evidence-classification.md +116 -116
  17. package/.claude/helpers/v3/quality-criteria/htsm-categories.md +139 -139
  18. package/.claude/skills/README.md +8 -11
  19. package/.claude/skills/brutal-honesty-review/SKILL.md +3 -0
  20. package/.claude/skills/code-review-quality/SKILL.md +3 -0
  21. package/.claude/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  22. package/.claude/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  23. package/.claude/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  24. package/.claude/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  25. package/.claude/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  26. package/.claude/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  27. package/.claude/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  28. package/.claude/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  29. package/.claude/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  30. package/.claude/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  31. package/.claude/skills/qcsd-development-swarm/SKILL.md +79 -2027
  32. package/.claude/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  33. package/.claude/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  34. package/.claude/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  35. package/.claude/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  36. package/.claude/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  37. package/.claude/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  38. package/.claude/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  39. package/.claude/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  40. package/.claude/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  41. package/.claude/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  42. package/.claude/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  43. package/.claude/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  44. package/.claude/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  45. package/.claude/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  46. package/.claude/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  47. package/.claude/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  48. package/.claude/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  49. package/.claude/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  50. package/.claude/skills/qcsd-production-swarm/SKILL.md +88 -2663
  51. package/.claude/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  52. package/.claude/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  53. package/.claude/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  54. package/.claude/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  55. package/.claude/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  56. package/.claude/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  57. package/.claude/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  58. package/.claude/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  59. package/.claude/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  60. package/.claude/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  61. package/.claude/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  62. package/.claude/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  63. package/.claude/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  64. package/.claude/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  65. package/.claude/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  66. package/.claude/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  67. package/.claude/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  68. package/.claude/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  69. package/.claude/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  70. package/.claude/skills/sherlock-review/SKILL.md +3 -0
  71. package/.claude/skills/skill-builder/SKILL.md +103 -0
  72. package/.claude/skills/skills-manifest.json +1 -1
  73. package/CHANGELOG.md +44 -0
  74. package/assets/agents/v3/qe-devils-advocate.md +20 -0
  75. package/assets/agents/v3/qe-gap-detector.md +25 -0
  76. package/assets/agents/v3/qe-quality-gate.md +8 -0
  77. package/assets/agents/v3/qe-requirements-validator.md +25 -0
  78. package/assets/agents/v3/subagents/qe-code-reviewer.md +11 -0
  79. package/assets/agents/v3/subagents/qe-integration-reviewer.md +11 -0
  80. package/assets/agents/v3/subagents/qe-performance-reviewer.md +11 -0
  81. package/assets/agents/v3/subagents/qe-security-reviewer.md +11 -0
  82. package/assets/helpers/statusline-v3.cjs +693 -0
  83. package/assets/skills/brutal-honesty-review/SKILL.md +3 -0
  84. package/assets/skills/code-review-quality/SKILL.md +3 -0
  85. package/assets/skills/qcsd-cicd-swarm/SKILL.md +79 -2075
  86. package/assets/skills/qcsd-cicd-swarm/steps/01-flag-detection.md +62 -0
  87. package/assets/skills/qcsd-cicd-swarm/steps/02-core-agents.md +33 -0
  88. package/assets/skills/qcsd-cicd-swarm/steps/03-batch1-results.md +21 -0
  89. package/assets/skills/qcsd-cicd-swarm/steps/04-conditional-agents.md +23 -0
  90. package/assets/skills/qcsd-cicd-swarm/steps/05-decision-synthesis.md +30 -0
  91. package/assets/skills/qcsd-cicd-swarm/steps/06-report-generation.md +17 -0
  92. package/assets/skills/qcsd-cicd-swarm/steps/07-learning-persistence.md +27 -0
  93. package/assets/skills/qcsd-cicd-swarm/steps/08-deployment-advisor.md +25 -0
  94. package/assets/skills/qcsd-cicd-swarm/steps/09-final-output.md +16 -0
  95. package/assets/skills/qcsd-development-swarm/SKILL.md +79 -2027
  96. package/assets/skills/qcsd-development-swarm/steps/01-flag-detection.md +50 -0
  97. package/assets/skills/qcsd-development-swarm/steps/02-core-agents.md +29 -0
  98. package/assets/skills/qcsd-development-swarm/steps/03-batch1-results.md +14 -0
  99. package/assets/skills/qcsd-development-swarm/steps/04-conditional-agents.md +23 -0
  100. package/assets/skills/qcsd-development-swarm/steps/05-decision-synthesis.md +30 -0
  101. package/assets/skills/qcsd-development-swarm/steps/06-report-generation.md +16 -0
  102. package/assets/skills/qcsd-development-swarm/steps/07-learning-persistence.md +25 -0
  103. package/assets/skills/qcsd-development-swarm/steps/08-defect-predictor.md +25 -0
  104. package/assets/skills/qcsd-development-swarm/steps/09-final-output.md +16 -0
  105. package/assets/skills/qcsd-ideation-swarm/SKILL.md +94 -1894
  106. package/assets/skills/qcsd-ideation-swarm/steps/01-flag-detection.md +57 -0
  107. package/assets/skills/qcsd-ideation-swarm/steps/02-core-agents.md +29 -0
  108. package/assets/skills/qcsd-ideation-swarm/steps/03-batch1-results.md +15 -0
  109. package/assets/skills/qcsd-ideation-swarm/steps/04-conditional-agents.md +23 -0
  110. package/assets/skills/qcsd-ideation-swarm/steps/05-decision-synthesis.md +29 -0
  111. package/assets/skills/qcsd-ideation-swarm/steps/06-report-generation.md +18 -0
  112. package/assets/skills/qcsd-ideation-swarm/steps/07-learning-persistence.md +29 -0
  113. package/assets/skills/qcsd-ideation-swarm/steps/08-final-output.md +18 -0
  114. package/assets/skills/qcsd-production-swarm/SKILL.md +88 -2663
  115. package/assets/skills/qcsd-production-swarm/steps/01-flag-detection.md +206 -0
  116. package/assets/skills/qcsd-production-swarm/steps/02-core-agents.md +428 -0
  117. package/assets/skills/qcsd-production-swarm/steps/03-batch1-results.md +101 -0
  118. package/assets/skills/qcsd-production-swarm/steps/04-conditional-agents.md +125 -0
  119. package/assets/skills/qcsd-production-swarm/steps/05-decision-synthesis.md +136 -0
  120. package/assets/skills/qcsd-production-swarm/steps/06-report-generation.md +181 -0
  121. package/assets/skills/qcsd-production-swarm/steps/07-learning-persistence.md +185 -0
  122. package/assets/skills/qcsd-production-swarm/steps/08-feedback-loop.md +122 -0
  123. package/assets/skills/qcsd-production-swarm/steps/09-final-output.md +140 -0
  124. package/assets/skills/qcsd-refinement-swarm/SKILL.md +59 -2312
  125. package/assets/skills/qcsd-refinement-swarm/steps/01-flag-detection.md +91 -0
  126. package/assets/skills/qcsd-refinement-swarm/steps/02-core-agents.md +40 -0
  127. package/assets/skills/qcsd-refinement-swarm/steps/03-batch1-results.md +40 -0
  128. package/assets/skills/qcsd-refinement-swarm/steps/04-conditional-agents.md +35 -0
  129. package/assets/skills/qcsd-refinement-swarm/steps/05-decision-synthesis.md +43 -0
  130. package/assets/skills/qcsd-refinement-swarm/steps/06-report-generation.md +42 -0
  131. package/assets/skills/qcsd-refinement-swarm/steps/07-learning-persistence.md +53 -0
  132. package/assets/skills/qcsd-refinement-swarm/steps/08-transformation.md +36 -0
  133. package/assets/skills/qcsd-refinement-swarm/steps/09-final-output.md +46 -0
  134. package/assets/skills/sherlock-review/SKILL.md +3 -0
  135. package/assets/templates/agent-override-example.yaml +39 -0
  136. package/dist/agents/devils-advocate/agent.d.ts +25 -1
  137. package/dist/agents/devils-advocate/agent.js +108 -4
  138. package/dist/agents/devils-advocate/types.d.ts +54 -0
  139. package/dist/agents/devils-advocate/types.js +14 -0
  140. package/dist/agents/overlay-loader.d.ts +28 -0
  141. package/dist/agents/overlay-loader.js +232 -0
  142. package/dist/agents/overlay-schema.d.ts +56 -0
  143. package/dist/agents/overlay-schema.js +77 -0
  144. package/dist/analysis/branch-enumerator.d.ts +68 -0
  145. package/dist/analysis/branch-enumerator.js +393 -0
  146. package/dist/analysis/index.d.ts +2 -0
  147. package/dist/analysis/index.js +2 -0
  148. package/dist/cli/bundle.js +2469 -634
  149. package/dist/cli/commands/coverage.js +50 -0
  150. package/dist/cli/handlers/brain-handler.js +2 -1
  151. package/dist/context/compiler.d.ts +62 -0
  152. package/dist/context/compiler.js +143 -0
  153. package/dist/context/index.d.ts +8 -0
  154. package/dist/context/index.js +6 -0
  155. package/dist/context/sources/coverage-source.d.ts +15 -0
  156. package/dist/context/sources/coverage-source.js +77 -0
  157. package/dist/context/sources/git-source.d.ts +12 -0
  158. package/dist/context/sources/git-source.js +33 -0
  159. package/dist/context/sources/index.d.ts +6 -0
  160. package/dist/context/sources/index.js +5 -0
  161. package/dist/context/sources/memory-source.d.ts +17 -0
  162. package/dist/context/sources/memory-source.js +94 -0
  163. package/dist/context/sources/test-source.d.ts +13 -0
  164. package/dist/context/sources/test-source.js +53 -0
  165. package/dist/context/sources/types.d.ts +42 -0
  166. package/dist/context/sources/types.js +5 -0
  167. package/dist/domains/test-generation/coordinator.js +6 -4
  168. package/dist/feedback/feedback-loop.d.ts +5 -0
  169. package/dist/feedback/feedback-loop.js +12 -0
  170. package/dist/feedback/index.d.ts +1 -1
  171. package/dist/feedback/index.js +1 -1
  172. package/dist/init/agents-installer.d.ts +9 -0
  173. package/dist/init/agents-installer.js +72 -0
  174. package/dist/init/phases/07-hooks.d.ts +11 -0
  175. package/dist/init/phases/07-hooks.js +67 -0
  176. package/dist/init/phases/09-assets.js +3 -0
  177. package/dist/init/settings-merge.js +1 -1
  178. package/dist/kernel/hnsw-adapter.d.ts +3 -0
  179. package/dist/kernel/hnsw-adapter.js +11 -1
  180. package/dist/kernel/unified-memory-schemas.d.ts +1 -1
  181. package/dist/kernel/unified-memory-schemas.js +2 -0
  182. package/dist/kernel/unified-memory.js +25 -0
  183. package/dist/learning/experience-capture-middleware.js +24 -0
  184. package/dist/learning/sqlite-persistence.d.ts +3 -0
  185. package/dist/learning/sqlite-persistence.js +9 -0
  186. package/dist/learning/token-tracker.js +4 -0
  187. package/dist/mcp/bundle.js +3694 -3101
  188. package/dist/mcp/handlers/handler-factory.js +92 -11
  189. package/dist/mcp/services/task-router.d.ts +11 -0
  190. package/dist/mcp/services/task-router.js +26 -0
  191. package/dist/routing/qe-agent-registry.d.ts +11 -0
  192. package/dist/routing/qe-agent-registry.js +34 -0
  193. package/dist/routing/qe-task-router.d.ts +1 -0
  194. package/dist/routing/qe-task-router.js +34 -2
  195. package/dist/routing/routing-feedback.d.ts +5 -0
  196. package/dist/routing/routing-feedback.js +29 -3
  197. package/dist/routing/types.d.ts +2 -0
  198. package/dist/sync/pull-agent.js +2 -1
  199. package/dist/test-scheduling/pipeline.d.ts +7 -0
  200. package/dist/test-scheduling/pipeline.js +9 -0
  201. package/dist/validation/index.d.ts +3 -0
  202. package/dist/validation/index.js +10 -0
  203. package/dist/validation/pipeline.d.ts +80 -0
  204. package/dist/validation/pipeline.js +173 -0
  205. package/dist/validation/steps/requirements.d.ts +32 -0
  206. package/dist/validation/steps/requirements.js +596 -0
  207. package/package.json +6 -6
  208. package/.claude/agents/consensus/README.md +0 -253
  209. package/.claude/agents/deprecated/qe-api-contract-validator.md.v2 +0 -162
  210. package/.claude/agents/deprecated/qe-coverage-analyzer.md.v2 +0 -208
  211. package/.claude/agents/deprecated/qe-test-generator.md.v2 +0 -212
  212. package/.claude/agents/deprecated/qe-visual-tester.md.v2 +0 -216
  213. package/.claude/agents/hive-mind/collective-intelligence-coordinator.md +0 -130
  214. package/.claude/agents/hive-mind/queen-coordinator.md +0 -203
  215. package/.claude/agents/hive-mind/scout-explorer.md +0 -242
  216. package/.claude/agents/hive-mind/swarm-memory-manager.md +0 -193
  217. package/.claude/agents/hive-mind/worker-specialist.md +0 -217
  218. package/.claude/agents/neural/safla-neural.md +0 -74
  219. package/.claude/agents/optimization/README.md +0 -250
  220. package/.claude/agents/reasoning/agent.md +0 -816
  221. package/.claude/agents/reasoning/goal-planner.md +0 -73
  222. package/.claude/agents/subagents/qe-code-reviewer.md +0 -76
  223. package/.claude/agents/subagents/qe-coverage-gap-analyzer.md +0 -76
  224. package/.claude/agents/subagents/qe-data-generator.md +0 -77
  225. package/.claude/agents/subagents/qe-flaky-investigator.md +0 -91
  226. package/.claude/agents/subagents/qe-integration-tester.md +0 -90
  227. package/.claude/agents/subagents/qe-performance-validator.md +0 -92
  228. package/.claude/agents/subagents/qe-security-auditor.md +0 -94
  229. package/.claude/agents/subagents/qe-test-data-architect-sub.md +0 -93
  230. package/.claude/agents/subagents/qe-test-implementer.md +0 -106
  231. package/.claude/agents/subagents/qe-test-refactorer.md +0 -117
  232. package/.claude/agents/subagents/qe-test-writer.md +0 -112
  233. package/.claude/agents/swarm/README.md +0 -190
  234. package/.claude/agents/templates/migration-plan.md +0 -746
  235. package/.claude/agents/testing/unit/tdd-london-swarm.md +0 -244
  236. package/.claude/agents/testing/validation/production-validator.md +0 -395
  237. package/.claude/agents/v3/README.md +0 -39
  238. package/.claude/agents/v3/typescript-specialist.yaml +0 -21
  239. package/.claude/agents/v3/v3-memory-specialist.md +0 -318
  240. package/.claude/agents/v3/v3-performance-engineer.md +0 -397
  241. package/.claude/agents/v3/v3-queen-coordinator.md +0 -98
  242. package/.claude/agents/v3/v3-security-architect.md +0 -174
  243. package/.claude/commands/README.md +0 -106
  244. package/.claude/commands/agents/README.md +0 -10
  245. package/.claude/commands/agents/agent-capabilities.md +0 -21
  246. package/.claude/commands/agents/agent-coordination.md +0 -28
  247. package/.claude/commands/agents/agent-spawning.md +0 -28
  248. package/.claude/commands/agents/agent-types.md +0 -26
  249. package/.claude/commands/coordination/README.md +0 -9
  250. package/.claude/commands/coordination/agent-spawn.md +0 -25
  251. package/.claude/commands/coordination/init.md +0 -44
  252. package/.claude/commands/coordination/orchestrate.md +0 -43
  253. package/.claude/commands/coordination/spawn.md +0 -45
  254. package/.claude/commands/coordination/swarm-init.md +0 -85
  255. package/.claude/commands/coordination/task-orchestrate.md +0 -25
  256. package/.claude/commands/hive-mind/README.md +0 -17
  257. package/.claude/commands/hive-mind/hive-mind-consensus.md +0 -8
  258. package/.claude/commands/hive-mind/hive-mind-init.md +0 -18
  259. package/.claude/commands/hive-mind/hive-mind-memory.md +0 -8
  260. package/.claude/commands/hive-mind/hive-mind-metrics.md +0 -8
  261. package/.claude/commands/hive-mind/hive-mind-resume.md +0 -8
  262. package/.claude/commands/hive-mind/hive-mind-sessions.md +0 -8
  263. package/.claude/commands/hive-mind/hive-mind-spawn.md +0 -21
  264. package/.claude/commands/hive-mind/hive-mind-status.md +0 -8
  265. package/.claude/commands/hive-mind/hive-mind-stop.md +0 -8
  266. package/.claude/commands/hive-mind/hive-mind-wizard.md +0 -8
  267. package/.claude/commands/hive-mind/hive-mind.md +0 -27
  268. package/.claude/commands/memory/README.md +0 -9
  269. package/.claude/commands/memory/memory-persist.md +0 -25
  270. package/.claude/commands/memory/memory-search.md +0 -25
  271. package/.claude/commands/memory/memory-usage.md +0 -25
  272. package/.claude/commands/memory/neural.md +0 -47
  273. package/.claude/commands/swarm/README.md +0 -15
  274. package/.claude/commands/swarm/swarm-analysis.md +0 -8
  275. package/.claude/commands/swarm/swarm-background.md +0 -8
  276. package/.claude/commands/swarm/swarm-init.md +0 -19
  277. package/.claude/commands/swarm/swarm-modes.md +0 -8
  278. package/.claude/commands/swarm/swarm-monitor.md +0 -8
  279. package/.claude/commands/swarm/swarm-spawn.md +0 -19
  280. package/.claude/commands/swarm/swarm-status.md +0 -8
  281. package/.claude/commands/swarm/swarm-strategies.md +0 -8
  282. package/.claude/commands/swarm/swarm.md +0 -27
  283. package/.claude/commands/training/README.md +0 -9
  284. package/.claude/commands/training/model-update.md +0 -25
  285. package/.claude/commands/training/neural-patterns.md +0 -74
  286. package/.claude/commands/training/neural-train.md +0 -25
  287. package/.claude/commands/training/pattern-learn.md +0 -25
  288. package/.claude/commands/training/specialization.md +0 -63
  289. package/.claude/commands/workflows/README.md +0 -9
  290. package/.claude/commands/workflows/development.md +0 -78
  291. package/.claude/commands/workflows/research.md +0 -63
  292. package/.claude/commands/workflows/workflow-create.md +0 -25
  293. package/.claude/commands/workflows/workflow-execute.md +0 -25
  294. package/.claude/commands/workflows/workflow-export.md +0 -25
  295. package/.claude/skills/agentic-jujutsu/SKILL.md +0 -645
  296. package/.claude/skills/hive-mind-advanced/SKILL.md +0 -712
  297. package/.claude/skills/iterative-loop/SKILL.md +0 -371
  298. package/.claude/skills/performance-analysis/SKILL.md +0 -569
  299. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +0 -144
  300. package/.claude/skills/performance-analysis/schemas/output.json +0 -588
  301. package/.claude/skills/performance-analysis/scripts/validate-config.json +0 -36
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: qcsd-ideation-swarm
3
- description: "QCSD Ideation phase swarm for Quality Criteria sessions using HTSM v6.3, Risk Storming, and Testability analysis before development begins. Uses 5-tier browser cascade: Vibium agent-browser Playwright+Stealth WebFetch WebSearch-fallback."
3
+ description: "QCSD Ideation phase swarm for Quality Criteria sessions using HTSM v6.3, Risk Storming, and Testability analysis before development begins. Uses 5-tier browser cascade: Vibium -> agent-browser -> Playwright+Stealth -> WebFetch -> WebSearch-fallback."
4
4
  category: qcsd-phases
5
5
  priority: critical
6
6
  version: 7.5.1
@@ -38,7 +38,7 @@ last_updated: 2026-01-28
38
38
  # v7.5.1 Changelog: Added prominent follow-up recommendation box at end of swarm execution (Phase URL-9)
39
39
  # v7.5.0 Changelog: Added HAS_VIDEO flag detection with /a11y-ally follow-up recommendation for video caption generation
40
40
  # v7.4.0 Changelog: Automated browser cascade via scripts/fetch-content.js with 30s per-tier timeouts
41
- # v7.2.0 Changelog: Added 5-tier browser cascade (Vibium agent-browser Playwright+Stealth WebFetch WebSearch)
41
+ # v7.2.0 Changelog: Added 5-tier browser cascade (Vibium -> agent-browser -> Playwright+Stealth -> WebFetch -> WebSearch)
42
42
  html_output: true
43
43
  enforcement_level: strict
44
44
  tags: [qcsd, ideation, htsm, quality-criteria, risk-storming, testability, swarm, parallel, ddd]
@@ -56,1953 +56,153 @@ Shift-left quality engineering swarm for PI Planning and Sprint Planning.
56
56
 
57
57
  ---
58
58
 
59
- ## URL-Based Analysis Mode (v7.1)
59
+ ## Overview
60
60
 
61
- When analyzing a live website URL, use this specialized execution pattern.
61
+ The Ideation Swarm assesses stories and URLs before development begins, using HTSM v6.3
62
+ quality criteria, Risk Storming, and Testability analysis. It renders a
63
+ GO / CONDITIONAL / NO-GO decision and is the first gate in the QCSD lifecycle.
62
64
 
63
- ### Parameters
64
-
65
- - `URL`: Website to analyze (required)
66
- - `OUTPUT_FOLDER`: Where to save reports (default: `${PROJECT_ROOT}/Agentic QCSD/{domain}/` or `./Agentic QCSD/{domain}/`)
67
-
68
- ---
69
-
70
- ## ⛔ URL MODE: COMPLETE EXECUTION FLOW
71
-
72
- **You MUST follow ALL phases in order. Skipping phases is a FAILURE.**
73
-
74
- ### PHASE URL-1: Setup and Content Fetch (AUTOMATED CASCADE)
75
-
76
- **The browser cascade is now FULLY AUTOMATED via `scripts/fetch-content.js`.**
77
-
78
- **Single command - automatic tier fallback with 30s timeout per tier:**
79
-
80
- ```bash
81
- # SINGLE COMMAND - handles all tiers automatically:
82
- # Use npx for installed package, or node with relative path for local development
83
- npx aqe fetch-content "${URL}" "${OUTPUT_FOLDER}" --timeout 30000
84
- # OR if running from project root:
85
- node ./scripts/fetch-content.js "${URL}" "${OUTPUT_FOLDER}" --timeout 30000
86
- ```
87
-
88
- **What the script does automatically:**
89
- 1. Creates output folder
90
- 2. Tries Playwright+Stealth (30s timeout)
91
- 3. Falls back to HTTP Fetch (30s timeout)
92
- 4. Falls back to WebSearch placeholder (30s timeout)
93
- 5. Saves `content.html`, `screenshot.png`, and `fetch-result.json`
94
-
95
- **Execution:**
96
-
97
- ```javascript
98
- // 1. Run the automated fetch cascade (use relative path from project root)
99
- const fetchResult = Bash({
100
- command: `node ./scripts/fetch-content.js "${URL}" "${OUTPUT_FOLDER}" --timeout 30000`,
101
- timeout: 120000 // 2 min total max
102
- })
103
-
104
- // 2. Parse the JSON result from stdout
105
- const result = JSON.parse(fetchResult.stdout)
106
-
107
- // 3. Read the content
108
- const content = Read({ file_path: `${OUTPUT_FOLDER}/content.html` })
109
- const fetchMethod = result.tier
110
- const contentSize = result.contentSize
111
- ```
112
-
113
- **If script is not available, fall back to inline Playwright:**
114
-
115
- ```javascript
116
- // FALLBACK: Only if scripts/fetch-content.js doesn't exist
117
- Bash({ command: `mkdir -p "${OUTPUT_FOLDER}"` })
118
-
119
- // Quick Playwright fetch (single tier, no cascade)
120
- Bash({
121
- command: `cd /tmp && rm -rf qcsd-fetch && mkdir qcsd-fetch && cd qcsd-fetch && npm init -y && npm install playwright-extra puppeteer-extra-plugin-stealth playwright 2>/dev/null`,
122
- timeout: 60000
123
- })
124
-
125
- // ... minimal inline script as last resort
126
- ```
127
-
128
- **MANDATORY: Output fetch method used:**
129
- ```
130
- ┌─────────────────────────────────────────────────────────────┐
131
- │ CONTENT FETCH RESULT │
132
- ├─────────────────────────────────────────────────────────────┤
133
- │ Method Used: [vibium/agent-browser/playwright/webfetch/ │
134
- │ websearch-fallback] │
135
- │ Content Size: [X KB] │
136
- │ Status: [SUCCESS/DEGRADED] │
137
- │ │
138
- │ If DEGRADED (websearch-fallback), analysis is based on │
139
- │ public information, not live page inspection. │
140
- └─────────────────────────────────────────────────────────────┘
141
- ```
142
-
143
- ### PHASE URL-2: Programmatic Flag Detection (MANDATORY)
144
-
145
- **You MUST detect flags from the fetched content. Do NOT skip this phase.**
146
-
147
- ```javascript
148
- // Detect HAS_UI
149
- const HAS_UI = (
150
- /<(form|button|input|select|textarea|img|video|canvas|nav|header|footer|aside)/i.test(content) ||
151
- /carousel|slider|modal|dialog|dropdown|menu|tab|accordion/i.test(content) ||
152
- /class=["'][^"']*btn|button|card|grid|flex/i.test(content)
153
- );
154
-
155
- // Detect HAS_SECURITY
156
- const HAS_SECURITY = (
157
- /login|password|auth|token|session|credential|oauth|jwt|sso/i.test(content) ||
158
- /newsletter|subscribe|signup|email.*input|register/i.test(content) || // PII collection
159
- /payment|checkout|credit.*card|billing/i.test(content) ||
160
- /cookie|consent|gdpr|privacy/i.test(content)
161
- );
162
-
163
- // Detect HAS_UX
164
- const HAS_UX = (
165
- /user|customer|visitor|journey|experience|engagement/i.test(content) ||
166
- /<form/i.test(content) && /<button/i.test(content) || // Interactive forms
167
- /onboarding|wizard|step.*step|progress/i.test(content) ||
168
- /feedback|rating|review|comment/i.test(content)
169
- );
170
-
171
- // Detect HAS_VIDEO (for a11y-ally follow-up recommendation)
172
- const HAS_VIDEO = (
173
- /<video/i.test(content) ||
174
- /youtube\.com\/embed|vimeo\.com|wistia\.com/i.test(content) ||
175
- /\.mp4|\.webm|\.m3u8/i.test(content) ||
176
- /data-video-url|data-mobile-url|data-desktop-url/i.test(content)
177
- );
178
-
179
- // Detect HAS_MIDDLEWARE
180
- const HAS_MIDDLEWARE = (
181
- /middleware|ESB|message.?broker|MQ|Kafka|RabbitMQ/i.test(content) ||
182
- /integration.?bus|API.?gateway|message.?queue|pub.?sub/i.test(content)
183
- );
184
-
185
- // Detect HAS_SAP_INTEGRATION
186
- const HAS_SAP_INTEGRATION = (
187
- /\bSAP\b|RFC|BAPI|IDoc|OData|S\/4HANA/i.test(content) ||
188
- /\bEWM\b|\bECC\b|\bABAP\b|CDS.?view|Fiori/i.test(content)
189
- );
190
-
191
- // Detect HAS_AUTHORIZATION
192
- const HAS_AUTHORIZATION = (
193
- /\bSoD\b|segregation.?of.?duties|role.?conflict/i.test(content) ||
194
- /authorization.?object|T-?code|user.?role/i.test(content) ||
195
- /access.?control.?matrix|\bGRC\b/i.test(content)
196
- );
197
- ```
198
-
199
- **You MUST output flag detection results before proceeding:**
200
-
201
- ```
202
- ┌─────────────────────────────────────────────────────────────┐
203
- │ FLAG DETECTION RESULTS │
204
- ├─────────────────────────────────────────────────────────────┤
205
- │ │
206
- │ HAS_UI: [TRUE/FALSE] │
207
- │ Evidence: [what triggered it - specific patterns] │
208
- │ │
209
- │ HAS_SECURITY: [TRUE/FALSE] │
210
- │ Evidence: [what triggered it - specific patterns] │
211
- │ │
212
- │ HAS_UX: [TRUE/FALSE] │
213
- │ Evidence: [what triggered it - specific patterns] │
214
- │ │
215
- │ HAS_VIDEO: [TRUE/FALSE] │
216
- │ Evidence: [video URLs found - for a11y follow-up] │
217
- │ │
218
- │ HAS_MIDDLEWARE: [TRUE/FALSE] │
219
- │ Evidence: [what triggered it - specific patterns] │
220
- │ │
221
- │ HAS_SAP_INTEGRATION: [TRUE/FALSE] │
222
- │ Evidence: [what triggered it - specific patterns] │
223
- │ │
224
- │ HAS_AUTHORIZATION: [TRUE/FALSE] │
225
- │ Evidence: [what triggered it - specific patterns] │
226
- │ │
227
- │ EXPECTED AGENTS: │
228
- │ - Core: 3 (always) │
229
- │ - Conditional: [count based on TRUE flags] │
230
- │ - TOTAL: [3 + conditional count] │
231
- │ │
232
- │ FOLLOW-UP RECOMMENDED: │
233
- │ - /a11y-ally: [YES if HAS_VIDEO=TRUE, else NO] │
234
- │ │
235
- └─────────────────────────────────────────────────────────────┘
236
- ```
237
-
238
- **❌ DO NOT proceed to Phase URL-3 without outputting flag detection results.**
239
-
240
- ### PHASE URL-3: Spawn Core Agents (PARALLEL)
241
-
242
- **All 3 core agents MUST be spawned. Fewer is a FAILURE.**
243
-
244
- Spawn ALL THREE in a single message:
245
-
246
- ```javascript
247
- // Agent 1: Quality Criteria (HTSM v6.3)
248
- Task({
249
- description: "QCSD Quality Criteria Analysis",
250
- prompt: `You are qe-quality-criteria-recommender analyzing ${URL}.
251
-
252
- ## WEBSITE CONTENT
253
- ${content}
254
-
255
- ## ANALYSIS REQUIREMENTS
256
- Analyze ALL 10 HTSM v6.3 categories with weight and testability score for each.
257
-
258
- ## OUTPUT REQUIREMENTS (MANDATORY)
259
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/02-quality-criteria-analysis.md
260
- 2. Use the Write tool to save BEFORE completing
261
- 3. Report MUST be complete - no placeholders`,
262
- subagent_type: "qe-quality-criteria-recommender",
263
- run_in_background: true
264
- })
265
-
266
- // Agent 2: Risk Assessment (SFDIPOT)
267
- Task({
268
- description: "QCSD Risk Assessment",
269
- prompt: `You are qe-risk-assessor analyzing ${URL}.
270
-
271
- ## WEBSITE CONTENT
272
- ${content}
273
-
274
- ## ANALYSIS REQUIREMENTS
275
- Apply SFDIPOT framework: Structure, Function, Data, Interfaces, Platform, Operations, Time.
276
- Identify minimum 10 risks with probability, impact, and score.
277
-
278
- ## OUTPUT REQUIREMENTS (MANDATORY)
279
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/04-risk-assessment.md
280
- 2. Use the Write tool to save BEFORE completing
281
- 3. Report MUST be complete - no placeholders`,
282
- subagent_type: "qe-risk-assessor",
283
- run_in_background: true
284
- })
285
-
286
- // Agent 3: Requirements Validator (Testability)
287
- Task({
288
- description: "QCSD Testability Assessment",
289
- prompt: `You are qe-requirements-validator analyzing ${URL}.
290
-
291
- ## WEBSITE CONTENT
292
- ${content}
293
-
294
- ## ANALYSIS REQUIREMENTS
295
- Apply 10 Principles of Testability. Score each principle 0-100.
296
- Identify blockers and recommendations.
297
-
298
- ## OUTPUT REQUIREMENTS (MANDATORY)
299
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/03-testability-assessment.md
300
- 2. Use the Write tool to save BEFORE completing
301
- 3. Report MUST be complete - no placeholders`,
302
- subagent_type: "qe-requirements-validator",
303
- run_in_background: true
304
- })
305
- ```
306
-
307
- ### PHASE URL-4: Spawn Conditional Agents (PARALLEL)
308
-
309
- **Spawn agents based on flags detected in Phase URL-2.**
310
-
311
- ```javascript
312
- // IF HAS_UI === TRUE
313
- Task({
314
- description: "QCSD Accessibility Audit",
315
- prompt: `You are qe-accessibility-auditor analyzing ${URL}.
316
-
317
- ## WEBSITE CONTENT
318
- ${content}
319
-
320
- ## ANALYSIS REQUIREMENTS
321
- Perform WCAG 2.2 AA compliance assessment.
322
- Identify accessibility barriers, missing ARIA, color contrast issues.
323
-
324
- ## OUTPUT REQUIREMENTS (MANDATORY)
325
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/07-accessibility-audit.md
326
- 2. Use the Write tool to save BEFORE completing`,
327
- subagent_type: "qe-accessibility-auditor",
328
- run_in_background: true
329
- })
330
-
331
- // IF HAS_SECURITY === TRUE
332
- Task({
333
- description: "QCSD Security Threat Model",
334
- prompt: `You are qe-security-auditor analyzing ${URL}.
335
-
336
- ## WEBSITE CONTENT
337
- ${content}
338
-
339
- ## ANALYSIS REQUIREMENTS
340
- Apply STRIDE threat modeling framework.
341
- Identify vulnerabilities, attack vectors, and mitigations.
342
-
343
- ## OUTPUT REQUIREMENTS (MANDATORY)
344
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/05-security-threat-model.md
345
- 2. Use the Write tool to save BEFORE completing`,
346
- subagent_type: "qe-security-auditor",
347
- run_in_background: true
348
- })
349
-
350
- // IF HAS_UX === TRUE
351
- Task({
352
- description: "QCSD Quality Experience Analysis",
353
- prompt: `You are qe-qx-partner analyzing ${URL}.
354
-
355
- ## WEBSITE CONTENT
356
- ${content}
357
-
358
- ## ANALYSIS REQUIREMENTS
359
- Analyze user journeys, experience quality, friction points.
360
- Map key user flows and identify UX risks.
361
-
362
- ## OUTPUT REQUIREMENTS (MANDATORY)
363
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/08-quality-experience.md
364
- 2. Use the Write tool to save BEFORE completing`,
365
- subagent_type: "qe-qx-partner",
366
- run_in_background: true
367
- })
368
-
369
- // IF HAS_MIDDLEWARE === TRUE
370
- Task({
371
- description: "QCSD Middleware Integration Quality Criteria",
372
- prompt: `You are qe-middleware-validator analyzing ${URL}.
373
-
374
- ## WEBSITE CONTENT
375
- ${content}
376
-
377
- ## ANALYSIS REQUIREMENTS
378
- Assess middleware and integration bus quality criteria.
379
- Identify message routing risks, transformation issues, and integration patterns.
380
- Evaluate ESB, message broker, API gateway, and pub/sub quality concerns.
381
-
382
- ## OUTPUT REQUIREMENTS (MANDATORY)
383
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/09-middleware-quality.md
384
- 2. Use the Write tool to save BEFORE completing`,
385
- subagent_type: "qe-middleware-validator",
386
- run_in_background: true
387
- })
388
-
389
- // IF HAS_SAP_INTEGRATION === TRUE
390
- Task({
391
- description: "QCSD SAP Integration Quality Criteria",
392
- prompt: `You are qe-sap-rfc-tester analyzing ${URL}.
393
-
394
- ## WEBSITE CONTENT
395
- ${content}
396
-
397
- ## ANALYSIS REQUIREMENTS
398
- Assess SAP-specific quality criteria including RFC, BAPI, IDoc, OData, and Fiori concerns.
399
- Identify S/4HANA integration risks, CDS view dependencies, and ABAP quality issues.
400
- Evaluate SAP interface stability, data consistency, and transport risks.
401
-
402
- ## OUTPUT REQUIREMENTS (MANDATORY)
403
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/10-sap-quality.md
404
- 2. Use the Write tool to save BEFORE completing`,
405
- subagent_type: "qe-sap-rfc-tester",
406
- run_in_background: true
407
- })
408
-
409
- // IF HAS_AUTHORIZATION === TRUE
410
- Task({
411
- description: "QCSD Authorization Quality Criteria",
412
- prompt: `You are qe-sod-analyzer analyzing ${URL}.
413
-
414
- ## WEBSITE CONTENT
415
- ${content}
416
-
417
- ## ANALYSIS REQUIREMENTS
418
- Assess authorization and segregation of duties quality criteria.
419
- Identify SoD conflicts, role misconfigurations, and access control matrix gaps.
420
- Evaluate T-code restrictions, authorization object coverage, and GRC compliance risks.
421
-
422
- ## OUTPUT REQUIREMENTS (MANDATORY)
423
- 1. Write your complete analysis to: ${OUTPUT_FOLDER}/11-authorization-quality.md
424
- 2. Use the Write tool to save BEFORE completing`,
425
- subagent_type: "qe-sod-analyzer",
426
- run_in_background: true
427
- })
428
- ```
429
-
430
- ### PHASE URL-5: Agent Count Validation
431
-
432
- **Before proceeding, verify agent count:**
433
-
434
- ```
435
- ┌─────────────────────────────────────────────────────────────┐
436
- │ AGENT COUNT VALIDATION │
437
- ├─────────────────────────────────────────────────────────────┤
438
- │ │
439
- │ CORE AGENTS (ALWAYS 3): │
440
- │ □ qe-quality-criteria-recommender - SPAWNED? [Y/N] │
441
- │ □ qe-risk-assessor - SPAWNED? [Y/N] │
442
- │ □ qe-requirements-validator - SPAWNED? [Y/N] │
443
- │ │
444
- │ CONDITIONAL AGENTS (based on flags): │
445
- │ □ qe-accessibility-auditor - SPAWNED? [Y/N] (HAS_UI) │
446
- │ □ qe-security-auditor - SPAWNED? [Y/N] (HAS_SECURITY) │
447
- │ □ qe-qx-partner - SPAWNED? [Y/N] (HAS_UX) │
448
- │ □ qe-middleware-validator - SPAWNED? [Y/N] (HAS_MIDDLEWARE)│
449
- │ □ qe-sap-rfc-tester - SPAWNED? [Y/N] (HAS_SAP_INTEG) │
450
- │ □ qe-sod-analyzer - SPAWNED? [Y/N] (HAS_AUTHORIZATION) │
451
- │ │
452
- │ VALIDATION: │
453
- │ Expected agents: [3 + count of TRUE flags] │
454
- │ Actual spawned: [count] │
455
- │ Status: [PASS/FAIL] │
456
- │ │
457
- │ If ACTUAL < EXPECTED, you have FAILED. Spawn missing │
458
- │ agents before proceeding. │
459
- │ │
460
- └─────────────────────────────────────────────────────────────┘
461
- ```
462
-
463
- **❌ DO NOT proceed if validation FAILS.**
464
-
465
- ### PHASE URL-6: Wait for Agents and Verify Reports
466
-
467
- After spawning, inform user and wait:
468
-
469
- ```
470
- I've launched [N] agents in background:
471
- - 📊 Quality Criteria Recommender: HTSM v6.3 analysis → 02-quality-criteria-analysis.md
472
- - ⚠️ Risk Assessor: SFDIPOT analysis → 04-risk-assessment.md
473
- - 🧪 Requirements Validator: Testability assessment → 03-testability-assessment.md
474
- [IF HAS_UI]
475
- - ♿ Accessibility Auditor: WCAG 2.2 audit → 07-accessibility-audit.md
476
- [IF HAS_SECURITY]
477
- - 🔒 Security Auditor: STRIDE threat model → 05-security-threat-model.md
478
- [IF HAS_UX]
479
- - 🎯 QX Partner: User experience analysis → 08-quality-experience.md
480
-
481
- Each agent will write directly to: ${OUTPUT_FOLDER}/
482
- ```
483
-
484
- Verify reports exist before synthesis:
485
- ```bash
486
- ls -la "${OUTPUT_FOLDER}"
487
- ```
488
-
489
- ### PHASE URL-7: Invoke Related Skills (MANDATORY)
490
-
491
- **After agent reports are complete, invoke these skills:**
492
-
493
- ```javascript
494
- // Testability Scoring - applies formal scoring methodology
495
- Skill({ skill: "testability-scoring", args: `${OUTPUT_FOLDER}/03-testability-assessment.md` })
496
-
497
- // Risk-Based Testing - prioritizes test selection
498
- Skill({ skill: "risk-based-testing", args: `${OUTPUT_FOLDER}/04-risk-assessment.md` })
499
- ```
500
-
501
- **Required Skill Invocations:**
502
-
503
- | Skill | When | Purpose |
504
- |-------|------|---------|
505
- | `testability-scoring` | After testability report | Formal 0-100 score calculation |
506
- | `risk-based-testing` | After risk report | Test prioritization matrix |
507
- | `context-driven-testing` | Always | Apply CDT principles to recommendations |
508
- | `holistic-testing-pact` | Always | Validate test strategy completeness |
509
-
510
- **❌ Analysis is INCOMPLETE without invoking related skills.**
511
-
512
- ### PHASE URL-8: Synthesis and Executive Summary
513
-
514
- After all agents complete and skills are invoked:
515
-
516
- 1. **Read all agent reports**
517
- 2. **Generate Executive Summary** → `${OUTPUT_FOLDER}/01-executive-summary.md`
518
- 3. **Generate Consolidated Test Ideas** → `${OUTPUT_FOLDER}/06-test-ideas.md`
519
- 4. **Add Follow-up Recommendations** (if HAS_VIDEO=TRUE):
520
- ```markdown
521
- ## Recommended Follow-up Actions
522
-
523
- | Action | Skill/Command | Reason |
524
- |--------|---------------|--------|
525
- | Generate Video Captions | `/a11y-ally ${URL}` | Video detected without captions - WCAG 1.2.2 compliance |
526
- ```
527
- 5. **Store learnings in memory**:
528
- ```bash
529
- npx @claude-flow/cli@latest memory store \
530
- --key "qcsd-${domain}-pattern" \
531
- --value "[key learnings from this analysis]" \
532
- --namespace patterns
533
- ```
534
-
535
- **IMPORTANT:** If HAS_VIDEO=TRUE, the Executive Summary MUST include a "Recommended Follow-up Actions" section recommending `/a11y-ally` for video caption generation. This is NOT automatic - it's a recommendation for the user to run separately.
536
-
537
- ### Report Filename Mapping
538
-
539
- | Agent | Report Filename |
540
- |-------|----------------|
541
- | qe-quality-criteria-recommender | `02-quality-criteria-analysis.md` |
542
- | qe-requirements-validator | `03-testability-assessment.md` |
543
- | qe-risk-assessor | `04-risk-assessment.md` |
544
- | qe-security-auditor | `05-security-threat-model.md` |
545
- | qe-accessibility-auditor | `07-accessibility-audit.md` |
546
- | qe-qx-partner | `08-quality-experience.md` |
547
- | Synthesis | `01-executive-summary.md` |
548
- | Synthesis | `06-test-ideas.md` |
549
-
550
- ### PHASE URL-9: Final Output with Follow-up Recommendations (MANDATORY)
551
-
552
- **At the very end of swarm execution, ALWAYS output this completion summary:**
553
-
554
- ```
555
- ┌─────────────────────────────────────────────────────────────────────┐
556
- │ QCSD IDEATION SWARM COMPLETE │
557
- ├─────────────────────────────────────────────────────────────────────┤
558
- │ │
559
- │ URL Analyzed: ${URL} │
560
- │ Reports Generated: 8 │
561
- │ Output Folder: ${OUTPUT_FOLDER} │
562
- │ │
563
- │ QUALITY SCORES: │
564
- │ ├─ Risk Assessment: [score] │
565
- │ ├─ Security Posture: [score] │
566
- │ ├─ Quality Experience: [score] │
567
- │ ├─ Testability: [score] │
568
- │ └─ Accessibility: [score] │
569
- │ │
570
- └─────────────────────────────────────────────────────────────────────┘
571
- ```
572
-
573
- **IF HAS_VIDEO=TRUE, ALSO output this prominent recommendation box:**
574
-
575
- ```
576
- ┌─────────────────────────────────────────────────────────────────────┐
577
- │ ⚠️ FOLLOW-UP ACTION RECOMMENDED │
578
- ├─────────────────────────────────────────────────────────────────────┤
579
- │ │
580
- │ VIDEO DETECTED WITHOUT CAPTIONS │
581
- │ │
582
- │ To generate WCAG 1.2.2 compliant captions, run: │
583
- │ │
584
- │ /a11y-ally ${URL} │
585
- │ │
586
- │ This will: │
587
- │ • Download video and extract frames │
588
- │ • Analyze each frame with Claude Vision │
589
- │ • Generate captions.vtt and audiodesc.vtt │
590
- │ • Save to docs/accessibility-scans/{page-slug}/ │
591
- │ │
592
- └─────────────────────────────────────────────────────────────────────┘
593
- ```
594
-
595
- **❌ DO NOT end the swarm without displaying the completion summary.**
596
- **❌ DO NOT skip the follow-up recommendation box if HAS_VIDEO=TRUE.**
597
-
598
- ---
599
-
600
- ## DDD Domain Integration
601
-
602
- This swarm operates across **3 primary domains** and **3 conditional domains**:
603
-
604
- ```
605
- ┌─────────────────────────────────────────────────────────────────────────────┐
606
- │ QCSD IDEATION - DOMAIN MAP │
607
- ├─────────────────────────────────────────────────────────────────────────────┤
608
- │ │
609
- │ PRIMARY DOMAINS (Always Active) │
610
- │ ┌─────────────────────────┐ ┌─────────────────────────┐ │
611
- │ │ requirements-validation │ │ coverage-analysis │ │
612
- │ │ ─────────────────────── │ │ ───────────────────── │ │
613
- │ │ • qe-quality-criteria- │ │ • qe-risk-assessor │ │
614
- │ │ recommender (PRIMARY) │ │ │ │
615
- │ │ • qe-requirements- │ │ │ │
616
- │ │ validator │ │ │ │
617
- │ └─────────────────────────┘ └─────────────────────────┘ │
618
- │ │
619
- │ CONDITIONAL DOMAINS (Based on Epic Content) │
620
- │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │
621
- │ │security-complnce│ │visual-a11y │ │ cross-domain │ │
622
- │ │─────────────────│ │─────────────────│ │─────────────────│ │
623
- │ │qe-security- │ │qe-accessibility-│ │ qe-qx-partner │ │
624
- │ │auditor │ │auditor │ │ │ │
625
- │ │[IF HAS_SECURITY]│ │[IF HAS_UI] │ │[IF HAS_UX] │ │
626
- │ └─────────────────┘ └─────────────────┘ └─────────────────┘ │
627
- │ │
628
- └─────────────────────────────────────────────────────────────────────────────┘
629
- ```
630
-
631
- ---
632
-
633
- ## Execution Model Options
634
-
635
- This skill supports **3 execution models**. Choose based on your environment:
636
-
637
- | Model | When to Use | Pros | Cons |
638
- |-------|-------------|------|------|
639
- | **Task Tool** (PRIMARY) | Claude Code sessions | Full agent capabilities, parallel execution | Requires Claude Code |
640
- | **MCP Tools** | MCP server available | Fleet coordination, memory persistence | Requires MCP setup |
641
- | **CLI** | Terminal/scripts | Works anywhere, scriptable | Sequential only |
642
-
643
- ### Quick Start by Model
65
+ ### QCSD Phase Positioning
644
66
 
645
- **Option A: Task Tool (RECOMMENDED)**
646
- ```
647
- Just follow the skill phases below - uses Task() calls with run_in_background: true
648
- ```
67
+ | Phase | Swarm | Decision | When |
68
+ |-------|-------|----------|------|
69
+ | **Ideation** | **qcsd-ideation-swarm** | **GO / CONDITIONAL / NO-GO** | **PI/Sprint Planning** |
70
+ | Refinement | qcsd-refinement-swarm | READY / CONDITIONAL / NOT-READY | Sprint Refinement |
71
+ | Development | qcsd-development-swarm | SHIP / CONDITIONAL / HOLD | During Sprint |
72
+ | Verification | qcsd-cicd-swarm | RELEASE / REMEDIATE / BLOCK | Pre-Release / CI-CD |
73
+ | Production | qcsd-production-swarm | HEALTHY / DEGRADED / CRITICAL | Post-Release |
649
74
 
650
- **Option B: MCP Tools**
651
- ```javascript
652
- // Initialize fleet for Ideation domains
653
- mcp__agentic-qe__fleet_init({
654
- topology: "hierarchical",
655
- enabledDomains: ["requirements-validation", "coverage-analysis", "security-compliance"],
656
- maxAgents: 6
657
- })
658
-
659
- // Orchestrate ideation task
660
- mcp__agentic-qe__task_orchestrate({
661
- task: "qcsd-ideation-analysis",
662
- strategy: "parallel"
663
- })
664
- ```
75
+ ### Parameters
665
76
 
666
- **Option C: CLI**
667
- ```bash
668
- # Initialize coordination
669
- npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 6
77
+ - `URL`: Website to analyze (required for URL mode)
78
+ - `OUTPUT_FOLDER`: Where to save reports (default: `${PROJECT_ROOT}/Agentic QCSD/{domain}/`)
670
79
 
671
- # Route task
672
- npx @claude-flow/cli@latest hooks pre-task --description "QCSD Ideation for [Epic]"
80
+ ### Unique Features
673
81
 
674
- # Execute agents
675
- npx @claude-flow/cli@latest agent spawn --type qe-quality-criteria-recommender
676
- npx @claude-flow/cli@latest agent spawn --type qe-risk-assessor
677
- npx @claude-flow/cli@latest agent spawn --type qe-requirements-validator
678
- ```
82
+ - **URL Mode**: Automated 5-tier browser cascade for live website analysis
83
+ - **HAS_VIDEO Flag**: Detects video content and recommends `/a11y-ally` follow-up
84
+ - **HTML Output**: Generates HTML reports when `html_output: true`
85
+ - **Browser Cascade**: Vibium -> agent-browser -> Playwright+Stealth -> WebFetch -> WebSearch-fallback
679
86
 
680
87
  ---
681
88
 
682
- ## ENFORCEMENT RULES - READ FIRST
683
-
684
- **These rules are NON-NEGOTIABLE. Violation means skill execution failure.**
89
+ ## ENFORCEMENT RULES - READ FIRST
685
90
 
686
91
  | Rule | Enforcement |
687
92
  |------|-------------|
688
- | **E1** | You MUST spawn ALL THREE core agents in Phase 2. No exceptions. |
93
+ | **E1** | You MUST spawn ALL THREE core agents (qe-quality-criteria-recommender, qe-risk-assessor, qe-requirements-validator) in Step 2. No exceptions. |
689
94
  | **E2** | You MUST put all parallel Task calls in a SINGLE message. |
690
95
  | **E3** | You MUST STOP and WAIT after each batch. No proceeding early. |
691
96
  | **E4** | You MUST spawn conditional agents if flags are TRUE. No skipping. |
692
- | **E5** | You MUST apply GO/CONDITIONAL/NO-GO logic exactly as specified. |
97
+ | **E5** | You MUST apply GO/CONDITIONAL/NO-GO logic exactly as specified in Step 5. |
693
98
  | **E6** | You MUST generate the full report structure. No abbreviated versions. |
694
99
  | **E7** | Each agent MUST read its reference files before analysis. |
100
+ | **E8** | You MUST execute Step 7 learning persistence. No skipping. |
695
101
 
696
- **❌ PROHIBITED BEHAVIORS:**
102
+ **PROHIBITED BEHAVIORS:**
697
103
  - Summarizing instead of spawning agents
698
104
  - Skipping agents "for brevity"
699
105
  - Proceeding before background tasks complete
700
106
  - Providing your own analysis instead of spawning specialists
701
- - Omitting report sections
702
- - Using placeholder text like "[details here]"
703
-
704
- ---
705
-
706
- ## PHASE 1: Analyze Epic Content
707
-
708
- **⚠️ MANDATORY: You must complete this analysis before Phase 2.**
709
-
710
- Scan the epic content and SET these flags. Do not skip any flag.
711
-
712
- ### Flag Detection (Check ALL THREE)
713
-
714
- ```
715
- □ HAS_UI = FALSE
716
- Set TRUE if epic contains ANY of: UI, frontend, visual, design,
717
- component, screen, page, form, button, modal, dialog, dashboard,
718
- widget, interface, display, view, layout, CSS, styling
719
-
720
- □ HAS_SECURITY = FALSE
721
- Set TRUE if epic contains ANY of: auth, security, credential, token,
722
- encrypt, PII, compliance, password, login, session, OAuth, JWT,
723
- permission, role, access control, RBAC, sensitive, private
724
-
725
- □ HAS_UX = FALSE
726
- Set TRUE if epic contains ANY of: user experience, UX, journey,
727
- usability, satisfaction, user flow, persona, user research,
728
- friction, delight, onboarding, retention, engagement
729
-
730
- □ HAS_MIDDLEWARE = FALSE
731
- Set TRUE if epic contains ANY of: middleware, ESB, message broker,
732
- MQ, Kafka, RabbitMQ, integration bus, API gateway, message queue,
733
- pub/sub
734
-
735
- □ HAS_SAP_INTEGRATION = FALSE
736
- Set TRUE if epic contains ANY of: SAP, RFC, BAPI, IDoc, OData,
737
- S/4HANA, EWM, ECC, ABAP, CDS view, Fiori
738
-
739
- □ HAS_AUTHORIZATION = FALSE
740
- Set TRUE if epic contains ANY of: SoD, segregation of duties,
741
- role conflict, authorization object, T-code, user role,
742
- access control matrix, GRC
743
- ```
744
-
745
- ### Validation Checkpoint
746
-
747
- Before proceeding to Phase 2, confirm:
748
- ```
749
- ✓ I have read the entire epic content
750
- ✓ I have evaluated ALL SIX flags
751
- ✓ I have recorded which flags are TRUE
752
- ✓ I understand which conditional agents will be needed
753
- ```
754
-
755
- **❌ DO NOT proceed to Phase 2 until all checkboxes are confirmed.**
756
-
757
- ---
758
-
759
- ## PHASE 2: Spawn Core Agents (PARALLEL BATCH 1)
760
-
761
- ### ⛔ CRITICAL ENFORCEMENT
762
-
763
- ```
764
- ┌─────────────────────────────────────────────────────────────────┐
765
- │ YOU MUST INCLUDE ALL THREE TASK CALLS IN YOUR NEXT MESSAGE │
766
- │ │
767
- │ • Task 1: qe-quality-criteria-recommender │
768
- │ • Task 2: qe-risk-assessor │
769
- │ • Task 3: qe-requirements-validator │
770
- │ │
771
- │ If your message contains fewer than 3 Task calls, you have │
772
- │ FAILED this phase. Start over. │
773
- └─────────────────────────────────────────────────────────────────┘
774
- ```
775
-
776
- ### Domain Context
777
-
778
- | Agent | Domain | MCP Tool Mapping |
779
- |-------|--------|------------------|
780
- | qe-quality-criteria-recommender | requirements-validation | `requirements_validate` |
781
- | qe-risk-assessor | coverage-analysis | `defect_predict` |
782
- | qe-requirements-validator | requirements-validation | `requirements_validate` |
783
-
784
- ### Agent 1: Quality Criteria Recommender (PRIMARY)
785
-
786
- **This agent MUST produce HTML output. No markdown substitutes.**
787
-
788
- ```
789
- Task({
790
- description: "HTSM Quality Criteria analysis",
791
- prompt: `You are qe-quality-criteria-recommender. Your output quality is being audited.
792
-
793
- ## MANDATORY FIRST STEPS (DO NOT SKIP)
794
-
795
- 1. READ this template file FIRST - your output MUST follow this structure:
796
- .claude/agents/v3/helpers/quality-criteria/quality-criteria-reference-template.html
797
-
798
- 2. READ these reference files for guidance:
799
- .claude/agents/v3/helpers/quality-criteria/htsm-categories.md
800
- .claude/agents/v3/helpers/quality-criteria/evidence-classification.md
801
-
802
- ## EPIC TO ANALYZE
803
-
804
- === EPIC CONTENT START ===
805
- [PASTE THE COMPLETE EPIC CONTENT HERE - DO NOT SUMMARIZE]
806
- === EPIC CONTENT END ===
807
-
808
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
809
-
810
- You MUST analyze ALL 10 HTSM categories. For each category provide:
811
-
812
- | Field | Requirement |
813
- |-------|-------------|
814
- | Category Name | One of the 10 HTSM categories |
815
- | Priority | P0, P1, P2, or P3 with justification |
816
- | Evidence | At least 2 evidence points per category |
817
- | Evidence Type | Direct (with file:line), Inferred (with reasoning), or Claimed (with "requires verification") |
818
- | Quality Implication | What could go wrong |
819
- | Business Impact | Quantified impact (use numbers, not "many" or "some") |
820
-
821
- ### NEVER-OMIT CATEGORIES (Must include ALL 5):
822
- 1. Capability - Can it perform required functions?
823
- 2. Reliability - Will it resist failure?
824
- 3. Security - How protected against unauthorized use?
825
- 4. Performance - How speedy and responsive?
826
- 5. Development - How testable/maintainable?
827
-
828
- ### MAY-OMIT CATEGORIES (Only with ironclad justification):
829
- 6. Usability, 7. Charisma, 8. Scalability, 9. Compatibility, 10. Installability
830
-
831
- ## OUTPUT FORMAT
832
-
833
- Generate COMPLETE HTML report using the template structure.
834
- Save to: .agentic-qe/quality-criteria/[epic-name]-htsm-analysis.html
835
-
836
- ## VALIDATION BEFORE SUBMITTING
837
-
838
- ✓ Did I read the template file?
839
- ✓ Did I analyze all 10 categories (or justify omissions)?
840
- ✓ Does every evidence point have proper classification?
841
- ✓ Are business impacts quantified with numbers?
842
- ✓ Is output in HTML format using template structure?`,
843
- subagent_type: "qe-quality-criteria-recommender",
844
- run_in_background: true
845
- })
846
- ```
847
-
848
- ### Agent 2: Risk Assessor
849
-
850
- **This agent MUST identify at least 5 risks. Fewer is a failure.**
851
-
852
- ```
853
- Task({
854
- description: "Risk Storming analysis",
855
- prompt: `You are qe-risk-assessor. Your output quality is being audited.
856
-
857
- ## METHODOLOGY
858
-
859
- Apply risk-based-testing methodology systematically.
860
-
861
- ## EPIC TO ANALYZE
862
-
863
- === EPIC CONTENT START ===
864
- [PASTE THE COMPLETE EPIC CONTENT HERE - DO NOT SUMMARIZE]
865
- === EPIC CONTENT END ===
866
-
867
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
868
-
869
- ### Risk Identification Requirements
870
-
871
- You MUST identify risks in ALL FOUR categories:
872
- 1. **Technical Risks** - Architecture, integration, dependencies, complexity
873
- 2. **Business Risks** - Revenue impact, user impact, compliance, reputation
874
- 3. **Quality Risks** - Testability, maintainability, reliability concerns
875
- 4. **Integration Risks** - Third-party services, APIs, data flows
876
-
877
- **MINIMUM: 5 total risks. Target: 10+ risks.**
878
-
879
- ### For EACH Risk, Provide:
880
-
881
- | Field | Requirement |
882
- |-------|-------------|
883
- | Risk ID | R001, R002, etc. |
884
- | Description | Specific, actionable description (not vague) |
885
- | Category | Technical, Business, Quality, or Integration |
886
- | Likelihood | 1-5 scale with justification |
887
- | Impact | 1-5 scale with justification |
888
- | Risk Score | Likelihood × Impact |
889
- | Mitigation | Specific mitigation strategy |
890
- | Owner | Suggested owner (Dev, QE, Product, Ops) |
891
-
892
- ### Critical Risk Threshold
893
- - Score ≥ 15 = CRITICAL (must be flagged prominently)
894
- - Score 10-14 = HIGH
895
- - Score 5-9 = MEDIUM
896
- - Score < 5 = LOW
897
-
898
- ## OUTPUT FORMAT
899
-
900
- Markdown with:
901
- 1. Executive Summary (top 3 risks in bold)
902
- 2. Risk Matrix Table (sorted by score descending)
903
- 3. Critical Risks Section (if any score ≥ 15)
904
- 4. Mitigation Priority List
905
-
906
- ## VALIDATION BEFORE SUBMITTING
907
-
908
- ✓ Did I identify at least 5 risks?
909
- ✓ Did I cover all 4 risk categories?
910
- ✓ Does every risk have likelihood, impact, AND score?
911
- ✓ Are critical risks (≥15) clearly flagged?
912
- ✓ Does every risk have a specific mitigation?`,
913
- subagent_type: "qe-risk-assessor",
914
- run_in_background: true
915
- })
916
- ```
917
-
918
- ### Agent 3: Requirements Validator
919
-
920
- **This agent MUST provide testability score 0-100. No ranges.**
921
-
922
- ```
923
- Task({
924
- description: "AC validation and testability scoring",
925
- prompt: `You are qe-requirements-validator. Your output quality is being audited.
926
-
927
- ## METHODOLOGY
928
-
929
- Apply context-driven-testing and testability-scoring principles.
930
-
931
- ## ACCEPTANCE CRITERIA TO VALIDATE
932
-
933
- === ACCEPTANCE CRITERIA START ===
934
- [PASTE THE COMPLETE ACCEPTANCE CRITERIA HERE - DO NOT SUMMARIZE]
935
- === ACCEPTANCE CRITERIA END ===
936
-
937
- ## REQUIRED OUTPUT (ALL SECTIONS MANDATORY)
938
-
939
- ### 1. Testability Score (MANDATORY - SINGLE NUMBER)
940
-
941
- Score each of the 10 testability principles (0-10 each):
942
-
943
- | Principle | Score | Evidence |
944
- |-----------|-------|----------|
945
- | Controllability | X/10 | Can we control inputs/state? |
946
- | Observability | X/10 | Can we observe outputs/behavior? |
947
- | Isolability | X/10 | Can we test in isolation? |
948
- | Separation of Concerns | X/10 | Are responsibilities clear? |
949
- | Understandability | X/10 | Is behavior clearly specified? |
950
- | Automatability | X/10 | Can tests be automated? |
951
- | Heterogeneity | X/10 | Works across environments? |
952
- | Simplicity | X/10 | Is complexity manageable? |
953
- | Stability | X/10 | Are requirements stable? |
954
- | Information Availability | X/10 | Do we have needed info? |
955
-
956
- **TOTAL TESTABILITY SCORE: XX/100**
957
-
958
- ### 2. AC Completeness Assessment
959
-
960
- For EACH acceptance criterion:
961
-
962
- | AC ID | Text | INVEST Score | Issues | Testable? |
963
- |-------|------|--------------|--------|-----------|
964
- | AC1 | ... | X/6 | ... | Yes/No |
965
-
966
- INVEST Criteria:
967
- - **I**ndependent (can be tested alone)
968
- - **N**egotiable (not over-specified)
969
- - **V**aluable (delivers value)
970
- - **E**stimable (can estimate effort)
971
- - **S**mall (testable in one session)
972
- - **T**estable (clear pass/fail)
973
-
974
- **AC COMPLETENESS: XX%** (ACs that are fully testable / total ACs)
975
-
976
- ### 3. Gaps Identified (MANDATORY)
977
-
978
- List ALL gaps found:
979
- - Missing scenarios
980
- - Unclear requirements
981
- - Untestable criteria
982
- - Ambiguous language
983
- - Missing edge cases
984
-
985
- **MINIMUM: Identify at least 3 gaps or explicitly state "No gaps found after thorough analysis"**
986
-
987
- ### 4. Recommendations
988
-
989
- Specific, actionable recommendations to improve testability.
990
-
991
- ## VALIDATION BEFORE SUBMITTING
992
-
993
- ✓ Did I score all 10 testability principles?
994
- ✓ Did I calculate a single testability score (not a range)?
995
- ✓ Did I assess every AC against INVEST?
996
- ✓ Did I calculate AC completeness percentage?
997
- ✓ Did I identify gaps (or explicitly confirm none)?`,
998
- subagent_type: "qe-requirements-validator",
999
- run_in_background: true
1000
- })
1001
- ```
1002
-
1003
- ### Alternative: MCP Tools Execution
1004
-
1005
- If using MCP instead of Task tool:
1006
-
1007
- ```javascript
1008
- // Option 1: Orchestrate via Queen Coordinator
1009
- mcp__agentic-qe__fleet_init({
1010
- topology: "hierarchical",
1011
- enabledDomains: ["requirements-validation", "coverage-analysis"],
1012
- maxAgents: 6,
1013
- lazyLoading: true
1014
- })
1015
-
1016
- // Submit tasks to specific domains
1017
- mcp__agentic-qe__task_submit({
1018
- type: "quality-criteria-analysis",
1019
- priority: "p0",
1020
- payload: {
1021
- epicContent: epicContent,
1022
- outputFormat: "html",
1023
- htsmVersion: "6.3"
1024
- }
1025
- })
1026
-
1027
- mcp__agentic-qe__task_submit({
1028
- type: "risk-assessment",
1029
- priority: "p0",
1030
- payload: {
1031
- epicContent: epicContent,
1032
- riskCategories: ["technical", "business", "quality", "integration"]
1033
- }
1034
- })
1035
-
1036
- mcp__agentic-qe__task_submit({
1037
- type: "requirements-validation",
1038
- priority: "p0",
1039
- payload: {
1040
- acceptanceCriteria: acContent,
1041
- scoreTestability: true,
1042
- validateInvest: true
1043
- }
1044
- })
1045
-
1046
- // Check task status
1047
- mcp__agentic-qe__task_list({ status: "pending" })
1048
- ```
1049
-
1050
- ### Alternative: CLI Execution
1051
-
1052
- If using CLI instead of Task tool:
1053
-
1054
- ```bash
1055
- # Initialize swarm for ideation
1056
- npx @claude-flow/cli@latest swarm init \
1057
- --topology hierarchical \
1058
- --max-agents 6 \
1059
- --strategy specialized
1060
-
1061
- # Pre-task hook for routing
1062
- npx @claude-flow/cli@latest hooks pre-task \
1063
- --description "QCSD Ideation: Quality Criteria, Risk Assessment, AC Validation"
1064
-
1065
- # Spawn agents (run in separate terminals or background)
1066
- npx @claude-flow/cli@latest agent spawn \
1067
- --type qe-quality-criteria-recommender \
1068
- --task "Analyze HTSM categories for epic" &
1069
-
1070
- npx @claude-flow/cli@latest agent spawn \
1071
- --type qe-risk-assessor \
1072
- --task "Risk storming analysis" &
1073
-
1074
- npx @claude-flow/cli@latest agent spawn \
1075
- --type qe-requirements-validator \
1076
- --task "AC validation and testability scoring" &
1077
-
1078
- # Wait for completion
1079
- wait
1080
-
1081
- # Check swarm status
1082
- npx @claude-flow/cli@latest swarm status
1083
- ```
1084
-
1085
- ### Post-Spawn Confirmation
1086
-
1087
- After sending all three Task calls, you MUST tell the user:
1088
-
1089
- ```
1090
- I've launched 3 core agents in parallel:
1091
-
1092
- 🎯 qe-quality-criteria-recommender [Domain: requirements-validation]
1093
- - Analyzing all 10 HTSM v6.3 categories
1094
- - Collecting evidence with classifications
1095
- - Generating HTML report
1096
-
1097
- ⚠️ qe-risk-assessor [Domain: coverage-analysis]
1098
- - Identifying Technical, Business, Quality, Integration risks
1099
- - Scoring likelihood × impact
1100
- - Prioritizing mitigations
1101
-
1102
- ✅ qe-requirements-validator [Domain: requirements-validation]
1103
- - Scoring testability (10 principles)
1104
- - Validating ACs against INVEST
1105
- - Identifying gaps
1106
-
1107
- ⏳ WAITING for all agents to complete before proceeding...
1108
- ```
1109
-
1110
- **❌ DO NOT proceed to Phase 3 until you have sent this confirmation.**
1111
-
1112
- ---
1113
-
1114
- ## PHASE 3: Wait for Batch 1 Completion
1115
-
1116
- ### ⛔ ENFORCEMENT: NO EARLY PROCEEDING
1117
-
1118
- ```
1119
- ┌─────────────────────────────────────────────────────────────────┐
1120
- │ YOU MUST WAIT FOR ALL THREE BACKGROUND TASKS TO COMPLETE │
1121
- │ │
1122
- │ ❌ DO NOT summarize what agents "would" find │
1123
- │ ❌ DO NOT proceed to Phase 4 early │
1124
- │ ❌ DO NOT provide your own analysis as substitute │
1125
- │ │
1126
- │ ✓ WAIT for actual agent results │
1127
- │ ✓ ONLY proceed when all three have returned │
1128
- └─────────────────────────────────────────────────────────────────┘
1129
- ```
1130
-
1131
- ### Results Extraction Checklist
1132
-
1133
- When results return, extract and record:
1134
-
1135
- ```
1136
- From qe-quality-criteria-recommender:
1137
- □ htsmCoverage = __/10 categories analyzed
1138
- □ p0Count = __ P0 priority items
1139
- □ evidenceQuality = Direct __%, Inferred __%, Claimed __%
1140
-
1141
- From qe-risk-assessor:
1142
- □ totalRisks = __ risks identified
1143
- □ criticalRisks = __ risks with score ≥ 15
1144
- □ topRiskScore = __ (highest score)
1145
-
1146
- From qe-requirements-validator:
1147
- □ testabilityScore = __/100
1148
- □ acCompleteness = __%
1149
- □ gapsIdentified = __ gaps
1150
- ```
1151
-
1152
- **❌ DO NOT proceed to Phase 4 until ALL fields are filled.**
1153
-
1154
- ---
1155
-
1156
- ## PHASE 4: Spawn Conditional Agents (PARALLEL BATCH 2)
1157
-
1158
- ### ⛔ ENFORCEMENT: NO SKIPPING CONDITIONAL AGENTS
1159
-
1160
- ```
1161
- ┌─────────────────────────────────────────────────────────────────┐
1162
- │ IF A FLAG IS TRUE, YOU MUST SPAWN THAT AGENT │
1163
- │ │
1164
- │ HAS_UI = TRUE → MUST spawn qe-accessibility-auditor │
1165
- │ HAS_SECURITY = TRUE → MUST spawn qe-security-auditor │
1166
- │ HAS_UX = TRUE → MUST spawn qe-qx-partner │
1167
- │ HAS_MIDDLEWARE = TRUE → MUST spawn qe-middleware-validator │
1168
- │ HAS_SAP_INTEGRATION = TRUE → MUST spawn qe-sap-rfc-tester │
1169
- │ HAS_AUTHORIZATION = TRUE → MUST spawn qe-sod-analyzer │
1170
- │ │
1171
- │ Skipping a flagged agent is a FAILURE of this skill. │
1172
- └─────────────────────────────────────────────────────────────────┘
1173
- ```
1174
-
1175
- ### Conditional Domain Mapping
1176
-
1177
- | Flag | Agent | Domain | MCP Tool |
1178
- |------|-------|--------|----------|
1179
- | HAS_UI | qe-accessibility-auditor | visual-accessibility | `accessibility_test` |
1180
- | HAS_SECURITY | qe-security-auditor | security-compliance | `security_scan_comprehensive` |
1181
- | HAS_UX | qe-qx-partner | cross-domain | `task_orchestrate` |
1182
- | HAS_MIDDLEWARE | qe-middleware-validator | enterprise-integration | `task_orchestrate` |
1183
- | HAS_SAP_INTEGRATION | qe-sap-rfc-tester | enterprise-integration | `task_orchestrate` |
1184
- | HAS_AUTHORIZATION | qe-sod-analyzer | enterprise-integration | `task_orchestrate` |
1185
-
1186
- ### Decision Tree
1187
-
1188
- ```
1189
- IF HAS_UI == FALSE AND HAS_SECURITY == FALSE AND HAS_UX == FALSE AND HAS_MIDDLEWARE == FALSE AND HAS_SAP_INTEGRATION == FALSE AND HAS_AUTHORIZATION == FALSE:
1190
- → Skip to Phase 5 (no conditional agents needed)
1191
- → State: "No conditional agents needed based on epic analysis"
1192
-
1193
- ELSE:
1194
- → Spawn ALL applicable agents in ONE message
1195
- → Count how many you're spawning: __
1196
- ```
1197
-
1198
- ### IF HAS_UI: Accessibility Auditor (MANDATORY WHEN FLAGGED)
1199
-
1200
- ```
1201
- Task({
1202
- description: "Early accessibility review",
1203
- prompt: `You are qe-accessibility-auditor. Your output quality is being audited.
1204
-
1205
- ## EPIC CONTENT
1206
-
1207
- === EPIC CONTENT START ===
1208
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1209
- === EPIC CONTENT END ===
1210
-
1211
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1212
-
1213
- ### 1. UI Components Inventory
1214
-
1215
- List EVERY UI component mentioned or implied:
1216
- | Component | Type | A11y Risk Level |
1217
- |-----------|------|-----------------|
1218
-
1219
- ### 2. WCAG 2.1 AA Risk Assessment
1220
-
1221
- For each component, assess against:
1222
- - Perceivable (text alternatives, captions, adaptable, distinguishable)
1223
- - Operable (keyboard, timing, seizures, navigation)
1224
- - Understandable (readable, predictable, input assistance)
1225
- - Robust (compatible with assistive tech)
1226
-
1227
- ### 3. Keyboard Navigation Requirements
1228
-
1229
- List ALL interactions that MUST support keyboard:
1230
- - [ ] Requirement 1
1231
- - [ ] Requirement 2
1232
- - ...
1233
-
1234
- ### 4. Screen Reader Considerations
1235
-
1236
- What must be announced? What ARIA roles needed?
1237
-
1238
- ### 5. Findings Summary
1239
-
1240
- | Finding | Severity | WCAG Criterion | Recommendation |
1241
- |---------|----------|----------------|----------------|
1242
-
1243
- Severity: Critical (blocker), Major (significant barrier), Minor (inconvenience)
1244
-
1245
- **MINIMUM: 3 findings or explicit "No accessibility risks identified after thorough analysis"**`,
1246
- subagent_type: "qe-accessibility-auditor",
1247
- run_in_background: true
1248
- })
1249
- ```
1250
-
1251
- ### IF HAS_SECURITY: Security Auditor (MANDATORY WHEN FLAGGED)
1252
-
1253
- ```
1254
- Task({
1255
- description: "Security threat modeling",
1256
- prompt: `You are qe-security-auditor. Your output quality is being audited.
1257
-
1258
- ## EPIC CONTENT
1259
-
1260
- === EPIC CONTENT START ===
1261
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1262
- === EPIC CONTENT END ===
1263
-
1264
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1265
-
1266
- ### 1. STRIDE Threat Model
1267
-
1268
- Analyze against ALL SIX categories:
1269
-
1270
- | Threat Type | Applicable? | Threats Identified | Mitigations |
1271
- |-------------|-------------|-------------------|-------------|
1272
- | **S**poofing | Yes/No | ... | ... |
1273
- | **T**ampering | Yes/No | ... | ... |
1274
- | **R**epudiation | Yes/No | ... | ... |
1275
- | **I**nformation Disclosure | Yes/No | ... | ... |
1276
- | **D**enial of Service | Yes/No | ... | ... |
1277
- | **E**levation of Privilege | Yes/No | ... | ... |
1278
-
1279
- ### 2. Authentication/Authorization Requirements
1280
-
1281
- - Auth method required: ___
1282
- - Session management: ___
1283
- - Permission model: ___
1284
-
1285
- ### 3. Data Protection Concerns
1286
-
1287
- | Data Type | Classification | Protection Required |
1288
- |-----------|---------------|---------------------|
1289
- | ... | PII/Sensitive/Public | Encryption/Masking/None |
1290
-
1291
- ### 4. Compliance Implications
1292
-
1293
- Check ALL that apply:
1294
- - [ ] GDPR (EU user data)
1295
- - [ ] CCPA (California user data)
1296
- - [ ] SOC 2 (security controls)
1297
- - [ ] HIPAA (health data)
1298
- - [ ] PCI-DSS (payment data)
1299
- - [ ] Other: ___
1300
-
1301
- ### 5. Security Testing Requirements
1302
-
1303
- What security tests MUST be performed?
1304
-
1305
- **MINIMUM: Identify threats in at least 3 STRIDE categories**`,
1306
- subagent_type: "qe-security-auditor",
1307
- run_in_background: true
1308
- })
1309
- ```
1310
-
1311
- ### IF HAS_UX: QX Partner (MANDATORY WHEN FLAGGED)
1312
-
1313
- ```
1314
- Task({
1315
- description: "Quality Experience analysis",
1316
- prompt: `You are qe-qx-partner. Your output quality is being audited.
1317
-
1318
- ## METHODOLOGY
1319
-
1320
- Apply holistic-testing-pact methodology (PACT principles).
1321
-
1322
- ## EPIC CONTENT
1323
-
1324
- === EPIC CONTENT START ===
1325
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1326
- === EPIC CONTENT END ===
1327
-
1328
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1329
-
1330
- ### 1. PACT Analysis
1331
-
1332
- | Dimension | Analysis |
1333
- |-----------|----------|
1334
- | **P**eople | Who are the users? Personas? Needs? |
1335
- | **A**ctivities | What are they trying to do? Goals? |
1336
- | **C**ontexts | Where/when/how do they use this? |
1337
- | **T**echnologies | What tech constraints exist? |
1338
-
1339
- ### 2. User Personas Affected
1340
-
1341
- | Persona | Impact Level | Key Concerns |
1342
- |---------|--------------|--------------|
1343
- | ... | High/Medium/Low | ... |
1344
-
1345
- ### 3. User Journey Impact
1346
-
1347
- Map affected touchpoints:
1348
- ```
1349
- [Entry] → [Step 1] → [Step 2] → [Exit]
1350
- ↑ Impact ↑ Impact
1351
- ```
1352
-
1353
- ### 4. Quality Experience Risks
1354
-
1355
- | QX Risk | User Feeling | Business Impact |
1356
- |---------|--------------|-----------------|
1357
- | ... | Frustrated/Confused/Delighted | ... |
1358
-
1359
- ### 5. UX Testing Recommendations
1360
-
1361
- What UX-specific tests are needed?
1362
- - Usability testing needs
1363
- - User research gaps
1364
- - A/B testing candidates
1365
-
1366
- **MINIMUM: Identify 3 QX risks or explicit "No QX risks after thorough analysis"**`,
1367
- subagent_type: "qe-qx-partner",
1368
- run_in_background: true
1369
- })
1370
- ```
1371
-
1372
- ### IF HAS_MIDDLEWARE: Middleware Validator (MANDATORY WHEN FLAGGED)
1373
-
1374
- ```
1375
- Task({
1376
- description: "Middleware integration quality criteria",
1377
- prompt: `You are qe-middleware-validator. Your output quality is being audited.
1378
-
1379
- ## EPIC CONTENT
1380
-
1381
- === EPIC CONTENT START ===
1382
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1383
- === EPIC CONTENT END ===
1384
-
1385
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1386
-
1387
- ### 1. Middleware Component Inventory
1388
-
1389
- List EVERY middleware/integration component mentioned or implied:
1390
- | Component | Type | Quality Risk Level |
1391
- |-----------|------|-------------------|
1392
-
1393
- ### 2. Message Flow Quality Assessment
1394
-
1395
- For each integration flow:
1396
- - Message routing reliability
1397
- - Transformation accuracy
1398
- - Dead letter queue handling
1399
- - Protocol mediation risks
1400
- - Retry and idempotency concerns
1401
-
1402
- ### 3. Integration Pattern Risks
1403
-
1404
- | Pattern | Risk | Impact | Recommendation |
1405
- |---------|------|--------|----------------|
1406
-
1407
- ### 4. Quality Criteria Recommendations
1408
-
1409
- What middleware-specific quality criteria MUST be validated?
1410
-
1411
- **MINIMUM: 3 findings or explicit "No middleware quality risks after thorough analysis"**`,
1412
- subagent_type: "qe-middleware-validator",
1413
- run_in_background: true
1414
- })
1415
- ```
1416
-
1417
- ### IF HAS_SAP_INTEGRATION: SAP RFC Tester (MANDATORY WHEN FLAGGED)
1418
-
1419
- ```
1420
- Task({
1421
- description: "SAP-specific quality criteria",
1422
- prompt: `You are qe-sap-rfc-tester. Your output quality is being audited.
1423
-
1424
- ## EPIC CONTENT
1425
-
1426
- === EPIC CONTENT START ===
1427
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1428
- === EPIC CONTENT END ===
1429
-
1430
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1431
-
1432
- ### 1. SAP Interface Inventory
1433
-
1434
- List EVERY SAP interface mentioned or implied:
1435
- | Interface | Type (RFC/BAPI/IDoc/OData) | Direction | Quality Risk |
1436
- |-----------|---------------------------|-----------|-------------|
1437
-
1438
- ### 2. SAP-Specific Quality Criteria
1439
-
1440
- Assess quality concerns for:
1441
- - RFC/BAPI call reliability and error handling
1442
- - IDoc processing and status monitoring
1443
- - OData service contract stability
1444
- - S/4HANA migration compatibility
1445
- - CDS view dependencies and performance
1446
- - Fiori UI quality concerns (if applicable)
1447
-
1448
- ### 3. SAP Transport and Data Consistency
1449
-
1450
- | Concern | Risk | Impact | Recommendation |
1451
- |---------|------|--------|----------------|
1452
-
1453
- ### 4. Quality Criteria Recommendations
1454
-
1455
- What SAP-specific quality criteria MUST be validated?
1456
-
1457
- **MINIMUM: 3 findings or explicit "No SAP quality risks after thorough analysis"**`,
1458
- subagent_type: "qe-sap-rfc-tester",
1459
- run_in_background: true
1460
- })
1461
- ```
1462
-
1463
- ### IF HAS_AUTHORIZATION: SoD Analyzer (MANDATORY WHEN FLAGGED)
1464
-
1465
- ```
1466
- Task({
1467
- description: "Authorization and SoD quality criteria",
1468
- prompt: `You are qe-sod-analyzer. Your output quality is being audited.
1469
-
1470
- ## EPIC CONTENT
1471
-
1472
- === EPIC CONTENT START ===
1473
- [PASTE THE COMPLETE EPIC CONTENT HERE]
1474
- === EPIC CONTENT END ===
1475
-
1476
- ## REQUIRED ANALYSIS (ALL SECTIONS MANDATORY)
1477
-
1478
- ### 1. Authorization Scope Inventory
1479
-
1480
- List EVERY authorization concern mentioned or implied:
1481
- | Concern | Type | Risk Level |
1482
- |---------|------|-----------|
1483
-
1484
- ### 2. Segregation of Duties Assessment
1485
-
1486
- For each SoD concern:
1487
- - Role conflict identification
1488
- - Authorization object coverage
1489
- - T-code restriction analysis
1490
- - Access control matrix completeness
1491
- - GRC compliance requirements
1492
-
1493
- ### 3. Authorization Risk Matrix
1494
-
1495
- | Risk | Probability | Impact | Mitigation |
1496
- |------|------------|--------|------------|
1497
-
1498
- ### 4. Quality Criteria Recommendations
1499
-
1500
- What authorization-specific quality criteria MUST be validated?
1501
-
1502
- **MINIMUM: 3 findings or explicit "No authorization quality risks after thorough analysis"**`,
1503
- subagent_type: "qe-sod-analyzer",
1504
- run_in_background: true
1505
- })
1506
- ```
1507
-
1508
- ### Alternative: MCP Tools for Conditional Agents
1509
-
1510
- ```javascript
1511
- // IF HAS_UI - Enable visual-accessibility domain
1512
- if (HAS_UI) {
1513
- mcp__agentic-qe__accessibility_test({
1514
- url: targetUrl, // if web-based
1515
- standard: "WCAG21AA"
1516
- })
1517
- }
1518
-
1519
- // IF HAS_SECURITY - Enable security-compliance domain
1520
- if (HAS_SECURITY) {
1521
- mcp__agentic-qe__security_scan_comprehensive({
1522
- target: "src/",
1523
- sast: true,
1524
- dast: false // No runtime yet in ideation
1525
- })
1526
- }
1527
-
1528
- // IF HAS_UX - Cross-domain analysis
1529
- if (HAS_UX) {
1530
- mcp__agentic-qe__task_orchestrate({
1531
- task: "qx-analysis",
1532
- strategy: "adaptive"
1533
- })
1534
- }
1535
- ```
1536
-
1537
- ### Alternative: CLI for Conditional Agents
1538
-
1539
- ```bash
1540
- # IF HAS_UI
1541
- if [ "$HAS_UI" = "TRUE" ]; then
1542
- npx @claude-flow/cli@latest agent spawn \
1543
- --type qe-accessibility-auditor \
1544
- --task "WCAG 2.1 AA assessment" &
1545
- fi
1546
-
1547
- # IF HAS_SECURITY
1548
- if [ "$HAS_SECURITY" = "TRUE" ]; then
1549
- npx @claude-flow/cli@latest agent spawn \
1550
- --type qe-security-auditor \
1551
- --task "STRIDE threat modeling" &
1552
- fi
1553
-
1554
- # IF HAS_UX
1555
- if [ "$HAS_UX" = "TRUE" ]; then
1556
- npx @claude-flow/cli@latest agent spawn \
1557
- --type qe-qx-partner \
1558
- --task "PACT quality experience analysis" &
1559
- fi
1560
-
1561
- # Wait for conditional agents
1562
- wait
1563
- ```
1564
-
1565
- ### Post-Spawn Confirmation (If Applicable)
1566
-
1567
- ```
1568
- I've launched [N] conditional agent(s) in parallel:
1569
-
1570
- [IF HAS_UI] ♿ qe-accessibility-auditor [Domain: visual-accessibility] - WCAG 2.1 AA assessment
1571
- [IF HAS_SECURITY] 🔒 qe-security-auditor [Domain: security-compliance] - STRIDE threat modeling
1572
- [IF HAS_UX] 💫 qe-qx-partner [Domain: cross-domain] - PACT quality experience analysis
1573
-
1574
- ⏳ WAITING for conditional agents to complete...
1575
- ```
1576
-
1577
- ---
1578
-
1579
- ## PHASE 5: Synthesize Results & Determine Recommendation
1580
-
1581
- ### ⛔ ENFORCEMENT: EXACT DECISION LOGIC
1582
-
1583
- **You MUST apply this logic EXACTLY. No interpretation.**
1584
-
1585
- ```
1586
- STEP 1: Check NO-GO conditions (ANY triggers NO-GO)
1587
- ─────────────────────────────────────────────────
1588
- IF testabilityScore < 40 → NO-GO (reason: "Testability critically low")
1589
- IF htsmCoverage < 6 → NO-GO (reason: "Insufficient quality coverage")
1590
- IF acCompleteness < 50 → NO-GO (reason: "Acceptance criteria incomplete")
1591
- IF criticalRisks > 2 → NO-GO (reason: "Too many critical risks")
1592
-
1593
- STEP 2: Check GO conditions (ALL required for GO)
1594
- ─────────────────────────────────────────────────
1595
- IF testabilityScore >= 80
1596
- AND htsmCoverage >= 8
1597
- AND acCompleteness >= 90
1598
- AND criticalRisks == 0 → GO
1599
-
1600
- STEP 3: Default
1601
- ─────────────────────────────────────────────────
1602
- ELSE → CONDITIONAL
1603
- ```
1604
-
1605
- ### Decision Recording
1606
-
1607
- ```
1608
- METRICS:
1609
- - testabilityScore = __/100
1610
- - htsmCoverage = __/10
1611
- - acCompleteness = __%
1612
- - criticalRisks = __
1613
-
1614
- NO-GO CHECK:
1615
- - testabilityScore < 40? __ (YES/NO)
1616
- - htsmCoverage < 6? __ (YES/NO)
1617
- - acCompleteness < 50? __ (YES/NO)
1618
- - criticalRisks > 2? __ (YES/NO)
1619
-
1620
- GO CHECK (only if no NO-GO triggered):
1621
- - testabilityScore >= 80? __ (YES/NO)
1622
- - htsmCoverage >= 8? __ (YES/NO)
1623
- - acCompleteness >= 90? __ (YES/NO)
1624
- - criticalRisks == 0? __ (YES/NO)
1625
-
1626
- FINAL RECOMMENDATION: [GO / CONDITIONAL / NO-GO]
1627
- REASON: ___
1628
- ```
1629
-
1630
- ---
1631
-
1632
- ## PHASE 6: Generate Ideation Report
1633
-
1634
- ### ⛔ ENFORCEMENT: COMPLETE REPORT STRUCTURE
1635
-
1636
- **ALL sections below are MANDATORY. No abbreviations.**
1637
-
1638
- ```markdown
1639
- # QCSD Ideation Report: [Epic Name]
1640
-
1641
- **Generated**: [Date/Time]
1642
- **Recommendation**: [GO / CONDITIONAL / NO-GO]
1643
- **Agents Executed**: [List all agents that ran]
1644
-
1645
- ---
1646
-
1647
- ## Executive Summary
1648
-
1649
- | Metric | Value | Threshold | Status |
1650
- |--------|-------|-----------|--------|
1651
- | HTSM Coverage | X/10 | ≥8 | ✅/⚠️/❌ |
1652
- | Testability Score | X% | ≥80% | ✅/⚠️/❌ |
1653
- | AC Completeness | X% | ≥90% | ✅/⚠️/❌ |
1654
- | Critical Risks | X | 0 | ✅/⚠️/❌ |
1655
-
1656
- **Recommendation Rationale**: [1-2 sentences explaining why GO/CONDITIONAL/NO-GO]
1657
-
1658
- ---
1659
-
1660
- ## Quality Criteria Analysis (HTSM v6.3)
1661
-
1662
- [EMBED or LINK the HTML report from qe-quality-criteria-recommender]
1663
-
1664
- ### Priority Items Summary
1665
-
1666
- | Priority | Count | Categories |
1667
- |----------|-------|------------|
1668
- | P0 (Critical) | X | [list] |
1669
- | P1 (High) | X | [list] |
1670
- | P2 (Medium) | X | [list] |
1671
- | P3 (Low) | X | [list] |
1672
-
1673
- ### Cross-Cutting Concerns
1674
- [List any concerns that span multiple categories]
1675
-
1676
- ---
1677
-
1678
- ## Risk Assessment
1679
-
1680
- ### Risk Matrix
1681
-
1682
- | ID | Risk | Category | L | I | Score | Mitigation |
1683
- |----|------|----------|---|---|-------|------------|
1684
- [ALL risks from qe-risk-assessor, sorted by score]
1685
-
1686
- ### Critical Risks (Score ≥ 15)
1687
- [Highlight critical risks with detailed mitigation plans]
1688
-
1689
- ### Risk Distribution
1690
- - Technical: X risks
1691
- - Business: X risks
1692
- - Quality: X risks
1693
- - Integration: X risks
1694
-
1695
- ---
1696
-
1697
- ## Requirements Validation
1698
-
1699
- ### Testability Score: X/100
1700
-
1701
- | Principle | Score | Notes |
1702
- |-----------|-------|-------|
1703
- [All 10 principles from qe-requirements-validator]
1704
-
1705
- ### AC Completeness: X%
1706
-
1707
- | AC | Status | Issues |
1708
- |----|--------|--------|
1709
- [All ACs evaluated]
1710
-
1711
- ### Gaps Identified
1712
- 1. [Gap 1]
1713
- 2. [Gap 2]
1714
- [All gaps from qe-requirements-validator]
107
+ - Omitting report sections or using placeholder text
1715
108
 
1716
109
  ---
1717
110
 
1718
- ## Conditional Analysis
1719
-
1720
- [INCLUDE ONLY IF APPLICABLE - based on which conditional agents ran]
1721
-
1722
- ### Accessibility Review (IF HAS_UI)
1723
- [Full output from qe-accessibility-auditor]
111
+ ## Step Execution Protocol
1724
112
 
1725
- ### Security Assessment (IF HAS_SECURITY)
1726
- [Full output from qe-security-auditor]
113
+ This skill uses a micro-file step architecture. Each step is a self-contained file
114
+ loaded one at a time to avoid "lost in the middle" context degradation.
1727
115
 
1728
- ### Quality Experience (IF HAS_UX)
1729
- [Full output from qe-qx-partner]
116
+ **Execute steps sequentially by reading each step file with the Read tool.**
1730
117
 
1731
- ---
1732
-
1733
- ## Recommended Next Steps
118
+ ### Steps
1734
119
 
1735
- ### Immediate Actions (Before Development)
1736
- - [ ] [Action based on findings]
1737
- - [ ] [Action based on findings]
120
+ 1. **Flag Detection** -- `steps/01-flag-detection.md` -- Fetch URL content (browser cascade), detect all 7 flags (HAS_UI, HAS_SECURITY, HAS_UX, HAS_VIDEO, HAS_MIDDLEWARE, HAS_SAP_INTEGRATION, HAS_AUTHORIZATION)
121
+ 2. **Core Agents** -- `steps/02-core-agents.md` -- Spawn qe-quality-criteria-recommender, qe-risk-assessor, qe-requirements-validator in parallel
122
+ 3. **Batch 1 Results** -- `steps/03-batch1-results.md` -- Wait for core agents, extract all metrics
123
+ 4. **Conditional Agents** -- `steps/04-conditional-agents.md` -- Spawn flagged conditional agents in parallel
124
+ 5. **Decision Synthesis** -- `steps/05-decision-synthesis.md` -- Apply GO/CONDITIONAL/NO-GO logic
125
+ 6. **Report Generation** -- `steps/06-report-generation.md` -- Generate executive summary and full report
126
+ 7. **Learning Persistence** -- `steps/07-learning-persistence.md` -- Store findings to memory, save persistence record, include video follow-up recommendation
127
+ 8. **Final Output** -- `steps/08-final-output.md` -- Display completion summary with all scores and follow-up recommendations
1738
128
 
1739
- ### During Development
1740
- - [ ] [Action based on findings]
129
+ ### Execution Instructions
1741
130
 
1742
- ### Pre-Release
1743
- - [ ] [Action based on findings]
1744
-
1745
- ---
131
+ 1. Use the Read tool to load the current step file (e.g., `Read({ file_path: ".claude/skills/qcsd-ideation-swarm/steps/01-flag-detection.md" })`)
132
+ 2. Execute the step's instructions completely
133
+ 3. Verify all success criteria are met before proceeding
134
+ 4. Pass the step's output as context to the next step
135
+ 5. If a step fails, halt and report the failure point -- do not skip ahead
1746
136
 
1747
- ## Appendix: Agent Outputs
137
+ ### Resume Support
1748
138
 
1749
- [Link to or embed full outputs from each agent]
139
+ To resume from a specific step: specify `--from-step N` and the orchestrator will
140
+ skip to step N. Ensure you have the required prerequisite data from prior steps.
1750
141
 
1751
142
  ---
1752
143
 
1753
- *Generated by QCSD Ideation Swarm v6.1*
1754
- *Execution Model: Task Tool Parallel Swarm*
1755
- ```
144
+ ## Agent Inventory
1756
145
 
1757
- ### Report Validation Checklist
146
+ | Agent | Type | Domain | Batch |
147
+ |-------|------|--------|-------|
148
+ | qe-quality-criteria-recommender | Core (always) | requirements-validation | 1 |
149
+ | qe-risk-assessor | Core (always) | coverage-analysis | 1 |
150
+ | qe-requirements-validator | Core (always) | requirements-validation | 1 |
151
+ | qe-accessibility-auditor | Conditional (HAS_UI) | visual-accessibility | 2 |
152
+ | qe-security-auditor | Conditional (HAS_SECURITY) | security-compliance | 2 |
153
+ | qe-qx-partner | Conditional (HAS_UX) | cross-domain | 2 |
154
+ | qe-middleware-validator | Conditional (HAS_MIDDLEWARE) | enterprise-integration | 2 |
155
+ | qe-sap-rfc-tester | Conditional (HAS_SAP_INTEGRATION) | enterprise-integration | 2 |
156
+ | qe-sod-analyzer | Conditional (HAS_AUTHORIZATION) | enterprise-integration | 2 |
1758
157
 
1759
- Before presenting report:
1760
- ```
1761
- ✓ Executive Summary table is complete with all 4 metrics
1762
- ✓ Recommendation matches decision logic output
1763
- ✓ Quality Criteria section includes priority summary
1764
- ✓ Risk Matrix includes ALL identified risks
1765
- ✓ Testability score shows all 10 principles
1766
- ✓ All gaps are listed
1767
- ✓ Conditional sections included for all spawned agents
1768
- ✓ Next steps are specific and actionable (not generic)
1769
- ```
158
+ **Total: 9 agents (3 core + 6 conditional)**
1770
159
 
1771
- **❌ DO NOT present an incomplete report.**
160
+ **Note**: The Ideation swarm has 8 steps (not 9) because it has no separate final
161
+ analysis agent step. The HAS_VIDEO flag triggers a follow-up recommendation for
162
+ `/a11y-ally` but does not spawn an additional agent.
1772
163
 
1773
164
  ---
1774
165
 
1775
- ## PHASE 7: Store Learnings & Persist State
1776
-
1777
- ### Purpose
1778
-
1779
- Store ideation findings for:
1780
- - Cross-phase feedback loops (Production → next Ideation cycle)
1781
- - Historical analysis of GO/CONDITIONAL/NO-GO decisions
1782
- - Pattern learning across epics
1783
-
1784
- ### Option A: MCP Memory Tools (RECOMMENDED)
1785
-
1786
- ```javascript
1787
- // Store ideation findings
1788
- mcp__agentic-qe__memory_store({
1789
- key: `qcsd-ideation-${epicId}-${Date.now()}`,
1790
- namespace: "qcsd-ideation",
1791
- value: {
1792
- epicId: epicId,
1793
- epicName: epicName,
1794
- recommendation: recommendation, // GO, CONDITIONAL, NO-GO
1795
- metrics: {
1796
- htsmCoverage: htsmCoverage,
1797
- testabilityScore: testabilityScore,
1798
- acCompleteness: acCompleteness,
1799
- criticalRisks: criticalRisks
1800
- },
1801
- domains: {
1802
- requirementsValidation: true,
1803
- coverageAnalysis: true,
1804
- securityCompliance: HAS_SECURITY,
1805
- visualAccessibility: HAS_UI,
1806
- crossDomain: HAS_UX
1807
- },
1808
- agentsInvoked: agentList,
1809
- timestamp: new Date().toISOString()
1810
- }
1811
- })
1812
-
1813
- // Share learnings with learning coordinator for cross-domain patterns
1814
- mcp__agentic-qe__memory_share({
1815
- sourceAgentId: "qcsd-ideation-swarm",
1816
- targetAgentIds: ["qe-learning-coordinator", "qe-pattern-learner"],
1817
- knowledgeDomain: "ideation-patterns"
1818
- })
1819
-
1820
- // Query previous ideation results for similar epics
1821
- mcp__agentic-qe__memory_query({
1822
- pattern: "qcsd-ideation-*",
1823
- namespace: "qcsd-ideation"
1824
- })
1825
- ```
1826
-
1827
- ### Option B: CLI Memory Commands
1828
-
1829
- ```bash
1830
- # Store ideation findings
1831
- npx @claude-flow/cli@latest memory store \
1832
- --key "qcsd-ideation-${EPIC_ID}" \
1833
- --value '{"recommendation":"GO","testabilityScore":85,"htsmCoverage":9}' \
1834
- --namespace qcsd-ideation
1835
-
1836
- # Search for similar epics
1837
- npx @claude-flow/cli@latest memory search \
1838
- --query "ideation recommendation" \
1839
- --namespace qcsd-ideation
1840
-
1841
- # List all ideation records
1842
- npx @claude-flow/cli@latest memory list \
1843
- --namespace qcsd-ideation
1844
-
1845
- # Post-task hook for learning
1846
- npx @claude-flow/cli@latest hooks post-task \
1847
- --task-id "qcsd-ideation-${EPIC_ID}" \
1848
- --success true
1849
- ```
1850
-
1851
- ### Option C: Direct File Storage (Fallback)
1852
-
1853
- If MCP/CLI not available, save to `.agentic-qe/`:
1854
-
1855
- ```bash
1856
- # Output directory structure
1857
- .agentic-qe/
1858
- ├── quality-criteria/
1859
- │ └── [epic-name]-htsm-analysis.html
1860
- ├── ideation-reports/
1861
- │ └── [epic-name]-ideation-report.md
1862
- └── learnings/
1863
- └── [epic-id]-ideation-metrics.json
1864
- ```
1865
-
1866
- ---
1867
-
1868
- ## Quick Reference
1869
-
1870
- ### Enforcement Summary
1871
-
1872
- | Phase | Must Do | Failure Condition |
1873
- |-------|---------|-------------------|
1874
- | 1 | Check ALL 3 flags | Missing flag evaluation |
1875
- | 2 | Spawn ALL 3 core agents in ONE message | Fewer than 3 Task calls |
1876
- | 3 | WAIT for completion | Proceeding before results |
1877
- | 4 | Spawn ALL flagged conditional agents | Skipping a TRUE flag |
1878
- | 5 | Apply EXACT decision logic | Wrong recommendation |
1879
- | 6 | Generate COMPLETE report | Missing sections |
1880
- | 7 | Store learnings (if MCP/CLI available) | Pattern loss |
1881
-
1882
- ### Quality Gate Thresholds
166
+ ## Quality Gate Thresholds
1883
167
 
1884
168
  | Metric | GO | CONDITIONAL | NO-GO |
1885
169
  |--------|-----|-------------|-------|
1886
- | Testability | ≥80% | 40-79% | <40% |
1887
- | HTSM Coverage | ≥8/10 | 6-7/10 | <6/10 |
1888
- | AC Completeness | ≥90% | 50-89% | <50% |
1889
- | Critical Risks | 0 | 1-2 | >2 |
1890
-
1891
- ### Domain-to-Agent Mapping
1892
-
1893
- | Domain | Agent | Primary Phase |
1894
- |--------|-------|---------------|
1895
- | requirements-validation | qe-quality-criteria-recommender | Ideation (P) |
1896
- | requirements-validation | qe-requirements-validator | Ideation (P) |
1897
- | coverage-analysis | qe-risk-assessor | Ideation (P) |
1898
- | security-compliance | qe-security-auditor | Ideation (S - conditional) |
1899
- | visual-accessibility | qe-accessibility-auditor | Ideation (S - conditional) |
1900
- | cross-domain | qe-qx-partner | Ideation (S - conditional) |
1901
-
1902
- ### Execution Model Quick Reference
1903
-
1904
- | Model | Initialization | Agent Spawn | Memory Store |
1905
- |-------|---------------|-------------|--------------|
1906
- | **Task Tool** | N/A | `Task({ subagent_type, run_in_background: true })` | N/A (use MCP) |
1907
- | **MCP Tools** | `fleet_init({})` | `task_submit({})` | `memory_store({})` |
1908
- | **CLI** | `swarm init` | `agent spawn` | `memory store` |
170
+ | Testability Score | >= 70% | 40 - 69% | < 40% |
171
+ | Risk Score | LOW/MEDIUM | HIGH (mitigatable) | CRITICAL |
172
+ | Requirements Completeness | >= 80% | 50 - 79% | < 50% |
173
+ | Quality Criteria Coverage | >= 7/10 categories | 4-6/10 categories | < 4/10 categories |
1909
174
 
1910
- ### MCP Tools Quick Reference
1911
-
1912
- ```javascript
1913
- // Initialization
1914
- mcp__agentic-qe__fleet_init({ topology: "hierarchical", enabledDomains: [...], maxAgents: 6 })
1915
-
1916
- // Task submission
1917
- mcp__agentic-qe__task_submit({ type: "...", priority: "p0", payload: {...} })
1918
- mcp__agentic-qe__task_orchestrate({ task: "...", strategy: "parallel" })
1919
-
1920
- // Status
1921
- mcp__agentic-qe__fleet_status({ verbose: true })
1922
- mcp__agentic-qe__task_list({ status: "pending" })
1923
-
1924
- // Memory
1925
- mcp__agentic-qe__memory_store({ key: "...", value: {...}, namespace: "qcsd-ideation" })
1926
- mcp__agentic-qe__memory_query({ pattern: "qcsd-*", namespace: "qcsd-ideation" })
1927
- mcp__agentic-qe__memory_share({ sourceAgentId: "...", targetAgentIds: [...], knowledgeDomain: "..." })
1928
- ```
1929
-
1930
- ### CLI Quick Reference
1931
-
1932
- ```bash
1933
- # Initialization
1934
- npx @claude-flow/cli@latest swarm init --topology hierarchical --max-agents 6
1935
-
1936
- # Agent operations
1937
- npx @claude-flow/cli@latest agent spawn --type [agent-type] --task "[description]"
1938
- npx @claude-flow/cli@latest hooks pre-task --description "[task]"
1939
- npx @claude-flow/cli@latest hooks post-task --task-id "[id]" --success true
1940
-
1941
- # Status
1942
- npx @claude-flow/cli@latest swarm status
1943
-
1944
- # Memory
1945
- npx @claude-flow/cli@latest memory store --key "[key]" --value "[json]" --namespace qcsd-ideation
1946
- npx @claude-flow/cli@latest memory search --query "[query]" --namespace qcsd-ideation
1947
- npx @claude-flow/cli@latest memory list --namespace qcsd-ideation
1948
- ```
175
+ ---
1949
176
 
1950
- ### Swarm Topology
177
+ ## Report Filename Mapping
1951
178
 
1952
- ```
1953
- QCSD IDEATION SWARM v7.0
1954
-
1955
- ┌───────────────┼───────────────┐
1956
- │ │ │
1957
- ┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐
1958
- │Quality │ │ Risk │ │ AC │
1959
- │Criteria │ │ Assessor │ │ Validator
1960
- (HTML) │ │ │ │ │
1961
- │─────────│ │───────────│ │───────────│
1962
- │req-valid│ │cov-anlysis│ │req-valid │
1963
- └────┬────┘ └─────┬─────┘ └─────┬─────┘
1964
- │ │ │
1965
- └───────────────┼───────────────┘
1966
-
1967
- [QUALITY GATE]
1968
-
1969
- ┌───────────────┼───────────────┐
1970
- │ │ │
1971
- ┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐
1972
- │ A11y │ │ Security │ │ QX │
1973
- │[IF UI] │ │[IF AUTH] │ │ [IF UX] │
1974
- │─────────│ │───────────│ │───────────│
1975
- │vis-a11y │ │sec-compli │ │cross-dom │
1976
- └─────────┘ └───────────┘ └───────────┘
1977
- ```
179
+ | Agent | Report Filename | Step |
180
+ |-------|----------------|------|
181
+ | qe-quality-criteria-recommender | `02-quality-criteria.md` | 2 |
182
+ | qe-risk-assessor | `03-risk-assessment.md` | 2 |
183
+ | qe-requirements-validator | `04-requirements-validation.md` | 2 |
184
+ | qe-accessibility-auditor | `05-accessibility-audit.md` | 4 |
185
+ | qe-security-auditor | `06-security-audit.md` | 4 |
186
+ | qe-qx-partner | `07-ux-assessment.md` | 4 |
187
+ | qe-middleware-validator | `08-middleware-assessment.md` | 4 |
188
+ | qe-sap-rfc-tester | `09-sap-assessment.md` | 4 |
189
+ | qe-sod-analyzer | `10-sod-compliance.md` | 4 |
190
+ | Learning Persistence | `11-learning-persistence.json` | 7 |
191
+ | Synthesis | `01-executive-summary.md` | 6 |
1978
192
 
1979
193
  ---
1980
194
 
1981
- ## Inventory Summary
1982
-
1983
- | Resource Type | Count | Primary | Conditional |
1984
- |---------------|:-----:|:-------:|:-----------:|
1985
- | **Agents** | 9 | 3 | 6 |
1986
- | **Sub-agents** | 0 | - | - |
1987
- | **Skills** | 4 | 4 | - |
1988
- | **Domains** | 6 | 2 | 4 |
195
+ ## Execution Model Options
1989
196
 
1990
- **Skills Used:**
1991
- 1. `testability-scoring` - 10 testability principles
1992
- 2. `risk-based-testing` - Risk prioritization
1993
- 3. `context-driven-testing` - Context-appropriate strategy
1994
- 4. `holistic-testing-pact` - PACT methodology (People, Activities, Contexts, Technologies)
197
+ | Model | When to Use | Agent Spawn |
198
+ |-------|-------------|-------------|
199
+ | **Task Tool** (PRIMARY) | Claude Code sessions | `Task({ subagent_type, run_in_background: true })` |
200
+ | **MCP Tools** | MCP server available | `fleet_init({})` / `task_submit({})` |
201
+ | **CLI** | Terminal/scripts | `swarm init` / `agent spawn` |
1995
202
 
1996
203
  ---
1997
204
 
1998
205
  ## Key Principle
1999
206
 
2000
- **Quality is built in from the start, not tested in at the end.**
2001
-
2002
- This swarm provides:
2003
- 1. **What quality criteria matter?** → HTSM Analysis (10 categories)
2004
- 2. **What risks exist?** → Risk Storming (4 categories)
2005
- 3. **Are requirements testable?** → AC Validation (10 principles)
2006
- 4. **Is it accessible/secure/good UX?** → Conditional specialists
2007
- 5. **Should we proceed?** → GO/CONDITIONAL/NO-GO decision
2008
- 6. **What did we learn?** → Memory persistence for future cycles
207
+ **Quality is built in from the start, not tested in at the end. This swarm ensures
208
+ stories are viable, testable, and risk-assessed before any code is written.**