code-ai-installer 4.0.0 → 4.0.1-a

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 (471) hide show
  1. package/README.md +83 -67
  2. package/dist/index.js +2 -0
  3. package/dist/mcp/audit_ledger.d.ts +12 -0
  4. package/dist/mcp/audit_ledger.js +82 -0
  5. package/dist/mcp/cli.js +7 -1
  6. package/dist/mcp/config.d.ts +23 -0
  7. package/dist/mcp/config.js +36 -0
  8. package/dist/mcp/index.d.ts +1 -2
  9. package/dist/mcp/index.js +1 -2
  10. package/dist/mcp/paths.d.ts +20 -2
  11. package/dist/mcp/paths.js +29 -5
  12. package/dist/mcp/proposal_dedup.d.ts +32 -0
  13. package/dist/mcp/proposal_dedup.js +102 -0
  14. package/dist/mcp/proposal_store.d.ts +18 -0
  15. package/dist/mcp/proposal_store.js +74 -0
  16. package/dist/mcp/scorecard.d.ts +140 -0
  17. package/dist/mcp/scorecard.js +103 -0
  18. package/dist/mcp/skill_invocations.d.ts +15 -0
  19. package/dist/mcp/skill_invocations.js +28 -0
  20. package/dist/mcp/task_state.d.ts +77 -2
  21. package/dist/mcp/tools/_subprocess.d.ts +16 -0
  22. package/dist/mcp/tools/_subprocess.js +56 -0
  23. package/dist/mcp/tools/advance_gate.js +2 -2
  24. package/dist/mcp/tools/aggregate_run_metrics.d.ts +19 -0
  25. package/dist/mcp/tools/aggregate_run_metrics.js +139 -0
  26. package/dist/mcp/tools/apply_diff.d.ts +2 -0
  27. package/dist/mcp/tools/apply_diff.js +29 -0
  28. package/dist/mcp/tools/audit_bilocale_parity.d.ts +2 -0
  29. package/dist/mcp/tools/audit_bilocale_parity.js +146 -0
  30. package/dist/mcp/tools/audit_budget_compliance.d.ts +35 -0
  31. package/dist/mcp/tools/audit_budget_compliance.js +172 -0
  32. package/dist/mcp/tools/build.d.ts +2 -0
  33. package/dist/mcp/tools/build.js +47 -0
  34. package/dist/mcp/tools/check_lint.d.ts +2 -0
  35. package/dist/mcp/tools/check_lint.js +23 -0
  36. package/dist/mcp/tools/classify_gate.js +2 -2
  37. package/dist/mcp/tools/current_gate.js +2 -2
  38. package/dist/mcp/tools/dependency_supply_chain.d.ts +2 -0
  39. package/dist/mcp/tools/dependency_supply_chain.js +59 -0
  40. package/dist/mcp/tools/docker_compose.d.ts +2 -0
  41. package/dist/mcp/tools/docker_compose.js +24 -0
  42. package/dist/mcp/tools/e2e_playwright.d.ts +2 -0
  43. package/dist/mcp/tools/e2e_playwright.js +88 -0
  44. package/dist/mcp/tools/get_skill.js +17 -0
  45. package/dist/mcp/tools/git_commit.d.ts +2 -0
  46. package/dist/mcp/tools/git_commit.js +30 -0
  47. package/dist/mcp/tools/list_proposals.d.ts +6 -0
  48. package/dist/mcp/tools/list_proposals.js +16 -0
  49. package/dist/mcp/tools/list_skills.js +9 -1
  50. package/dist/mcp/tools/load_role.d.ts +3 -4
  51. package/dist/mcp/tools/load_role.js +11 -13
  52. package/dist/mcp/tools/propose_change.d.ts +8 -0
  53. package/dist/mcp/tools/propose_change.js +36 -0
  54. package/dist/mcp/tools/record_decision.js +25 -25
  55. package/dist/mcp/tools/review_proposal.d.ts +17 -0
  56. package/dist/mcp/tools/review_proposal.js +99 -0
  57. package/dist/mcp/tools/run_drift_audit.d.ts +11 -0
  58. package/dist/mcp/tools/run_drift_audit.js +79 -0
  59. package/dist/mcp/tools/run_tests.d.ts +2 -0
  60. package/dist/mcp/tools/run_tests.js +92 -0
  61. package/dist/mcp/tools/sign_off.js +14 -2
  62. package/dist/mcp/tools/stubs.js +30 -9
  63. package/dist/mcp/tools/verify_claim.js +33 -6
  64. package/dist/mcp_setup.d.ts +8 -0
  65. package/dist/mcp_setup.js +4 -1
  66. package/dist/shared/frontmatter.d.ts +44 -2
  67. package/dist/shared/frontmatter.js +54 -6
  68. package/dist/shared/index.d.ts +0 -5
  69. package/dist/shared/index.js +0 -5
  70. package/dist/shared/persona.d.ts +2 -2
  71. package/dist/shared/persona.js +1 -1
  72. package/dist/shared/pipeline.d.ts +46 -1
  73. package/dist/shared/tools.d.ts +1382 -16
  74. package/dist/shared/tools.js +229 -0
  75. package/dist/shared/vocabulary.d.ts +99 -4
  76. package/dist/shared/vocabulary.js +94 -5
  77. package/domains/analytics/.agents/skills/ansoff-matrix/SKILL.md +316 -300
  78. package/domains/analytics/.agents/skills/bcg-matrix/SKILL.md +345 -329
  79. package/domains/analytics/.agents/skills/blue-ocean-strategy/SKILL.md +432 -416
  80. package/domains/analytics/.agents/skills/board/SKILL.md +22 -0
  81. package/domains/analytics/.agents/skills/cohort-analysis/SKILL.md +338 -322
  82. package/domains/analytics/.agents/skills/competitive-analysis/SKILL.md +413 -395
  83. package/domains/analytics/.agents/skills/customer-journey-mapping/SKILL.md +347 -331
  84. package/domains/analytics/.agents/skills/gates/SKILL.md +388 -366
  85. package/domains/analytics/.agents/skills/handoff/SKILL.md +402 -380
  86. package/domains/analytics/.agents/skills/html-pdf-report/SKILL.md +21 -289
  87. package/domains/analytics/.agents/skills/html-pdf-report-reference/SKILL.md +325 -0
  88. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/claude.json +17 -0
  89. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/copilot.json +17 -0
  90. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/gemini.json +17 -0
  91. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/kimi.yaml +15 -0
  92. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/openai.yaml +10 -0
  93. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/qwen.json +17 -0
  94. package/domains/analytics/.agents/skills/html-pdf-report-reference/agents/skill.yaml +23 -0
  95. package/domains/analytics/.agents/skills/icp-buyer-persona/SKILL.md +407 -390
  96. package/domains/analytics/.agents/skills/jtbd-analysis/SKILL.md +357 -341
  97. package/domains/analytics/.agents/skills/karpathy-guidelines/SKILL.md +32 -0
  98. package/domains/analytics/.agents/skills/pest-analysis/SKILL.md +324 -305
  99. package/domains/analytics/.agents/skills/porters-five-forces/SKILL.md +377 -361
  100. package/domains/analytics/.agents/skills/report-design/SKILL.md +416 -398
  101. package/domains/analytics/.agents/skills/rfm-analysis/SKILL.md +330 -314
  102. package/domains/analytics/.agents/skills/session-prompt-generator/SKILL.md +400 -378
  103. package/domains/analytics/.agents/skills/swot-analysis/SKILL.md +340 -324
  104. package/domains/analytics/.agents/skills/tam-sam-som/SKILL.md +329 -312
  105. package/domains/analytics/.agents/skills/trend-analysis/SKILL.md +347 -331
  106. package/domains/analytics/.agents/skills/unit-economics/SKILL.md +430 -413
  107. package/domains/analytics/.agents/skills/value-chain-analysis/SKILL.md +346 -330
  108. package/domains/analytics/.agents/skills/web-research/SKILL.md +323 -308
  109. package/domains/analytics/AGENTS.md +1 -0
  110. package/domains/analytics/agents/auditor.md +76 -0
  111. package/domains/analytics/agents/conductor.md +11 -0
  112. package/domains/analytics/agents/data_analyst.md +11 -0
  113. package/domains/analytics/agents/designer.md +11 -0
  114. package/domains/analytics/agents/interviewer.md +11 -0
  115. package/domains/analytics/agents/layouter.md +11 -0
  116. package/domains/analytics/agents/mediator.md +11 -0
  117. package/domains/analytics/agents/researcher.md +11 -0
  118. package/domains/analytics/agents/strategist.md +11 -0
  119. package/domains/analytics/locales/en/.agents/skills/ansoff-matrix/SKILL.md +316 -300
  120. package/domains/analytics/locales/en/.agents/skills/bcg-matrix/SKILL.md +345 -329
  121. package/domains/analytics/locales/en/.agents/skills/blue-ocean-strategy/SKILL.md +432 -416
  122. package/domains/analytics/locales/en/.agents/skills/board/SKILL.md +22 -0
  123. package/domains/analytics/locales/en/.agents/skills/cohort-analysis/SKILL.md +338 -322
  124. package/domains/analytics/locales/en/.agents/skills/competitive-analysis/SKILL.md +413 -395
  125. package/domains/analytics/locales/en/.agents/skills/customer-journey-mapping/SKILL.md +347 -331
  126. package/domains/analytics/locales/en/.agents/skills/gates/SKILL.md +388 -366
  127. package/domains/analytics/locales/en/.agents/skills/handoff/SKILL.md +402 -380
  128. package/domains/analytics/locales/en/.agents/skills/html-pdf-report/SKILL.md +21 -289
  129. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/SKILL.md +325 -0
  130. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/claude.json +17 -0
  131. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/copilot.json +17 -0
  132. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/gemini.json +17 -0
  133. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/kimi.yaml +15 -0
  134. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/openai.yaml +10 -0
  135. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/qwen.json +17 -0
  136. package/domains/analytics/locales/en/.agents/skills/html-pdf-report-reference/agents/skill.yaml +29 -0
  137. package/domains/analytics/locales/en/.agents/skills/icp-buyer-persona/SKILL.md +407 -390
  138. package/domains/analytics/locales/en/.agents/skills/jtbd-analysis/SKILL.md +357 -341
  139. package/domains/analytics/locales/en/.agents/skills/karpathy-guidelines/SKILL.md +32 -0
  140. package/domains/analytics/locales/en/.agents/skills/pest-analysis/SKILL.md +324 -305
  141. package/domains/analytics/locales/en/.agents/skills/porters-five-forces/SKILL.md +377 -361
  142. package/domains/analytics/locales/en/.agents/skills/report-design/SKILL.md +416 -398
  143. package/domains/analytics/locales/en/.agents/skills/rfm-analysis/SKILL.md +330 -314
  144. package/domains/analytics/locales/en/.agents/skills/session-prompt-generator/SKILL.md +400 -378
  145. package/domains/analytics/locales/en/.agents/skills/swot-analysis/SKILL.md +340 -324
  146. package/domains/analytics/locales/en/.agents/skills/tam-sam-som/SKILL.md +329 -312
  147. package/domains/analytics/locales/en/.agents/skills/trend-analysis/SKILL.md +347 -331
  148. package/domains/analytics/locales/en/.agents/skills/unit-economics/SKILL.md +430 -413
  149. package/domains/analytics/locales/en/.agents/skills/value-chain-analysis/SKILL.md +366 -350
  150. package/domains/analytics/locales/en/.agents/skills/web-research/SKILL.md +324 -309
  151. package/domains/analytics/locales/en/AGENTS.md +1 -0
  152. package/domains/analytics/locales/en/agents/auditor.md +76 -0
  153. package/domains/analytics/locales/en/agents/conductor.md +27 -0
  154. package/domains/analytics/locales/en/agents/data_analyst.md +29 -0
  155. package/domains/analytics/locales/en/agents/designer.md +27 -0
  156. package/domains/analytics/locales/en/agents/interviewer.md +11 -0
  157. package/domains/analytics/locales/en/agents/layouter.md +11 -0
  158. package/domains/analytics/locales/en/agents/mediator.md +11 -0
  159. package/domains/analytics/locales/en/agents/researcher.md +11 -0
  160. package/domains/analytics/locales/en/agents/strategist.md +11 -0
  161. package/domains/analytics/persona/persona-base.md +94 -0
  162. package/domains/analytics/pipeline.yaml +102 -0
  163. package/domains/content/.agents/skills/audience-analysis/SKILL.md +15 -0
  164. package/domains/content/.agents/skills/board/SKILL.md +20 -0
  165. package/domains/content/.agents/skills/brand-compliance/SKILL.md +15 -0
  166. package/domains/content/.agents/skills/brand-guidelines/SKILL.md +17 -0
  167. package/domains/content/.agents/skills/competitor-content-analysis/SKILL.md +15 -0
  168. package/domains/content/.agents/skills/content-brief/SKILL.md +15 -0
  169. package/domains/content/.agents/skills/content-calendar/SKILL.md +15 -0
  170. package/domains/content/.agents/skills/content-release-gate/SKILL.md +15 -0
  171. package/domains/content/.agents/skills/content-review-checklist/SKILL.md +15 -0
  172. package/domains/content/.agents/skills/cta-optimization/SKILL.md +15 -0
  173. package/domains/content/.agents/skills/data-storytelling/SKILL.md +15 -0
  174. package/domains/content/.agents/skills/email-copywriting/SKILL.md +15 -0
  175. package/domains/content/.agents/skills/email-engagement-tiers/SKILL.md +15 -0
  176. package/domains/content/.agents/skills/fact-checking/SKILL.md +15 -0
  177. package/domains/content/.agents/skills/gates/SKILL.md +20 -0
  178. package/domains/content/.agents/skills/google-stitch-content/SKILL.md +15 -0
  179. package/domains/content/.agents/skills/handoff/SKILL.md +24 -0
  180. package/domains/content/.agents/skills/headline-formulas/SKILL.md +15 -0
  181. package/domains/content/.agents/skills/image-prompt-engineering/SKILL.md +15 -0
  182. package/domains/content/.agents/skills/karpathy-guidelines/SKILL.md +28 -0
  183. package/domains/content/.agents/skills/mailerlite-email-ops/SKILL.md +15 -0
  184. package/domains/content/.agents/skills/marketing-psychology/SKILL.md +15 -0
  185. package/domains/content/.agents/skills/moodboard/SKILL.md +15 -0
  186. package/domains/content/.agents/skills/platform-compliance/SKILL.md +15 -0
  187. package/domains/content/.agents/skills/platform-strategy/SKILL.md +15 -0
  188. package/domains/content/.agents/skills/platform-visual-specs/SKILL.md +15 -0
  189. package/domains/content/.agents/skills/readability-scoring/SKILL.md +15 -0
  190. package/domains/content/.agents/skills/seo-copywriting/SKILL.md +15 -0
  191. package/domains/content/.agents/skills/social-media-formats/SKILL.md +15 -0
  192. package/domains/content/.agents/skills/source-verification/SKILL.md +15 -0
  193. package/domains/content/.agents/skills/storytelling-framework/SKILL.md +15 -0
  194. package/domains/content/.agents/skills/tone-of-voice/SKILL.md +15 -0
  195. package/domains/content/.agents/skills/topic-research/SKILL.md +15 -0
  196. package/domains/content/.agents/skills/trend-research/SKILL.md +15 -0
  197. package/domains/content/.agents/skills/visual-brief/SKILL.md +15 -0
  198. package/domains/content/AGENTS.md +4 -0
  199. package/domains/content/agents/auditor.md +76 -0
  200. package/domains/content/agents/conductor.md +11 -0
  201. package/domains/content/agents/copywriter.md +11 -0
  202. package/domains/content/agents/researcher.md +11 -0
  203. package/domains/content/agents/reviewer.md +11 -0
  204. package/domains/content/agents/strategist.md +11 -0
  205. package/domains/content/agents/visual_concept.md +11 -0
  206. package/domains/content/locales/en/.agents/skills/audience-analysis/SKILL.md +15 -0
  207. package/domains/content/locales/en/.agents/skills/board/SKILL.md +20 -0
  208. package/domains/content/locales/en/.agents/skills/brand-compliance/SKILL.md +15 -0
  209. package/domains/content/locales/en/.agents/skills/brand-guidelines/SKILL.md +17 -0
  210. package/domains/content/locales/en/.agents/skills/competitor-content-analysis/SKILL.md +15 -0
  211. package/domains/content/locales/en/.agents/skills/content-brief/SKILL.md +15 -0
  212. package/domains/content/locales/en/.agents/skills/content-calendar/SKILL.md +15 -0
  213. package/domains/content/locales/en/.agents/skills/content-release-gate/SKILL.md +15 -0
  214. package/domains/content/locales/en/.agents/skills/content-review-checklist/SKILL.md +15 -0
  215. package/domains/content/locales/en/.agents/skills/cta-optimization/SKILL.md +15 -0
  216. package/domains/content/locales/en/.agents/skills/data-storytelling/SKILL.md +15 -0
  217. package/domains/content/locales/en/.agents/skills/email-copywriting/SKILL.md +15 -0
  218. package/domains/content/locales/en/.agents/skills/email-engagement-tiers/SKILL.md +15 -0
  219. package/domains/content/locales/en/.agents/skills/fact-checking/SKILL.md +15 -0
  220. package/domains/content/locales/en/.agents/skills/gates/SKILL.md +20 -0
  221. package/domains/content/locales/en/.agents/skills/google-stitch-content/SKILL.md +15 -0
  222. package/domains/content/locales/en/.agents/skills/handoff/SKILL.md +24 -0
  223. package/domains/content/locales/en/.agents/skills/headline-formulas/SKILL.md +15 -0
  224. package/domains/content/locales/en/.agents/skills/image-prompt-engineering/SKILL.md +15 -0
  225. package/domains/content/locales/en/.agents/skills/karpathy-guidelines/SKILL.md +30 -1
  226. package/domains/content/locales/en/.agents/skills/mailerlite-email-ops/SKILL.md +15 -0
  227. package/domains/content/locales/en/.agents/skills/marketing-psychology/SKILL.md +15 -0
  228. package/domains/content/locales/en/.agents/skills/moodboard/SKILL.md +15 -0
  229. package/domains/content/locales/en/.agents/skills/platform-compliance/SKILL.md +15 -0
  230. package/domains/content/locales/en/.agents/skills/platform-strategy/SKILL.md +15 -0
  231. package/domains/content/locales/en/.agents/skills/platform-visual-specs/SKILL.md +15 -0
  232. package/domains/content/locales/en/.agents/skills/readability-scoring/SKILL.md +15 -0
  233. package/domains/content/locales/en/.agents/skills/seo-copywriting/SKILL.md +15 -0
  234. package/domains/content/locales/en/.agents/skills/social-media-formats/SKILL.md +15 -0
  235. package/domains/content/locales/en/.agents/skills/source-verification/SKILL.md +15 -0
  236. package/domains/content/locales/en/.agents/skills/storytelling-framework/SKILL.md +15 -0
  237. package/domains/content/locales/en/.agents/skills/tone-of-voice/SKILL.md +15 -0
  238. package/domains/content/locales/en/.agents/skills/topic-research/SKILL.md +15 -0
  239. package/domains/content/locales/en/.agents/skills/trend-research/SKILL.md +15 -0
  240. package/domains/content/locales/en/.agents/skills/visual-brief/SKILL.md +15 -0
  241. package/domains/content/locales/en/AGENTS.md +4 -0
  242. package/domains/content/locales/en/agents/auditor.md +76 -0
  243. package/domains/content/locales/en/agents/conductor.md +12 -0
  244. package/domains/content/locales/en/agents/copywriter.md +12 -0
  245. package/domains/content/locales/en/agents/researcher.md +12 -0
  246. package/domains/content/locales/en/agents/reviewer.md +12 -0
  247. package/domains/content/locales/en/agents/strategist.md +12 -0
  248. package/domains/content/locales/en/agents/visual_concept.md +12 -0
  249. package/domains/content/persona/persona-base.md +94 -0
  250. package/domains/content/pipeline.yaml +96 -0
  251. package/domains/development/.agents/skills/adr-log/SKILL.md +1 -0
  252. package/domains/development/.agents/skills/design-intake/SKILL.md +0 -4
  253. package/domains/development/.agents/skills/karpathy-guidelines/SKILL.md +2 -1
  254. package/domains/development/.agents/skills/lava-flow-legacy-detection/SKILL.md +15 -1
  255. package/domains/development/.agents/skills/mcp-integration/SKILL.md +211 -0
  256. package/domains/development/.agents/skills/mcp-integration/agents/claude.json +22 -0
  257. package/domains/development/.agents/skills/mcp-integration/agents/copilot.json +22 -0
  258. package/domains/development/.agents/skills/mcp-integration/agents/gemini.json +22 -0
  259. package/domains/development/.agents/skills/mcp-integration/agents/kimi.yaml +18 -0
  260. package/domains/development/.agents/skills/mcp-integration/agents/openai.yaml +8 -0
  261. package/domains/development/.agents/skills/mcp-integration/agents/qwen.json +22 -0
  262. package/domains/development/.agents/skills/mcp-integration/agents/skill.yaml +26 -0
  263. package/domains/development/.agents/skills/qa-ui-a11y-smoke/SKILL.md +1 -1
  264. package/domains/development/.agents/skills/ui-a11y-smoke-review/SKILL.md +1 -1
  265. package/domains/development/AGENTS.md +1 -0
  266. package/domains/development/AGENTS.yaml +1 -0
  267. package/domains/development/agents/architect.md +13 -1
  268. package/domains/development/agents/auditor.md +74 -0
  269. package/domains/development/agents/conductor.md +14 -3
  270. package/domains/development/agents/devops.md +8 -9
  271. package/domains/development/agents/reviewer.md +12 -0
  272. package/domains/development/agents/senior_full_stack.md +12 -0
  273. package/domains/development/agents/tester.md +10 -16
  274. package/domains/development/locales/en/.agents/skills/adr-log/SKILL.md +1 -0
  275. package/domains/development/locales/en/.agents/skills/current-state-analysis/SKILL.md +256 -172
  276. package/domains/development/locales/en/.agents/skills/karpathy-guidelines/SKILL.md +2 -1
  277. package/domains/development/locales/en/.agents/skills/lava-flow-legacy-detection/SKILL.md +15 -1
  278. package/domains/development/locales/en/.agents/skills/mcp-integration/SKILL.md +211 -0
  279. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/claude.json +22 -0
  280. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/copilot.json +22 -0
  281. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/gemini.json +22 -0
  282. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/kimi.yaml +18 -0
  283. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/openai.yaml +8 -0
  284. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/qwen.json +22 -0
  285. package/domains/development/locales/en/.agents/skills/mcp-integration/agents/skill.yaml +26 -0
  286. package/domains/development/locales/en/.agents/skills/qa-ui-a11y-smoke/SKILL.md +1 -1
  287. package/domains/development/locales/en/.agents/skills/ui-a11y-smoke-review/SKILL.md +1 -1
  288. package/domains/development/locales/en/AGENTS.md +5 -0
  289. package/domains/development/locales/en/AGENTS.yaml +1 -0
  290. package/domains/development/locales/en/agents/architect.md +13 -1
  291. package/domains/development/locales/en/agents/auditor.md +74 -0
  292. package/domains/development/locales/en/agents/conductor.md +14 -3
  293. package/domains/development/locales/en/agents/devops.md +8 -9
  294. package/domains/development/locales/en/agents/reviewer.md +12 -0
  295. package/domains/development/locales/en/agents/senior_full_stack.md +12 -0
  296. package/domains/development/locales/en/agents/tester.md +10 -16
  297. package/domains/development/persona/persona-base.md +94 -0
  298. package/domains/product/.agents/skills/aarrr-metrics/SKILL.md +451 -433
  299. package/domains/product/.agents/skills/ab-test-design/SKILL.md +428 -412
  300. package/domains/product/.agents/skills/acceptance-criteria/SKILL.md +422 -406
  301. package/domains/product/.agents/skills/assumption-mapping/SKILL.md +323 -307
  302. package/domains/product/.agents/skills/board/SKILL.md +24 -0
  303. package/domains/product/.agents/skills/design-brief/SKILL.md +433 -418
  304. package/domains/product/.agents/skills/epic-breakdown/SKILL.md +435 -420
  305. package/domains/product/.agents/skills/gates/SKILL.md +470 -446
  306. package/domains/product/.agents/skills/gtm-brief/SKILL.md +18 -321
  307. package/domains/product/.agents/skills/gtm-brief-reference/SKILL.md +348 -0
  308. package/domains/product/.agents/skills/gtm-brief-reference/agents/claude.json +17 -0
  309. package/domains/product/.agents/skills/gtm-brief-reference/agents/copilot.json +17 -0
  310. package/domains/product/.agents/skills/gtm-brief-reference/agents/gemini.json +17 -0
  311. package/domains/product/.agents/skills/gtm-brief-reference/agents/kimi.yaml +15 -0
  312. package/domains/product/.agents/skills/gtm-brief-reference/agents/openai.yaml +10 -0
  313. package/domains/product/.agents/skills/gtm-brief-reference/agents/qwen.json +17 -0
  314. package/domains/product/.agents/skills/gtm-brief-reference/agents/skill.yaml +22 -0
  315. package/domains/product/.agents/skills/handoff/SKILL.md +463 -439
  316. package/domains/product/.agents/skills/html-pdf-report/SKILL.md +21 -663
  317. package/domains/product/.agents/skills/html-pdf-report-reference/SKILL.md +699 -0
  318. package/domains/product/.agents/skills/html-pdf-report-reference/agents/claude.json +17 -0
  319. package/domains/product/.agents/skills/html-pdf-report-reference/agents/copilot.json +17 -0
  320. package/domains/product/.agents/skills/html-pdf-report-reference/agents/gemini.json +17 -0
  321. package/domains/product/.agents/skills/html-pdf-report-reference/agents/kimi.yaml +15 -0
  322. package/domains/product/.agents/skills/html-pdf-report-reference/agents/openai.yaml +10 -0
  323. package/domains/product/.agents/skills/html-pdf-report-reference/agents/qwen.json +17 -0
  324. package/domains/product/.agents/skills/html-pdf-report-reference/agents/skill.yaml +22 -0
  325. package/domains/product/.agents/skills/hypothesis-template/SKILL.md +484 -469
  326. package/domains/product/.agents/skills/jtbd-canvas/SKILL.md +274 -258
  327. package/domains/product/.agents/skills/kano-model/SKILL.md +370 -355
  328. package/domains/product/.agents/skills/karpathy-guidelines/SKILL.md +36 -0
  329. package/domains/product/.agents/skills/launch-checklist/SKILL.md +434 -419
  330. package/domains/product/.agents/skills/moscow-prioritization/SKILL.md +407 -392
  331. package/domains/product/.agents/skills/north-star-metric/SKILL.md +317 -301
  332. package/domains/product/.agents/skills/okr-framework/SKILL.md +299 -284
  333. package/domains/product/.agents/skills/opportunity-solution-tree/SKILL.md +472 -456
  334. package/domains/product/.agents/skills/prd-template/SKILL.md +18 -258
  335. package/domains/product/.agents/skills/prd-template-reference/SKILL.md +285 -0
  336. package/domains/product/.agents/skills/prd-template-reference/agents/claude.json +17 -0
  337. package/domains/product/.agents/skills/prd-template-reference/agents/copilot.json +17 -0
  338. package/domains/product/.agents/skills/prd-template-reference/agents/gemini.json +17 -0
  339. package/domains/product/.agents/skills/prd-template-reference/agents/kimi.yaml +16 -0
  340. package/domains/product/.agents/skills/prd-template-reference/agents/openai.yaml +10 -0
  341. package/domains/product/.agents/skills/prd-template-reference/agents/qwen.json +17 -0
  342. package/domains/product/.agents/skills/prd-template-reference/agents/skill.yaml +23 -0
  343. package/domains/product/.agents/skills/problem-statement/SKILL.md +327 -312
  344. package/domains/product/.agents/skills/product-roadmap/SKILL.md +320 -304
  345. package/domains/product/.agents/skills/product-vision/SKILL.md +409 -394
  346. package/domains/product/.agents/skills/release-notes/SKILL.md +18 -258
  347. package/domains/product/.agents/skills/release-notes-reference/SKILL.md +285 -0
  348. package/domains/product/.agents/skills/release-notes-reference/agents/claude.json +17 -0
  349. package/domains/product/.agents/skills/release-notes-reference/agents/copilot.json +17 -0
  350. package/domains/product/.agents/skills/release-notes-reference/agents/gemini.json +17 -0
  351. package/domains/product/.agents/skills/release-notes-reference/agents/kimi.yaml +15 -0
  352. package/domains/product/.agents/skills/release-notes-reference/agents/openai.yaml +10 -0
  353. package/domains/product/.agents/skills/release-notes-reference/agents/qwen.json +17 -0
  354. package/domains/product/.agents/skills/release-notes-reference/agents/skill.yaml +22 -0
  355. package/domains/product/.agents/skills/report-design/SKILL.md +17 -307
  356. package/domains/product/.agents/skills/report-design-reference/SKILL.md +331 -0
  357. package/domains/product/.agents/skills/report-design-reference/agents/claude.json +17 -0
  358. package/domains/product/.agents/skills/report-design-reference/agents/copilot.json +17 -0
  359. package/domains/product/.agents/skills/report-design-reference/agents/gemini.json +17 -0
  360. package/domains/product/.agents/skills/report-design-reference/agents/kimi.yaml +15 -0
  361. package/domains/product/.agents/skills/report-design-reference/agents/openai.yaml +10 -0
  362. package/domains/product/.agents/skills/report-design-reference/agents/qwen.json +17 -0
  363. package/domains/product/.agents/skills/report-design-reference/agents/skill.yaml +22 -0
  364. package/domains/product/.agents/skills/rice-scoring/SKILL.md +266 -251
  365. package/domains/product/.agents/skills/saas-metrics/SKILL.md +422 -404
  366. package/domains/product/.agents/skills/session-prompt-generator/SKILL.md +474 -450
  367. package/domains/product/.agents/skills/user-flow/SKILL.md +491 -476
  368. package/domains/product/.agents/skills/user-interview-script/SKILL.md +315 -298
  369. package/domains/product/.agents/skills/user-story/SKILL.md +401 -385
  370. package/domains/product/.agents/skills/wsjf-scoring/SKILL.md +333 -315
  371. package/domains/product/AGENTS.md +5 -0
  372. package/domains/product/AGENTS.yaml +1 -0
  373. package/domains/product/agents/auditor.md +76 -0
  374. package/domains/product/agents/conductor.md +11 -0
  375. package/domains/product/agents/data_analyst.md +11 -0
  376. package/domains/product/agents/designer.md +11 -0
  377. package/domains/product/agents/discovery.md +11 -0
  378. package/domains/product/agents/layouter.md +11 -0
  379. package/domains/product/agents/mediator.md +11 -0
  380. package/domains/product/agents/pm.md +11 -0
  381. package/domains/product/agents/product_strategist.md +11 -0
  382. package/domains/product/agents/tech_lead.md +11 -0
  383. package/domains/product/agents/ux_designer.md +11 -0
  384. package/domains/product/locales/en/.agents/skills/aarrr-metrics/SKILL.md +451 -433
  385. package/domains/product/locales/en/.agents/skills/ab-test-design/SKILL.md +428 -412
  386. package/domains/product/locales/en/.agents/skills/acceptance-criteria/SKILL.md +422 -406
  387. package/domains/product/locales/en/.agents/skills/assumption-mapping/SKILL.md +323 -307
  388. package/domains/product/locales/en/.agents/skills/board/SKILL.md +24 -0
  389. package/domains/product/locales/en/.agents/skills/design-brief/SKILL.md +433 -418
  390. package/domains/product/locales/en/.agents/skills/epic-breakdown/SKILL.md +435 -420
  391. package/domains/product/locales/en/.agents/skills/gates/SKILL.md +470 -446
  392. package/domains/product/locales/en/.agents/skills/gtm-brief/SKILL.md +18 -321
  393. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/SKILL.md +348 -0
  394. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/claude.json +17 -0
  395. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/copilot.json +17 -0
  396. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/gemini.json +17 -0
  397. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/kimi.yaml +15 -0
  398. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/openai.yaml +10 -0
  399. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/qwen.json +17 -0
  400. package/domains/product/locales/en/.agents/skills/gtm-brief-reference/agents/skill.yaml +22 -0
  401. package/domains/product/locales/en/.agents/skills/handoff/SKILL.md +463 -439
  402. package/domains/product/locales/en/.agents/skills/html-pdf-report/SKILL.md +21 -663
  403. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/SKILL.md +699 -0
  404. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/claude.json +17 -0
  405. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/copilot.json +17 -0
  406. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/gemini.json +17 -0
  407. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/kimi.yaml +15 -0
  408. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/openai.yaml +10 -0
  409. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/qwen.json +17 -0
  410. package/domains/product/locales/en/.agents/skills/html-pdf-report-reference/agents/skill.yaml +22 -0
  411. package/domains/product/locales/en/.agents/skills/hypothesis-template/SKILL.md +484 -469
  412. package/domains/product/locales/en/.agents/skills/jtbd-canvas/SKILL.md +273 -257
  413. package/domains/product/locales/en/.agents/skills/kano-model/SKILL.md +370 -355
  414. package/domains/product/locales/en/.agents/skills/karpathy-guidelines/SKILL.md +36 -0
  415. package/domains/product/locales/en/.agents/skills/launch-checklist/SKILL.md +434 -419
  416. package/domains/product/locales/en/.agents/skills/moscow-prioritization/SKILL.md +407 -392
  417. package/domains/product/locales/en/.agents/skills/north-star-metric/SKILL.md +317 -301
  418. package/domains/product/locales/en/.agents/skills/okr-framework/SKILL.md +299 -284
  419. package/domains/product/locales/en/.agents/skills/opportunity-solution-tree/SKILL.md +472 -456
  420. package/domains/product/locales/en/.agents/skills/prd-template/SKILL.md +18 -258
  421. package/domains/product/locales/en/.agents/skills/prd-template-reference/SKILL.md +285 -0
  422. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/claude.json +16 -0
  423. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/copilot.json +16 -0
  424. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/gemini.json +16 -0
  425. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/kimi.yaml +15 -0
  426. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/openai.yaml +10 -0
  427. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/qwen.json +16 -0
  428. package/domains/product/locales/en/.agents/skills/prd-template-reference/agents/skill.yaml +22 -0
  429. package/domains/product/locales/en/.agents/skills/problem-statement/SKILL.md +327 -312
  430. package/domains/product/locales/en/.agents/skills/product-roadmap/SKILL.md +321 -305
  431. package/domains/product/locales/en/.agents/skills/product-vision/SKILL.md +410 -395
  432. package/domains/product/locales/en/.agents/skills/release-notes/SKILL.md +18 -258
  433. package/domains/product/locales/en/.agents/skills/release-notes-reference/SKILL.md +285 -0
  434. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/claude.json +16 -0
  435. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/copilot.json +16 -0
  436. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/gemini.json +16 -0
  437. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/kimi.yaml +14 -0
  438. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/openai.yaml +10 -0
  439. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/qwen.json +16 -0
  440. package/domains/product/locales/en/.agents/skills/release-notes-reference/agents/skill.yaml +21 -0
  441. package/domains/product/locales/en/.agents/skills/report-design/SKILL.md +17 -307
  442. package/domains/product/locales/en/.agents/skills/report-design-reference/SKILL.md +331 -0
  443. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/claude.json +17 -0
  444. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/copilot.json +17 -0
  445. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/gemini.json +17 -0
  446. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/kimi.yaml +15 -0
  447. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/openai.yaml +10 -0
  448. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/qwen.json +17 -0
  449. package/domains/product/locales/en/.agents/skills/report-design-reference/agents/skill.yaml +22 -0
  450. package/domains/product/locales/en/.agents/skills/rice-scoring/SKILL.md +266 -251
  451. package/domains/product/locales/en/.agents/skills/saas-metrics/SKILL.md +422 -404
  452. package/domains/product/locales/en/.agents/skills/session-prompt-generator/SKILL.md +474 -450
  453. package/domains/product/locales/en/.agents/skills/user-flow/SKILL.md +491 -476
  454. package/domains/product/locales/en/.agents/skills/user-interview-script/SKILL.md +314 -297
  455. package/domains/product/locales/en/.agents/skills/user-story/SKILL.md +401 -385
  456. package/domains/product/locales/en/.agents/skills/wsjf-scoring/SKILL.md +333 -315
  457. package/domains/product/locales/en/AGENTS.md +5 -0
  458. package/domains/product/locales/en/agents/auditor.md +76 -0
  459. package/domains/product/locales/en/agents/conductor.md +11 -0
  460. package/domains/product/locales/en/agents/data_analyst.md +11 -0
  461. package/domains/product/locales/en/agents/designer.md +11 -0
  462. package/domains/product/locales/en/agents/discovery.md +11 -0
  463. package/domains/product/locales/en/agents/layouter.md +11 -0
  464. package/domains/product/locales/en/agents/mediator.md +11 -0
  465. package/domains/product/locales/en/agents/pm.md +11 -0
  466. package/domains/product/locales/en/agents/product_strategist.md +11 -0
  467. package/domains/product/locales/en/agents/tech_lead.md +11 -0
  468. package/domains/product/locales/en/agents/ux_designer.md +11 -0
  469. package/domains/product/persona/persona-base.md +94 -0
  470. package/domains/product/pipeline.yaml +115 -0
  471. package/package.json +72 -70
