agentic-qe 3.7.9 → 3.7.11

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 (401) hide show
  1. package/.claude/skills/.validation/README.md +111 -111
  2. package/.claude/skills/.validation/examples/chaos-engineering-output.example.json +530 -530
  3. package/.claude/skills/.validation/examples/performance-testing-output.example.json +252 -252
  4. package/.claude/skills/.validation/examples/security-testing-output.example.json +413 -413
  5. package/.claude/skills/.validation/examples/testability-scoring-output.example.json +350 -350
  6. package/.claude/skills/.validation/schemas/skill-eval.schema.json +462 -462
  7. package/.claude/skills/.validation/schemas/skill-frontmatter.schema.json +341 -341
  8. package/.claude/skills/.validation/schemas/skill-output-meta.schema.json +199 -199
  9. package/.claude/skills/.validation/schemas/skill-output.template.json +610 -610
  10. package/.claude/skills/.validation/skill-validation-mcp-integration.md +250 -250
  11. package/.claude/skills/.validation/templates/eval.template.yaml +366 -366
  12. package/.claude/skills/.validation/templates/schemas/output.json +145 -145
  13. package/.claude/skills/.validation/templates/security-testing-eval.template.yaml +725 -725
  14. package/.claude/skills/.validation/templates/skill-frontmatter.example.yaml +225 -225
  15. package/.claude/skills/.validation/test-data/invalid-output.json +5 -5
  16. package/.claude/skills/.validation/test-data/minimal-output.json +9 -9
  17. package/.claude/skills/.validation/test-data/sample-output.json +73 -73
  18. package/.claude/skills/a11y-ally/evals/a11y-ally.yaml +376 -376
  19. package/.claude/skills/a11y-ally/schemas/output.json +549 -549
  20. package/.claude/skills/accessibility-testing/evals/accessibility-testing.yaml +719 -719
  21. package/.claude/skills/accessibility-testing/schemas/output.json +776 -776
  22. package/.claude/skills/accessibility-testing/test-data/sample-output.json +191 -191
  23. package/.claude/skills/agentic-quality-engineering/schemas/output.json +577 -577
  24. package/.claude/skills/api-testing-patterns/evals/api-testing-patterns.yaml +696 -696
  25. package/.claude/skills/api-testing-patterns/schemas/output.json +845 -845
  26. package/.claude/skills/aqe-v2-v3-migration/schemas/output.json +513 -513
  27. package/.claude/skills/brutal-honesty-review/schemas/output.json +291 -291
  28. package/.claude/skills/bug-reporting-excellence/schemas/output.json +288 -288
  29. package/.claude/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -761
  30. package/.claude/skills/chaos-engineering-resilience/schemas/output.json +1205 -1205
  31. package/.claude/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +157 -157
  32. package/.claude/skills/cicd-pipeline-qe-orchestrator/schemas/output.json +542 -542
  33. package/.claude/skills/code-review-quality/schemas/output.json +264 -264
  34. package/.claude/skills/compatibility-testing/evals/compatibility-testing.yaml +410 -410
  35. package/.claude/skills/compatibility-testing/schemas/output.json +551 -551
  36. package/.claude/skills/compliance-testing/evals/compliance-testing.yaml +1107 -1107
  37. package/.claude/skills/compliance-testing/schemas/output.json +845 -845
  38. package/.claude/skills/consultancy-practices/schemas/output.json +282 -282
  39. package/.claude/skills/contract-testing/evals/contract-testing.yaml +748 -748
  40. package/.claude/skills/contract-testing/schemas/output.json +638 -638
  41. package/.claude/skills/database-testing/evals/database-testing.yaml +968 -968
  42. package/.claude/skills/database-testing/schemas/output.json +1446 -1446
  43. package/.claude/skills/debug-loop/SKILL.md +61 -61
  44. package/.claude/skills/enterprise-integration-testing/SKILL.md +735 -735
  45. package/.claude/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +158 -158
  46. package/.claude/skills/enterprise-integration-testing/schemas/output.json +74 -74
  47. package/.claude/skills/enterprise-integration-testing/scripts/validate-config.json +25 -25
  48. package/.claude/skills/iterative-loop/SKILL.md +371 -371
  49. package/.claude/skills/localization-testing/evals/localization-testing.yaml +544 -544
  50. package/.claude/skills/localization-testing/schemas/output.json +325 -325
  51. package/.claude/skills/middleware-testing-patterns/SKILL.md +798 -798
  52. package/.claude/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +153 -153
  53. package/.claude/skills/middleware-testing-patterns/schemas/output.json +58 -58
  54. package/.claude/skills/middleware-testing-patterns/scripts/validate-config.json +25 -25
  55. package/.claude/skills/mobile-testing/evals/mobile-testing.yaml +537 -537
  56. package/.claude/skills/mobile-testing/schemas/output.json +318 -318
  57. package/.claude/skills/mutation-testing/evals/mutation-testing.yaml +652 -652
  58. package/.claude/skills/mutation-testing/schemas/output.json +707 -707
  59. package/.claude/skills/mutation-testing/test-data/sample-output.json +295 -295
  60. package/.claude/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +450 -450
  61. package/.claude/skills/n8n-expression-testing/schemas/output.json +369 -369
  62. package/.claude/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +522 -522
  63. package/.claude/skills/n8n-integration-testing-patterns/schemas/output.json +291 -291
  64. package/.claude/skills/n8n-security-testing/evals/n8n-security-testing.yaml +493 -493
  65. package/.claude/skills/n8n-security-testing/schemas/output.json +293 -293
  66. package/.claude/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +500 -500
  67. package/.claude/skills/n8n-trigger-testing-strategies/schemas/output.json +295 -295
  68. package/.claude/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +497 -497
  69. package/.claude/skills/n8n-workflow-testing-fundamentals/schemas/output.json +254 -254
  70. package/.claude/skills/observability-testing-patterns/SKILL.md +930 -930
  71. package/.claude/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +157 -157
  72. package/.claude/skills/observability-testing-patterns/schemas/output.json +58 -58
  73. package/.claude/skills/observability-testing-patterns/scripts/validate-config.json +25 -25
  74. package/.claude/skills/pentest-validation/SKILL.md +268 -268
  75. package/.claude/skills/pentest-validation/evals/pentest-validation.yaml +708 -708
  76. package/.claude/skills/pentest-validation/schemas/output.json +281 -281
  77. package/.claude/skills/performance-analysis/evals/performance-analysis.yaml +144 -144
  78. package/.claude/skills/performance-analysis/schemas/output.json +588 -588
  79. package/.claude/skills/performance-testing/evals/performance-testing.yaml +772 -772
  80. package/.claude/skills/performance-testing/schemas/output.json +1184 -1184
  81. package/.claude/skills/pr-review/SKILL.md +61 -61
  82. package/.claude/skills/qcsd-cicd-swarm/SKILL.md +2206 -2206
  83. package/.claude/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +211 -211
  84. package/.claude/skills/qcsd-cicd-swarm/schemas/output.json +86 -86
  85. package/.claude/skills/qcsd-cicd-swarm/scripts/validate-config.json +30 -30
  86. package/.claude/skills/qcsd-development-swarm/SKILL.md +2154 -2154
  87. package/.claude/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +162 -162
  88. package/.claude/skills/qcsd-development-swarm/schemas/output.json +72 -72
  89. package/.claude/skills/qcsd-development-swarm/scripts/validate-config.json +25 -25
  90. package/.claude/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +138 -138
  91. package/.claude/skills/qcsd-ideation-swarm/schemas/output.json +568 -568
  92. package/.claude/skills/qcsd-production-swarm/SKILL.md +2781 -2781
  93. package/.claude/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -246
  94. package/.claude/skills/qcsd-production-swarm/schemas/output.json +505 -505
  95. package/.claude/skills/qcsd-production-swarm/scripts/validate-config.json +25 -25
  96. package/.claude/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +443 -443
  97. package/.claude/skills/qe-chaos-resilience/schemas/output.json +314 -314
  98. package/.claude/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +459 -459
  99. package/.claude/skills/qe-code-intelligence/schemas/output.json +315 -315
  100. package/.claude/skills/qe-contract-testing/evals/qe-contract-testing.yaml +513 -513
  101. package/.claude/skills/qe-contract-testing/schemas/output.json +295 -295
  102. package/.claude/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +494 -494
  103. package/.claude/skills/qe-coverage-analysis/schemas/output.json +286 -286
  104. package/.claude/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +511 -511
  105. package/.claude/skills/qe-defect-intelligence/schemas/output.json +283 -283
  106. package/.claude/skills/qe-iterative-loop/schemas/output.json +264 -264
  107. package/.claude/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +144 -144
  108. package/.claude/skills/qe-learning-optimization/schemas/output.json +288 -288
  109. package/.claude/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +506 -506
  110. package/.claude/skills/qe-quality-assessment/schemas/output.json +550 -550
  111. package/.claude/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +598 -598
  112. package/.claude/skills/qe-requirements-validation/schemas/output.json +587 -587
  113. package/.claude/skills/qe-security-compliance/evals/qe-security-compliance.yaml +595 -595
  114. package/.claude/skills/qe-security-compliance/schemas/output.json +498 -498
  115. package/.claude/skills/qe-test-execution/evals/qe-test-execution.yaml +607 -607
  116. package/.claude/skills/qe-test-execution/schemas/output.json +529 -529
  117. package/.claude/skills/qe-test-generation/evals/qe-test-generation.yaml +148 -148
  118. package/.claude/skills/qe-test-generation/schemas/output.json +439 -439
  119. package/.claude/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +142 -142
  120. package/.claude/skills/qe-visual-accessibility/schemas/output.json +491 -491
  121. package/.claude/skills/quality-metrics/evals/quality-metrics.yaml +494 -494
  122. package/.claude/skills/quality-metrics/schemas/output.json +403 -403
  123. package/.claude/skills/refactoring-patterns/schemas/output.json +475 -475
  124. package/.claude/skills/regression-testing/evals/regression-testing.yaml +504 -504
  125. package/.claude/skills/regression-testing/schemas/output.json +311 -311
  126. package/.claude/skills/release/SKILL.md +347 -347
  127. package/.claude/skills/risk-based-testing/evals/risk-based-testing.yaml +141 -141
  128. package/.claude/skills/risk-based-testing/schemas/output.json +480 -480
  129. package/.claude/skills/security-testing/evals/security-testing.yaml +789 -789
  130. package/.claude/skills/security-testing/schemas/output.json +879 -879
  131. package/.claude/skills/security-visual-testing/evals/security-visual-testing.yaml +163 -163
  132. package/.claude/skills/security-visual-testing/schemas/output.json +486 -486
  133. package/.claude/skills/sfdipot-product-factors/SKILL.md +239 -239
  134. package/.claude/skills/sherlock-review/schemas/output.json +297 -297
  135. package/.claude/skills/shift-left-testing/evals/shift-left-testing.yaml +145 -145
  136. package/.claude/skills/shift-left-testing/schemas/output.json +459 -459
  137. package/.claude/skills/shift-right-testing/evals/shift-right-testing.yaml +147 -147
  138. package/.claude/skills/shift-right-testing/schemas/output.json +418 -418
  139. package/.claude/skills/skills-manifest.json +1 -1
  140. package/.claude/skills/tdd-london-chicago/schemas/output.json +444 -444
  141. package/.claude/skills/technical-writing/schemas/output.json +268 -268
  142. package/.claude/skills/test-automation-strategy/evals/test-automation-strategy.yaml +148 -148
  143. package/.claude/skills/test-automation-strategy/schemas/output.json +444 -444
  144. package/.claude/skills/test-data-management/evals/test-data-management.yaml +504 -504
  145. package/.claude/skills/test-data-management/schemas/output.json +284 -284
  146. package/.claude/skills/test-design-techniques/evals/test-design-techniques.yaml +142 -142
  147. package/.claude/skills/test-design-techniques/schemas/output.json +295 -295
  148. package/.claude/skills/test-environment-management/schemas/output.json +310 -310
  149. package/.claude/skills/test-idea-rewriting/SKILL.md +229 -229
  150. package/.claude/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +155 -155
  151. package/.claude/skills/test-reporting-analytics/schemas/output.json +329 -329
  152. package/.claude/skills/testability-scoring/evals/testability-scoring.yaml +814 -814
  153. package/.claude/skills/testability-scoring/resources/templates/config.template.js +84 -84
  154. package/.claude/skills/testability-scoring/schemas/output.json +606 -606
  155. package/.claude/skills/testability-scoring/scripts/generate-html-report.js +1007 -1007
  156. package/.claude/skills/verification-quality/evals/verification-quality.yaml +150 -150
  157. package/.claude/skills/verification-quality/schemas/output.json +432 -432
  158. package/.claude/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +154 -154
  159. package/.claude/skills/visual-testing-advanced/schemas/output.json +294 -294
  160. package/.claude/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +165 -165
  161. package/.claude/skills/wms-testing-patterns/schemas/output.json +150 -150
  162. package/.claude/skills/wms-testing-patterns/scripts/validate-config.json +51 -51
  163. package/CHANGELOG.md +36 -0
  164. package/README.md +171 -901
  165. package/assets/agents/v3/helpers/quality-criteria/evidence-classification.md +116 -116
  166. package/assets/agents/v3/helpers/quality-criteria/htsm-categories.md +139 -139
  167. package/assets/governance/constitution.md +202 -202
  168. package/assets/governance/shards/chaos-resilience.shard.md +221 -221
  169. package/assets/governance/shards/code-intelligence.shard.md +178 -178
  170. package/assets/governance/shards/contract-testing.shard.md +206 -206
  171. package/assets/governance/shards/coverage-analysis.shard.md +146 -146
  172. package/assets/governance/shards/defect-intelligence.shard.md +182 -182
  173. package/assets/governance/shards/learning-optimization.shard.md +248 -248
  174. package/assets/governance/shards/quality-assessment.shard.md +165 -165
  175. package/assets/governance/shards/requirements-validation.shard.md +177 -177
  176. package/assets/governance/shards/security-compliance.shard.md +196 -196
  177. package/assets/governance/shards/test-execution.shard.md +156 -156
  178. package/assets/governance/shards/test-generation.shard.md +128 -128
  179. package/assets/governance/shards/visual-accessibility.shard.md +209 -209
  180. package/assets/hooks/cross-phase-memory.yaml +253 -253
  181. package/assets/patterns/adr-051-booster-patterns.json +78 -78
  182. package/assets/patterns/adr-051-embedding-patterns.json +147 -147
  183. package/assets/patterns/adr-051-integration-summary.json +62 -62
  184. package/assets/patterns/adr-051-reasoning-patterns.json +166 -166
  185. package/assets/patterns/adr-051-router-patterns.json +113 -113
  186. package/assets/patterns/index.json +136 -136
  187. package/assets/skills/.validation/README.md +111 -111
  188. package/assets/skills/.validation/examples/chaos-engineering-output.example.json +530 -530
  189. package/assets/skills/.validation/examples/performance-testing-output.example.json +252 -252
  190. package/assets/skills/.validation/examples/security-testing-output.example.json +413 -413
  191. package/assets/skills/.validation/examples/testability-scoring-output.example.json +350 -350
  192. package/assets/skills/.validation/schemas/skill-eval.schema.json +462 -462
  193. package/assets/skills/.validation/schemas/skill-frontmatter.schema.json +341 -341
  194. package/assets/skills/.validation/schemas/skill-output-meta.schema.json +199 -199
  195. package/assets/skills/.validation/schemas/skill-output.template.json +610 -610
  196. package/assets/skills/.validation/skill-validation-mcp-integration.md +250 -250
  197. package/assets/skills/.validation/templates/eval.template.yaml +366 -366
  198. package/assets/skills/.validation/templates/schemas/output.json +145 -145
  199. package/assets/skills/.validation/templates/security-testing-eval.template.yaml +725 -725
  200. package/assets/skills/.validation/templates/skill-frontmatter.example.yaml +225 -225
  201. package/assets/skills/.validation/test-data/invalid-output.json +5 -5
  202. package/assets/skills/.validation/test-data/minimal-output.json +9 -9
  203. package/assets/skills/.validation/test-data/sample-output.json +73 -73
  204. package/assets/skills/a11y-ally/evals/a11y-ally.yaml +376 -376
  205. package/assets/skills/a11y-ally/schemas/output.json +549 -549
  206. package/assets/skills/accessibility-testing/evals/accessibility-testing.yaml +719 -719
  207. package/assets/skills/accessibility-testing/schemas/output.json +776 -776
  208. package/assets/skills/accessibility-testing/test-data/sample-output.json +191 -191
  209. package/assets/skills/agentic-quality-engineering/schemas/output.json +577 -577
  210. package/assets/skills/api-testing-patterns/evals/api-testing-patterns.yaml +696 -696
  211. package/assets/skills/api-testing-patterns/schemas/output.json +845 -845
  212. package/assets/skills/aqe-v2-v3-migration/schemas/output.json +513 -513
  213. package/assets/skills/brutal-honesty-review/schemas/output.json +291 -291
  214. package/assets/skills/bug-reporting-excellence/schemas/output.json +288 -288
  215. package/assets/skills/chaos-engineering-resilience/evals/chaos-engineering-resilience.yaml +761 -761
  216. package/assets/skills/chaos-engineering-resilience/schemas/output.json +1205 -1205
  217. package/assets/skills/cicd-pipeline-qe-orchestrator/evals/cicd-pipeline-qe-orchestrator.yaml +157 -157
  218. package/assets/skills/cicd-pipeline-qe-orchestrator/schemas/output.json +542 -542
  219. package/assets/skills/code-review-quality/schemas/output.json +264 -264
  220. package/assets/skills/compatibility-testing/evals/compatibility-testing.yaml +410 -410
  221. package/assets/skills/compatibility-testing/schemas/output.json +551 -551
  222. package/assets/skills/compliance-testing/evals/compliance-testing.yaml +1107 -1107
  223. package/assets/skills/compliance-testing/schemas/output.json +845 -845
  224. package/assets/skills/consultancy-practices/schemas/output.json +282 -282
  225. package/assets/skills/contract-testing/evals/contract-testing.yaml +748 -748
  226. package/assets/skills/contract-testing/schemas/output.json +638 -638
  227. package/assets/skills/database-testing/evals/database-testing.yaml +968 -968
  228. package/assets/skills/database-testing/schemas/output.json +1446 -1446
  229. package/assets/skills/debug-loop/SKILL.md +61 -61
  230. package/assets/skills/enterprise-integration-testing/SKILL.md +735 -735
  231. package/assets/skills/enterprise-integration-testing/evals/enterprise-integration-testing.yaml +158 -158
  232. package/assets/skills/enterprise-integration-testing/schemas/output.json +74 -74
  233. package/assets/skills/enterprise-integration-testing/scripts/validate-config.json +25 -25
  234. package/assets/skills/localization-testing/evals/localization-testing.yaml +544 -544
  235. package/assets/skills/localization-testing/schemas/output.json +325 -325
  236. package/assets/skills/middleware-testing-patterns/SKILL.md +798 -798
  237. package/assets/skills/middleware-testing-patterns/evals/middleware-testing-patterns.yaml +153 -153
  238. package/assets/skills/middleware-testing-patterns/schemas/output.json +58 -58
  239. package/assets/skills/middleware-testing-patterns/scripts/validate-config.json +25 -25
  240. package/assets/skills/mobile-testing/evals/mobile-testing.yaml +537 -537
  241. package/assets/skills/mobile-testing/schemas/output.json +318 -318
  242. package/assets/skills/mutation-testing/evals/mutation-testing.yaml +652 -652
  243. package/assets/skills/mutation-testing/schemas/output.json +707 -707
  244. package/assets/skills/mutation-testing/test-data/sample-output.json +295 -295
  245. package/assets/skills/n8n-expression-testing/evals/n8n-expression-testing.yaml +450 -450
  246. package/assets/skills/n8n-expression-testing/schemas/output.json +369 -369
  247. package/assets/skills/n8n-integration-testing-patterns/evals/n8n-integration-testing-patterns.yaml +522 -522
  248. package/assets/skills/n8n-integration-testing-patterns/schemas/output.json +291 -291
  249. package/assets/skills/n8n-security-testing/evals/n8n-security-testing.yaml +493 -493
  250. package/assets/skills/n8n-security-testing/schemas/output.json +293 -293
  251. package/assets/skills/n8n-trigger-testing-strategies/evals/n8n-trigger-testing-strategies.yaml +500 -500
  252. package/assets/skills/n8n-trigger-testing-strategies/schemas/output.json +295 -295
  253. package/assets/skills/n8n-workflow-testing-fundamentals/evals/n8n-workflow-testing-fundamentals.yaml +497 -497
  254. package/assets/skills/n8n-workflow-testing-fundamentals/schemas/output.json +254 -254
  255. package/assets/skills/observability-testing-patterns/SKILL.md +930 -930
  256. package/assets/skills/observability-testing-patterns/evals/observability-testing-patterns.yaml +157 -157
  257. package/assets/skills/observability-testing-patterns/schemas/output.json +58 -58
  258. package/assets/skills/observability-testing-patterns/scripts/validate-config.json +25 -25
  259. package/assets/skills/pentest-validation/SKILL.md +268 -268
  260. package/assets/skills/pentest-validation/evals/pentest-validation.yaml +708 -708
  261. package/assets/skills/pentest-validation/schemas/output.json +281 -281
  262. package/assets/skills/performance-testing/evals/performance-testing.yaml +772 -772
  263. package/assets/skills/performance-testing/schemas/output.json +1184 -1184
  264. package/assets/skills/pr-review/SKILL.md +61 -61
  265. package/assets/skills/qcsd-cicd-swarm/SKILL.md +2206 -2206
  266. package/assets/skills/qcsd-cicd-swarm/evals/qcsd-cicd-swarm.yaml +211 -211
  267. package/assets/skills/qcsd-cicd-swarm/schemas/output.json +86 -86
  268. package/assets/skills/qcsd-cicd-swarm/scripts/validate-config.json +30 -30
  269. package/assets/skills/qcsd-development-swarm/SKILL.md +2154 -2154
  270. package/assets/skills/qcsd-development-swarm/evals/qcsd-development-swarm.yaml +162 -162
  271. package/assets/skills/qcsd-development-swarm/schemas/output.json +72 -72
  272. package/assets/skills/qcsd-development-swarm/scripts/validate-config.json +25 -25
  273. package/assets/skills/qcsd-ideation-swarm/evals/qcsd-ideation-swarm.yaml +138 -138
  274. package/assets/skills/qcsd-ideation-swarm/schemas/output.json +568 -568
  275. package/assets/skills/qcsd-production-swarm/SKILL.md +2781 -2781
  276. package/assets/skills/qcsd-production-swarm/evals/qcsd-production-swarm.yaml +246 -246
  277. package/assets/skills/qcsd-production-swarm/schemas/output.json +505 -505
  278. package/assets/skills/qcsd-production-swarm/scripts/validate-config.json +25 -25
  279. package/assets/skills/qe-chaos-resilience/evals/qe-chaos-resilience.yaml +443 -443
  280. package/assets/skills/qe-chaos-resilience/schemas/output.json +314 -314
  281. package/assets/skills/qe-code-intelligence/evals/qe-code-intelligence.yaml +459 -459
  282. package/assets/skills/qe-code-intelligence/schemas/output.json +315 -315
  283. package/assets/skills/qe-contract-testing/evals/qe-contract-testing.yaml +513 -513
  284. package/assets/skills/qe-contract-testing/schemas/output.json +295 -295
  285. package/assets/skills/qe-coverage-analysis/evals/qe-coverage-analysis.yaml +494 -494
  286. package/assets/skills/qe-coverage-analysis/schemas/output.json +286 -286
  287. package/assets/skills/qe-defect-intelligence/evals/qe-defect-intelligence.yaml +511 -511
  288. package/assets/skills/qe-defect-intelligence/schemas/output.json +283 -283
  289. package/assets/skills/qe-iterative-loop/schemas/output.json +264 -264
  290. package/assets/skills/qe-learning-optimization/evals/qe-learning-optimization.yaml +144 -144
  291. package/assets/skills/qe-learning-optimization/schemas/output.json +288 -288
  292. package/assets/skills/qe-quality-assessment/evals/qe-quality-assessment.yaml +506 -506
  293. package/assets/skills/qe-quality-assessment/schemas/output.json +550 -550
  294. package/assets/skills/qe-requirements-validation/evals/qe-requirements-validation.yaml +598 -598
  295. package/assets/skills/qe-requirements-validation/schemas/output.json +587 -587
  296. package/assets/skills/qe-security-compliance/evals/qe-security-compliance.yaml +595 -595
  297. package/assets/skills/qe-security-compliance/schemas/output.json +498 -498
  298. package/assets/skills/qe-test-execution/evals/qe-test-execution.yaml +607 -607
  299. package/assets/skills/qe-test-execution/schemas/output.json +529 -529
  300. package/assets/skills/qe-test-generation/evals/qe-test-generation.yaml +148 -148
  301. package/assets/skills/qe-test-generation/schemas/output.json +439 -439
  302. package/assets/skills/qe-visual-accessibility/evals/qe-visual-accessibility.yaml +142 -142
  303. package/assets/skills/qe-visual-accessibility/schemas/output.json +491 -491
  304. package/assets/skills/quality-metrics/evals/quality-metrics.yaml +494 -494
  305. package/assets/skills/quality-metrics/schemas/output.json +403 -403
  306. package/assets/skills/refactoring-patterns/schemas/output.json +475 -475
  307. package/assets/skills/regression-testing/evals/regression-testing.yaml +504 -504
  308. package/assets/skills/regression-testing/schemas/output.json +311 -311
  309. package/assets/skills/risk-based-testing/evals/risk-based-testing.yaml +141 -141
  310. package/assets/skills/risk-based-testing/schemas/output.json +480 -480
  311. package/assets/skills/security-testing/evals/security-testing.yaml +789 -789
  312. package/assets/skills/security-testing/schemas/output.json +879 -879
  313. package/assets/skills/security-visual-testing/evals/security-visual-testing.yaml +163 -163
  314. package/assets/skills/security-visual-testing/schemas/output.json +486 -486
  315. package/assets/skills/sfdipot-product-factors/SKILL.md +239 -239
  316. package/assets/skills/sherlock-review/schemas/output.json +297 -297
  317. package/assets/skills/shift-left-testing/evals/shift-left-testing.yaml +145 -145
  318. package/assets/skills/shift-left-testing/schemas/output.json +459 -459
  319. package/assets/skills/shift-right-testing/evals/shift-right-testing.yaml +147 -147
  320. package/assets/skills/shift-right-testing/schemas/output.json +418 -418
  321. package/assets/skills/tdd-london-chicago/schemas/output.json +444 -444
  322. package/assets/skills/technical-writing/schemas/output.json +268 -268
  323. package/assets/skills/test-automation-strategy/evals/test-automation-strategy.yaml +148 -148
  324. package/assets/skills/test-automation-strategy/schemas/output.json +444 -444
  325. package/assets/skills/test-data-management/evals/test-data-management.yaml +504 -504
  326. package/assets/skills/test-data-management/schemas/output.json +284 -284
  327. package/assets/skills/test-design-techniques/evals/test-design-techniques.yaml +142 -142
  328. package/assets/skills/test-design-techniques/schemas/output.json +295 -295
  329. package/assets/skills/test-environment-management/schemas/output.json +310 -310
  330. package/assets/skills/test-idea-rewriting/SKILL.md +229 -229
  331. package/assets/skills/test-reporting-analytics/evals/test-reporting-analytics.yaml +155 -155
  332. package/assets/skills/test-reporting-analytics/schemas/output.json +329 -329
  333. package/assets/skills/testability-scoring/evals/testability-scoring.yaml +814 -814
  334. package/assets/skills/testability-scoring/resources/templates/config.template.js +84 -84
  335. package/assets/skills/testability-scoring/schemas/output.json +606 -606
  336. package/assets/skills/testability-scoring/scripts/generate-html-report.js +1007 -1007
  337. package/assets/skills/verification-quality/evals/verification-quality.yaml +150 -150
  338. package/assets/skills/verification-quality/schemas/output.json +432 -432
  339. package/assets/skills/visual-testing-advanced/evals/visual-testing-advanced.yaml +154 -154
  340. package/assets/skills/visual-testing-advanced/schemas/output.json +294 -294
  341. package/assets/skills/wms-testing-patterns/evals/wms-testing-patterns.yaml +165 -165
  342. package/assets/skills/wms-testing-patterns/schemas/output.json +150 -150
  343. package/assets/skills/wms-testing-patterns/scripts/validate-config.json +51 -51
  344. package/assets/templates/validation-summary.json +56 -56
  345. package/dist/agents/claim-verifier/verifiers/output-verifier.d.ts +1 -0
  346. package/dist/agents/claim-verifier/verifiers/output-verifier.d.ts.map +1 -1
  347. package/dist/agents/claim-verifier/verifiers/output-verifier.js +16 -3
  348. package/dist/agents/claim-verifier/verifiers/output-verifier.js.map +1 -1
  349. package/dist/cli/bundle.js +488 -75
  350. package/dist/cli/commands/mcp.d.ts.map +1 -1
  351. package/dist/cli/commands/mcp.js +11 -9
  352. package/dist/cli/commands/mcp.js.map +1 -1
  353. package/dist/governance/adversarial-defense-integration.d.ts +29 -0
  354. package/dist/governance/adversarial-defense-integration.d.ts.map +1 -1
  355. package/dist/governance/adversarial-defense-integration.js +85 -1
  356. package/dist/governance/adversarial-defense-integration.js.map +1 -1
  357. package/dist/governance/continue-gate-integration.d.ts +7 -5
  358. package/dist/governance/continue-gate-integration.d.ts.map +1 -1
  359. package/dist/governance/continue-gate-integration.js +72 -15
  360. package/dist/governance/continue-gate-integration.js.map +1 -1
  361. package/dist/governance/deterministic-gateway-integration.d.ts +5 -0
  362. package/dist/governance/deterministic-gateway-integration.d.ts.map +1 -1
  363. package/dist/governance/deterministic-gateway-integration.js +35 -1
  364. package/dist/governance/deterministic-gateway-integration.js.map +1 -1
  365. package/dist/governance/evolution-pipeline-integration.d.ts +5 -0
  366. package/dist/governance/evolution-pipeline-integration.d.ts.map +1 -1
  367. package/dist/governance/evolution-pipeline-integration.js +57 -1
  368. package/dist/governance/evolution-pipeline-integration.js.map +1 -1
  369. package/dist/governance/memory-write-gate-integration.d.ts +6 -3
  370. package/dist/governance/memory-write-gate-integration.d.ts.map +1 -1
  371. package/dist/governance/memory-write-gate-integration.js +48 -10
  372. package/dist/governance/memory-write-gate-integration.js.map +1 -1
  373. package/dist/governance/proof-envelope-integration.d.ts +1 -0
  374. package/dist/governance/proof-envelope-integration.d.ts.map +1 -1
  375. package/dist/governance/proof-envelope-integration.js +37 -0
  376. package/dist/governance/proof-envelope-integration.js.map +1 -1
  377. package/dist/governance/shard-retriever-integration.d.ts +10 -0
  378. package/dist/governance/shard-retriever-integration.d.ts.map +1 -1
  379. package/dist/governance/shard-retriever-integration.js +50 -1
  380. package/dist/governance/shard-retriever-integration.js.map +1 -1
  381. package/dist/governance/trust-accumulator-integration.d.ts +5 -0
  382. package/dist/governance/trust-accumulator-integration.d.ts.map +1 -1
  383. package/dist/governance/trust-accumulator-integration.js +35 -2
  384. package/dist/governance/trust-accumulator-integration.js.map +1 -1
  385. package/dist/init/phases/10-workers.js +2 -2
  386. package/dist/init/phases/10-workers.js.map +1 -1
  387. package/dist/mcp/bundle.js +478 -62
  388. package/dist/mcp/protocol-server.js +2 -2
  389. package/dist/mcp/tool-registry.d.ts.map +1 -1
  390. package/dist/mcp/tool-registry.js +1 -0
  391. package/dist/mcp/tool-registry.js.map +1 -1
  392. package/dist/shared/language-detector.js +1 -1
  393. package/dist/shared/language-detector.js.map +1 -1
  394. package/dist/shared/parsers/multi-language-parser.d.ts.map +1 -1
  395. package/dist/shared/parsers/multi-language-parser.js +55 -16
  396. package/dist/shared/parsers/multi-language-parser.js.map +1 -1
  397. package/dist/shared/sql-safety.d.ts.map +1 -1
  398. package/dist/shared/sql-safety.js +7 -1
  399. package/dist/shared/sql-safety.js.map +1 -1
  400. package/package.json +6 -2
  401. package/scripts/prepare-assets.sh +8 -0
