code-ai-installer 4.0.1-b → 4.0.1

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 (128) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +5 -5
  3. package/dist/catalog.js +1 -1
  4. package/dist/contentTransformer.d.ts +1 -1
  5. package/dist/contentTransformer.js +39 -0
  6. package/dist/index.js +10 -5
  7. package/dist/mcp/cli.js +4 -4
  8. package/dist/mcp/scorecard.d.ts +2 -2
  9. package/dist/mcp/task_state.d.ts +2 -2
  10. package/dist/mcp/tools/advance_gate.js +1 -1
  11. package/dist/mcp/tools/classify_gate.d.ts +2 -2
  12. package/dist/mcp/tools/classify_gate.js +2 -2
  13. package/dist/mcp/tools/load_role.d.ts +2 -2
  14. package/dist/mcp/tools/load_role.js +2 -2
  15. package/dist/mcp/tools/report_exception.d.ts +3 -3
  16. package/dist/mcp/tools/report_exception.js +4 -4
  17. package/dist/mcp/tools/request_decision.d.ts +3 -3
  18. package/dist/mcp/tools/request_decision.js +5 -5
  19. package/dist/mcp/tools/review_proposal.d.ts +1 -1
  20. package/dist/mcp/tools/review_proposal.js +6 -6
  21. package/dist/mcp/tools/sign_off.d.ts +2 -2
  22. package/dist/mcp/tools/sign_off.js +7 -7
  23. package/dist/mcp/tools/verify_claim.d.ts +1 -1
  24. package/dist/mcp/tools/verify_claim.js +1 -1
  25. package/dist/mcp_setup.d.ts +84 -31
  26. package/dist/mcp_setup.js +182 -66
  27. package/dist/platforms/adapters.js +54 -19
  28. package/dist/shared/frontmatter.js +1 -1
  29. package/dist/shared/persona.d.ts +1 -1
  30. package/dist/shared/persona.js +1 -1
  31. package/dist/shared/pipeline.d.ts +10 -10
  32. package/dist/shared/pipeline.js +7 -7
  33. package/dist/shared/tools.d.ts +15 -15
  34. package/dist/shared/tools.js +3 -3
  35. package/dist/shared/vocabulary.d.ts +4 -4
  36. package/dist/shared/vocabulary.js +4 -4
  37. package/dist/types.d.ts +1 -1
  38. package/domains/analytics/.agents/workflows/analytics-pipeline-rules.md +13 -3
  39. package/domains/analytics/.agents/workflows/analyze.md +1 -0
  40. package/domains/analytics/.agents/workflows/quick-insight.md +1 -0
  41. package/domains/analytics/locales/en/.agents/workflows/analytics-pipeline-rules.md +13 -3
  42. package/domains/analytics/locales/en/.agents/workflows/analyze.md +1 -0
  43. package/domains/analytics/locales/en/.agents/workflows/quick-insight.md +1 -0
  44. package/domains/analytics/locales/en/agents/interviewer.md +2 -1
  45. package/domains/analytics/locales/en/agents/layouter.md +2 -1
  46. package/domains/analytics/locales/en/agents/mediator.md +2 -1
  47. package/domains/analytics/locales/en/agents/researcher.md +2 -1
  48. package/domains/analytics/locales/en/agents/strategist.md +2 -1
  49. package/domains/analytics/pipeline.yaml +10 -10
  50. package/domains/content/.agents/skills/content-release-gate/SKILL.md +3 -5
  51. package/domains/content/.agents/workflows/content-pipeline-rules.md +14 -11
  52. package/domains/content/.agents/workflows/edit-content.md +0 -1
  53. package/domains/content/.agents/workflows/quick-post.md +0 -1
  54. package/domains/content/.agents/workflows/start-content.md +0 -1
  55. package/domains/content/agents/conductor.md +1 -2
  56. package/domains/content/locales/en/.agents/skills/content-release-gate/SKILL.md +3 -5
  57. package/domains/content/locales/en/.agents/workflows/content-pipeline-rules.md +14 -11
  58. package/domains/content/locales/en/.agents/workflows/edit-content.md +0 -1
  59. package/domains/content/locales/en/.agents/workflows/quick-post.md +0 -1
  60. package/domains/content/locales/en/.agents/workflows/start-content.md +0 -1
  61. package/domains/content/locales/en/agents/conductor.md +1 -2
  62. package/domains/content/pipeline.yaml +8 -8
  63. package/domains/development/.agents/skills/handoff/SKILL.md +276 -276
  64. package/domains/development/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  65. package/domains/development/.agents/skills/mcp-integration/SKILL.md +211 -211
  66. package/domains/development/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  67. package/domains/development/.agents/workflows/bugfix.md +16 -82
  68. package/domains/development/.agents/workflows/hotfix.md +16 -66
  69. package/domains/development/.agents/workflows/pipeline-rules.md +49 -132
  70. package/domains/development/.agents/workflows/start-task.md +17 -121
  71. package/domains/development/AGENTS.md +8 -3
  72. package/domains/development/agents/architect.md +247 -247
  73. package/domains/development/agents/conductor.md +363 -363
  74. package/domains/development/agents/devops.md +297 -297
  75. package/domains/development/agents/reviewer.md +293 -293
  76. package/domains/development/agents/senior_full_stack.md +295 -295
  77. package/domains/development/agents/tester.md +395 -395
  78. package/domains/development/locales/en/.agents/skills/handoff/SKILL.md +276 -276
  79. package/domains/development/locales/en/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  80. package/domains/development/locales/en/.agents/skills/mcp-integration/SKILL.md +211 -211
  81. package/domains/development/locales/en/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  82. package/domains/development/locales/en/.agents/workflows/bugfix.md +16 -82
  83. package/domains/development/locales/en/.agents/workflows/hotfix.md +15 -65
  84. package/domains/development/locales/en/.agents/workflows/pipeline-rules.md +48 -131
  85. package/domains/development/locales/en/.agents/workflows/start-task.md +17 -121
  86. package/domains/development/locales/en/AGENTS.md +15 -0
  87. package/domains/development/locales/en/agents/architect.md +247 -247
  88. package/domains/development/locales/en/agents/conductor.md +363 -363
  89. package/domains/development/locales/en/agents/devops.md +297 -297
  90. package/domains/development/locales/en/agents/reviewer.md +293 -293
  91. package/domains/development/locales/en/agents/senior_full_stack.md +295 -295
  92. package/domains/development/locales/en/agents/tester.md +395 -395
  93. package/domains/development/locales/en/prompt-examples.md +34 -120
  94. package/domains/development/pipeline.yaml +150 -135
  95. package/domains/development/prompt-examples.md +33 -119
  96. package/domains/product/.agents/workflows/product-pipeline-rules.md +13 -2
  97. package/domains/product/.agents/workflows/quick-pm.md +1 -1
  98. package/domains/product/.agents/workflows/shape-prioritize.md +1 -0
  99. package/domains/product/.agents/workflows/ship-right-thing.md +1 -0
  100. package/domains/product/.agents/workflows/spec.md +1 -0
  101. package/domains/product/agents/tech_lead.md +1 -1
  102. package/domains/product/locales/en/.agents/workflows/product-pipeline-rules.md +13 -2
  103. package/domains/product/locales/en/.agents/workflows/quick-pm.md +1 -1
  104. package/domains/product/locales/en/.agents/workflows/shape-prioritize.md +1 -0
  105. package/domains/product/locales/en/.agents/workflows/ship-right-thing.md +1 -0
  106. package/domains/product/locales/en/.agents/workflows/spec.md +1 -0
  107. package/domains/product/locales/en/agents/conductor.md +2 -2
  108. package/domains/product/locales/en/agents/data_analyst.md +2 -1
  109. package/domains/product/locales/en/agents/designer.md +2 -1
  110. package/domains/product/locales/en/agents/discovery.md +2 -1
  111. package/domains/product/locales/en/agents/layouter.md +2 -1
  112. package/domains/product/locales/en/agents/mediator.md +2 -1
  113. package/domains/product/locales/en/agents/pm.md +2 -1
  114. package/domains/product/locales/en/agents/product_strategist.md +2 -1
  115. package/domains/product/locales/en/agents/tech_lead.md +3 -2
  116. package/domains/product/locales/en/agents/ux_designer.md +2 -1
  117. package/domains/product/pipeline.yaml +12 -12
  118. package/package.json +5 -5
  119. package/domains/analytics/CONTEXT.md +0 -25
  120. package/domains/analytics/locales/en/CONTEXT.md +0 -25
  121. package/domains/content/CONTEXT.md +0 -19
  122. package/domains/content/locales/en/CONTEXT.md +0 -19
  123. package/domains/development/.agents/workflows/auto-restart-containers.md +0 -56
  124. package/domains/development/CONTEXT.md +0 -62
  125. package/domains/development/locales/en/.agents/workflows/auto-restart-containers.md +0 -24
  126. package/domains/development/locales/en/CONTEXT.md +0 -62
  127. package/domains/product/CONTEXT.md +0 -40
  128. package/domains/product/locales/en/CONTEXT.md +0 -40