@@ -1,366 +1,388 @@
1
- ---
2
- name: gates
3
- description: Quality control of analytics pipeline gates — passing criteria, checklists, blockers
4
- ---
5
- # Gates — Quality Control of Analytical Pipeline Gates
6
-
7
- ## When to use
8
- - **Before every transition** between gates — to check the deliverable of the current gate.
9
- - **Upon return for revision** — for re-checking after fixes are made.
10
- - **At the end of a session** — to verify the completeness of materials prior to the inter-session `$handoff`.
11
- - **In case of readiness disputes** — as a formal arbitrator: what is done and what is not.
12
-
13
- > **Distinction from `$board`:** `$gates` checks **quality and completeness** of a deliverable. `$board` tracks **status and progress**. Gates answers "is it ready?", Board answers "where are we now?".
14
-
15
- ## Input
16
-
17
- | Field | Required | Description |
18
- |-------|:--------:|-------------|
19
- | Gate Name | ✅ | Which gate is being checked (with ID: COND-01, INT-01, etc.) |
20
- | Pipeline Mode | ✅ | Full (`/analyze`) / Quick (`/quick-insight`) — determines the set of gates and criteria |
21
- | Gate Deliverables | ✅ | Artifacts that the agent transfers for review |
22
- | Iteration | | If a repeat check iteration number + gaps from the previous one |
23
- | Session Number | ⬚ | Current session (for Full Pipeline) |
24
-
25
- ### Connection with other skills
26
- | Skill | Interaction |
27
- |-------|-------------|
28
- | `$board` | After gate check — update the gate status on the board (PASS → `[✓]`, FAIL → `[↩]`) |
29
- | `$handoff` | On PASS / CONDITIONAL PASS — form a handoff envelope with the gate check attached |
30
- | `$web-research` | Researcher gates (RES-xx): absence of web-research = automatic Blocker |
31
- | `$session-prompt-generator` | At the end of a session the gate check goes into the data for the next session's prompt |
32
- | Framework skills | Data Analyst gates (AN-xx): check the correct completion of the Quality Gate for each framework |
33
-
34
- ## Gates and Deliverables Registry
35
-
36
- ### Full Pipeline (`/analyze`, 5 sessions)
37
-
38
- | # | Gate | ID | Agent | Session | Required deliverables | Skills |
39
- |---|------|----|-------|---------|-----------------------|--------|
40
- | 1 | **Conductor** | COND-01 | Conductor | 1 | Mode determined, task scope, board created | `$board` |
41
- | 2 | **Interviewer** | INT-01 | Interviewer | 1 | Context gathered, assessment mode selected (scoring/qualitative), research brief | `$handoff` |
42
- | 3 | **Researcher (Analysts)** | RES-01 | Researcher | 2 | Data collected, sources verified, minimum sources reached | `$web-research` |
43
- | 4 | **Data Analyst (Analysts)** | AN-01 | Data Analyst | 2 | Frameworks applied, methodology documented | Framework skills |
44
- | 5 | **Strategist (Analysts)** | ST-01 | Strategist | 2 | Recommendations actionable, linked to evidence | |
45
- | 6 | **Researcher (Critics)** | RES-02 | Researcher | 3 | Alternative data, criticism of Analysts' data, sources verified | `$web-research` |
46
- | 7 | **Data Analyst (Critics)** | AN-02 | Data Analyst | 3 | Alternative analysis, counter-frameworks | Framework skills |
47
- | 8 | **Strategist (Critics)** | ST-02 | Strategist | 3 | Alternative strategy, criticism of Analysts' strategy | — |
48
- | 9 | **Mediator** | MED-01 | Mediator | 4 | Both teams evaluated, scoring/qualitative completed, final conclusion | `$gates` |
49
- | 10 | **Designer** | DS-01 | Designer | 5 | Report structure approved, visualization specifications | — |
50
- | 11 | **Layouter** | LY-01 | Layouter | 5 | HTML generated, formatting validated | |
51
- | 12 | **Release Gate** | RG-01 | Conductor | 5 | All gates passed, PDF generated | `$board`, `$gates` |
52
-
53
- ### Quick Pipeline (`/quick-insight`, 1 session)
54
-
55
- | # | Gate | ID | Agent | Required deliverables |
56
- |---|------|----|-------|-----------------------|
57
- | 1 | **Conductor** | COND-01 | Conductor | Mode determined, task scope, board created |
58
- | 2 | **Interviewer** | INT-01 | Interviewer | Context gathered, assessment mode selected |
59
- | 3 | **Researcher** | RES-01 | Researcher | Data collected, sources verified |
60
- | 4 | **Data Analyst** | AN-01 | Data Analyst | Frameworks applied |
61
- | 5 | **Strategist** | ST-01 | Strategist | Recommendations actionable |
62
- | 6 | **Mediator** | MED-01 | Mediator | Final conclusion (without competing teams) |
63
- | 7 | **Designer** | DS-01 | Designer | Report structure, visualizations |
64
- | 8 | **Layouter** | LY-01 | Layouter | HTML generated, PDF ready |
65
-
66
- ## Readiness Criteria by Gates
67
-
68
- > Each criterion has a preset severity: **[B]** = Blocker, **[G]** = Gap, **[N]** = Note. During a check, severity can be upgraded (G→B), but not downgraded (B→G).
69
-
70
- ### Conductor (COND-xx)
71
- - [ ] **[B]** Pipeline mode determined and justified (Full / Quick)
72
- - [ ] **[B]** Task scope formulated (what to analyze, why, limitations)
73
- - [ ] **[B]** Board created via `$board` with correct gate IDs
74
- - [ ] **[G]** First gate activated
75
- - [ ] **[G]** For continuing sessions: previous handoff loaded and verified
76
-
77
- ### Interviewer (INT-xx)
78
- - [ ] **[B]** User context gathered (business question, industry, company size, goals)
79
- - [ ] **[B]** Assessment mode selected: scoring (quantitative) or qualitative
80
- - [ ] **[B]** Research brief formed with specific questions for research
81
- - [ ] **[G]** Key metrics / evaluation criteria defined
82
- - [ ] **[G]** Scope fixed what is included and what is NOT included in the analysis
83
-
84
- ### Researcher (RES-xx)
85
- - [ ] **[B]** Data collected for all questions in the research brief
86
- - [ ] **[B]** Web search performed via `$web-research` (mandatory; absence = automatic Blocker)
87
- - [ ] **[B]** Sources verified: every data point has a URL, date, credibility level
88
- - [ ] **[B]** No data without origin (any fact without a source = Blocker)
89
- - [ ] **[G]** Minimum sources reached (set in research brief, default ≥ 3 per thesis)
90
- - [ ] **[G]** Cross-check: 2+ sources for key data
91
- - [ ] **[G]** Conflicting data flagged and explained
92
- - [ ] **[G]** Data is up-to-date: market data — not older than 12 months, regulatory — current version
93
- - [ ] **[N]** Additional sources for depth (nice-to-have)
94
-
95
- **Dependency check:** Research brief from INT-xx must be explicitly cited. Each question of the brief = section in the deliverable.
96
-
97
- ### Data Analyst (AN-xx)
98
- - [ ] **[B]** Frameworks chosen justifiably (at least 2 for Full Pipeline)
99
- - [ ] **[B]** Each framework applied correctly — all sections filled out, framework's Quality Gate passed
100
- - [ ] **[B]** Data from Researcher is linked to conclusions (not "in our opinion," but "according to data [source]")
101
- - [ ] **[G]** Methodology documented: why this framework, what data was used
102
- - [ ] **[G]** Patterns and insights explicitly highlighted
103
- - [ ] **[N]** Limitations of the analysis are recorded
104
-
105
- **Dependency check:** Deliverable from RES-xx must be explicitly used. Each key conclusion points to Researcher data, and not to own assumptions.
106
-
107
- ### Strategist (ST-xx)
108
- - [ ] **[B]** Recommendations are actionable specific actions, not generic advice
109
- - [ ] **[B]** Each recommendation is tied to evidence from Data Analyst / Researcher
110
- - [ ] **[G]** Recommendation prioritization (impact / effort or similar matrix)
111
- - [ ] **[G]** Risks are outlined for each recommendation
112
- - [ ] **[N]** Time horizons are specified (short-term / medium-term / long-term)
113
-
114
- **Dependency check:** Every recommendation traces back to an insight in AN-xx data in RES-xx. "Recommendation without evidence" = Blocker.
115
-
116
- ### Mediator (MED-xx)
117
- - [ ] **[B]** Results of both teams obtained (for Full Pipeline) or of the single team (Quick)
118
- - [ ] **[B]** Scoring or qualitative evaluation performed (according to the mode selected in INT-01)
119
- - [ ] **[B]** Final conclusion formulated with justification
120
- - [ ] **[G]** For scoring: criteria and weights defined, scores justified
121
- - [ ] **[G]** For qualitative: arguments from both sides contrasted, conflicts resolved
122
- - [ ] **[N]** Strengths of each team highlighted
123
-
124
- **Dependency check:** Deliverables ST-01 and ST-02 (Full) or ST-01 (Quick) are explicitly cited and contrasted.
125
-
126
- ### Designer (DS-xx)
127
- - [ ] **[B]** Report structure approved (table of contents, sections, order)
128
- - [ ] **[B]** Visualization specifications defined (chart types, data, palette)
129
- - [ ] **[G]** Layout aligned with the content of the Mediator
130
- - [ ] **[N]** Branding / stylistics defined
131
-
132
- **Dependency check:** Report structure covers all sections from the MED-xx conclusion.
133
-
134
- ### Layouter (LY-xx)
135
- - [ ] **[B]** HTML generated according to Designer's layout
136
- - [ ] **[B]** All visualizations are rendered
137
- - [ ] **[G]** Formatting validated (indents, fonts, tables)
138
- - [ ] **[G]** PDF generated and verified
139
-
140
- **Dependency check:** HTML matches DS-xx specification. All visualizations from the specification are present.
141
-
142
- ### Release Gate (RG-xx)
143
- - [ ] **[B]** All previous gates passed (status `[✓]` on `$board`)
144
- - [ ] **[B]** PDF report generated and verified
145
- - [ ] **[G]** Data is up-to-date as of the report date
146
- - [ ] **[G]** User sign-off obtained
147
-
148
- ## Criteria Severity
149
-
150
- | Severity | Marker | Definition | Impact on Decision |
151
- |----------|:------:|------------|--------------------|
152
- | Blocker | **[B]** | Mandatory deliverable is missing or critically incomplete | FAIL — return for revision |
153
- | Gap | **[G]** | Deliverable exists, but is incomplete or has remarks | CONDITIONAL PASS — can proceed, but gaps are logged |
154
- | Note | **[N]** | Minor remark, does not affect transition | PASS — remark is passed to the next gate as context |
155
-
156
- > Severity can be upgraded (G→B for critical issues), but **cannot be downgraded** (B→G). The preset severity is the minimum.
157
-
158
- ## Decisions
159
-
160
- | Decision | Condition | Action |
161
- |----------|-----------|--------|
162
- | **PASS** | 0 Blockers + 0 Gaps | Request user Approved `$handoff` → next gate |
163
- | **CONDITIONAL PASS** | 0 Blockers + 1-2 Gaps | Log gaps → Request user Approved with a note → `$handoff` with a note |
164
- | **FAIL** | ≥ 1 Blocker | Return to the agent with a specific list of gaps → Do not request Approved |
165
-
166
- > **Absolute Rule:** Never skip gates, even if the task seems simple. FAIL — revision — repeat check. Without exceptions.
167
-
168
- ### Special Rules
169
- - Researcher gates (RES-xx): lack of `$web-research` — **automatic Blocker**.
170
- - Data without a source — **Blocker** (not Gap, not Note).
171
- - Data older than 12 months (market) — **Gap** with "requires update" note.
172
-
173
- ## Escalation Protocol on Repeated FAILs
174
-
175
- | Iteration | Action |
176
- |:---------:|--------|
177
- | 1st FAIL | Standard return: list of gaps → agent revises → repeat check |
178
- | 2nd FAIL | Extended return: gaps + specific instructions "how to fix" + warning |
179
- | 3rd FAIL | **Escalation to User:** |
180
-
181
- Escalation Template (3+ FAILs):
182
- ```
183
- ### ⚠️ Escalation — Gate [ID] fails check (iteration [N])
184
-
185
- **Gate:** [ID] [Name]
186
- **FAIL Iterations:** [N]
187
- **Recurring gaps:** [list of gaps not fixed in N iterations]
188
-
189
- **Options:**
190
- 1. Re-evaluate scope / lower deliverable requirements
191
- 2. Return to the previous gate (problem is in the source data)
192
- 3. Forced CONDITIONAL PASS (user accepts the risk of the gaps)
193
-
194
- → Waiting for a decision from the user.
195
- ```
196
-
197
- ## Protocol
198
-
199
- ### Step 0 Loading Context
200
- 1. Determine which gate is being checked (by ID from `$board`).
201
- 2. Determine pipeline mode (Full / Quick) and session number.
202
- 3. Load readiness criteria for this gate from the registry (with preset severity).
203
- 4. If a repeat check — load gaps from the previous iteration.
204
-
205
- ### Step 1Reviewing Deliverables
206
- 1. For each readiness criterion — check: fulfilled / unfulfilled / N/A.
207
- 2. For unfulfilled ones — apply the preset severity (can be upgraded, cannot be downgraded).
208
- 3. For unfulfilled ones — describe the specific gap: what exactly is missing / what to fix.
209
- 4. **Dependency check:** verify that the deliverable from the previous gate is explicitly used (not merely existing, but cited/utilized in the current deliverable).
210
-
211
- ### Step 2 — Decision Making
212
- 1. Calculate severity.
213
- 2. Apply decision rules (PASS / CONDITIONAL PASS / FAIL).
214
- 3. Verify iteration number if 3+ FAILs, activate escalation protocol.
215
- 4. Add entry to check log.
216
-
217
- ### Step 3 — Action by Result
218
- - **PASS:** show to the user → request Approved → `$handoff` → update `$board`.
219
- - **CONDITIONAL PASS:** show gaps → request Approved acknowledging gaps → `$handoff` with note → update `$board`.
220
- - **FAIL:** show gaps → return to the agent → update `$board` (status `[↩] Return`). If 3+ FAILs — escalate.
221
-
222
- ## Example Gate Check RES-01 (Researcher Analysts), iteration 1 → CONDITIONAL PASS
223
-
224
- ```
225
- ### Gate CheckRES-01 Researcher (Analysts)
226
-
227
- **Mode:** Full Pipeline
228
- **Session:** 2 of 5
229
- **Iteration:** 1
230
- **Previous gaps:** Initial check
231
-
232
- ---
233
-
234
- #### Readiness Criteria
235
-
236
- | # | Criterion | Sev | Status | Gap / Comment |
237
- |---|-----------|:---:|:------:|---------------|
238
- | 1 | Data collected for all questions in the research brief | [B] | ✅ | 7 out of 7 questions covered |
239
- | 2 | Web search performed via `$web-research` | [B] | ✅ | 12 queries, 28 sources |
240
- | 3 | Sources verified (URL, date, credibility) | [B] | | All 28 have URL and date |
241
- | 4 | No data without origin | [B] | | 0 facts without source |
242
- | 5 | Minimum sources (≥ 3 per thesis) | [G] | ⚠️ | EdTech market TAM thesis2 sources instead of 3 |
243
- | 6 | Cross-check (2+ for key data) | [G] | ✅ | OK |
244
- | 7 | Conflicting data flagged | [G] | | 2 conflicts flagged and explained |
245
- | 8 | Data is up-to-date (≤ 12 months) | [G] | ⚠️ | 1 source (IDC report) — 14 mo, flagged ⚠️ |
246
- | 9 | Additional sources (nice-to-have) | [N] | ℹ️ | Recommended to add Rosstat data |
247
-
248
- **Dependency check:** Research brief INT-01 cited in the heading of each section. All 7 questions = 7 sections. ✅
249
-
250
- ---
251
-
252
- #### Summary
253
-
254
- | Severity | Quantity | Items |
255
- |----------|:--------:|-------|
256
- | Blocker | 0 | — |
257
- | Gap | 2 | #5 (TAM: 2 sources), #8 (IDC: 14 mo) |
258
- | Note | 1 | #9 (Rosstat nice-to-have) |
259
-
260
- ### Decision: CONDITIONAL PASS
261
-
262
- **Justification:** 0 Blockers, 2 Gaps acceptable to proceed. Gaps logged for AN-01.
263
-
264
- ---
265
-
266
- **Deliverables to transfer:**
267
- - Research Report (7 sections, 28 sources, 2 conflicts explained)
268
-
269
- **Gaps for AN-01:**
270
- - EdTech market TAM supported by 2 sources (instead of 3) note as ⚠️ Estimated
271
- - IDC report 14 months old — flagged, recommended to verify with fresh data
272
-
273
- → Ready to handoff to **Data Analyst (Analysts)**. Waiting for **"Approved"**.
274
- ```
275
-
276
- ## Validation (Quality Gate)
277
-
278
- The gate check is considered complete if:
279
-
280
- - [ ] All readiness criteria have been checked (fulfilled / unfulfilled / N/A — no blanks)
281
- - [ ] Each criterion is assigned severity from the registry (B/G/N), upgraded if necessary
282
- - [ ] For every unfulfilled item specified: severity, gap description, what to fix
283
- - [ ] Dependency check passed: the deliverable of the previous gate is explicitly used in the current one
284
- - [ ] Decision conforms to the rules (not subjective)
285
- - [ ] On 3+ FAILs — escalation protocol activated
286
- - [ ] Check log updated
287
- - [ ] On PASS/CONDITIONAL PASS — user Approved obtained
288
- - [ ] `$board` updated
289
-
290
- ## Handoff
291
- The result of `$gates` is input data for: `$handoff` (attaching the gate check to the envelope).
292
-
293
- Transfer format: filled gate check template + decision + gaps (if CONDITIONAL PASS) + dependency check result.
294
-
295
- ## Anti-patterns
296
-
297
- | Mistake | Why it's bad | How to do it right |
298
- |---------|--------------|--------------------|
299
- | Skipping a gate "because it's simple" | Errors go unnoticed | Never skip. Without exceptions |
300
- | PASS without checking all criteria | Unnoticed gaps | Every criterion = fulfilled / unfulfilled / N/A |
301
- | "Overall ok" instead of specifics | The agent doesn't know what to fix | Specific gap: "source X does not contain a publication date" |
302
- | FAIL without describing gaps | The agent returns and doesn't know what to do | Every FAIL = list of specific fixes |
303
- | Approved without user sign-off | Pipeline protocol violation | Always an explicit Approved from the user |
304
- | Researcher data without web search | Unverified data in the report | `$web-research` — mandatory, absence is a Blocker |
305
- | Equal importance of all criteria | Minor issue blocks, critical issue passes | Preset severity: [B] / [G] / [N] per criterion |
306
- | Repeat check without comparing gaps | A gap might not be fixed | Load gaps from previous iteration, check each one |
307
- | Downgrading severity (B→G) | Critical deliverable passes without fixes | Severity can be upgraded, but not downgraded |
308
- | Endless FAIL loop | Pipeline hangs, user is unaware | 3+ FAILs = escalation to the user with options to resolve |
309
- | Formal check "it exists" | Deliverable is there, but not used by the next gate | Dependency check: previous deliverable is cited and put to use |
310
-
311
- ## Output Template
312
-
313
- ```
314
- ### Gate Check — [ID] [Gate Name]
315
-
316
- **Mode:** [Full / Quick]
317
- **Session:** [N out of M]
318
- **Iteration:** [1 / 2 / N]
319
- **Previous gaps:** [list or "Initial check"]
320
-
321
- ---
322
-
323
- #### Readiness Criteria
324
-
325
- | # | Criterion | Sev | Status | Gap / Comment |
326
- |---|-----------|:---:|:------:|---------------|
327
- | 1 | [Criterion from registry] | [B] | ✅/⚠️/❌ | [If unfulfilled: what is missing] |
328
-
329
- **Dependency check:** [Deliverable [previous ID] cited: ✅/❌. Details.]
330
-
331
- ---
332
-
333
- #### Summary
334
-
335
- | Severity | Quantity | Items |
336
- |----------|:--------:|-------|
337
- | Blocker | [N] | #[list] |
338
- | Gap | [N] | #[list] |
339
- | Note | [N] | #[list] |
340
-
341
- ### Decision: [ PASS / CONDITIONAL PASS / FAIL ]
342
-
343
- **Justification:** [per rules: 0 blockers + 0 gaps = PASS, etc.]
344
-
345
- ---
346
-
347
- #### If PASS / CONDITIONAL PASS:
348
- **Deliverables to transfer:**
349
- - [Artifact 1]
350
- - [Artifact 2]
351
-
352
- **Gaps for next gate (if CONDITIONAL):**
353
- - [Gap 1 — what to consider]
354
-
355
- Ready to handoff to **[Next Agent]**. Waiting for **"Approved"**.
356
-
357
- #### If FAIL:
358
- **Gaps for revision:**
359
-
360
- | # | Gap | Sev | What to fix | Responsible |
361
- |---|-----|:---:|-------------|-------------|
362
- | [N] | [description] | [B] | [specific action] | [agent] |
363
-
364
- → Return to **[Current Agent]**. After fixing — repeat check (iteration [N+1]).
365
- [If iteration 3: escalation protocol activated]
366
- ```
1
+ ---
2
+ name: gates
3
+ description: Quality control of analytics pipeline gates — passing criteria, checklists, blockers
4
+ type: mandatory
5
+ domain: analytics
6
+ owners:
7
+ - conductor
8
+ gates:
9
+ - INTERVIEWER
10
+ - RESEARCHER
11
+ - DATA_ANALYST
12
+ - STRATEGIST
13
+ - MEDIATOR
14
+ - DESIGNER
15
+ - LAYOUTER
16
+ - RELEASE_GATE
17
+ tech: []
18
+ topic: []
19
+ triggers:
20
+ - "gates"
21
+ - "Контроль гейтов аналитического пайплайна"
22
+ - "Контроль качества гейтов аналитического пайплайнакритерии прохождения, чек-листы, блокеры"
23
+ related: []
24
+ budget_lines: 388
25
+ schema_version: 1
26
+ ---
27
+ # Gates — Quality Control of Analytical Pipeline Gates
28
+
29
+ ## When to use
30
+ - **Before every transition** between gates to check the deliverable of the current gate.
31
+ - **Upon return for revision** — for re-checking after fixes are made.
32
+ - **At the end of a session** to verify the completeness of materials prior to the inter-session `$handoff`.
33
+ - **In case of readiness disputes** — as a formal arbitrator: what is done and what is not.
34
+
35
+ > **Distinction from `$board`:** `$gates` checks **quality and completeness** of a deliverable. `$board` tracks **status and progress**. Gates answers "is it ready?", Board answers "where are we now?".
36
+
37
+ ## Input
38
+
39
+ | Field | Required | Description |
40
+ |-------|:--------:|-------------|
41
+ | Gate Name | | Which gate is being checked (with ID: COND-01, INT-01, etc.) |
42
+ | Pipeline Mode | | Full (`/analyze`) / Quick (`/quick-insight`) determines the set of gates and criteria |
43
+ | Gate Deliverables | | Artifacts that the agent transfers for review |
44
+ | Iteration | | If a repeat check iteration number + gaps from the previous one |
45
+ | Session Number | | Current session (for Full Pipeline) |
46
+
47
+ ### Connection with other skills
48
+ | Skill | Interaction |
49
+ |-------|-------------|
50
+ | `$board` | After gate check update the gate status on the board (PASS `[✓]`, FAIL → `[↩]`) |
51
+ | `$handoff` | On PASS / CONDITIONAL PASS form a handoff envelope with the gate check attached |
52
+ | `$web-research` | Researcher gates (RES-xx): absence of web-research = automatic Blocker |
53
+ | `$session-prompt-generator` | At the end of a session — the gate check goes into the data for the next session's prompt |
54
+ | Framework skills | Data Analyst gates (AN-xx): check the correct completion of the Quality Gate for each framework |
55
+
56
+ ## Gates and Deliverables Registry
57
+
58
+ ### Full Pipeline (`/analyze`, 5 sessions)
59
+
60
+ | # | Gate | ID | Agent | Session | Required deliverables | Skills |
61
+ |---|------|----|-------|---------|-----------------------|--------|
62
+ | 1 | **Conductor** | COND-01 | Conductor | 1 | Mode determined, task scope, board created | `$board` |
63
+ | 2 | **Interviewer** | INT-01 | Interviewer | 1 | Context gathered, assessment mode selected (scoring/qualitative), research brief | `$handoff` |
64
+ | 3 | **Researcher (Analysts)** | RES-01 | Researcher | 2 | Data collected, sources verified, minimum sources reached | `$web-research` |
65
+ | 4 | **Data Analyst (Analysts)** | AN-01 | Data Analyst | 2 | Frameworks applied, methodology documented | Framework skills |
66
+ | 5 | **Strategist (Analysts)** | ST-01 | Strategist | 2 | Recommendations actionable, linked to evidence | — |
67
+ | 6 | **Researcher (Critics)** | RES-02 | Researcher | 3 | Alternative data, criticism of Analysts' data, sources verified | `$web-research` |
68
+ | 7 | **Data Analyst (Critics)** | AN-02 | Data Analyst | 3 | Alternative analysis, counter-frameworks | Framework skills |
69
+ | 8 | **Strategist (Critics)** | ST-02 | Strategist | 3 | Alternative strategy, criticism of Analysts' strategy | — |
70
+ | 9 | **Mediator** | MED-01 | Mediator | 4 | Both teams evaluated, scoring/qualitative completed, final conclusion | `$gates` |
71
+ | 10 | **Designer** | DS-01 | Designer | 5 | Report structure approved, visualization specifications | — |
72
+ | 11 | **Layouter** | LY-01 | Layouter | 5 | HTML generated, formatting validated | — |
73
+ | 12 | **Release Gate** | RG-01 | Conductor | 5 | All gates passed, PDF generated | `$board`, `$gates` |
74
+
75
+ ### Quick Pipeline (`/quick-insight`, 1 session)
76
+
77
+ | # | Gate | ID | Agent | Required deliverables |
78
+ |---|------|----|-------|-----------------------|
79
+ | 1 | **Conductor** | COND-01 | Conductor | Mode determined, task scope, board created |
80
+ | 2 | **Interviewer** | INT-01 | Interviewer | Context gathered, assessment mode selected |
81
+ | 3 | **Researcher** | RES-01 | Researcher | Data collected, sources verified |
82
+ | 4 | **Data Analyst** | AN-01 | Data Analyst | Frameworks applied |
83
+ | 5 | **Strategist** | ST-01 | Strategist | Recommendations actionable |
84
+ | 6 | **Mediator** | MED-01 | Mediator | Final conclusion (without competing teams) |
85
+ | 7 | **Designer** | DS-01 | Designer | Report structure, visualizations |
86
+ | 8 | **Layouter** | LY-01 | Layouter | HTML generated, PDF ready |
87
+
88
+ ## Readiness Criteria by Gates
89
+
90
+ > Each criterion has a preset severity: **[B]** = Blocker, **[G]** = Gap, **[N]** = Note. During a check, severity can be upgraded (G→B), but not downgraded (B→G).
91
+
92
+ ### Conductor (COND-xx)
93
+ - [ ] **[B]** Pipeline mode determined and justified (Full / Quick)
94
+ - [ ] **[B]** Task scope formulated (what to analyze, why, limitations)
95
+ - [ ] **[B]** Board created via `$board` with correct gate IDs
96
+ - [ ] **[G]** First gate activated
97
+ - [ ] **[G]** For continuing sessions: previous handoff loaded and verified
98
+
99
+ ### Interviewer (INT-xx)
100
+ - [ ] **[B]** User context gathered (business question, industry, company size, goals)
101
+ - [ ] **[B]** Assessment mode selected: scoring (quantitative) or qualitative
102
+ - [ ] **[B]** Research brief formed with specific questions for research
103
+ - [ ] **[G]** Key metrics / evaluation criteria defined
104
+ - [ ] **[G]** Scope fixed — what is included and what is NOT included in the analysis
105
+
106
+ ### Researcher (RES-xx)
107
+ - [ ] **[B]** Data collected for all questions in the research brief
108
+ - [ ] **[B]** Web search performed via `$web-research` (mandatory; absence = automatic Blocker)
109
+ - [ ] **[B]** Sources verified: every data point has a URL, date, credibility level
110
+ - [ ] **[B]** No data without origin (any fact without a source = Blocker)
111
+ - [ ] **[G]** Minimum sources reached (set in research brief, default ≥ 3 per thesis)
112
+ - [ ] **[G]** Cross-check: 2+ sources for key data
113
+ - [ ] **[G]** Conflicting data flagged and explained
114
+ - [ ] **[G]** Data is up-to-date: market data not older than 12 months, regulatory current version
115
+ - [ ] **[N]** Additional sources for depth (nice-to-have)
116
+
117
+ **Dependency check:** Research brief from INT-xx must be explicitly cited. Each question of the brief = section in the deliverable.
118
+
119
+ ### Data Analyst (AN-xx)
120
+ - [ ] **[B]** Frameworks chosen justifiably (at least 2 for Full Pipeline)
121
+ - [ ] **[B]** Each framework applied correctly all sections filled out, framework's Quality Gate passed
122
+ - [ ] **[B]** Data from Researcher is linked to conclusions (not "in our opinion," but "according to data [source]")
123
+ - [ ] **[G]** Methodology documented: why this framework, what data was used
124
+ - [ ] **[G]** Patterns and insights explicitly highlighted
125
+ - [ ] **[N]** Limitations of the analysis are recorded
126
+
127
+ **Dependency check:** Deliverable from RES-xx must be explicitly used. Each key conclusion points to Researcher data, and not to own assumptions.
128
+
129
+ ### Strategist (ST-xx)
130
+ - [ ] **[B]** Recommendations are actionable — specific actions, not generic advice
131
+ - [ ] **[B]** Each recommendation is tied to evidence from Data Analyst / Researcher
132
+ - [ ] **[G]** Recommendation prioritization (impact / effort or similar matrix)
133
+ - [ ] **[G]** Risks are outlined for each recommendation
134
+ - [ ] **[N]** Time horizons are specified (short-term / medium-term / long-term)
135
+
136
+ **Dependency check:** Every recommendation traces back to an insight in AN-xx data in RES-xx. "Recommendation without evidence" = Blocker.
137
+
138
+ ### Mediator (MED-xx)
139
+ - [ ] **[B]** Results of both teams obtained (for Full Pipeline) or of the single team (Quick)
140
+ - [ ] **[B]** Scoring or qualitative evaluation performed (according to the mode selected in INT-01)
141
+ - [ ] **[B]** Final conclusion formulated with justification
142
+ - [ ] **[G]** For scoring: criteria and weights defined, scores justified
143
+ - [ ] **[G]** For qualitative: arguments from both sides contrasted, conflicts resolved
144
+ - [ ] **[N]** Strengths of each team highlighted
145
+
146
+ **Dependency check:** Deliverables ST-01 and ST-02 (Full) or ST-01 (Quick) are explicitly cited and contrasted.
147
+
148
+ ### Designer (DS-xx)
149
+ - [ ] **[B]** Report structure approved (table of contents, sections, order)
150
+ - [ ] **[B]** Visualization specifications defined (chart types, data, palette)
151
+ - [ ] **[G]** Layout aligned with the content of the Mediator
152
+ - [ ] **[N]** Branding / stylistics defined
153
+
154
+ **Dependency check:** Report structure covers all sections from the MED-xx conclusion.
155
+
156
+ ### Layouter (LY-xx)
157
+ - [ ] **[B]** HTML generated according to Designer's layout
158
+ - [ ] **[B]** All visualizations are rendered
159
+ - [ ] **[G]** Formatting validated (indents, fonts, tables)
160
+ - [ ] **[G]** PDF generated and verified
161
+
162
+ **Dependency check:** HTML matches DS-xx specification. All visualizations from the specification are present.
163
+
164
+ ### Release Gate (RG-xx)
165
+ - [ ] **[B]** All previous gates passed (status `[✓]` on `$board`)
166
+ - [ ] **[B]** PDF report generated and verified
167
+ - [ ] **[G]** Data is up-to-date as of the report date
168
+ - [ ] **[G]** User sign-off obtained
169
+
170
+ ## Criteria Severity
171
+
172
+ | Severity | Marker | Definition | Impact on Decision |
173
+ |----------|:------:|------------|--------------------|
174
+ | Blocker | **[B]** | Mandatory deliverable is missing or critically incomplete | FAIL — return for revision |
175
+ | Gap | **[G]** | Deliverable exists, but is incomplete or has remarks | CONDITIONAL PASS — can proceed, but gaps are logged |
176
+ | Note | **[N]** | Minor remark, does not affect transition | PASS — remark is passed to the next gate as context |
177
+
178
+ > Severity can be upgraded (G→B for critical issues), but **cannot be downgraded** (B→G). The preset severity is the minimum.
179
+
180
+ ## Decisions
181
+
182
+ | Decision | Condition | Action |
183
+ |----------|-----------|--------|
184
+ | **PASS** | 0 Blockers + 0 Gaps | Request user Approved → `$handoff` → next gate |
185
+ | **CONDITIONAL PASS** | 0 Blockers + 1-2 Gaps | Log gaps → Request user Approved with a note → `$handoff` with a note |
186
+ | **FAIL** | ≥ 1 Blocker | Return to the agent with a specific list of gaps → Do not request Approved |
187
+
188
+ > **Absolute Rule:** Never skip gates, even if the task seems simple. FAIL — revision — repeat check. Without exceptions.
189
+
190
+ ### Special Rules
191
+ - Researcher gates (RES-xx): lack of `$web-research` **automatic Blocker**.
192
+ - Data without a source **Blocker** (not Gap, not Note).
193
+ - Data older than 12 months (market) — **Gap** with "requires update" note.
194
+
195
+ ## Escalation Protocol on Repeated FAILs
196
+
197
+ | Iteration | Action |
198
+ |:---------:|--------|
199
+ | 1st FAIL | Standard return: list of gaps → agent revises → repeat check |
200
+ | 2nd FAIL | Extended return: gaps + specific instructions "how to fix" + warning |
201
+ | 3rd FAIL | **Escalation to User:** |
202
+
203
+ Escalation Template (3+ FAILs):
204
+ ```
205
+ ### ⚠️ EscalationGate [ID] fails check (iteration [N])
206
+
207
+ **Gate:** [ID] [Name]
208
+ **FAIL Iterations:** [N]
209
+ **Recurring gaps:** [list of gaps not fixed in N iterations]
210
+
211
+ **Options:**
212
+ 1. Re-evaluate scope / lower deliverable requirements
213
+ 2. Return to the previous gate (problem is in the source data)
214
+ 3. Forced CONDITIONAL PASS (user accepts the risk of the gaps)
215
+
216
+ → Waiting for a decision from the user.
217
+ ```
218
+
219
+ ## Protocol
220
+
221
+ ### Step 0 — Loading Context
222
+ 1. Determine which gate is being checked (by ID from `$board`).
223
+ 2. Determine pipeline mode (Full / Quick) and session number.
224
+ 3. Load readiness criteria for this gate from the registry (with preset severity).
225
+ 4. If a repeat check load gaps from the previous iteration.
226
+
227
+ ### Step 1 — Reviewing Deliverables
228
+ 1. For each readiness criterion — check: fulfilled / unfulfilled / N/A.
229
+ 2. For unfulfilled ones — apply the preset severity (can be upgraded, cannot be downgraded).
230
+ 3. For unfulfilled ones — describe the specific gap: what exactly is missing / what to fix.
231
+ 4. **Dependency check:** verify that the deliverable from the previous gate is explicitly used (not merely existing, but cited/utilized in the current deliverable).
232
+
233
+ ### Step 2 — Decision Making
234
+ 1. Calculate severity.
235
+ 2. Apply decision rules (PASS / CONDITIONAL PASS / FAIL).
236
+ 3. Verify iteration number if 3+ FAILs, activate escalation protocol.
237
+ 4. Add entry to check log.
238
+
239
+ ### Step 3 Action by Result
240
+ - **PASS:** show to the user request Approved `$handoff` update `$board`.
241
+ - **CONDITIONAL PASS:** show gaps request Approved acknowledging gaps `$handoff` with note update `$board`.
242
+ - **FAIL:** show gaps return to the agent update `$board` (status `[↩] Return`). If 3+ FAILsescalate.
243
+
244
+ ## Example Gate Check RES-01 (Researcher Analysts), iteration 1 CONDITIONAL PASS
245
+
246
+ ```
247
+ ### Gate Check — RES-01 Researcher (Analysts)
248
+
249
+ **Mode:** Full Pipeline
250
+ **Session:** 2 of 5
251
+ **Iteration:** 1
252
+ **Previous gaps:** Initial check
253
+
254
+ ---
255
+
256
+ #### Readiness Criteria
257
+
258
+ | # | Criterion | Sev | Status | Gap / Comment |
259
+ |---|-----------|:---:|:------:|---------------|
260
+ | 1 | Data collected for all questions in the research brief | [B] | ✅ | 7 out of 7 questions covered |
261
+ | 2 | Web search performed via `$web-research` | [B] | ✅ | 12 queries, 28 sources |
262
+ | 3 | Sources verified (URL, date, credibility) | [B] | | All 28 have URL and date |
263
+ | 4 | No data without origin | [B] | ✅ | 0 facts without source |
264
+ | 5 | Minimum sources (≥ 3 per thesis) | [G] | ⚠️ | EdTech market TAM thesis — 2 sources instead of 3 |
265
+ | 6 | Cross-check (2+ for key data) | [G] | ✅ | OK |
266
+ | 7 | Conflicting data flagged | [G] | ✅ | 2 conflicts flagged and explained |
267
+ | 8 | Data is up-to-date (≤ 12 months) | [G] | ⚠️ | 1 source (IDC report) 14 mo, flagged ⚠️ |
268
+ | 9 | Additional sources (nice-to-have) | [N] | ℹ️ | Recommended to add Rosstat data |
269
+
270
+ **Dependency check:** Research brief INT-01 cited in the heading of each section. All 7 questions = 7 sections. ✅
271
+
272
+ ---
273
+
274
+ #### Summary
275
+
276
+ | Severity | Quantity | Items |
277
+ |----------|:--------:|-------|
278
+ | Blocker | 0 | |
279
+ | Gap | 2 | #5 (TAM: 2 sources), #8 (IDC: 14 mo) |
280
+ | Note | 1 | #9 (Rosstat nice-to-have) |
281
+
282
+ ### Decision: CONDITIONAL PASS
283
+
284
+ **Justification:** 0 Blockers, 2 Gaps — acceptable to proceed. Gaps logged for AN-01.
285
+
286
+ ---
287
+
288
+ **Deliverables to transfer:**
289
+ - Research Report (7 sections, 28 sources, 2 conflicts explained)
290
+
291
+ **Gaps for AN-01:**
292
+ - EdTech market TAM supported by 2 sources (instead of 3) — note as ⚠️ Estimated
293
+ - IDC report 14 months old flagged, recommended to verify with fresh data
294
+
295
+ Ready to handoff to **Data Analyst (Analysts)**. Waiting for **"Approved"**.
296
+ ```
297
+
298
+ ## Validation (Quality Gate)
299
+
300
+ The gate check is considered complete if:
301
+
302
+ - [ ] All readiness criteria have been checked (fulfilled / unfulfilled / N/A no blanks)
303
+ - [ ] Each criterion is assigned severity from the registry (B/G/N), upgraded if necessary
304
+ - [ ] For every unfulfilled item specified: severity, gap description, what to fix
305
+ - [ ] Dependency check passed: the deliverable of the previous gate is explicitly used in the current one
306
+ - [ ] Decision conforms to the rules (not subjective)
307
+ - [ ] On 3+ FAILs escalation protocol activated
308
+ - [ ] Check log updated
309
+ - [ ] On PASS/CONDITIONAL PASS user Approved obtained
310
+ - [ ] `$board` updated
311
+
312
+ ## Handoff
313
+ The result of `$gates` is input data for: `$handoff` (attaching the gate check to the envelope).
314
+
315
+ Transfer format: filled gate check template + decision + gaps (if CONDITIONAL PASS) + dependency check result.
316
+
317
+ ## Anti-patterns
318
+
319
+ | Mistake | Why it's bad | How to do it right |
320
+ |---------|--------------|--------------------|
321
+ | Skipping a gate "because it's simple" | Errors go unnoticed | Never skip. Without exceptions |
322
+ | PASS without checking all criteria | Unnoticed gaps | Every criterion = fulfilled / unfulfilled / N/A |
323
+ | "Overall ok" instead of specifics | The agent doesn't know what to fix | Specific gap: "source X does not contain a publication date" |
324
+ | FAIL without describing gaps | The agent returns and doesn't know what to do | Every FAIL = list of specific fixes |
325
+ | Approved without user sign-off | Pipeline protocol violation | Always an explicit Approved from the user |
326
+ | Researcher data without web search | Unverified data in the report | `$web-research` — mandatory, absence is a Blocker |
327
+ | Equal importance of all criteria | Minor issue blocks, critical issue passes | Preset severity: [B] / [G] / [N] per criterion |
328
+ | Repeat check without comparing gaps | A gap might not be fixed | Load gaps from previous iteration, check each one |
329
+ | Downgrading severity (B→G) | Critical deliverable passes without fixes | Severity can be upgraded, but not downgraded |
330
+ | Endless FAIL loop | Pipeline hangs, user is unaware | 3+ FAILs = escalation to the user with options to resolve |
331
+ | Formal check "it exists" | Deliverable is there, but not used by the next gate | Dependency check: previous deliverable is cited and put to use |
332
+
333
+ ## Output Template
334
+
335
+ ```
336
+ ### Gate Check — [ID] [Gate Name]
337
+
338
+ **Mode:** [Full / Quick]
339
+ **Session:** [N out of M]
340
+ **Iteration:** [1 / 2 / N]
341
+ **Previous gaps:** [list or "Initial check"]
342
+
343
+ ---
344
+
345
+ #### Readiness Criteria
346
+
347
+ | # | Criterion | Sev | Status | Gap / Comment |
348
+ |---|-----------|:---:|:------:|---------------|
349
+ | 1 | [Criterion from registry] | [B] | ✅/⚠️/❌ | [If unfulfilled: what is missing] |
350
+
351
+ **Dependency check:** [Deliverable [previous ID] cited: ✅/❌. Details.]
352
+
353
+ ---
354
+
355
+ #### Summary
356
+
357
+ | Severity | Quantity | Items |
358
+ |----------|:--------:|-------|
359
+ | Blocker | [N] | #[list] |
360
+ | Gap | [N] | #[list] |
361
+ | Note | [N] | #[list] |
362
+
363
+ ### Decision: [ PASS / CONDITIONAL PASS / FAIL ]
364
+
365
+ **Justification:** [per rules: 0 blockers + 0 gaps = PASS, etc.]
366
+
367
+ ---
368
+
369
+ #### If PASS / CONDITIONAL PASS:
370
+ **Deliverables to transfer:**
371
+ - [Artifact 1]
372
+ - [Artifact 2]
373
+
374
+ **Gaps for next gate (if CONDITIONAL):**
375
+ - [Gap 1 — what to consider]
376
+
377
+ → Ready to handoff to **[Next Agent]**. Waiting for **"Approved"**.
378
+
379
+ #### If FAIL:
380
+ **Gaps for revision:**
381
+
382
+ | # | Gap | Sev | What to fix | Responsible |
383
+ |---|-----|:---:|-------------|-------------|
384
+ | [N] | [description] | [B] | [specific action] | [agent] |
385
+
386
+ → Return to **[Current Agent]**. After fixing — repeat check (iteration [N+1]).
387
+ [If iteration ≥ 3: escalation protocol activated]
388
+ ```