@@ -1,371 +1,371 @@
1
- ---
2
- name: "Iterative Loop"
3
- description: "Implement continuous AI iteration loops for complex development tasks. Use when building features requiring test-driven refinement, implementing tasks with clear success criteria, or automating iterative improvement workflows. Based on the Ralph Wiggum technique from Claude Code plugins."
4
- ---
5
-
6
- # Iterative Loop
7
-
8
- ## Overview
9
-
10
- The Iterative Loop skill implements **continuous AI-driven development loops** that persist until completion criteria are met. Inspired by the Ralph Wiggum technique, this approach enables autonomous, self-correcting development cycles where the AI sees its previous work in files and git history, iteratively improving until success.
11
-
12
- ## Core Philosophy
13
-
14
- 1. **Iteration > Perfection** - Don't aim for perfect on first try; let the loop refine the work
15
- 2. **Failures Are Data** - Each failure provides information to improve the next attempt
16
- 3. **Clear Criteria** - Success must be objectively measurable (tests, metrics, validations)
17
- 4. **Persistence Wins** - Keep trying until success; the loop handles retry logic automatically
18
-
19
- ## Prerequisites
20
-
21
- - Claude Code with session management
22
- - Clear completion criteria (tests, linting, metrics)
23
- - Version control (git) for tracking iterations
24
-
25
- ---
26
-
27
- ## Quick Start
28
-
29
- ### Basic Iterative Development Pattern
30
-
31
- ```bash
32
- # Define task with clear completion criteria
33
- TASK="Implement user authentication with JWT.
34
- Success criteria:
35
- - All unit tests pass
36
- - Integration tests pass
37
- - No TypeScript errors
38
- - Security audit passes
39
- Output <promise>COMPLETE</promise> when all criteria met."
40
-
41
- # Execute iterative loop (conceptual)
42
- while ! task_complete; do
43
- claude_execute "$TASK"
44
- check_completion_criteria
45
- done
46
- ```
47
-
48
- ### AQE v3 Integration Example
49
-
50
- ```bash
51
- # Using claude-flow hooks for iterative task
52
- npx @claude-flow/cli@latest hooks pre-task --description "Implement auth with iteration" --taskId "auth-impl"
53
-
54
- # Store iteration state in memory
55
- npx @claude-flow/cli@latest memory store \
56
- --key "iteration-auth" \
57
- --value '{"iteration": 1, "maxIterations": 20, "criteria": "all tests pass"}' \
58
- --namespace iterations
59
- ```
60
-
61
- ---
62
-
63
- ## Step-by-Step Guide
64
-
65
- ### Step 1: Define Clear Success Criteria
66
-
67
- **Essential**: Every iterative task MUST have objectively measurable completion criteria.
68
-
69
- **Good Criteria Examples:**
70
- ```markdown
71
- ✅ All unit tests pass (npm test returns exit code 0)
72
- ✅ Coverage > 80% (coverage report shows 80%+)
73
- ✅ No TypeScript errors (tsc --noEmit returns 0)
74
- ✅ Linting passes (eslint returns 0)
75
- ✅ Performance < 100ms (benchmark shows < 100ms)
76
- ```
77
-
78
- **Bad Criteria Examples:**
79
- ```markdown
80
- ❌ "Code looks good" (subjective)
81
- ❌ "Works properly" (undefined)
82
- ❌ "Well-structured" (no measurable check)
83
- ```
84
-
85
- ### Step 2: Structure the Task with Phases
86
-
87
- Break complex tasks into incremental phases:
88
-
89
- ```markdown
90
- ## Task: Implement User Authentication
91
-
92
- ### Phase 1: Data Layer
93
- - Create User model with Prisma schema
94
- - Write migration
95
- - Run tests: `npm test -- --grep "User model"`
96
- - Criteria: Model tests pass
97
-
98
- ### Phase 2: Service Layer
99
- - Implement AuthService with JWT
100
- - Add token generation/validation
101
- - Run tests: `npm test -- --grep "AuthService"`
102
- - Criteria: Service tests pass
103
-
104
- ### Phase 3: API Layer
105
- - Create /auth/login endpoint
106
- - Create /auth/register endpoint
107
- - Run tests: `npm test -- --grep "auth API"`
108
- - Criteria: API tests pass
109
-
110
- ### Phase 4: Integration
111
- - End-to-end authentication flow
112
- - Run tests: `npm test`
113
- - Criteria: ALL tests pass
114
-
115
- Output <promise>AUTH_COMPLETE</promise> when Phase 4 passes.
116
- ```
117
-
118
- ### Step 3: Implement Safety Mechanisms
119
-
120
- Always include escape conditions:
121
-
122
- ```markdown
123
- ## Safety Rules
124
-
125
- 1. **Max Iterations**: Stop after 20 attempts
126
- 2. **Stuck Detection**: After 5 iterations without progress:
127
- - Document what's blocking
128
- - List attempted approaches
129
- - Suggest alternative strategies
130
- 3. **Critical Errors**: Stop immediately if:
131
- - Database corruption detected
132
- - Security vulnerability introduced
133
- - Breaking changes to existing features
134
- ```
135
-
136
- ### Step 4: Execute with Verification
137
-
138
- Each iteration should:
139
- 1. Make targeted changes
140
- 2. Run verification (tests, lint, build)
141
- 3. Analyze results
142
- 4. Plan next iteration based on feedback
143
-
144
- ```bash
145
- # Iteration pattern
146
- 1. Read previous state (files, git log)
147
- 2. Identify remaining work
148
- 3. Implement specific change
149
- 4. Run verification suite
150
- 5. If all pass -> output completion promise
151
- 6. If failures -> analyze and continue iteration
152
- ```
153
-
154
- ---
155
-
156
- ## Iterative Patterns
157
-
158
- ### Pattern 1: Test-Driven Iteration
159
-
160
- ```markdown
161
- ## TDD Iteration Task
162
-
163
- 1. Write failing test for [feature]
164
- 2. Implement minimal code to pass test
165
- 3. Run `npm test`
166
- 4. If test fails -> debug and fix implementation
167
- 5. If test passes -> check if more tests needed
168
- 6. Repeat until all acceptance tests pass
169
- 7. Refactor if needed
170
- 8. Output <promise>TDD_COMPLETE</promise>
171
- ```
172
-
173
- ### Pattern 2: Bug Fix Iteration
174
-
175
- ```markdown
176
- ## Bug Fix Task
177
-
178
- 1. Write failing test that reproduces bug
179
- 2. Implement fix
180
- 3. Run test suite
181
- 4. If reproduction test fails -> analyze why fix didn't work
182
- 5. If other tests fail -> fix regressions
183
- 6. If all tests pass -> output <promise>BUG_FIXED</promise>
184
-
185
- Max iterations: 10
186
- After 5 iterations without fix:
187
- - Document root cause analysis
188
- - Suggest alternative approaches
189
- ```
190
-
191
- ### Pattern 3: Coverage Improvement Iteration
192
-
193
- ```markdown
194
- ## Coverage Improvement Task
195
-
196
- Target: 80% line coverage
197
-
198
- 1. Run coverage analysis
199
- 2. Identify uncovered code paths
200
- 3. Write test for highest-impact uncovered path
201
- 4. Run tests with coverage
202
- 5. If coverage >= 80% -> output <promise>COVERAGE_ACHIEVED</promise>
203
- 6. If coverage < 80% -> continue iteration
204
-
205
- Max iterations: 30
206
- Progress check: If coverage doesn't improve for 3 iterations -> analyze blockers
207
- ```
208
-
209
- ### Pattern 4: Performance Optimization Iteration
210
-
211
- ```markdown
212
- ## Performance Optimization Task
213
-
214
- Target: Response time < 100ms
215
-
216
- 1. Run performance benchmark
217
- 2. Identify slowest operation
218
- 3. Implement optimization
219
- 4. Run benchmark again
220
- 5. If target met -> output <promise>PERF_TARGET_MET</promise>
221
- 6. If not improved -> try different approach
222
-
223
- Max iterations: 15
224
- Record metrics each iteration for trend analysis
225
- ```
226
-
227
- ---
228
-
229
- ## Integration with Claude Flow
230
-
231
- ### Memory-Enhanced Iteration
232
-
233
- ```bash
234
- # Store iteration state
235
- npx @claude-flow/cli@latest memory store \
236
- --key "current-iteration" \
237
- --value '{"task": "auth", "iteration": 5, "lastResult": "2 tests failing"}' \
238
- --namespace iterations
239
-
240
- # Search for similar past iterations
241
- npx @claude-flow/cli@latest memory search \
242
- --query "auth implementation" \
243
- --namespace iterations
244
-
245
- # Learn from successful completions
246
- npx @claude-flow/cli@latest hooks post-task \
247
- --taskId "auth-impl" \
248
- --success true \
249
- --quality 0.9
250
- ```
251
-
252
- ### Swarm-Coordinated Iteration
253
-
254
- For complex tasks, use multiple agents iterating in parallel:
255
-
256
- ```bash
257
- # Initialize swarm for parallel iteration
258
- npx @claude-flow/cli@latest swarm init --topology mesh --max-agents 5
259
-
260
- # Spawn specialized iterators
261
- Task("Iterate on unit tests", "Fix failing unit tests until all pass", "tester")
262
- Task("Iterate on integration", "Fix integration tests until all pass", "tester")
263
- Task("Iterate on performance", "Optimize until benchmarks pass", "performance-engineer")
264
- ```
265
-
266
- ---
267
-
268
- ## Best Practices
269
-
270
- ### Prompt Engineering for Iteration
271
-
272
- **Include:**
273
- - Explicit completion criteria with verification commands
274
- - Phase-based breakdown for complex tasks
275
- - Safety limits (max iterations)
276
- - Progress tracking instructions
277
- - Stuck detection and recovery procedures
278
-
279
- **Example Well-Structured Prompt:**
280
- ```markdown
281
- ## Task: Implement Feature X
282
-
283
- ### Success Criteria (ALL must pass):
284
- 1. `npm test` exits with code 0
285
- 2. `npm run lint` exits with code 0
286
- 3. `npm run typecheck` exits with code 0
287
- 4. No console.log statements in production code
288
-
289
- ### Phases:
290
- 1. Write failing tests
291
- 2. Implement feature
292
- 3. Fix any failures
293
- 4. Clean up and refactor
294
-
295
- ### Safety:
296
- - Max iterations: 20
297
- - After 10 iterations: summarize blockers
298
- - Stop if security issues detected
299
-
300
- ### Completion:
301
- When ALL success criteria pass, output:
302
- <promise>FEATURE_X_COMPLETE</promise>
303
- ```
304
-
305
- ### When to Use Iterative Loops
306
-
307
- **Ideal for:**
308
- - Well-defined tasks with measurable success
309
- - Test-driven development
310
- - Bug fixing with reproducible tests
311
- - Coverage improvement
312
- - Performance optimization
313
- - Linting/formatting fixes
314
-
315
- **Not ideal for:**
316
- - Tasks requiring human judgment
317
- - Design decisions
318
- - Vague or subjective goals
319
- - One-time operations
320
- - Production debugging without tests
321
-
322
- ---
323
-
324
- ## Troubleshooting
325
-
326
- ### Issue: Infinite Loop / No Progress
327
-
328
- **Symptoms**: Same errors repeat without improvement
329
-
330
- **Solutions**:
331
- 1. Increase specificity in completion criteria
332
- 2. Add "stuck detection" with alternative approaches
333
- 3. Lower max iterations
334
- 4. Break task into smaller phases
335
-
336
- ### Issue: False Completion
337
-
338
- **Symptoms**: Loop ends but task not actually complete
339
-
340
- **Solutions**:
341
- 1. Add more verification commands
342
- 2. Make completion criteria more explicit
343
- 3. Add integration tests alongside unit tests
344
-
345
- ### Issue: Regression in Later Iterations
346
-
347
- **Symptoms**: Previously passing tests fail after new changes
348
-
349
- **Solutions**:
350
- 1. Add regression check step
351
- 2. Use git to compare iterations
352
- 3. Implement smaller, targeted changes
353
-
354
- ---
355
-
356
- ## Related Skills
357
-
358
- - [tdd-london-chicago](../tdd-london-chicago/) - TDD approaches for iterative development
359
- - [qe-iterative-loop](../qe-iterative-loop/) - AQE v3 fleet-specific iteration patterns
360
- - [hooks-automation](../hooks-automation/) - Claude Flow hooks for automation
361
-
362
- ## Resources
363
-
364
- - [Ralph Wiggum Technique](https://ghuntley.com/ralph/) - Original methodology
365
- - [Ralph Orchestrator](https://github.com/mikeyobrien/ralph-orchestrator) - Orchestration tools
366
- - [Claude Code Plugins](https://github.com/anthropics/claude-code) - Official plugins
367
-
368
- ---
369
-
370
- **Origin**: Based on Ralph Wiggum plugin from claude-code repository (anthropics/claude-code)
371
- **Adapted for**: Agentic QE v3 with Claude Flow integration
1
+ ---
2
+ name: "Iterative Loop"
3
+ description: "Implement continuous AI iteration loops for complex development tasks. Use when building features requiring test-driven refinement, implementing tasks with clear success criteria, or automating iterative improvement workflows. Based on the Ralph Wiggum technique from Claude Code plugins."
4
+ ---
5
+
6
+ # Iterative Loop
7
+
8
+ ## Overview
9
+
10
+ The Iterative Loop skill implements **continuous AI-driven development loops** that persist until completion criteria are met. Inspired by the Ralph Wiggum technique, this approach enables autonomous, self-correcting development cycles where the AI sees its previous work in files and git history, iteratively improving until success.
11
+
12
+ ## Core Philosophy
13
+
14
+ 1. **Iteration > Perfection** - Don't aim for perfect on first try; let the loop refine the work
15
+ 2. **Failures Are Data** - Each failure provides information to improve the next attempt
16
+ 3. **Clear Criteria** - Success must be objectively measurable (tests, metrics, validations)
17
+ 4. **Persistence Wins** - Keep trying until success; the loop handles retry logic automatically
18
+
19
+ ## Prerequisites
20
+
21
+ - Claude Code with session management
22
+ - Clear completion criteria (tests, linting, metrics)
23
+ - Version control (git) for tracking iterations
24
+
25
+ ---
26
+
27
+ ## Quick Start
28
+
29
+ ### Basic Iterative Development Pattern
30
+
31
+ ```bash
32
+ # Define task with clear completion criteria
33
+ TASK="Implement user authentication with JWT.
34
+ Success criteria:
35
+ - All unit tests pass
36
+ - Integration tests pass
37
+ - No TypeScript errors
38
+ - Security audit passes
39
+ Output <promise>COMPLETE</promise> when all criteria met."
40
+
41
+ # Execute iterative loop (conceptual)
42
+ while ! task_complete; do
43
+ claude_execute "$TASK"
44
+ check_completion_criteria
45
+ done
46
+ ```
47
+
48
+ ### AQE v3 Integration Example
49
+
50
+ ```bash
51
+ # Using claude-flow hooks for iterative task
52
+ npx @claude-flow/cli@latest hooks pre-task --description "Implement auth with iteration" --taskId "auth-impl"
53
+
54
+ # Store iteration state in memory
55
+ npx @claude-flow/cli@latest memory store \
56
+ --key "iteration-auth" \
57
+ --value '{"iteration": 1, "maxIterations": 20, "criteria": "all tests pass"}' \
58
+ --namespace iterations
59
+ ```
60
+
61
+ ---
62
+
63
+ ## Step-by-Step Guide
64
+
65
+ ### Step 1: Define Clear Success Criteria
66
+
67
+ **Essential**: Every iterative task MUST have objectively measurable completion criteria.
68
+
69
+ **Good Criteria Examples:**
70
+ ```markdown
71
+ ✅ All unit tests pass (npm test returns exit code 0)
72
+ ✅ Coverage > 80% (coverage report shows 80%+)
73
+ ✅ No TypeScript errors (tsc --noEmit returns 0)
74
+ ✅ Linting passes (eslint returns 0)
75
+ ✅ Performance < 100ms (benchmark shows < 100ms)
76
+ ```
77
+
78
+ **Bad Criteria Examples:**
79
+ ```markdown
80
+ ❌ "Code looks good" (subjective)
81
+ ❌ "Works properly" (undefined)
82
+ ❌ "Well-structured" (no measurable check)
83
+ ```
84
+
85
+ ### Step 2: Structure the Task with Phases
86
+
87
+ Break complex tasks into incremental phases:
88
+
89
+ ```markdown
90
+ ## Task: Implement User Authentication
91
+
92
+ ### Phase 1: Data Layer
93
+ - Create User model with Prisma schema
94
+ - Write migration
95
+ - Run tests: `npm test -- --grep "User model"`
96
+ - Criteria: Model tests pass
97
+
98
+ ### Phase 2: Service Layer
99
+ - Implement AuthService with JWT
100
+ - Add token generation/validation
101
+ - Run tests: `npm test -- --grep "AuthService"`
102
+ - Criteria: Service tests pass
103
+
104
+ ### Phase 3: API Layer
105
+ - Create /auth/login endpoint
106
+ - Create /auth/register endpoint
107
+ - Run tests: `npm test -- --grep "auth API"`
108
+ - Criteria: API tests pass
109
+
110
+ ### Phase 4: Integration
111
+ - End-to-end authentication flow
112
+ - Run tests: `npm test`
113
+ - Criteria: ALL tests pass
114
+
115
+ Output <promise>AUTH_COMPLETE</promise> when Phase 4 passes.
116
+ ```
117
+
118
+ ### Step 3: Implement Safety Mechanisms
119
+
120
+ Always include escape conditions:
121
+
122
+ ```markdown
123
+ ## Safety Rules
124
+
125
+ 1. **Max Iterations**: Stop after 20 attempts
126
+ 2. **Stuck Detection**: After 5 iterations without progress:
127
+ - Document what's blocking
128
+ - List attempted approaches
129
+ - Suggest alternative strategies
130
+ 3. **Critical Errors**: Stop immediately if:
131
+ - Database corruption detected
132
+ - Security vulnerability introduced
133
+ - Breaking changes to existing features
134
+ ```
135
+
136
+ ### Step 4: Execute with Verification
137
+
138
+ Each iteration should:
139
+ 1. Make targeted changes
140
+ 2. Run verification (tests, lint, build)
141
+ 3. Analyze results
142
+ 4. Plan next iteration based on feedback
143
+
144
+ ```bash
145
+ # Iteration pattern
146
+ 1. Read previous state (files, git log)
147
+ 2. Identify remaining work
148
+ 3. Implement specific change
149
+ 4. Run verification suite
150
+ 5. If all pass -> output completion promise
151
+ 6. If failures -> analyze and continue iteration
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Iterative Patterns
157
+
158
+ ### Pattern 1: Test-Driven Iteration
159
+
160
+ ```markdown
161
+ ## TDD Iteration Task
162
+
163
+ 1. Write failing test for [feature]
164
+ 2. Implement minimal code to pass test
165
+ 3. Run `npm test`
166
+ 4. If test fails -> debug and fix implementation
167
+ 5. If test passes -> check if more tests needed
168
+ 6. Repeat until all acceptance tests pass
169
+ 7. Refactor if needed
170
+ 8. Output <promise>TDD_COMPLETE</promise>
171
+ ```
172
+
173
+ ### Pattern 2: Bug Fix Iteration
174
+
175
+ ```markdown
176
+ ## Bug Fix Task
177
+
178
+ 1. Write failing test that reproduces bug
179
+ 2. Implement fix
180
+ 3. Run test suite
181
+ 4. If reproduction test fails -> analyze why fix didn't work
182
+ 5. If other tests fail -> fix regressions
183
+ 6. If all tests pass -> output <promise>BUG_FIXED</promise>
184
+
185
+ Max iterations: 10
186
+ After 5 iterations without fix:
187
+ - Document root cause analysis
188
+ - Suggest alternative approaches
189
+ ```
190
+
191
+ ### Pattern 3: Coverage Improvement Iteration
192
+
193
+ ```markdown
194
+ ## Coverage Improvement Task
195
+
196
+ Target: 80% line coverage
197
+
198
+ 1. Run coverage analysis
199
+ 2. Identify uncovered code paths
200
+ 3. Write test for highest-impact uncovered path
201
+ 4. Run tests with coverage
202
+ 5. If coverage >= 80% -> output <promise>COVERAGE_ACHIEVED</promise>
203
+ 6. If coverage < 80% -> continue iteration
204
+
205
+ Max iterations: 30
206
+ Progress check: If coverage doesn't improve for 3 iterations -> analyze blockers
207
+ ```
208
+
209
+ ### Pattern 4: Performance Optimization Iteration
210
+
211
+ ```markdown
212
+ ## Performance Optimization Task
213
+
214
+ Target: Response time < 100ms
215
+
216
+ 1. Run performance benchmark
217
+ 2. Identify slowest operation
218
+ 3. Implement optimization
219
+ 4. Run benchmark again
220
+ 5. If target met -> output <promise>PERF_TARGET_MET</promise>
221
+ 6. If not improved -> try different approach
222
+
223
+ Max iterations: 15
224
+ Record metrics each iteration for trend analysis
225
+ ```
226
+
227
+ ---
228
+
229
+ ## Integration with Claude Flow
230
+
231
+ ### Memory-Enhanced Iteration
232
+
233
+ ```bash
234
+ # Store iteration state
235
+ npx @claude-flow/cli@latest memory store \
236
+ --key "current-iteration" \
237
+ --value '{"task": "auth", "iteration": 5, "lastResult": "2 tests failing"}' \
238
+ --namespace iterations
239
+
240
+ # Search for similar past iterations
241
+ npx @claude-flow/cli@latest memory search \
242
+ --query "auth implementation" \
243
+ --namespace iterations
244
+
245
+ # Learn from successful completions
246
+ npx @claude-flow/cli@latest hooks post-task \
247
+ --taskId "auth-impl" \
248
+ --success true \
249
+ --quality 0.9
250
+ ```
251
+
252
+ ### Swarm-Coordinated Iteration
253
+
254
+ For complex tasks, use multiple agents iterating in parallel:
255
+
256
+ ```bash
257
+ # Initialize swarm for parallel iteration
258
+ npx @claude-flow/cli@latest swarm init --topology mesh --max-agents 5
259
+
260
+ # Spawn specialized iterators
261
+ Task("Iterate on unit tests", "Fix failing unit tests until all pass", "tester")
262
+ Task("Iterate on integration", "Fix integration tests until all pass", "tester")
263
+ Task("Iterate on performance", "Optimize until benchmarks pass", "performance-engineer")
264
+ ```
265
+
266
+ ---
267
+
268
+ ## Best Practices
269
+
270
+ ### Prompt Engineering for Iteration
271
+
272
+ **Include:**
273
+ - Explicit completion criteria with verification commands
274
+ - Phase-based breakdown for complex tasks
275
+ - Safety limits (max iterations)
276
+ - Progress tracking instructions
277
+ - Stuck detection and recovery procedures
278
+
279
+ **Example Well-Structured Prompt:**
280
+ ```markdown
281
+ ## Task: Implement Feature X
282
+
283
+ ### Success Criteria (ALL must pass):
284
+ 1. `npm test` exits with code 0
285
+ 2. `npm run lint` exits with code 0
286
+ 3. `npm run typecheck` exits with code 0
287
+ 4. No console.log statements in production code
288
+
289
+ ### Phases:
290
+ 1. Write failing tests
291
+ 2. Implement feature
292
+ 3. Fix any failures
293
+ 4. Clean up and refactor
294
+
295
+ ### Safety:
296
+ - Max iterations: 20
297
+ - After 10 iterations: summarize blockers
298
+ - Stop if security issues detected
299
+
300
+ ### Completion:
301
+ When ALL success criteria pass, output:
302
+ <promise>FEATURE_X_COMPLETE</promise>
303
+ ```
304
+
305
+ ### When to Use Iterative Loops
306
+
307
+ **Ideal for:**
308
+ - Well-defined tasks with measurable success
309
+ - Test-driven development
310
+ - Bug fixing with reproducible tests
311
+ - Coverage improvement
312
+ - Performance optimization
313
+ - Linting/formatting fixes
314
+
315
+ **Not ideal for:**
316
+ - Tasks requiring human judgment
317
+ - Design decisions
318
+ - Vague or subjective goals
319
+ - One-time operations
320
+ - Production debugging without tests
321
+
322
+ ---
323
+
324
+ ## Troubleshooting
325
+
326
+ ### Issue: Infinite Loop / No Progress
327
+
328
+ **Symptoms**: Same errors repeat without improvement
329
+
330
+ **Solutions**:
331
+ 1. Increase specificity in completion criteria
332
+ 2. Add "stuck detection" with alternative approaches
333
+ 3. Lower max iterations
334
+ 4. Break task into smaller phases
335
+
336
+ ### Issue: False Completion
337
+
338
+ **Symptoms**: Loop ends but task not actually complete
339
+
340
+ **Solutions**:
341
+ 1. Add more verification commands
342
+ 2. Make completion criteria more explicit
343
+ 3. Add integration tests alongside unit tests
344
+
345
+ ### Issue: Regression in Later Iterations
346
+
347
+ **Symptoms**: Previously passing tests fail after new changes
348
+
349
+ **Solutions**:
350
+ 1. Add regression check step
351
+ 2. Use git to compare iterations
352
+ 3. Implement smaller, targeted changes
353
+
354
+ ---
355
+
356
+ ## Related Skills
357
+
358
+ - [tdd-london-chicago](../tdd-london-chicago/) - TDD approaches for iterative development
359
+ - [qe-iterative-loop](../qe-iterative-loop/) - AQE v3 fleet-specific iteration patterns
360
+ - [hooks-automation](../hooks-automation/) - Claude Flow hooks for automation
361
+
362
+ ## Resources
363
+
364
+ - [Ralph Wiggum Technique](https://ghuntley.com/ralph/) - Original methodology
365
+ - [Ralph Orchestrator](https://github.com/mikeyobrien/ralph-orchestrator) - Orchestration tools
366
+ - [Claude Code Plugins](https://github.com/anthropics/claude-code) - Official plugins
367
+
368
+ ---
369
+
370
+ **Origin**: Based on Ralph Wiggum plugin from claude-code repository (anthropics/claude-code)
371
+ **Adapted for**: Agentic QE v3 with Claude Flow integration