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,380 +1,402 @@
1
- ---
2
- name: handoff
3
- description: Context transfer between gates and sessions — Handoff Envelope, cross-session protocol, file generation
4
- ---
5
- # Handoff — Context Transfer Between Gates and Sessions
6
-
7
- ## When to use
8
- - At **each transition** between gates within a session — standard transfer (intra-session handoff).
9
- - Upon **session completion** — inter-session transfer (multi-session handoff), saving to a file.
10
- - Upon **return for revision** — reverse transfer (reverse handoff).
11
- - **Mandatory** at every transition, in any pipeline mode. Without exceptions.
12
-
13
- > **Distinction:** `$gates` checks readiness. `$handoff` transfers work. `$board` tracks status. Sequence: `$gates` PASS → `$handoff` → update `$board`.
14
-
15
- ## Input
16
-
17
- | Field | Required | Description |
18
- |-------|:--------:|-------------|
19
- | Result of `$gates` | ✅ | PASS or CONDITIONAL PASS — handoff is impossible on FAIL |
20
- | Sending Agent | ✅ | Who is transferring (current gate with ID) |
21
- | Receiving Agent | | To whom it is transferred (next gate with ID) |
22
- | Gate Artifacts | | Deliverables of the current gate (from `$gates` registry) |
23
- | Pipeline Mode | ✅ | Full (`/analyze`) / Quick (`/quick-insight`) |
24
- | Handoff Type | ✅ | Forward / Reverse / Session (inter-session) |
25
- | Session Number | ⬚ | For inter-session handoff — current and next session |
26
-
27
- > **Precondition:** Handoff is possible **only** after a `$gates` PASS or CONDITIONAL PASS. On FAIL return to agent, handoff is not performed.
28
-
29
- ### Connection with other skills
30
- | Skill | Interaction | When |
31
- |-------|-------------|------|
32
- | `$gates` | Precondition: PASS / CONDITIONAL PASS allows handoff. Gate check is attached to the envelope | Before every handoff |
33
- | `$board` | After handoff: update gate statuses (current `[✓]`, next → `[→]`) | After every handoff |
34
- | `$session-prompt-generator` | For Session handoff: generation of the next session's prompt, included in the file | Upon session completion |
35
- | Framework skills | Framework artifacts (filled templates) a part of the deliverables of AN-xx gates | Upon transfer from Data Analyst |
36
-
37
- ## Handoff Types
38
-
39
- | Type | Description | File | Next Recipient's Context |
40
- |------|-------------|------|--------------------------|
41
- | **Forward** | Standard transfer between gates within a session | None (in memory) | Full session context is available |
42
- | **Reverse** | Return for revision | None (in memory) | Full session context is available |
43
- | **Session** | Inter-session transfer | `docs/analytics/session-N-handoff.md` | **ZERO** previous context the file must be self-sufficient |
44
-
45
- > **Key rule for inter-session handoff:** the next session starts with ZERO context. The handoff file is the sole source of information. No links referring to "see above" or "as discussed". Everything must be in the file.
46
-
47
- ## Transfer Registrywhat to transfer
48
-
49
- ### Full Pipeline (inter-gate)
50
-
51
- | Transition | Artifacts | Key Context |
52
- |------------|-----------|-------------|
53
- | **COND-01 → INT-01** | Task scope, mode, board | Business question, limitations, expectations |
54
- | **INT-01 Session Handoff** | Research brief, interview context, assessment mode | All user answers, selected metrics |
55
- | **COND-02 → RES-01** | Session-1 handoff, research brief | Full context from the interview, questions for research |
56
- | **RES-01 → AN-01** | Data, sources, facts | Verified data with URLs and dates |
57
- | **AN-01 ST-01** | Frameworks, analysis, patterns | Methodology, key insights |
58
- | **ST-01 → Session Handoff** | Strategy, recommendations | Full Analysts' package for Critics and Mediator |
59
- | **COND-03 → RES-02** | Session-2 handoff, Analysts' results | Data for criticism and alternative research |
60
- | **RES-02 → AN-02** | Alternative data, criticism | Counter-data with sources |
61
- | **AN-02 ST-02** | Alternative analysis | Counter-frameworks, differences with Analysts |
62
- | **ST-02 → Session Handoff** | Alternative strategy, criticism | Full Critics' package |
63
- | **COND-04 → MED-01** | Session-2 + Session-3 handoff | Both packages (Analysts + Critics) |
64
- | **MED-01 Session Handoff** | Final conclusion, evaluations | Final verdict, justification |
65
- | **COND-05 DS-01** | Session-4 handoff | Mediator's conclusion for visualization |
66
- | **DS-01 → LY-01** | Layout, visualization specs | Report structure, palette, fonts |
67
-
68
- ### Quick Pipeline (inter-gate)
69
-
70
- | Transition | Artifacts | Key Context |
71
- |------------|-----------|-------------|
72
- | **COND-01 → INT-01** | Task scope, mode, board | Business question, limitations |
73
- | **INT-01 → RES-01** | Research brief, assessment mode | Questions for research, metrics |
74
- | **RES-01 → AN-01** | Data, sources, facts | Verified data with URLs and dates |
75
- | **AN-01 → ST-01** | Frameworks, analysis, patterns | Methodology, insights |
76
- | **ST-01 → MED-01** | Strategy, recommendations | Conclusions and recommendations (without competing team) |
77
- | **MED-01DS-01** | Final conclusion | Final verdict for visualization |
78
- | **DS-01 → LY-01** | Layout, specifications | Report structure, palette |
79
-
80
- ## Inter-session Handoff (Session)
81
-
82
- ### File Structure `docs/analytics/session-N-handoff.md`
83
-
84
- The file contains the **entire** necessary context. No links, no abbreviations.
85
-
86
- ```markdown
87
- # Session [N] Handoff [Project Name]
88
-
89
- ## Meta
90
- - **Project:** [Name]
91
- - **Date:** [YYYY-MM-DD]
92
- - **Session:** [N] out of [M]
93
- - **Mode:** Full / Quick
94
- - **Completed Gates:** [list of IDs with deliverables]
95
- - **Next Gate:** [ID] [Name]
96
-
97
- ## Brief Summary
98
- [2-3 sentences: what was done in this session, the key result]
99
-
100
- ## Board State ($board)
101
- [Full copy of the board table in its current state + progress metrics]
102
-
103
- ## Full Content of Artifacts
104
-
105
- ### [Artifact 1 — Name]
106
- [FULL TEXT of the artifact, not a link and not a brief description]
107
-
108
- ### [Artifact 2 — Name]
109
- [FULL TEXT of the artifact]
110
-
111
- ### [Artifact N — ...]
112
- [FULL TEXT]
113
-
114
- ## Decisions and Context
115
- | # | Decision | Justification | Decided by | Affects |
116
- |---|----------|---------------|------------|---------|
117
- | 1 | [What was decided] | [Why] | [User / Conductor] | [Which gates] |
118
-
119
- ## Open Questions and Blockers
120
- | # | Question / Blocker | Severity | For which gate | Status |
121
- |---|--------------------|:--------:|:--------------:|--------|
122
- | 1 | [Description] | 🔴/🟡/🟢 | [Gate ID] | Open / Resolved |
123
-
124
- ## Cumulative Index
125
- | Session | Gates | Key Artifacts | File |
126
- |---------|-------|---------------|------|
127
- | 1 | COND-01, INT-01 | Research brief, interview context | session-1-handoff.md |
128
- | 2 | RES-01, AN-01, ST-01 | Data, analysis, Analysts' strategy | session-2-handoff.md |
129
- | [N] | [...] | [...] | session-N-handoff.md |
130
-
131
- ## Prompt for the Next Session
132
- [Generated via $session-prompt-generator — ready-to-paste prompt]
133
-
134
- ## Verification Checklist
135
- - [ ] All artifacts are included entirely (not via links)
136
- - [ ] Requirements board ($board) is saved in its current state
137
- - [ ] Decisions and context are documented
138
- - [ ] Open questions / blockers are documented
139
- - [ ] Cumulative index is up-to-date
140
- - [ ] Prompt for the next session is generated
141
- - [ ] The file is self-sufficient — test: can be read without ANY previous context
142
- ```
143
-
144
- ### Recovery Protocol (corrupted / incomplete handoff)
145
-
146
- Upon loading a session handoff in a new session — the Conductor performs a verification:
147
-
148
- | Check | Action upon failure |
149
- |-------|---------------------|
150
- | File not found | Request path from the user or recreate from the previous session's memory |
151
- | Artifacts incomplete (links present instead of content) | Mark as ⚠️, request missing items from the user |
152
- | Cumulative index does not match the content | Rebuild the index from the actual file contents |
153
- | Prompt is missing | Generate via `$session-prompt-generator` |
154
- | Board is missing | Restore from the cumulative index + artifacts |
155
-
156
- > For any recovery — explicitly notify the user that the handoff was incomplete and what has been restored.
157
-
158
- ## Reverse Handoff
159
-
160
- ### When it occurs
161
- - `$gates` FAIL.
162
- - Mediator found critical discrepancies in data.
163
- - User requested a revision.
164
- - Next gate found an issue with the previous one's artifact.
165
-
166
- ### Reverse handoff protocol
167
- 1. Indicate the **reason for return** — specific gaps / remarks.
168
- 2. Indicate **what exactly to revise** not "redo", but "check source X: data is from 2023, need current data for 2025".
169
- 3. Indicate **what NOT to touch** — what is already approved and needs no changes.
170
- 4. Update `$board` receiving gate → `[↩] Return`, sending gate → `[→] In Progress`.
171
- 5. After revision — repeat `$gates` check → forward handoff.
172
-
173
- ## Receive Acknowledgement
174
-
175
- Upon receiving a handoff, the receiving agent must:
176
-
177
- 1. **Acknowledge loading:** "Handoff from [ID] received, [N] artifacts loaded".
178
- 2. **List what was received:** a list of artifacts with a brief description.
179
- 3. **Note the gaps:** if CONDITIONAL PASS — explicitly list the received gaps.
180
- 4. **Log issues:** if an artifact is incomplete or unclear — ask for clarification before starting work (do not guess).
181
-
182
- > The Acknowledge is embedded at the start of the next gate's work. It is not a separate step, but the first paragraph of the deliverable.
183
-
184
- ## Protocol
185
-
186
- ### Step 0 Determine handoff type
187
- 1. Forward (intra-session), Reverse (return), Session (inter-session).
188
- 2. For Session — define file path: `docs/analytics/session-N-handoff.md`.
189
-
190
- ### Step 1Preconditions
191
- 1. Ensure `$gates` gave a PASS or CONDITIONAL PASS (except Reverse).
192
- 2. Determine receiving agent by the registry.
193
- 3. Collect all artifacts from the transfer registry.
194
-
195
- ### Step 2 — Envelope formation
196
- 1. For Forward: fill out the standard envelope template.
197
- 2. For Session: fill out the file template, include FULL content of artifacts.
198
- 3. For Reverse: fill out the reverse envelope with gaps.
199
- 4. For CONDITIONAL PASS explicitly state the gaps that are being transferred.
200
-
201
- ### Step 3User sign-off
202
- 1. Show the envelope to the user.
203
- 2. Wait for an explicit **"Approved"**.
204
- 3. Do not proceed without an Approved. Without exceptions.
205
-
206
- ### Step 4 — Save and activate
207
- 1. For Session: save the file to `docs/analytics/session-N-handoff.md`.
208
- 2. Update `$board`: current gate `[✓] Completed`, next gate → `[→] In Progress`.
209
- 3. Add entry to transfer log.
210
- 4. For Session: call `$session-prompt-generator` to generate a prompt.
211
-
212
- ## ExampleForward Handoff RES-01 → AN-01 (CONDITIONAL PASS)
213
-
214
- ```
215
- ### Handoff Envelope RES-01 Researcher (Analysts) → AN-01 Data Analyst (Analysts)
216
-
217
- **Type:** Forward
218
- **Mode:** Full Pipeline
219
- **Session:** 2
220
- **Gate Check:** CONDITIONAL PASS (iteration 1) 2 Gaps
221
- **Date:** 2026-04-12
222
-
223
- ---
224
-
225
- **Artifacts:**
226
-
227
- 1. **Research Report** — 7 sections according to the INT-01 research brief:
228
- - EdTech Market Size in Russia (TAM $4.2B, SAM $1.8B, SOM $180M)
229
- - Key players: Skillbox, Netology, Yandex Praktikum, GeekBrains, Skyeng
230
- - Trends: AI personalization, corporate training, micro-certifications
231
- - Regulatory environment: licensing, accreditation
232
- - Customer segments: B2C (25-35), B2B (corp. training), B2G (Ministry of Education)
233
- - Pricing: subscription $15-80/m, corporate contracts $5K-50K/y
234
- - Entry barriers: brand, content, teachers
235
-
236
- 2. **Source Table** — 28 sources, URL, dates, credibility (✅/⚠️/🔮)
237
-
238
- **Gaps (CONDITIONAL PASS):**
239
- - ⚠️ EdTech TAM: 2 sources instead of 3 (Smart Ranking + HSE, missing third)
240
- - ⚠️ IDC report on corp. training: 14 months old (Jan 2025), highly recommended to verify
241
-
242
- ---
243
-
244
- **Task for AN-01 Data Analyst (Analysts):**
245
- Apply competitive analysis and market dimensioning frameworks to RES-01 data. At least 2 frameworks. Take note of the gaps: TAM is marked as ⚠️ Estimated, mark IDC data as ⚠️.
246
-
247
- **Expected deliverable:**
248
- Filled frameworks tied to RES-01 data, patterns, insights, methodology.
249
-
250
- **Blockers:** None
251
-
252
- ---
253
-
254
- Waiting for **"Approved"** to transition to **AN-01 Data Analyst (Analysts)**
255
- ```
256
-
257
- ## Envelope Validation (Quality Gate)
258
-
259
- ### Standard (Forward) envelope
260
- - [ ] Result of `$gates` attached (PASS / CONDITIONAL PASS)
261
- - [ ] Sending and receiving agents are indicated with gate IDs
262
- - [ ] All artifacts from the transfer registry appended
263
- - [ ] Task for the next agent formulated specifically
264
- - [ ] Gaps (if CONDITIONAL) are explicitly listed
265
- - [ ] Context is passed
266
- - [ ] User Approved obtained
267
- - [ ] `$board` updated
268
-
269
- ### Inter-session (Session) envelope — additionally
270
- - [ ] File is saved to `docs/analytics/session-N-handoff.md`
271
- - [ ] All artifacts are included in **full text** (no links or summaries)
272
- - [ ] Board state is saved
273
- - [ ] Decisions and context are documented
274
- - [ ] Open questions / blockers are documented
275
- - [ ] Cumulative index is up-to-date
276
- - [ ] Prompt for the next session is generated
277
- - [ ] File is self-sufficient — test: can be read without ANY previous context
278
-
279
- ## Handoff
280
- The result of `$handoff` is input data for: the next agent in the pipeline, `$board` (status update), `$session-prompt-generator` (for inter-session handoffs).
281
-
282
- ## Anti-patterns
283
-
284
- | Mistake | Why it's bad | How to do it right |
285
- |---------|--------------|--------------------|
286
- | Handoff without `$gates` | Unverified artifacts issues at the next gate | Always `$gates` PASS → then handoff |
287
- | Handoff without Approved | Protocol violation, user unaware | Always wait for explicit Approved |
288
- | Session handoff with links instead of content | Next session has no access to context | FULL text of artifacts in the file |
289
- | "Do analysis" instead of task | Agent does not know root scope | Specific task with parameters and anticipated deliverable |
290
- | Transfer without artifacts | Next agent works blindly | All registry artifacts are attached |
291
- | Reverse handoff without details | Agent doesn't know what to fix | Explicit gaps + what NOT to touch |
292
- | Failing to update `$board` | Board gets desynchronized | Update `$board` at every handoff |
293
- | Context loss between sessions | Next session starts from scratch | Inter-session handoff with complete content |
294
- | Recipient didn't acknowledge receipt | Unclear if all artifacts are received & understood | Receive Acknowledgement at the start of next gate |
295
- | Corrupt session file | Next session works with incomplete data | Recovery protocol: verification upon loading |
296
-
297
- ## Output Templates
298
-
299
- ### Forward Handoff (intra-session)
300
-
301
- ```
302
- ### Handoff Envelope [ID From] [Agent From] [ID To] [Agent To]
303
-
304
- **Type:** Forward
305
- **Mode:** [Full / Quick]
306
- **Session:** [N]
307
- **Gate Check:** [PASS / CONDITIONAL PASS] (iteration [N])
308
- **Date:** [YYYY-MM-DD]
309
-
310
- ---
311
-
312
- **Artifacts:**
313
- - [Artifact 1 description]
314
- - [Artifact 2 description]
315
-
316
- **Gaps (if CONDITIONAL):**
317
- - [Gap 1 what to consider]
318
-
319
- ---
320
-
321
- **Task for [Agent To]:**
322
- [Clear specific formulation]
323
-
324
- **Expected deliverable:**
325
- [What the next agent should return]
326
-
327
- **Blockers:**
328
- [List or "None"]
329
-
330
- ---
331
-
332
- → Waiting for **"Approved"** to transition to **[ID To] [Agent To]**
333
- ```
334
-
335
- ### Reverse Handoff
336
-
337
- ```
338
- ### Reverse Handoff — [ID From] [Agent From] → [ID To] [Agent To] (return)
339
-
340
- **Type:** Reverse
341
- **Reason:** [FAIL / feedback / data discrepancies]
342
- **Date:** [YYYY-MM-DD]
343
-
344
- ---
345
-
346
- **What to fix:**
347
- | # | Gap / Remark | Sev | Specific Action |
348
- |---|--------------|:---:|-----------------|
349
- | 1 | [description] | [B] | [what to do] |
350
-
351
- **What NOT to touch:**
352
- - [Artifact / section that is already approved]
353
-
354
- ---
355
-
356
- → After revision — repeat `$gates` check (iteration [N+1])
357
- Waiting for **"Approved"** for return
358
- ```
359
-
360
- ### Receive Acknowledgement (start of recipient's work)
361
-
362
- ```
363
- **Handoff received:** [ID From] [ID To]
364
- **Artifacts loaded:** [N] pcs.
365
- - [Artifact 1] — ✅ received
366
- - [Artifact 2] — ✅ received
367
-
368
- **Gaps accepted:** [list or "None"]
369
- **Issues on loading:** [list or "None"]
370
- ```
371
-
372
- ## Common handoff-document rules (cross-domain)
373
-
374
- > Applies to **any** handoff document written to hand the session over to a fresh agent (session-handoff / conversation summary). Supplements, does not replace, the inter-gate / inter-session handoff sections above — in particular, applies when using `os.tmpdir()` instead of `docs/analytics/session-N-handoff.md` for a lightweight conversation summary.
375
-
376
- 1. **Where to save.** The handoff document goes to the **OS temp directory** (`%TEMP%` / `/tmp` / `os.tmpdir()`), **not** the working repository. Workspace stays clean; the path to the temp file is cited in the next session's chat.
377
- 2. **"Suggested skills" section.** The document MUST include a section listing the skills the fresh agent should invoke first (`$skill-1`, `$skill-2`, ...). This shortens context warm-up.
378
- 3. **Do not duplicate artifacts.** If the data is already in a PRD / plan / ADR / commit / diff / issue link to it by **path or URL**, do not copy the content. Duplication causes drift between sources. (Conflicts with the "FULL TEXT of artifacts" rule for the legacy session-handoff in `docs/analytics/` — that rule still applies there; this one applies to the temp variant.)
379
- 4. **Redact sensitive data.** Before saving, strip API keys, passwords, tokens, PII (email, phone, real customer names). The temp directory is also a potential leak vector.
380
- 5. **User arguments = next-session focus.** If `/handoff` is called with an argument string, treat it as a description of the next session's task; tailor the summary and suggested-skills list to that focus.
1
+ ---
2
+ name: handoff
3
+ description: Context transfer between gates and sessions — Handoff Envelope, cross-session protocol, file generation
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
+ - handoff
21
+ - Передача контекста между гейтами и сессиями
22
+ - Передача контекста между гейтами и сессиями Handoff Envelope, межсессионный протокол, генерация файлов
23
+ related: []
24
+ budget_lines: 402
25
+ schema_version: 1
26
+ ---
27
+ # Handoff — Context Transfer Between Gates and Sessions
28
+
29
+ ## When to use
30
+ - At **each transition** between gates within a session — standard transfer (intra-session handoff).
31
+ - Upon **session completion** — inter-session transfer (multi-session handoff), saving to a file.
32
+ - Upon **return for revision** reverse transfer (reverse handoff).
33
+ - **Mandatory** at every transition, in any pipeline mode. Without exceptions.
34
+
35
+ > **Distinction:** `$gates` checks readiness. `$handoff` transfers work. `$board` tracks status. Sequence: `$gates` PASS `$handoff` update `$board`.
36
+
37
+ ## Input
38
+
39
+ | Field | Required | Description |
40
+ |-------|:--------:|-------------|
41
+ | Result of `$gates` | | PASS or CONDITIONAL PASS handoff is impossible on FAIL |
42
+ | Sending Agent | | Who is transferring (current gate with ID) |
43
+ | Receiving Agent | | To whom it is transferred (next gate with ID) |
44
+ | Gate Artifacts | ✅ | Deliverables of the current gate (from `$gates` registry) |
45
+ | Pipeline Mode | | Full (`/analyze`) / Quick (`/quick-insight`) |
46
+ | Handoff Type | ✅ | Forward / Reverse / Session (inter-session) |
47
+ | Session Number | ⬚ | For inter-session handoff current and next session |
48
+
49
+ > **Precondition:** Handoff is possible **only** after a `$gates` PASS or CONDITIONAL PASS. On FAIL — return to agent, handoff is not performed.
50
+
51
+ ### Connection with other skills
52
+ | Skill | Interaction | When |
53
+ |-------|-------------|------|
54
+ | `$gates` | Precondition: PASS / CONDITIONAL PASS allows handoff. Gate check is attached to the envelope | Before every handoff |
55
+ | `$board` | After handoff: update gate statuses (current `[✓]`, next `[→]`) | After every handoff |
56
+ | `$session-prompt-generator` | For Session handoff: generation of the next session's prompt, included in the file | Upon session completion |
57
+ | Framework skills | Framework artifacts (filled templates) — a part of the deliverables of AN-xx gates | Upon transfer from Data Analyst |
58
+
59
+ ## Handoff Types
60
+
61
+ | Type | Description | File | Next Recipient's Context |
62
+ |------|-------------|------|--------------------------|
63
+ | **Forward** | Standard transfer between gates within a session | None (in memory) | Full session context is available |
64
+ | **Reverse** | Return for revision | None (in memory) | Full session context is available |
65
+ | **Session** | Inter-session transfer | `docs/analytics/session-N-handoff.md` | **ZERO** previous context the file must be self-sufficient |
66
+
67
+ > **Key rule for inter-session handoff:** the next session starts with ZERO context. The handoff file is the sole source of information. No links referring to "see above" or "as discussed". Everything must be in the file.
68
+
69
+ ## Transfer Registry — what to transfer
70
+
71
+ ### Full Pipeline (inter-gate)
72
+
73
+ | Transition | Artifacts | Key Context |
74
+ |------------|-----------|-------------|
75
+ | **COND-01 → INT-01** | Task scope, mode, board | Business question, limitations, expectations |
76
+ | **INT-01 → Session Handoff** | Research brief, interview context, assessment mode | All user answers, selected metrics |
77
+ | **COND-02RES-01** | Session-1 handoff, research brief | Full context from the interview, questions for research |
78
+ | **RES-01 → AN-01** | Data, sources, facts | Verified data with URLs and dates |
79
+ | **AN-01 → ST-01** | Frameworks, analysis, patterns | Methodology, key insights |
80
+ | **ST-01 → Session Handoff** | Strategy, recommendations | Full Analysts' package for Critics and Mediator |
81
+ | **COND-03 → RES-02** | Session-2 handoff, Analysts' results | Data for criticism and alternative research |
82
+ | **RES-02 AN-02** | Alternative data, criticism | Counter-data with sources |
83
+ | **AN-02 → ST-02** | Alternative analysis | Counter-frameworks, differences with Analysts |
84
+ | **ST-02 Session Handoff** | Alternative strategy, criticism | Full Critics' package |
85
+ | **COND-04 → MED-01** | Session-2 + Session-3 handoff | Both packages (Analysts + Critics) |
86
+ | **MED-01 → Session Handoff** | Final conclusion, evaluations | Final verdict, justification |
87
+ | **COND-05 → DS-01** | Session-4 handoff | Mediator's conclusion for visualization |
88
+ | **DS-01 → LY-01** | Layout, visualization specs | Report structure, palette, fonts |
89
+
90
+ ### Quick Pipeline (inter-gate)
91
+
92
+ | Transition | Artifacts | Key Context |
93
+ |------------|-----------|-------------|
94
+ | **COND-01 → INT-01** | Task scope, mode, board | Business question, limitations |
95
+ | **INT-01 → RES-01** | Research brief, assessment mode | Questions for research, metrics |
96
+ | **RES-01 → AN-01** | Data, sources, facts | Verified data with URLs and dates |
97
+ | **AN-01 → ST-01** | Frameworks, analysis, patterns | Methodology, insights |
98
+ | **ST-01 MED-01** | Strategy, recommendations | Conclusions and recommendations (without competing team) |
99
+ | **MED-01 → DS-01** | Final conclusion | Final verdict for visualization |
100
+ | **DS-01 LY-01** | Layout, specifications | Report structure, palette |
101
+
102
+ ## Inter-session Handoff (Session)
103
+
104
+ ### File Structure `docs/analytics/session-N-handoff.md`
105
+
106
+ The file contains the **entire** necessary context. No links, no abbreviations.
107
+
108
+ ```markdown
109
+ # Session [N] Handoff [Project Name]
110
+
111
+ ## Meta
112
+ - **Project:** [Name]
113
+ - **Date:** [YYYY-MM-DD]
114
+ - **Session:** [N] out of [M]
115
+ - **Mode:** Full / Quick
116
+ - **Completed Gates:** [list of IDs with deliverables]
117
+ - **Next Gate:** [ID] [Name]
118
+
119
+ ## Brief Summary
120
+ [2-3 sentences: what was done in this session, the key result]
121
+
122
+ ## Board State ($board)
123
+ [Full copy of the board table in its current state + progress metrics]
124
+
125
+ ## Full Content of Artifacts
126
+
127
+ ### [Artifact 1 Name]
128
+ [FULL TEXT of the artifact, not a link and not a brief description]
129
+
130
+ ### [Artifact 2 — Name]
131
+ [FULL TEXT of the artifact]
132
+
133
+ ### [Artifact N — ...]
134
+ [FULL TEXT]
135
+
136
+ ## Decisions and Context
137
+ | # | Decision | Justification | Decided by | Affects |
138
+ |---|----------|---------------|------------|---------|
139
+ | 1 | [What was decided] | [Why] | [User / Conductor] | [Which gates] |
140
+
141
+ ## Open Questions and Blockers
142
+ | # | Question / Blocker | Severity | For which gate | Status |
143
+ |---|--------------------|:--------:|:--------------:|--------|
144
+ | 1 | [Description] | 🔴/🟡/🟢 | [Gate ID] | Open / Resolved |
145
+
146
+ ## Cumulative Index
147
+ | Session | Gates | Key Artifacts | File |
148
+ |---------|-------|---------------|------|
149
+ | 1 | COND-01, INT-01 | Research brief, interview context | session-1-handoff.md |
150
+ | 2 | RES-01, AN-01, ST-01 | Data, analysis, Analysts' strategy | session-2-handoff.md |
151
+ | [N] | [...] | [...] | session-N-handoff.md |
152
+
153
+ ## Prompt for the Next Session
154
+ [Generated via $session-prompt-generator ready-to-paste prompt]
155
+
156
+ ## Verification Checklist
157
+ - [ ] All artifacts are included entirely (not via links)
158
+ - [ ] Requirements board ($board) is saved in its current state
159
+ - [ ] Decisions and context are documented
160
+ - [ ] Open questions / blockers are documented
161
+ - [ ] Cumulative index is up-to-date
162
+ - [ ] Prompt for the next session is generated
163
+ - [ ] The file is self-sufficient — test: can be read without ANY previous context
164
+ ```
165
+
166
+ ### Recovery Protocol (corrupted / incomplete handoff)
167
+
168
+ Upon loading a session handoff in a new session the Conductor performs a verification:
169
+
170
+ | Check | Action upon failure |
171
+ |-------|---------------------|
172
+ | File not found | Request path from the user or recreate from the previous session's memory |
173
+ | Artifacts incomplete (links present instead of content) | Mark as ⚠️, request missing items from the user |
174
+ | Cumulative index does not match the content | Rebuild the index from the actual file contents |
175
+ | Prompt is missing | Generate via `$session-prompt-generator` |
176
+ | Board is missing | Restore from the cumulative index + artifacts |
177
+
178
+ > For any recovery explicitly notify the user that the handoff was incomplete and what has been restored.
179
+
180
+ ## Reverse Handoff
181
+
182
+ ### When it occurs
183
+ - `$gates` — FAIL.
184
+ - Mediator found critical discrepancies in data.
185
+ - User requested a revision.
186
+ - Next gate found an issue with the previous one's artifact.
187
+
188
+ ### Reverse handoff protocol
189
+ 1. Indicate the **reason for return** — specific gaps / remarks.
190
+ 2. Indicate **what exactly to revise** not "redo", but "check source X: data is from 2023, need current data for 2025".
191
+ 3. Indicate **what NOT to touch** what is already approved and needs no changes.
192
+ 4. Update `$board` — receiving gate `[↩] Return`, sending gate → `[→] In Progress`.
193
+ 5. After revision repeat `$gates` check → forward handoff.
194
+
195
+ ## Receive Acknowledgement
196
+
197
+ Upon receiving a handoff, the receiving agent must:
198
+
199
+ 1. **Acknowledge loading:** "Handoff from [ID] received, [N] artifacts loaded".
200
+ 2. **List what was received:** a list of artifacts with a brief description.
201
+ 3. **Note the gaps:** if CONDITIONAL PASS explicitly list the received gaps.
202
+ 4. **Log issues:** if an artifact is incomplete or unclear — ask for clarification before starting work (do not guess).
203
+
204
+ > The Acknowledge is embedded at the start of the next gate's work. It is not a separate step, but the first paragraph of the deliverable.
205
+
206
+ ## Protocol
207
+
208
+ ### Step 0 Determine handoff type
209
+ 1. Forward (intra-session), Reverse (return), Session (inter-session).
210
+ 2. For Session — define file path: `docs/analytics/session-N-handoff.md`.
211
+
212
+ ### Step 1 Preconditions
213
+ 1. Ensure `$gates` gave a PASS or CONDITIONAL PASS (except Reverse).
214
+ 2. Determine receiving agent by the registry.
215
+ 3. Collect all artifacts from the transfer registry.
216
+
217
+ ### Step 2 — Envelope formation
218
+ 1. For Forward: fill out the standard envelope template.
219
+ 2. For Session: fill out the file template, include FULL content of artifacts.
220
+ 3. For Reverse: fill out the reverse envelope with gaps.
221
+ 4. For CONDITIONAL PASS — explicitly state the gaps that are being transferred.
222
+
223
+ ### Step 3 — User sign-off
224
+ 1. Show the envelope to the user.
225
+ 2. Wait for an explicit **"Approved"**.
226
+ 3. Do not proceed without an Approved. Without exceptions.
227
+
228
+ ### Step 4 Save and activate
229
+ 1. For Session: save the file to `docs/analytics/session-N-handoff.md`.
230
+ 2. Update `$board`: current gate `[✓] Completed`, next gate → `[→] In Progress`.
231
+ 3. Add entry to transfer log.
232
+ 4. For Session: call `$session-prompt-generator` to generate a prompt.
233
+
234
+ ## Example — Forward Handoff RES-01 AN-01 (CONDITIONAL PASS)
235
+
236
+ ```
237
+ ### Handoff Envelope — RES-01 Researcher (Analysts) → AN-01 Data Analyst (Analysts)
238
+
239
+ **Type:** Forward
240
+ **Mode:** Full Pipeline
241
+ **Session:** 2
242
+ **Gate Check:** CONDITIONAL PASS (iteration 1) — 2 Gaps
243
+ **Date:** 2026-04-12
244
+
245
+ ---
246
+
247
+ **Artifacts:**
248
+
249
+ 1. **Research Report** — 7 sections according to the INT-01 research brief:
250
+ - EdTech Market Size in Russia (TAM $4.2B, SAM $1.8B, SOM $180M)
251
+ - Key players: Skillbox, Netology, Yandex Praktikum, GeekBrains, Skyeng
252
+ - Trends: AI personalization, corporate training, micro-certifications
253
+ - Regulatory environment: licensing, accreditation
254
+ - Customer segments: B2C (25-35), B2B (corp. training), B2G (Ministry of Education)
255
+ - Pricing: subscription $15-80/m, corporate contracts $5K-50K/y
256
+ - Entry barriers: brand, content, teachers
257
+
258
+ 2. **Source Table** — 28 sources, URL, dates, credibility (✅/⚠️/🔮)
259
+
260
+ **Gaps (CONDITIONAL PASS):**
261
+ - ⚠️ EdTech TAM: 2 sources instead of 3 (Smart Ranking + HSE, missing third)
262
+ - ⚠️ IDC report on corp. training: 14 months old (Jan 2025), highly recommended to verify
263
+
264
+ ---
265
+
266
+ **Task for AN-01 Data Analyst (Analysts):**
267
+ Apply competitive analysis and market dimensioning frameworks to RES-01 data. At least 2 frameworks. Take note of the gaps: TAM is marked as ⚠️ Estimated, mark IDC data as ⚠️.
268
+
269
+ **Expected deliverable:**
270
+ Filled frameworks tied to RES-01 data, patterns, insights, methodology.
271
+
272
+ **Blockers:** None
273
+
274
+ ---
275
+
276
+ Waiting for **"Approved"** to transition to **AN-01 Data Analyst (Analysts)**
277
+ ```
278
+
279
+ ## Envelope Validation (Quality Gate)
280
+
281
+ ### Standard (Forward) envelope
282
+ - [ ] Result of `$gates` attached (PASS / CONDITIONAL PASS)
283
+ - [ ] Sending and receiving agents are indicated with gate IDs
284
+ - [ ] All artifacts from the transfer registry appended
285
+ - [ ] Task for the next agent formulated specifically
286
+ - [ ] Gaps (if CONDITIONAL) are explicitly listed
287
+ - [ ] Context is passed
288
+ - [ ] User Approved obtained
289
+ - [ ] `$board` updated
290
+
291
+ ### Inter-session (Session) envelope additionally
292
+ - [ ] File is saved to `docs/analytics/session-N-handoff.md`
293
+ - [ ] All artifacts are included in **full text** (no links or summaries)
294
+ - [ ] Board state is saved
295
+ - [ ] Decisions and context are documented
296
+ - [ ] Open questions / blockers are documented
297
+ - [ ] Cumulative index is up-to-date
298
+ - [ ] Prompt for the next session is generated
299
+ - [ ] File is self-sufficient — test: can be read without ANY previous context
300
+
301
+ ## Handoff
302
+ The result of `$handoff` is input data for: the next agent in the pipeline, `$board` (status update), `$session-prompt-generator` (for inter-session handoffs).
303
+
304
+ ## Anti-patterns
305
+
306
+ | Mistake | Why it's bad | How to do it right |
307
+ |---------|--------------|--------------------|
308
+ | Handoff without `$gates` | Unverified artifacts → issues at the next gate | Always `$gates` PASS → then handoff |
309
+ | Handoff without Approved | Protocol violation, user unaware | Always wait for explicit Approved |
310
+ | Session handoff with links instead of content | Next session has no access to context | FULL text of artifacts in the file |
311
+ | "Do analysis" instead of task | Agent does not know root scope | Specific task with parameters and anticipated deliverable |
312
+ | Transfer without artifacts | Next agent works blindly | All registry artifacts are attached |
313
+ | Reverse handoff without details | Agent doesn't know what to fix | Explicit gaps + what NOT to touch |
314
+ | Failing to update `$board` | Board gets desynchronized | Update `$board` at every handoff |
315
+ | Context loss between sessions | Next session starts from scratch | Inter-session handoff with complete content |
316
+ | Recipient didn't acknowledge receipt | Unclear if all artifacts are received & understood | Receive Acknowledgement at the start of next gate |
317
+ | Corrupt session file | Next session works with incomplete data | Recovery protocol: verification upon loading |
318
+
319
+ ## Output Templates
320
+
321
+ ### Forward Handoff (intra-session)
322
+
323
+ ```
324
+ ### Handoff Envelope — [ID From] [Agent From] → [ID To] [Agent To]
325
+
326
+ **Type:** Forward
327
+ **Mode:** [Full / Quick]
328
+ **Session:** [N]
329
+ **Gate Check:** [PASS / CONDITIONAL PASS] (iteration [N])
330
+ **Date:** [YYYY-MM-DD]
331
+
332
+ ---
333
+
334
+ **Artifacts:**
335
+ - [Artifact 1 — description]
336
+ - [Artifact 2 — description]
337
+
338
+ **Gaps (if CONDITIONAL):**
339
+ - [Gap 1 — what to consider]
340
+
341
+ ---
342
+
343
+ **Task for [Agent To]:**
344
+ [Clear specific formulation]
345
+
346
+ **Expected deliverable:**
347
+ [What the next agent should return]
348
+
349
+ **Blockers:**
350
+ [List or "None"]
351
+
352
+ ---
353
+
354
+ → Waiting for **"Approved"** to transition to **[ID To] [Agent To]**
355
+ ```
356
+
357
+ ### Reverse Handoff
358
+
359
+ ```
360
+ ### Reverse Handoff [ID From] [Agent From] → [ID To] [Agent To] (return)
361
+
362
+ **Type:** Reverse
363
+ **Reason:** [FAIL / feedback / data discrepancies]
364
+ **Date:** [YYYY-MM-DD]
365
+
366
+ ---
367
+
368
+ **What to fix:**
369
+ | # | Gap / Remark | Sev | Specific Action |
370
+ |---|--------------|:---:|-----------------|
371
+ | 1 | [description] | [B] | [what to do] |
372
+
373
+ **What NOT to touch:**
374
+ - [Artifact / section that is already approved]
375
+
376
+ ---
377
+
378
+ After revisionrepeat `$gates` check (iteration [N+1])
379
+ Waiting for **"Approved"** for return
380
+ ```
381
+
382
+ ### Receive Acknowledgement (start of recipient's work)
383
+
384
+ ```
385
+ **Handoff received:** [ID From] → [ID To]
386
+ **Artifacts loaded:** [N] pcs.
387
+ - [Artifact 1] — ✅ received
388
+ - [Artifact 2] — ✅ received
389
+
390
+ **Gaps accepted:** [list or "None"]
391
+ **Issues on loading:** [list or "None"]
392
+ ```
393
+
394
+ ## Common handoff-document rules (cross-domain)
395
+
396
+ > Applies to **any** handoff document written to hand the session over to a fresh agent (session-handoff / conversation summary). Supplements, does not replace, the inter-gate / inter-session handoff sections above — in particular, applies when using `os.tmpdir()` instead of `docs/analytics/session-N-handoff.md` for a lightweight conversation summary.
397
+
398
+ 1. **Where to save.** The handoff document goes to the **OS temp directory** (`%TEMP%` / `/tmp` / `os.tmpdir()`), **not** the working repository. Workspace stays clean; the path to the temp file is cited in the next session's chat.
399
+ 2. **"Suggested skills" section.** The document MUST include a section listing the skills the fresh agent should invoke first (`$skill-1`, `$skill-2`, ...). This shortens context warm-up.
400
+ 3. **Do not duplicate artifacts.** If the data is already in a PRD / plan / ADR / commit / diff / issue — link to it by **path or URL**, do not copy the content. Duplication causes drift between sources. (Conflicts with the "FULL TEXT of artifacts" rule for the legacy session-handoff in `docs/analytics/` — that rule still applies there; this one applies to the temp variant.)
401
+ 4. **Redact sensitive data.** Before saving, strip API keys, passwords, tokens, PII (email, phone, real customer names). The temp directory is also a potential leak vector.
402
+ 5. **User arguments = next-session focus.** If `/handoff` is called with an argument string, treat it as a description of the next session's task; tailor the summary and suggested-skills list to that focus.