@@ -1,276 +1,276 @@
1
- ---
2
- name: handoff
3
- description: "Forming a Context Pack and assigning a task to an agent — goals, constraints, artifacts, decisions, questions, Definition of Done. Requires a standard reply format."
4
- type: mandatory
5
- domain: development
6
- owners:
7
- - conductor
8
- gates:
9
- - PM
10
- - UX
11
- - ARCH
12
- - DEV
13
- - REV
14
- - OPS
15
- - TEST
16
- - RG
17
- tech: []
18
- topic:
19
- - orchestration
20
- triggers:
21
- - hand off task
22
- - Context Pack
23
- - agent briefing
24
- - handoff format
25
- - goals and constraints
26
- - Definition of Done
27
- - task for agent
28
- related:
29
- - ux-discovery
30
- - ux-spec
31
- - ui-inventory
32
- - a11y-baseline
33
- - architecture-doc
34
- - adr-log
35
- - api-contracts
36
- - data-model
37
- - tdd-workflow
38
- - testing-strategy-js
39
- - code-review-checklist
40
- - security-review
41
- - performance-review-baseline
42
- - deployment-ci-plan
43
- - deployment-ci-plan-reference
44
- - qa-test-plan
45
- - qa-manual-run
46
- - qa-api-contract-tests
47
- - qa-security-smoke-tests
48
- - release-gate
49
- - release-gate-checklist-template
50
- - gates
51
- - board
52
- - memory
53
- budget_lines: 280
54
- schema_version: 1
55
- ---
56
-
57
-
58
- # Skill: Context Pack Handoff
59
-
60
- Transferring tasks between gates with full context.
61
-
62
- **Sections:**
63
- 1. [Workflow](#1-workflow)
64
- 2. [Context Pack](#2-context-pack)
65
- 3. [HANDOFF Envelope](#3-handoff-envelope)
66
- 4. [Reply Format](#4-reply-format)
67
- 5. [Gate-Specific Variations](#5-gate-specific-variations)
68
- 6. [Example: PM→UX Handoff](#6-example-pmux-handoff)
69
-
70
- ---
71
-
72
- ## 1. Workflow
73
-
74
- ```
75
- 1. Previous gate is completed (☑ on board)
76
- 2. Conductor gathers the Context Pack (section 2)
77
- 3. Conductor forms the HANDOFF Envelope (section 3)
78
- 4. Conductor delegates to the next agent
79
- 5. Agent receives the envelope → reads its role .md → activates skills
80
- 6. Agent returns a response using the Reply Format (section 4)
81
- 7. Conductor verifies the DoD → ☑ or ⚠️ (return)
82
- ```
83
-
84
- ---
85
-
86
- ## 2. Context Pack
87
-
88
- ### Mandatory fields
89
-
90
- | Field | Description | Example |
91
- |-------|------------|---------|
92
- | **Goal** | What needs to be achieved | "Create UX Spec for Settings page" |
93
- | **Scope** | What is included / not included | "In: Settings CRUD. Out: Analytics" |
94
- | **Constraints** | Stack, deploy, deadlines, integrations | "React + Express, desktop-first" |
95
- | **Inputs** | Links to documents/files | "PRD: docs/prd.md, UX Discovery: ..." |
96
- | **Decisions** | What is already decided (cannot be changed without approval) | "ADR-001: MongoDB, ADR-002: shadcn" |
97
- | **Open Questions** | What is unknown | "Timer design not finalized" |
98
- | **DoD** | "Done" criterion | "UX Spec covers all PRD flows + states" |
99
- | **Output Format** | In what format to return the result | "Markdown file: docs/ux-spec.md" |
100
-
101
- ---
102
-
103
- ## 3. HANDOFF Envelope
104
-
105
- ### Template (copy as-is)
106
-
107
- ```markdown
108
- ---
109
- ## HANDOFF ENVELOPE
110
-
111
- **From:** <Gate/Agent> (e.g., PM Gate)
112
- **To:** <Gate/Agent> (e.g., UX/UI Designer)
113
- **Task ID:** <board task ID> (e.g., UX-01)
114
- **Date:** YYYY-MM-DD
115
-
116
- ### Context Pack
117
- - **Goal:** <one sentence>
118
- - **Scope:** In: <list> | Out: <list>
119
- - **Constraints:** <stack, deploy, integrations>
120
- - **Inputs:**
121
- - <file/link 1>
122
- - <file/link 2>
123
- - **Decisions:** <key decisions that must not change>
124
- - **Open Questions:** <unresolved items>
125
- - **DoD:** <checkable criteria>
126
- - **Output Format:** <expected deliverable format>
127
-
128
- ### Task
129
- - **What to do:** <concrete action>
130
- - **Skills to use:** $skill-1, $skill-2
131
- - **Acceptance criteria:**
132
- - [ ] <criterion 1>
133
- - [ ] <criterion 2>
134
- ---
135
- ```
136
-
137
- ---
138
-
139
- ## 4. Reply Format
140
-
141
- Every agent must return their deliverable in this structure:
142
-
143
- ```markdown
144
- ### Summary
145
- <1-3 sentences: what was done>
146
-
147
- ### Deliverables
148
- <list of artifacts produced with paths/links>
149
-
150
- ### Decisions
151
- <key decisions made during this gate>
152
-
153
- ### Risks / Blockers
154
- <anything that may affect downstream gates>
155
-
156
- ### Open Questions
157
- <unresolved items for user/conductor>
158
-
159
- ### Next Actions
160
- <suggested next steps with IDs: UX-02, ARCH-01, etc.>
161
- ```
162
-
163
- ---
164
-
165
- ## 5. Gate-Specific Variations
166
-
167
- ### PM → UX
168
-
169
- | Field | Typical content |
170
- |-------|----------------|
171
- | Inputs | PRD, Interview Summary |
172
- | Skills | $ux-discovery, $ux-spec, $ui-inventory, $a11y-baseline |
173
- | DoD | UX Spec covers all flows + screens + states + validations |
174
-
175
- ### UX → ARCH
176
-
177
- | Field | Typical content |
178
- |-------|----------------|
179
- | Inputs | PRD, UX Spec, UI Inventory |
180
- | Skills | $architecture-doc, $adr-log, $api-contracts, $data-model |
181
- | DoD | Architecture doc + API contracts + data model + ADRs |
182
-
183
- ### ARCH → DEV
184
-
185
- | Field | Typical content |
186
- |-------|----------------|
187
- | Inputs | Architecture, API Contracts, UX Spec, Data Model |
188
- | Skills | $tdd-workflow, $testing-strategy-js, relevant best practices |
189
- | DoD | Code complete, tests pass, no P0 self-review issues |
190
-
191
- ### DEV → REV
192
-
193
- | Field | Typical content |
194
- |-------|----------------|
195
- | Inputs | Code diff, test results, API contracts |
196
- | Skills | $code-review-checklist, $security-review, $performance-review-baseline |
197
- | DoD | Review report with 0 P0, P1 tracked |
198
-
199
- ### REV → OPS
200
-
201
- | Field | Typical content |
202
- |-------|----------------|
203
- | Inputs | Approved code, Docker config |
204
- | Skills | $deployment-ci-plan, /auto-restart-containers |
205
- | DoD | Build success, containers healthy |
206
-
207
- ### OPS → TEST
208
-
209
- | Field | Typical content |
210
- |-------|----------------|
211
- | Inputs | Deployed environment, UX Spec, API Contracts |
212
- | Skills | $qa-test-plan, $qa-manual-run, $qa-api-contract-tests, $qa-security-smoke-tests |
213
- | DoD | All P0 tests pass, 0 open P0 bugs |
214
-
215
- ### TEST → RG
216
-
217
- | Field | Typical content |
218
- |-------|----------------|
219
- | Inputs | All gate reports (REV, TEST, CI) |
220
- | Skills | $release-gate, $release-gate-checklist-template |
221
- | DoD | Release checklist complete, GO decision |
222
-
223
- ---
224
-
225
- ## 6. Example: PM→UX Handoff
226
-
227
- ```markdown
228
- ---
229
- ## HANDOFF ENVELOPE
230
-
231
- **From:** PM Gate (PM Agent)
232
- **To:** UX/UI Designer
233
- **Task ID:** UX-01
234
- **Date:** 2026-03-13
235
-
236
- ### Context Pack
237
- - **Goal:** Create UX Spec for SaaS Admin Panel Dashboard
238
- - **Scope:** In: Settings, Products, Content preview | Out: Analytics, multi-lang
239
- - **Constraints:** React + Express, desktop-first, shadcn/ui components
240
- - **Inputs:**
241
- - PRD: `docs/prd.md`
242
- - Backlog: `docs/backlog.md`
243
- - **Decisions:** ADR-001: MongoDB for storage, ADR-002: shadcn/ui for UI
244
- - **Open Questions:** Notification design (email vs in-app)
245
- - **DoD:** UX Spec covers all 5 PRD user stories, all screens have 4 states
246
- - **Output Format:** `docs/ux-spec.md`
247
-
248
- ### Task
249
- - **What to do:** Run $ux-discovery → $ux-spec → $ui-inventory → $a11y-baseline
250
- - **Skills to use:** $ux-discovery, $ux-spec, $ui-inventory, $a11y-baseline
251
- - **Acceptance criteria:**
252
- - [ ] All PRD flows have screen specs
253
- - [ ] States: loading/empty/error/success defined per screen
254
- - [ ] UI Inventory maps to design system components
255
- - [ ] A11y baseline documented
256
- ---
257
- ```
258
-
259
- ---
260
-
261
- ## Common handoff-document rules (cross-domain)
262
-
263
- > 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 handoff sections above.
264
-
265
- 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.
266
- 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.
267
- 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.
268
- 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.
269
- 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.
270
-
271
- ---
272
-
273
- ## See also
274
- - `$gates` — gate definitions and DoD
275
- - `$board` — project board tracking
276
- - `$memory` — context preservation
1
+ ---
2
+ name: handoff
3
+ description: "Forming a Context Pack and assigning a task to an agent — goals, constraints, artifacts, decisions, questions, Definition of Done. Requires a standard reply format."
4
+ type: mandatory
5
+ domain: development
6
+ owners:
7
+ - conductor
8
+ gates:
9
+ - PM
10
+ - UX
11
+ - ARCH
12
+ - DEV
13
+ - REV
14
+ - OPS
15
+ - TEST
16
+ - RG
17
+ tech: []
18
+ topic:
19
+ - orchestration
20
+ triggers:
21
+ - hand off task
22
+ - Context Pack
23
+ - agent briefing
24
+ - handoff format
25
+ - goals and constraints
26
+ - Definition of Done
27
+ - task for agent
28
+ related:
29
+ - ux-discovery
30
+ - ux-spec
31
+ - ui-inventory
32
+ - a11y-baseline
33
+ - architecture-doc
34
+ - adr-log
35
+ - api-contracts
36
+ - data-model
37
+ - tdd-workflow
38
+ - testing-strategy-js
39
+ - code-review-checklist
40
+ - security-review
41
+ - performance-review-baseline
42
+ - deployment-ci-plan
43
+ - deployment-ci-plan-reference
44
+ - qa-test-plan
45
+ - qa-manual-run
46
+ - qa-api-contract-tests
47
+ - qa-security-smoke-tests
48
+ - release-gate
49
+ - release-gate-checklist-template
50
+ - gates
51
+ - board
52
+ - memory
53
+ budget_lines: 280
54
+ schema_version: 1
55
+ ---
56
+
57
+
58
+ # Skill: Context Pack Handoff
59
+
60
+ Transferring tasks between gates with full context.
61
+
62
+ **Sections:**
63
+ 1. [Workflow](#1-workflow)
64
+ 2. [Context Pack](#2-context-pack)
65
+ 3. [HANDOFF Envelope](#3-handoff-envelope)
66
+ 4. [Reply Format](#4-reply-format)
67
+ 5. [Gate-Specific Variations](#5-gate-specific-variations)
68
+ 6. [Example: PM→UX Handoff](#6-example-pmux-handoff)
69
+
70
+ ---
71
+
72
+ ## 1. Workflow
73
+
74
+ ```
75
+ 1. Previous gate is completed (☑ on board)
76
+ 2. Conductor gathers the Context Pack (section 2)
77
+ 3. Conductor forms the HANDOFF Envelope (section 3)
78
+ 4. Conductor delegates to the next agent
79
+ 5. Agent receives the envelope → reads its role .md → activates skills
80
+ 6. Agent returns a response using the Reply Format (section 4)
81
+ 7. Conductor verifies the DoD → ☑ or ⚠️ (return)
82
+ ```
83
+
84
+ ---
85
+
86
+ ## 2. Context Pack
87
+
88
+ ### Mandatory fields
89
+
90
+ | Field | Description | Example |
91
+ |-------|------------|---------|
92
+ | **Goal** | What needs to be achieved | "Create UX Spec for Settings page" |
93
+ | **Scope** | What is included / not included | "In: Settings CRUD. Out: Analytics" |
94
+ | **Constraints** | Stack, deploy, deadlines, integrations | "React + Express, desktop-first" |
95
+ | **Inputs** | Links to documents/files | "PRD: docs/prd.md, UX Discovery: ..." |
96
+ | **Decisions** | What is already decided (cannot be changed without approval) | "ADR-001: MongoDB, ADR-002: shadcn" |
97
+ | **Open Questions** | What is unknown | "Timer design not finalized" |
98
+ | **DoD** | "Done" criterion | "UX Spec covers all PRD flows + states" |
99
+ | **Output Format** | In what format to return the result | "Markdown file: docs/ux-spec.md" |
100
+
101
+ ---
102
+
103
+ ## 3. HANDOFF Envelope
104
+
105
+ ### Template (copy as-is)
106
+
107
+ ```markdown
108
+ ---
109
+ ## HANDOFF ENVELOPE
110
+
111
+ **From:** <Gate/Agent> (e.g., PM Gate)
112
+ **To:** <Gate/Agent> (e.g., UX/UI Designer)
113
+ **Task ID:** <board task ID> (e.g., UX-01)
114
+ **Date:** YYYY-MM-DD
115
+
116
+ ### Context Pack
117
+ - **Goal:** <one sentence>
118
+ - **Scope:** In: <list> | Out: <list>
119
+ - **Constraints:** <stack, deploy, integrations>
120
+ - **Inputs:**
121
+ - <file/link 1>
122
+ - <file/link 2>
123
+ - **Decisions:** <key decisions that must not change>
124
+ - **Open Questions:** <unresolved items>
125
+ - **DoD:** <checkable criteria>
126
+ - **Output Format:** <expected deliverable format>
127
+
128
+ ### Task
129
+ - **What to do:** <concrete action>
130
+ - **Skills to use:** $skill-1, $skill-2
131
+ - **Acceptance criteria:**
132
+ - [ ] <criterion 1>
133
+ - [ ] <criterion 2>
134
+ ---
135
+ ```
136
+
137
+ ---
138
+
139
+ ## 4. Reply Format
140
+
141
+ Every agent must return their deliverable in this structure:
142
+
143
+ ```markdown
144
+ ### Summary
145
+ <1-3 sentences: what was done>
146
+
147
+ ### Deliverables
148
+ <list of artifacts produced with paths/links>
149
+
150
+ ### Decisions
151
+ <key decisions made during this gate>
152
+
153
+ ### Risks / Blockers
154
+ <anything that may affect downstream gates>
155
+
156
+ ### Open Questions
157
+ <unresolved items for user/conductor>
158
+
159
+ ### Next Actions
160
+ <suggested next steps with IDs: UX-02, ARCH-01, etc.>
161
+ ```
162
+
163
+ ---
164
+
165
+ ## 5. Gate-Specific Variations
166
+
167
+ ### PM → UX
168
+
169
+ | Field | Typical content |
170
+ |-------|----------------|
171
+ | Inputs | PRD, Interview Summary |
172
+ | Skills | $ux-discovery, $ux-spec, $ui-inventory, $a11y-baseline |
173
+ | DoD | UX Spec covers all flows + screens + states + validations |
174
+
175
+ ### UX → ARCH
176
+
177
+ | Field | Typical content |
178
+ |-------|----------------|
179
+ | Inputs | PRD, UX Spec, UI Inventory |
180
+ | Skills | $architecture-doc, $adr-log, $api-contracts, $data-model |
181
+ | DoD | Architecture doc + API contracts + data model + ADRs |
182
+
183
+ ### ARCH → DEV
184
+
185
+ | Field | Typical content |
186
+ |-------|----------------|
187
+ | Inputs | Architecture, API Contracts, UX Spec, Data Model |
188
+ | Skills | $tdd-workflow, $testing-strategy-js, relevant best practices |
189
+ | DoD | Code complete, tests pass, no P0 self-review issues |
190
+
191
+ ### DEV → REV
192
+
193
+ | Field | Typical content |
194
+ |-------|----------------|
195
+ | Inputs | Code diff, test results, API contracts |
196
+ | Skills | $code-review-checklist, $security-review, $performance-review-baseline |
197
+ | DoD | Review report with 0 P0, P1 tracked |
198
+
199
+ ### REV → OPS
200
+
201
+ | Field | Typical content |
202
+ |-------|----------------|
203
+ | Inputs | Approved code, Docker config |
204
+ | Skills | $deployment-ci-plan + Docker restart (AGENTS.md rule) |
205
+ | DoD | Build success, containers healthy |
206
+
207
+ ### OPS → TEST
208
+
209
+ | Field | Typical content |
210
+ |-------|----------------|
211
+ | Inputs | Deployed environment, UX Spec, API Contracts |
212
+ | Skills | $qa-test-plan, $qa-manual-run, $qa-api-contract-tests, $qa-security-smoke-tests |
213
+ | DoD | All P0 tests pass, 0 open P0 bugs |
214
+
215
+ ### TEST → RG
216
+
217
+ | Field | Typical content |
218
+ |-------|----------------|
219
+ | Inputs | All gate reports (REV, TEST, CI) |
220
+ | Skills | $release-gate, $release-gate-checklist-template |
221
+ | DoD | Release checklist complete, GO decision |
222
+
223
+ ---
224
+
225
+ ## 6. Example: PM→UX Handoff
226
+
227
+ ```markdown
228
+ ---
229
+ ## HANDOFF ENVELOPE
230
+
231
+ **From:** PM Gate (PM Agent)
232
+ **To:** UX/UI Designer
233
+ **Task ID:** UX-01
234
+ **Date:** 2026-03-13
235
+
236
+ ### Context Pack
237
+ - **Goal:** Create UX Spec for SaaS Admin Panel Dashboard
238
+ - **Scope:** In: Settings, Products, Content preview | Out: Analytics, multi-lang
239
+ - **Constraints:** React + Express, desktop-first, shadcn/ui components
240
+ - **Inputs:**
241
+ - PRD: `docs/prd.md`
242
+ - Backlog: `docs/backlog.md`
243
+ - **Decisions:** ADR-001: MongoDB for storage, ADR-002: shadcn/ui for UI
244
+ - **Open Questions:** Notification design (email vs in-app)
245
+ - **DoD:** UX Spec covers all 5 PRD user stories, all screens have 4 states
246
+ - **Output Format:** `docs/ux-spec.md`
247
+
248
+ ### Task
249
+ - **What to do:** Run $ux-discovery → $ux-spec → $ui-inventory → $a11y-baseline
250
+ - **Skills to use:** $ux-discovery, $ux-spec, $ui-inventory, $a11y-baseline
251
+ - **Acceptance criteria:**
252
+ - [ ] All PRD flows have screen specs
253
+ - [ ] States: loading/empty/error/success defined per screen
254
+ - [ ] UI Inventory maps to design system components
255
+ - [ ] A11y baseline documented
256
+ ---
257
+ ```
258
+
259
+ ---
260
+
261
+ ## Common handoff-document rules (cross-domain)
262
+
263
+ > 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 handoff sections above.
264
+
265
+ 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.
266
+ 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.
267
+ 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.
268
+ 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.
269
+ 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.
270
+
271
+ ---
272
+
273
+ ## See also
274
+ - `$gates` — gate definitions and DoD
275
+ - `$board` — project board tracking
276
+ - `$memory` — context preservation