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,439 +1,463 @@
1
- ---
2
- name: handoff
3
- description: Transferring artifacts between gates and sessions — structured format with decision context
4
- ---
5
- # Handoff — Transferring Context Between Gates and Sessions
6
-
7
- ## When to Use
8
- - At **every transition** between gates within a session — standard transfer (intra-session handoff).
9
- - At **session completion** — cross-session transfer (multi-session handoff), saved to file.
10
- - When **returning for rework** — reverse handoff.
11
- - **Required** at every transition, in any pipeline mode. No exceptions.
12
-
13
- > **Distinction:** `$gates` checks readiness. `$handoff` transfers work. `$board` tracks status. Order: `$gates` PASS → `$handoff` → update `$board`.
14
-
15
- ## Input
16
-
17
- | Field | Required | Description |
18
- |-------|:--------:|-------------|
19
- | `$gates` result | ✅ | PASS or CONDITIONAL PASS — handoff is impossible on FAIL |
20
- | Sending agent | ✅ | Who is transferring (current gate with ID) |
21
- | Receiving agent | ✅ | To whom (next gate with ID) |
22
- | Gate artifacts | ✅ | Deliverables of the current gate (from `$gates` registry) |
23
- | Pipeline mode | ✅ | Full A (`/ship-right-thing`) / Full B (`/shape-prioritize`) / Quick (`/quick-pm`) / Spec (`/spec`) |
24
- | Handoff type | ✅ | Forward / Reverse / Session (cross-session) |
25
- | Adversarial camp | ⬚ | For Full A/B when transferring between camps (via Mediator) |
26
- | Session number | ⬚ | For cross-session handoff — current and next session |
27
-
28
- > **Precondition:** Handoff is only possible after `$gates` PASS or CONDITIONAL PASS. On FAIL — return to agent, handoff is not executed.
29
-
30
- ### Related Skills
31
- | Skill | Interaction | When |
32
- |-------|-------------|------|
33
- | `$gates` | Precondition: PASS / CONDITIONAL PASS → enables handoff. Gate check attached to envelope | Before each handoff |
34
- | `$board` | After handoff: update gate statuses (current → `[✓]`, next → `[→]`) | After each handoff |
35
- | `$session-prompt-generator` | For Session handoff: generate next session prompt, included in file | On session completion |
36
- | Framework skills (jtbd, prd, rice etc.) | Skill artifacts (completed templates) — part of gate deliverables | When transferring between agents |
37
-
38
- ## Handoff Types
39
-
40
- | Type | Description | File | Next recipient context |
41
- |------|-------------|------|------------------------|
42
- | **Forward** | Standard transfer between gates within session | No (in memory) | Full session context available |
43
- | **Reverse** | Return for rework | No (in memory) | Full session context available |
44
- | **Session** | Cross-session transfer | `docs/product/session-N-handoff.md` | **ZERO** prior context file must be self-contained |
45
-
46
- > **Key rule for cross-session handoff:** The next session starts with ZERO context. The handoff file is the sole source of information. No references to «see above» or «as discussed». Everything must be in the file.
47
-
48
- > **Key rule for adversarial independence:** In Full A/B when transferring the Discovery Brief to both camps — **both packages are identical**. Alpha and Beta do not see each other's artifacts until Mediator. Session-handoff Camp Alpha is **NOT passed** to Beta before MED-01.
49
-
50
- ## Transfer RegistryWhat to Transfer
51
-
52
- ### Full Pipeline A (`/ship-right-thing`, 6 sessions)
53
-
54
- | Transition | Artifacts | Key context |
55
- |------------|-----------|-------------|
56
- | **COND-01 → DISC-01** | Task scope, mode, board, adversarial context | Product question, constraints, ICP, current metrics |
57
- | **DISC-01 Session Handoff** | Discovery Brief (JTBD, problems, assumptions, evidence) | All discovery evidence, open questions |
58
- | **COND-02 → STRAT-01α** | Session-1 handoff (Discovery Brief), camp assignment | Discovery Brief + explicit «you are Customer-Champion» |
59
- | **STRAT-01α Session Handoff** | Strategy Brief Alpha (vision, NSM, OKR, roadmap) | Customer-Champion package for Mediator — isolated from Beta |
60
- | **COND-03 STRAT-02β** | Session-1 handoff (Discovery Brief, same as given to Alpha) | **WITHOUT** Session-2-handoff! Discovery only |
61
- | **STRAT-02β → Session Handoff** | Strategy Brief Beta | Business-Champion package for Mediator |
62
- | **COND-04 → MED-01** | Session-2 + Session-3 handoff (both) | First gate where both camps are visible simultaneously |
63
- | **MED-01 → Session Handoff** | Unified Strategy Brief (synthesis + rationale) | Final strategy, evidence audit, synthesis path |
64
- | **COND-05 PM-SPEC** | Session-4 handoff (unified strategy) + Discovery Brief | Strategy for scope decisions |
65
- | **PM-SPEC → UX-01 + TECH-01 + DATA-01** (parallel) | PRD + user stories + AC | Each receives their part for parallel work |
66
- | **Session 5 → Session Handoff** | Combined S5 deliverable (PRD + wireframes + feasibility + metric plan) | Everything ready for final packaging |
67
- | **COND-06 → DS-01** | Session-5 handoff + design directive | Content for layout |
68
- | **DS-01 LY-01** | Design spec (layout + components) | Ready templates for HTML/PDF |
69
- | **LY-01 → RG-01** | Final PRD + Product Review Deck (PDF) | Release-ready package |
70
-
71
- ### Full Pipeline B (`/shape-prioritize`, 6 sessions)
72
-
73
- | Transition | Artifacts | Key context |
74
- |------------|-----------|-------------|
75
- | **COND-01 → DISC-01** | Task scope, approved strategy (from prior /ship-right-thing or external) | Scope boundaries for prioritization |
76
- | **DISC-01 Session Handoff** | Scope Brief (WHAT we're prioritizing, which JTBD in scope) | Scope boundaries for both camps |
77
- | **COND-02 → PM-01α + TECH-01α** (parallel) | Session-1 handoff, Build-camp assignment | Scope Brief + «you are Build-Camp: maximum scope, every feature justified» |
78
- | **PM-01α / TECH-01α → Session Handoff** | Build scope proposal (max RICE) + feasibility per story | Max-scope package for Mediator |
79
- | **COND-03 → PM-02β + TECH-02β** (parallel) | Session-1 handoff (same Scope Brief) | **WITHOUT** Session-2! Cut-camp does not see Build artifacts |
80
- | **PM-02β / TECH-02β → Session Handoff** | Cut scope proposal (MoSCoW) + hidden risks | Min-scope package for Mediator |
81
- | **COND-04MED-01** | Session-2 + Session-3 handoff | Build vs Cut simultaneously |
82
- | **MED-01Session Handoff** | Final scope decision + rationale | Approved scope + out-of-scope list |
83
- | **COND-05PM-SPEC** | Session-4 handoff (final scope) | Ready to write final PRD |
84
- | **PM-SPECUX-01 + DATA-01** (parallel) | PRD | Parallel work on scope |
85
- | **Session 5 → Session Handoff** | PRD + wireframes + metric plan | Packaging for PDF |
86
- | **COND-06DS-01 LY-01 RG-01** | Standard packaging | |
87
-
88
- ### Quick Pipeline (`/quick-pm`, 1 session)
89
-
90
- | Transition | Artifacts | Key context |
91
- |------------|-----------|-------------|
92
- | **COND-01 → DISC-01** | Focused question | Short scope |
93
- | **DISC-01 → STRAT-01** | Rough JTBD + problem statement | Strategy alignment input |
94
- | **STRAT-01 → PM-01** | NSM, theme, strategic fit | For rough RICE |
95
- | **PM-01 TECH-01** | Rough RICE, MVP sketch (3-5 stories) | For feasibility |
96
- | **TECH-01 → DATA-01** | Feasibility, risks | For metric sketch |
97
- | **DATA-01 → Short Brief** | Primary metric, guardrail, target | Final brief |
98
-
99
- ### Spec Pipeline (`/spec`, 1 session)
100
-
101
- | Transition | Artifacts | Key context |
102
- |------------|-----------|-------------|
103
- | **COND-01 → PM-SPEC** | Approved strategy + scope | Ready to write PRD |
104
- | **PM-SPEC UX-01 + TECH-01** (parallel) | PRD draft | Parallel review |
105
- | **UX + TECH PM-FINAL** | UX flows + feasibility + NFR | Merge into PRD |
106
- | **PM-FINAL → Handoff to Engineering** | Final PRD | Implementation ready |
107
-
108
- ## Cross-Session Handoff (Session)
109
-
110
- ### File structure `docs/product/session-N-handoff.md`
111
-
112
- The file contains **all** necessary context. No references, no abbreviations.
113
-
114
- ```markdown
115
- # Session [N] Handoff — [Initiative Name]
116
-
117
- ## Meta
118
- - **Project:** [Name]
119
- - **Date:** [YYYY-MM-DD]
120
- - **Session:** [N] of [M]
121
- - **Mode:** /ship-right-thing | /shape-prioritize | /quick-pm | /spec
122
- - **Adversarial camp** (if applicable): Alpha (Customer / Build) | Beta (Business / Cut) | —
123
- - **Completed gates:** [list of IDs with deliverables]
124
- - **Next gate:** [ID] [Name]
125
-
126
- ## Brief Summary
127
- [2-3 sentences: what was done in this session, key result]
128
-
129
- ## Board State ($board)
130
- [Full copy of the board table in its current state + progress metrics]
131
-
132
- ## Full Artifact Contents
133
-
134
- ### [Artifact 1 — e.g., Discovery Brief]
135
- [FULL TEXT of the artifact, not a link or brief description]
136
-
137
- ### [Artifact 2 — e.g., JTBD Canvas]
138
- [FULL TEXT of the artifact]
139
-
140
- ### [Artifact N — ...]
141
- [FULL TEXT]
142
-
143
- ## Decisions and Context
144
- | # | Decision | Rationale | Made by | Affects |
145
- |---|----------|-----------|---------|---------|
146
- | 1 | [What was decided] | [Why] | [User / Conductor] | [Which gates] |
147
-
148
- ## Open Questions and Blockers
149
- | # | Question / Blocker | Severity | For which gate | Status |
150
- |---|-------------------|:--------:|:--------------:|--------|
151
- | 1 | [Description] | 🔴/🟡/🟢 | [Gate ID] | Open / Resolved |
152
-
153
- ## Camp Independence Check (Full A/B)
154
- - [ ] This handoff does **NOT** contain artifacts from the opposing camp (if applicable)
155
- - [ ] If handoff goes to Camp Beta — Alpha artifacts are excluded
156
- - [ ] Mediator receives **both** session-handoffs (explicitly)
157
-
158
- ## Cumulative Index
159
- | Session | Gates | Key Artifacts | File |
160
- |---------|-------|---------------|------|
161
- | 1 | COND-01, DISC-01 | Discovery Brief, JTBD canvas | session-1-handoff.md |
162
- | 2 | STRAT-01α | Strategy Brief Alpha | session-2-handoff.md |
163
- | [N] | [...] | [...] | session-N-handoff.md |
164
-
165
- ## Prompt for Next Session
166
- [Generated via $session-prompt-generator — ready-to-paste prompt]
167
-
168
- ## Verification Checklist
169
- - [ ] All artifacts included in full (not as links)
170
- - [ ] Task board ($board) saved in current state
171
- - [ ] Decisions and context recorded
172
- - [ ] Open questions / blockers recorded
173
- - [ ] Cumulative index is up to date
174
- - [ ] Prompt for next session generated
175
- - [ ] Camp independence check passed (Full A/B)
176
- - [ ] File is self-contained — test: can be read without ANY prior context
177
- ```
178
-
179
- ### Recovery Protocol (damaged / incomplete handoff)
180
-
181
- When loading a session handoff in a new session — Conductor performs verification:
182
-
183
- | Check | Action on failure |
184
- |-------|-------------------|
185
- | File not found | Request path from user or reconstruct from previous session memory |
186
- | Artifacts incomplete (links instead of content) | Mark as ⚠️, request missing content from user |
187
- | Cumulative index does not match content | Rebuild index from actual file contents |
188
- | Prompt missing | Generate via `$session-prompt-generator` |
189
- | Board missing | Restore from cumulative index + artifacts |
190
- | Camp contamination detected | 🔴 Critical: stop, escalate, recreate handoff with filtering |
191
-
192
- > On any recovery — explicitly notify the user that the handoff was incomplete and what was restored.
193
-
194
- ## Reverse Handoff
195
-
196
- ### When it happens
197
- - `$gates` FAIL.
198
- - Mediator discovered critical data discrepancies.
199
- - User requested rework.
200
- - Next gate discovered a problem with an artifact from the previous gate.
201
-
202
- ### Reverse handoff protocol
203
- 1. State the **reason for return** — specific gaps / comments.
204
- 2. State **exactly what to rework** — not «redo it», but «verify evidence for assumption X: Discovery has 0 interviews for this segment, need 5+».
205
- 3. State **what NOT to touch** what has already been approved and needs no changes.
206
- 4. Update `$board` — receiving gate → `[↩] Returned`, sending gate → `[→] In Progress`.
207
- 5. After rework re-run `$gates` check → forward handoff.
208
-
209
- ## Receive Acknowledgement
210
-
211
- Upon receiving a handoff the receiving agent must:
212
-
213
- 1. **Confirm loading:** «Handoff from [ID] received, [N] artifacts loaded».
214
- 2. **List received:** list of artifacts with brief description.
215
- 3. **Note gaps:** if CONDITIONAL PASS — explicitly list received gaps.
216
- 4. **Record issues:** if an artifact is incomplete or unclear request clarification before starting work (do not guess).
217
-
218
- > Acknowledge is embedded in the beginning of the next gate's work. It is not a separate step, but the first paragraph of the deliverable.
219
-
220
- ## Protocol
221
-
222
- ### Step 0 Determine handoff type
223
- 1. Forward (within session), Reverse (return), Session (cross-session).
224
- 2. For Session determine file path: `docs/product/session-N-handoff.md`.
225
- 3. For Full A/B — verify camp isolation (if handoff goes alpha → beta without Mediator — **prohibited**).
226
-
227
- ### Step 1Preconditions
228
- 1. Confirm that `$gates` gave PASS or CONDITIONAL PASS (except Reverse).
229
- 2. Identify the receiving agent from the registry.
230
- 3. Collect all artifacts from the transfer registry.
231
- 4. For Full A/B **filter out** artifacts from the opposing camp (if cross-camp handoff).
232
-
233
- ### Step 2 — Form the envelope
234
- 1. For Forward: fill in the standard envelope template.
235
- 2. For Session: fill in the file template, include FULL artifact contents.
236
- 3. For Reverse: fill in the reverse envelope with gaps.
237
- 4. For CONDITIONAL PASS explicitly state the gaps being transferred.
238
-
239
- ### Step 3User sign-off
240
- 1. Show envelope to user.
241
- 2. Await explicit **"Approved"**.
242
- 3. Do not proceed without Approved. No exceptions.
243
-
244
- ### Step 4 — Save and activate
245
- 1. For Session: save file to `docs/product/session-N-handoff.md`.
246
- 2. Update `$board`: current gate `[✓] Completed`, next → `[→] In Progress`.
247
- 3. Add entry to the transfer log.
248
- 4. For Session: call `$session-prompt-generator` to generate the prompt.
249
-
250
- ## Example — Forward Handoff COND-03 → STRAT-02β (TeamFlow, `/ship-right-thing`)
251
-
252
- **Context:** TeamFlow (B2B SaaS, HR-tech). Session 3: assigning Camp Beta (Business-Champion). Important: Beta receives ONLY the Discovery Brief, without Session-2 handoff (Alpha artifacts).
253
-
254
- ```
255
- ### Handoff EnvelopeCOND-03 STRAT-02β Product Strategist (Business-Champion)
256
-
257
- **Type:** Forward
258
- **Mode:** /ship-right-thing (Full A)
259
- **Session:** 3
260
- **Camp:** Beta (Business-Champion)
261
- **Gate Check:** PASS (camp assignment + independence verified)
262
- **Date:** 2026-04-12
263
-
264
- ---
265
-
266
- **Artifacts:**
267
-
268
- 1. **Discovery Brief** (from session-1-handoff.md) FULL text:
269
- - ICP: mid-market HR-tech (100-500 employees)
270
- - Buyer: VP People/HR
271
- - End-user: People managers + ICs
272
- - JTBD canvas (buyer + end-user separate)
273
- - Top 3 problem statements
274
- - Assumption map (12 assumptions, 4 high-risk)
275
-
276
- 2. **Camp Assignment:** Business-Champion
277
- - You play the role of Business-Champion (β)
278
- - Focus: strategy around revenue, margin, strategic moat, competitive positioning
279
- - Do not play user-value angle (that is Alpha, working in parallel)
280
-
281
- **Independence Check:**
282
- - Camp Alpha (Customer-Champion) Strategy Brief **NOT passed** — Beta works independently
283
- - Session-2-handoff.md exists, but **explicitly excluded** from this envelope
284
-
285
- ---
286
-
287
- **Task for STRAT-02β:**
288
-
289
- Using **only the Discovery Brief**, form a Business-Champion Strategy Brief for the TeamFlow initiative «AI-powered 1:1 note summarization».
290
-
291
- Include:
292
- - Vision (business outcomes: ARR, moat, NRR angle)
293
- - North Star Metric (business-value metric)
294
- - OKR (quarterly)
295
- - Product Roadmap (themes)
296
- - Rationale: why this approach from a business perspective
297
-
298
- **Expected deliverable:**
299
- Strategy Brief Beta (markdown), ~800-1200 words, with an explicit business-angle argument.
300
-
301
- **Blockers:** None
302
-
303
- ---
304
-
305
- → Awaiting **"Approved"** to proceed to **STRAT-02β Product Strategist (Business-Champion)**
306
- ```
307
-
308
- ## Validation (Quality Gate)
309
-
310
- ### Standard (Forward) envelope
311
- - [ ] `$gates` result attached (PASS / CONDITIONAL PASS)
312
- - [ ] Sending and receiving agents specified with gate IDs
313
- - [ ] All artifacts from the transfer registry attached
314
- - [ ] Task for the next agent formulated specifically
315
- - [ ] Gaps (if CONDITIONAL) explicitly listed
316
- - [ ] Context transferred
317
- - [ ] For Full A/B — camp independence verified
318
- - [ ] User Approved received
319
- - [ ] `$board` updated
320
-
321
- ### Cross-session (Session) envelope — additionally
322
- - [ ] File saved at path `docs/product/session-N-handoff.md`
323
- - [ ] All artifacts included as **full text** (not links or summaries)
324
- - [ ] Board state saved
325
- - [ ] Decisions and context recorded
326
- - [ ] Open questions / blockers recorded
327
- - [ ] Cumulative index is up to date
328
- - [ ] Prompt for next session generated
329
- - [ ] Camp independence check passed (Full A/B)
330
- - [ ] File is self-contained — test: can be read without ANY prior context
331
-
332
- ## Handoff
333
- The `$handoff` output serves as input for: the next agent in the pipeline, `$board` (status updates), `$session-prompt-generator` (for cross-session handoffs).
334
-
335
- ## Anti-patterns
336
-
337
- | Error | Why it's bad | How to do it right |
338
- |-------|-------------|---------------------|
339
- | Handoff without `$gates` | Unverified artifacts → problems at next gate | Always `$gates` PASS → then handoff |
340
- | Handoff without Approved | Protocol violation, user is unaware | Always wait for explicit Approved |
341
- | Session handoff with links instead of content | Next session has no access to context | FULL text of artifacts in file |
342
- | «Do the analysis» instead of a task | Agent does not know the scope | Specific task with parameters and expected deliverable |
343
- | Transfer without artifacts | Next agent works blind | All artifacts from registry attached |
344
- | Reverse handoff without specifics | Agent does not know what to fix | Specific gaps + what NOT to touch |
345
- | Not updating `$board` | Board is out of sync | Update `$board` at every handoff |
346
- | Context lost between sessions | Next session starts from scratch | Cross-session handoff with full content |
347
- | Recipient did not confirm loading | Unclear if all artifacts were received and understood | Receive Acknowledgement at start of next gate's work |
348
- | Damaged session file | Next session works with incomplete data | Recovery protocol: verification on load |
349
- | Camp contamination in Full A/B | Beta sees Alpha artifacts before Mediator → anchoring | Explicit filter in Step 1 + independence check in validation |
350
-
351
- ## Output Templates
352
-
353
- ### Forward Handoff (within session)
354
-
355
- ```
356
- ### Handoff Envelope — [ID From] [Agent From] → [ID To] [Agent To]
357
-
358
- **Type:** Forward
359
- **Mode:** [/ship-right-thing | /shape-prioritize | /quick-pm | /spec]
360
- **Session:** [N]
361
- **Camp:** (Customer/Build) | β (Business/Cut) | —]
362
- **Gate Check:** [PASS / CONDITIONAL PASS] (iteration [N])
363
- **Date:** [YYYY-MM-DD]
364
-
365
- ---
366
-
367
- **Artifacts:**
368
- - [Artifact 1 description]
369
- - [Artifact 2 description]
370
-
371
- **Gaps (if CONDITIONAL):**
372
- - [Gap 1 what to account for]
373
-
374
- **Independence Check (Full A/B only):**
375
- - Excluded: [artifacts from opposing camp, if applicable]
376
-
377
- ---
378
-
379
- **Task for [Agent To]:**
380
- [Clear specific formulation]
381
-
382
- **Expected deliverable:**
383
- [What the next agent must return]
384
-
385
- **Blockers:**
386
- [List or «None»]
387
-
388
- ---
389
-
390
- → Awaiting **"Approved"** to proceed to **[ID To] [Agent To]**
391
- ```
392
-
393
- ### Reverse Handoff
394
-
395
- ```
396
- ### Reverse Handoff[ID From] [Agent From] → [ID To] [Agent To] (return)
397
-
398
- **Type:** Reverse
399
- **Reason:** [FAIL / feedback / data discrepancies]
400
- **Date:** [YYYY-MM-DD]
401
-
402
- ---
403
-
404
- **What to fix:**
405
- | # | Gap / Comment | Sev | Specific action |
406
- |---|--------------|:---:|-----------------|
407
- | 1 | [description] | [B] | [what to do] |
408
-
409
- **What NOT to touch:**
410
- - [Artifact / section that has already been approved]
411
-
412
- ---
413
-
414
- After rework re-run `$gates` check (iteration [N+1])
415
- → Awaiting **"Approved"** for return
416
- ```
417
-
418
- ### Receive Acknowledgement (start of recipient's work)
419
-
420
- ```
421
- **Handoff received:** [ID From] → [ID To]
422
- **Artifacts loaded:** [N] items
423
- - [Artifact 1] received
424
- - [Artifact 2] — ✅ received
425
-
426
- **Gaps accepted:** [list or «None»]
427
- **Camp-isolation (Full A/B):** [Verified / N/A]
428
- **Loading issues:** [list or «None»]
429
- ```
430
-
431
- ## Common handoff-document rules (cross-domain)
432
-
433
- > 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/product/session-N-handoff.md` for a lightweight conversation summary.
434
-
435
- 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.
436
- 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.
437
- 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/product/` — that rule still applies there; this one applies to the temp variant.)
438
- 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.
439
- 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. For Full A/B modes, the next-session focus may be tied to a specific camp — reflect that in the suggested-skills list.
1
+ ---
2
+ name: handoff
3
+ description: Transferring artifacts between gates and sessions — structured format with decision context
4
+ type: mandatory
5
+ domain: product
6
+ owners:
7
+ - conductor
8
+ gates:
9
+ - DISCOVERY
10
+ - PRODUCT_STRATEGIST
11
+ - PM
12
+ - UX_DESIGNER
13
+ - TECH_LEAD
14
+ - DATA_ANALYST
15
+ - MEDIATOR
16
+ - DESIGNER
17
+ - LAYOUTER
18
+ - RELEASE_GATE
19
+ tech: []
20
+ topic: []
21
+ triggers:
22
+ - handoff
23
+ - передача
24
+ - session handoff
25
+ related: []
26
+ budget_lines: 463
27
+ schema_version: 1
28
+ ---
29
+ # Handoff — Transferring Context Between Gates and Sessions
30
+
31
+ ## When to Use
32
+ - At **every transition** between gates within a session — standard transfer (intra-session handoff).
33
+ - At **session completion** cross-session transfer (multi-session handoff), saved to file.
34
+ - When **returning for rework** reverse handoff.
35
+ - **Required** at every transition, in any pipeline mode. No exceptions.
36
+
37
+ > **Distinction:** `$gates` checks readiness. `$handoff` transfers work. `$board` tracks status. Order: `$gates` PASS → `$handoff` → update `$board`.
38
+
39
+ ## Input
40
+
41
+ | Field | Required | Description |
42
+ |-------|:--------:|-------------|
43
+ | `$gates` result | | PASS or CONDITIONAL PASS handoff is impossible on FAIL |
44
+ | Sending agent | | Who is transferring (current gate with ID) |
45
+ | Receiving agent | ✅ | To whom (next gate with ID) |
46
+ | Gate artifacts | | Deliverables of the current gate (from `$gates` registry) |
47
+ | Pipeline mode | ✅ | Full A (`/ship-right-thing`) / Full B (`/shape-prioritize`) / Quick (`/quick-pm`) / Spec (`/spec`) |
48
+ | Handoff type | | Forward / Reverse / Session (cross-session) |
49
+ | Adversarial camp | ⬚ | For Full A/B when transferring between camps (via Mediator) |
50
+ | Session number | ⬚ | For cross-session handoff current and next session |
51
+
52
+ > **Precondition:** Handoff is only possible after `$gates` PASS or CONDITIONAL PASS. On FAIL — return to agent, handoff is not executed.
53
+
54
+ ### Related Skills
55
+ | Skill | Interaction | When |
56
+ |-------|-------------|------|
57
+ | `$gates` | Precondition: PASS / CONDITIONAL PASS enables handoff. Gate check attached to envelope | Before each handoff |
58
+ | `$board` | After handoff: update gate statuses (current `[✓]`, next `[→]`) | After each handoff |
59
+ | `$session-prompt-generator` | For Session handoff: generate next session prompt, included in file | On session completion |
60
+ | Framework skills (jtbd, prd, rice etc.) | Skill artifacts (completed templates) part of gate deliverables | When transferring between agents |
61
+
62
+ ## Handoff Types
63
+
64
+ | Type | Description | File | Next recipient context |
65
+ |------|-------------|------|------------------------|
66
+ | **Forward** | Standard transfer between gates within session | No (in memory) | Full session context available |
67
+ | **Reverse** | Return for rework | No (in memory) | Full session context available |
68
+ | **Session** | Cross-session transfer | `docs/product/session-N-handoff.md` | **ZERO** prior context file must be self-contained |
69
+
70
+ > **Key rule for cross-session handoff:** The next session starts with ZERO context. The handoff file is the sole source of information. No references to «see above» or «as discussed». Everything must be in the file.
71
+
72
+ > **Key rule for adversarial independence:** In Full A/B when transferring the Discovery Brief to both camps — **both packages are identical**. Alpha and Beta do not see each other's artifacts until Mediator. Session-handoff Camp Alpha is **NOT passed** to Beta before MED-01.
73
+
74
+ ## Transfer Registry — What to Transfer
75
+
76
+ ### Full Pipeline A (`/ship-right-thing`, 6 sessions)
77
+
78
+ | Transition | Artifacts | Key context |
79
+ |------------|-----------|-------------|
80
+ | **COND-01 DISC-01** | Task scope, mode, board, adversarial context | Product question, constraints, ICP, current metrics |
81
+ | **DISC-01Session Handoff** | Discovery Brief (JTBD, problems, assumptions, evidence) | All discovery evidence, open questions |
82
+ | **COND-02STRAT-01α** | Session-1 handoff (Discovery Brief), camp assignment | Discovery Brief + explicit «you are Customer-Champion» |
83
+ | **STRAT-01αSession Handoff** | Strategy Brief Alpha (vision, NSM, OKR, roadmap) | Customer-Champion package for Mediator isolated from Beta |
84
+ | **COND-03STRAT-02β** | Session-1 handoff (Discovery Brief, same as given to Alpha) | **WITHOUT** Session-2-handoff! Discovery only |
85
+ | **STRAT-02β → Session Handoff** | Strategy Brief Beta | Business-Champion package for Mediator |
86
+ | **COND-04MED-01** | Session-2 + Session-3 handoff (both) | First gate where both camps are visible simultaneously |
87
+ | **MED-01 → Session Handoff** | Unified Strategy Brief (synthesis + rationale) | Final strategy, evidence audit, synthesis path |
88
+ | **COND-05 PM-SPEC** | Session-4 handoff (unified strategy) + Discovery Brief | Strategy for scope decisions |
89
+ | **PM-SPEC → UX-01 + TECH-01 + DATA-01** (parallel) | PRD + user stories + AC | Each receives their part for parallel work |
90
+ | **Session 5 → Session Handoff** | Combined S5 deliverable (PRD + wireframes + feasibility + metric plan) | Everything ready for final packaging |
91
+ | **COND-06 → DS-01** | Session-5 handoff + design directive | Content for layout |
92
+ | **DS-01 → LY-01** | Design spec (layout + components) | Ready templates for HTML/PDF |
93
+ | **LY-01 → RG-01** | Final PRD + Product Review Deck (PDF) | Release-ready package |
94
+
95
+ ### Full Pipeline B (`/shape-prioritize`, 6 sessions)
96
+
97
+ | Transition | Artifacts | Key context |
98
+ |------------|-----------|-------------|
99
+ | **COND-01 DISC-01** | Task scope, approved strategy (from prior /ship-right-thing or external) | Scope boundaries for prioritization |
100
+ | **DISC-01 → Session Handoff** | Scope Brief (WHAT we're prioritizing, which JTBD in scope) | Scope boundaries for both camps |
101
+ | **COND-02 → PM-01α + TECH-01α** (parallel) | Session-1 handoff, Build-camp assignment | Scope Brief + «you are Build-Camp: maximum scope, every feature justified» |
102
+ | **PM-01α / TECH-01α → Session Handoff** | Build scope proposal (max RICE) + feasibility per story | Max-scope package for Mediator |
103
+ | **COND-03 → PM-02β + TECH-02β** (parallel) | Session-1 handoff (same Scope Brief) | **WITHOUT** Session-2! Cut-camp does not see Build artifacts |
104
+ | **PM-02β / TECH-02β Session Handoff** | Cut scope proposal (MoSCoW) + hidden risks | Min-scope package for Mediator |
105
+ | **COND-04MED-01** | Session-2 + Session-3 handoff | Build vs Cut simultaneously |
106
+ | **MED-01Session Handoff** | Final scope decision + rationale | Approved scope + out-of-scope list |
107
+ | **COND-05 → PM-SPEC** | Session-4 handoff (final scope) | Ready to write final PRD |
108
+ | **PM-SPEC UX-01 + DATA-01** (parallel) | PRD | Parallel work on scope |
109
+ | **Session 5 → Session Handoff** | PRD + wireframes + metric plan | Packaging for PDF |
110
+ | **COND-06 DS-01 → LY-01 → RG-01** | Standard packaging | — |
111
+
112
+ ### Quick Pipeline (`/quick-pm`, 1 session)
113
+
114
+ | Transition | Artifacts | Key context |
115
+ |------------|-----------|-------------|
116
+ | **COND-01 → DISC-01** | Focused question | Short scope |
117
+ | **DISC-01 → STRAT-01** | Rough JTBD + problem statement | Strategy alignment input |
118
+ | **STRAT-01 → PM-01** | NSM, theme, strategic fit | For rough RICE |
119
+ | **PM-01 → TECH-01** | Rough RICE, MVP sketch (3-5 stories) | For feasibility |
120
+ | **TECH-01 → DATA-01** | Feasibility, risks | For metric sketch |
121
+ | **DATA-01 → Short Brief** | Primary metric, guardrail, target | Final brief |
122
+
123
+ ### Spec Pipeline (`/spec`, 1 session)
124
+
125
+ | Transition | Artifacts | Key context |
126
+ |------------|-----------|-------------|
127
+ | **COND-01 PM-SPEC** | Approved strategy + scope | Ready to write PRD |
128
+ | **PM-SPEC → UX-01 + TECH-01** (parallel) | PRD draft | Parallel review |
129
+ | **UX + TECH → PM-FINAL** | UX flows + feasibility + NFR | Merge into PRD |
130
+ | **PM-FINAL Handoff to Engineering** | Final PRD | Implementation ready |
131
+
132
+ ## Cross-Session Handoff (Session)
133
+
134
+ ### File structure `docs/product/session-N-handoff.md`
135
+
136
+ The file contains **all** necessary context. No references, no abbreviations.
137
+
138
+ ```markdown
139
+ # Session [N] Handoff — [Initiative Name]
140
+
141
+ ## Meta
142
+ - **Project:** [Name]
143
+ - **Date:** [YYYY-MM-DD]
144
+ - **Session:** [N] of [M]
145
+ - **Mode:** /ship-right-thing | /shape-prioritize | /quick-pm | /spec
146
+ - **Adversarial camp** (if applicable): Alpha (Customer / Build) | Beta (Business / Cut) |
147
+ - **Completed gates:** [list of IDs with deliverables]
148
+ - **Next gate:** [ID] [Name]
149
+
150
+ ## Brief Summary
151
+ [2-3 sentences: what was done in this session, key result]
152
+
153
+ ## Board State ($board)
154
+ [Full copy of the board table in its current state + progress metrics]
155
+
156
+ ## Full Artifact Contents
157
+
158
+ ### [Artifact 1 — e.g., Discovery Brief]
159
+ [FULL TEXT of the artifact, not a link or brief description]
160
+
161
+ ### [Artifact 2 e.g., JTBD Canvas]
162
+ [FULL TEXT of the artifact]
163
+
164
+ ### [Artifact N — ...]
165
+ [FULL TEXT]
166
+
167
+ ## Decisions and Context
168
+ | # | Decision | Rationale | Made by | Affects |
169
+ |---|----------|-----------|---------|---------|
170
+ | 1 | [What was decided] | [Why] | [User / Conductor] | [Which gates] |
171
+
172
+ ## Open Questions and Blockers
173
+ | # | Question / Blocker | Severity | For which gate | Status |
174
+ |---|-------------------|:--------:|:--------------:|--------|
175
+ | 1 | [Description] | 🔴/🟡/🟢 | [Gate ID] | Open / Resolved |
176
+
177
+ ## Camp Independence Check (Full A/B)
178
+ - [ ] This handoff does **NOT** contain artifacts from the opposing camp (if applicable)
179
+ - [ ] If handoff goes to Camp Beta — Alpha artifacts are excluded
180
+ - [ ] Mediator receives **both** session-handoffs (explicitly)
181
+
182
+ ## Cumulative Index
183
+ | Session | Gates | Key Artifacts | File |
184
+ |---------|-------|---------------|------|
185
+ | 1 | COND-01, DISC-01 | Discovery Brief, JTBD canvas | session-1-handoff.md |
186
+ | 2 | STRAT-01α | Strategy Brief Alpha | session-2-handoff.md |
187
+ | [N] | [...] | [...] | session-N-handoff.md |
188
+
189
+ ## Prompt for Next Session
190
+ [Generated via $session-prompt-generator ready-to-paste prompt]
191
+
192
+ ## Verification Checklist
193
+ - [ ] All artifacts included in full (not as links)
194
+ - [ ] Task board ($board) saved in current state
195
+ - [ ] Decisions and context recorded
196
+ - [ ] Open questions / blockers recorded
197
+ - [ ] Cumulative index is up to date
198
+ - [ ] Prompt for next session generated
199
+ - [ ] Camp independence check passed (Full A/B)
200
+ - [ ] File is self-contained test: can be read without ANY prior context
201
+ ```
202
+
203
+ ### Recovery Protocol (damaged / incomplete handoff)
204
+
205
+ When loading a session handoff in a new session Conductor performs verification:
206
+
207
+ | Check | Action on failure |
208
+ |-------|-------------------|
209
+ | File not found | Request path from user or reconstruct from previous session memory |
210
+ | Artifacts incomplete (links instead of content) | Mark as ⚠️, request missing content from user |
211
+ | Cumulative index does not match content | Rebuild index from actual file contents |
212
+ | Prompt missing | Generate via `$session-prompt-generator` |
213
+ | Board missing | Restore from cumulative index + artifacts |
214
+ | Camp contamination detected | 🔴 Critical: stop, escalate, recreate handoff with filtering |
215
+
216
+ > On any recovery explicitly notify the user that the handoff was incomplete and what was restored.
217
+
218
+ ## Reverse Handoff
219
+
220
+ ### When it happens
221
+ - `$gates` — FAIL.
222
+ - Mediator discovered critical data discrepancies.
223
+ - User requested rework.
224
+ - Next gate discovered a problem with an artifact from the previous gate.
225
+
226
+ ### Reverse handoff protocol
227
+ 1. State the **reason for return** specific gaps / comments.
228
+ 2. State **exactly what to rework** not «redo it», but «verify evidence for assumption X: Discovery has 0 interviews for this segment, need 5+».
229
+ 3. State **what NOT to touch** what has already been approved and needs no changes.
230
+ 4. Update `$board` receiving gate `[↩] Returned`, sending gate → `[→] In Progress`.
231
+ 5. After reworkre-run `$gates` check forward handoff.
232
+
233
+ ## Receive Acknowledgement
234
+
235
+ Upon receiving a handoff the receiving agent must:
236
+
237
+ 1. **Confirm loading:** «Handoff from [ID] received, [N] artifacts loaded».
238
+ 2. **List received:** list of artifacts with brief description.
239
+ 3. **Note gaps:** if CONDITIONAL PASS explicitly list received gaps.
240
+ 4. **Record issues:** if an artifact is incomplete or unclear — request clarification before starting work (do not guess).
241
+
242
+ > Acknowledge is embedded in the beginning of the next gate's work. It is not a separate step, but the first paragraph of the deliverable.
243
+
244
+ ## Protocol
245
+
246
+ ### Step 0 Determine handoff type
247
+ 1. Forward (within session), Reverse (return), Session (cross-session).
248
+ 2. For Session — determine file path: `docs/product/session-N-handoff.md`.
249
+ 3. For Full A/B — verify camp isolation (if handoff goes alpha → beta without Mediator — **prohibited**).
250
+
251
+ ### Step 1 — Preconditions
252
+ 1. Confirm that `$gates` gave PASS or CONDITIONAL PASS (except Reverse).
253
+ 2. Identify the receiving agent from the registry.
254
+ 3. Collect all artifacts from the transfer registry.
255
+ 4. For Full A/B **filter out** artifacts from the opposing camp (if cross-camp handoff).
256
+
257
+ ### Step 2 — Form the envelope
258
+ 1. For Forward: fill in the standard envelope template.
259
+ 2. For Session: fill in the file template, include FULL artifact contents.
260
+ 3. For Reverse: fill in the reverse envelope with gaps.
261
+ 4. For CONDITIONAL PASS explicitly state the gaps being transferred.
262
+
263
+ ### Step 3 — User sign-off
264
+ 1. Show envelope to user.
265
+ 2. Await explicit **"Approved"**.
266
+ 3. Do not proceed without Approved. No exceptions.
267
+
268
+ ### Step 4 Save and activate
269
+ 1. For Session: save file to `docs/product/session-N-handoff.md`.
270
+ 2. Update `$board`: current gate → `[✓] Completed`, next → `[→] In Progress`.
271
+ 3. Add entry to the transfer log.
272
+ 4. For Session: call `$session-prompt-generator` to generate the prompt.
273
+
274
+ ## Example — Forward Handoff COND-03 STRAT-02β (TeamFlow, `/ship-right-thing`)
275
+
276
+ **Context:** TeamFlow (B2B SaaS, HR-tech). Session 3: assigning Camp Beta (Business-Champion). Important: Beta receives ONLY the Discovery Brief, without Session-2 handoff (Alpha artifacts).
277
+
278
+ ```
279
+ ### Handoff Envelope COND-03 STRAT-02β Product Strategist (Business-Champion)
280
+
281
+ **Type:** Forward
282
+ **Mode:** /ship-right-thing (Full A)
283
+ **Session:** 3
284
+ **Camp:** Beta (Business-Champion)
285
+ **Gate Check:** PASS (camp assignment + independence verified)
286
+ **Date:** 2026-04-12
287
+
288
+ ---
289
+
290
+ **Artifacts:**
291
+
292
+ 1. **Discovery Brief** (from session-1-handoff.md) FULL text:
293
+ - ICP: mid-market HR-tech (100-500 employees)
294
+ - Buyer: VP People/HR
295
+ - End-user: People managers + ICs
296
+ - JTBD canvas (buyer + end-user separate)
297
+ - Top 3 problem statements
298
+ - Assumption map (12 assumptions, 4 high-risk)
299
+
300
+ 2. **Camp Assignment:** Business-Champion
301
+ - You play the role of Business-Champion (β)
302
+ - Focus: strategy around revenue, margin, strategic moat, competitive positioning
303
+ - Do not play user-value angle (that is Alpha, working in parallel)
304
+
305
+ **Independence Check:**
306
+ - ⛔ Camp Alpha (Customer-Champion) Strategy Brief **NOT passed** — Beta works independently
307
+ - Session-2-handoff.md exists, but **explicitly excluded** from this envelope
308
+
309
+ ---
310
+
311
+ **Task for STRAT-02β:**
312
+
313
+ Using **only the Discovery Brief**, form a Business-Champion Strategy Brief for the TeamFlow initiative «AI-powered 1:1 note summarization».
314
+
315
+ Include:
316
+ - Vision (business outcomes: ARR, moat, NRR angle)
317
+ - North Star Metric (business-value metric)
318
+ - OKR (quarterly)
319
+ - Product Roadmap (themes)
320
+ - Rationale: why this approach from a business perspective
321
+
322
+ **Expected deliverable:**
323
+ Strategy Brief Beta (markdown), ~800-1200 words, with an explicit business-angle argument.
324
+
325
+ **Blockers:** None
326
+
327
+ ---
328
+
329
+ Awaiting **"Approved"** to proceed to **STRAT-02β Product Strategist (Business-Champion)**
330
+ ```
331
+
332
+ ## Validation (Quality Gate)
333
+
334
+ ### Standard (Forward) envelope
335
+ - [ ] `$gates` result attached (PASS / CONDITIONAL PASS)
336
+ - [ ] Sending and receiving agents specified with gate IDs
337
+ - [ ] All artifacts from the transfer registry attached
338
+ - [ ] Task for the next agent formulated specifically
339
+ - [ ] Gaps (if CONDITIONAL) explicitly listed
340
+ - [ ] Context transferred
341
+ - [ ] For Full A/B camp independence verified
342
+ - [ ] User Approved received
343
+ - [ ] `$board` updated
344
+
345
+ ### Cross-session (Session) envelope additionally
346
+ - [ ] File saved at path `docs/product/session-N-handoff.md`
347
+ - [ ] All artifacts included as **full text** (not links or summaries)
348
+ - [ ] Board state saved
349
+ - [ ] Decisions and context recorded
350
+ - [ ] Open questions / blockers recorded
351
+ - [ ] Cumulative index is up to date
352
+ - [ ] Prompt for next session generated
353
+ - [ ] Camp independence check passed (Full A/B)
354
+ - [ ] File is self-contained — test: can be read without ANY prior context
355
+
356
+ ## Handoff
357
+ The `$handoff` output serves as input for: the next agent in the pipeline, `$board` (status updates), `$session-prompt-generator` (for cross-session handoffs).
358
+
359
+ ## Anti-patterns
360
+
361
+ | Error | Why it's bad | How to do it right |
362
+ |-------|-------------|---------------------|
363
+ | Handoff without `$gates` | Unverified artifacts → problems at next gate | Always `$gates` PASS → then handoff |
364
+ | Handoff without Approved | Protocol violation, user is unaware | Always wait for explicit Approved |
365
+ | Session handoff with links instead of content | Next session has no access to context | FULL text of artifacts in file |
366
+ | «Do the analysis» instead of a task | Agent does not know the scope | Specific task with parameters and expected deliverable |
367
+ | Transfer without artifacts | Next agent works blind | All artifacts from registry attached |
368
+ | Reverse handoff without specifics | Agent does not know what to fix | Specific gaps + what NOT to touch |
369
+ | Not updating `$board` | Board is out of sync | Update `$board` at every handoff |
370
+ | Context lost between sessions | Next session starts from scratch | Cross-session handoff with full content |
371
+ | Recipient did not confirm loading | Unclear if all artifacts were received and understood | Receive Acknowledgement at start of next gate's work |
372
+ | Damaged session file | Next session works with incomplete data | Recovery protocol: verification on load |
373
+ | Camp contamination in Full A/B | Beta sees Alpha artifacts before Mediator → anchoring | Explicit filter in Step 1 + independence check in validation |
374
+
375
+ ## Output Templates
376
+
377
+ ### Forward Handoff (within session)
378
+
379
+ ```
380
+ ### Handoff Envelope — [ID From] [Agent From] → [ID To] [Agent To]
381
+
382
+ **Type:** Forward
383
+ **Mode:** [/ship-right-thing | /shape-prioritize | /quick-pm | /spec]
384
+ **Session:** [N]
385
+ **Camp:** [α (Customer/Build) | β (Business/Cut) | —]
386
+ **Gate Check:** [PASS / CONDITIONAL PASS] (iteration [N])
387
+ **Date:** [YYYY-MM-DD]
388
+
389
+ ---
390
+
391
+ **Artifacts:**
392
+ - [Artifact 1 — description]
393
+ - [Artifact 2 — description]
394
+
395
+ **Gaps (if CONDITIONAL):**
396
+ - [Gap 1what to account for]
397
+
398
+ **Independence Check (Full A/B only):**
399
+ - Excluded: [artifacts from opposing camp, if applicable]
400
+
401
+ ---
402
+
403
+ **Task for [Agent To]:**
404
+ [Clear specific formulation]
405
+
406
+ **Expected deliverable:**
407
+ [What the next agent must return]
408
+
409
+ **Blockers:**
410
+ [List or «None»]
411
+
412
+ ---
413
+
414
+ Awaiting **"Approved"** to proceed to **[ID To] [Agent To]**
415
+ ```
416
+
417
+ ### Reverse Handoff
418
+
419
+ ```
420
+ ### Reverse Handoff — [ID From] [Agent From] → [ID To] [Agent To] (return)
421
+
422
+ **Type:** Reverse
423
+ **Reason:** [FAIL / feedback / data discrepancies]
424
+ **Date:** [YYYY-MM-DD]
425
+
426
+ ---
427
+
428
+ **What to fix:**
429
+ | # | Gap / Comment | Sev | Specific action |
430
+ |---|--------------|:---:|-----------------|
431
+ | 1 | [description] | [B] | [what to do] |
432
+
433
+ **What NOT to touch:**
434
+ - [Artifact / section that has already been approved]
435
+
436
+ ---
437
+
438
+ After rework re-run `$gates` check (iteration [N+1])
439
+ Awaiting **"Approved"** for return
440
+ ```
441
+
442
+ ### Receive Acknowledgement (start of recipient's work)
443
+
444
+ ```
445
+ **Handoff received:** [ID From] → [ID To]
446
+ **Artifacts loaded:** [N] items
447
+ - [Artifact 1] — ✅ received
448
+ - [Artifact 2] — ✅ received
449
+
450
+ **Gaps accepted:** [list or «None»]
451
+ **Camp-isolation (Full A/B):** [Verified / N/A]
452
+ **Loading issues:** [list or «None»]
453
+ ```
454
+
455
+ ## Common handoff-document rules (cross-domain)
456
+
457
+ > 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/product/session-N-handoff.md` for a lightweight conversation summary.
458
+
459
+ 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.
460
+ 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.
461
+ 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/product/` — that rule still applies there; this one applies to the temp variant.)
462
+ 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.
463
+ 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. For Full A/B modes, the next-session focus may be tied to a specific camp — reflect that in the suggested-skills list.