code-ai-installer 4.0.1-a → 4.0.1-c

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 (129) 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/config.js +8 -6
  9. package/dist/mcp/scorecard.d.ts +2 -2
  10. package/dist/mcp/task_state.d.ts +2 -2
  11. package/dist/mcp/tools/advance_gate.js +1 -1
  12. package/dist/mcp/tools/classify_gate.d.ts +2 -2
  13. package/dist/mcp/tools/classify_gate.js +2 -2
  14. package/dist/mcp/tools/load_role.d.ts +2 -2
  15. package/dist/mcp/tools/load_role.js +2 -2
  16. package/dist/mcp/tools/report_exception.d.ts +3 -3
  17. package/dist/mcp/tools/report_exception.js +4 -4
  18. package/dist/mcp/tools/request_decision.d.ts +3 -3
  19. package/dist/mcp/tools/request_decision.js +5 -5
  20. package/dist/mcp/tools/review_proposal.d.ts +1 -1
  21. package/dist/mcp/tools/review_proposal.js +6 -6
  22. package/dist/mcp/tools/sign_off.d.ts +2 -2
  23. package/dist/mcp/tools/sign_off.js +7 -7
  24. package/dist/mcp/tools/verify_claim.d.ts +1 -1
  25. package/dist/mcp/tools/verify_claim.js +1 -1
  26. package/dist/mcp_setup.d.ts +85 -29
  27. package/dist/mcp_setup.js +184 -62
  28. package/dist/platforms/adapters.js +54 -19
  29. package/dist/shared/frontmatter.js +1 -1
  30. package/dist/shared/persona.d.ts +1 -1
  31. package/dist/shared/persona.js +1 -1
  32. package/dist/shared/pipeline.d.ts +10 -10
  33. package/dist/shared/pipeline.js +7 -7
  34. package/dist/shared/tools.d.ts +15 -15
  35. package/dist/shared/tools.js +3 -3
  36. package/dist/shared/vocabulary.d.ts +4 -4
  37. package/dist/shared/vocabulary.js +4 -4
  38. package/dist/types.d.ts +1 -1
  39. package/domains/analytics/.agents/workflows/analytics-pipeline-rules.md +13 -3
  40. package/domains/analytics/.agents/workflows/analyze.md +1 -0
  41. package/domains/analytics/.agents/workflows/quick-insight.md +1 -0
  42. package/domains/analytics/locales/en/.agents/workflows/analytics-pipeline-rules.md +13 -3
  43. package/domains/analytics/locales/en/.agents/workflows/analyze.md +1 -0
  44. package/domains/analytics/locales/en/.agents/workflows/quick-insight.md +1 -0
  45. package/domains/analytics/locales/en/agents/interviewer.md +2 -1
  46. package/domains/analytics/locales/en/agents/layouter.md +2 -1
  47. package/domains/analytics/locales/en/agents/mediator.md +2 -1
  48. package/domains/analytics/locales/en/agents/researcher.md +2 -1
  49. package/domains/analytics/locales/en/agents/strategist.md +2 -1
  50. package/domains/analytics/pipeline.yaml +10 -10
  51. package/domains/content/.agents/skills/content-release-gate/SKILL.md +3 -5
  52. package/domains/content/.agents/workflows/content-pipeline-rules.md +14 -11
  53. package/domains/content/.agents/workflows/edit-content.md +0 -1
  54. package/domains/content/.agents/workflows/quick-post.md +0 -1
  55. package/domains/content/.agents/workflows/start-content.md +0 -1
  56. package/domains/content/agents/conductor.md +1 -2
  57. package/domains/content/locales/en/.agents/skills/content-release-gate/SKILL.md +3 -5
  58. package/domains/content/locales/en/.agents/workflows/content-pipeline-rules.md +14 -11
  59. package/domains/content/locales/en/.agents/workflows/edit-content.md +0 -1
  60. package/domains/content/locales/en/.agents/workflows/quick-post.md +0 -1
  61. package/domains/content/locales/en/.agents/workflows/start-content.md +0 -1
  62. package/domains/content/locales/en/agents/conductor.md +1 -2
  63. package/domains/content/pipeline.yaml +8 -8
  64. package/domains/development/.agents/skills/handoff/SKILL.md +276 -276
  65. package/domains/development/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  66. package/domains/development/.agents/skills/mcp-integration/SKILL.md +211 -211
  67. package/domains/development/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  68. package/domains/development/.agents/workflows/bugfix.md +16 -82
  69. package/domains/development/.agents/workflows/hotfix.md +16 -66
  70. package/domains/development/.agents/workflows/pipeline-rules.md +49 -132
  71. package/domains/development/.agents/workflows/start-task.md +17 -121
  72. package/domains/development/AGENTS.md +8 -3
  73. package/domains/development/agents/architect.md +247 -247
  74. package/domains/development/agents/conductor.md +363 -363
  75. package/domains/development/agents/devops.md +297 -297
  76. package/domains/development/agents/reviewer.md +293 -293
  77. package/domains/development/agents/senior_full_stack.md +295 -295
  78. package/domains/development/agents/tester.md +395 -395
  79. package/domains/development/locales/en/.agents/skills/handoff/SKILL.md +276 -276
  80. package/domains/development/locales/en/.agents/skills/lava-flow-legacy-detection/SKILL.md +197 -197
  81. package/domains/development/locales/en/.agents/skills/mcp-integration/SKILL.md +211 -211
  82. package/domains/development/locales/en/.agents/skills/qa-test-data-management/SKILL.md +250 -250
  83. package/domains/development/locales/en/.agents/workflows/bugfix.md +16 -82
  84. package/domains/development/locales/en/.agents/workflows/hotfix.md +15 -65
  85. package/domains/development/locales/en/.agents/workflows/pipeline-rules.md +48 -131
  86. package/domains/development/locales/en/.agents/workflows/start-task.md +17 -121
  87. package/domains/development/locales/en/AGENTS.md +15 -0
  88. package/domains/development/locales/en/agents/architect.md +247 -247
  89. package/domains/development/locales/en/agents/conductor.md +363 -363
  90. package/domains/development/locales/en/agents/devops.md +297 -297
  91. package/domains/development/locales/en/agents/reviewer.md +293 -293
  92. package/domains/development/locales/en/agents/senior_full_stack.md +295 -295
  93. package/domains/development/locales/en/agents/tester.md +395 -395
  94. package/domains/development/locales/en/prompt-examples.md +34 -120
  95. package/domains/development/pipeline.yaml +150 -135
  96. package/domains/development/prompt-examples.md +33 -119
  97. package/domains/product/.agents/workflows/product-pipeline-rules.md +13 -2
  98. package/domains/product/.agents/workflows/quick-pm.md +1 -1
  99. package/domains/product/.agents/workflows/shape-prioritize.md +1 -0
  100. package/domains/product/.agents/workflows/ship-right-thing.md +1 -0
  101. package/domains/product/.agents/workflows/spec.md +1 -0
  102. package/domains/product/agents/tech_lead.md +1 -1
  103. package/domains/product/locales/en/.agents/workflows/product-pipeline-rules.md +13 -2
  104. package/domains/product/locales/en/.agents/workflows/quick-pm.md +1 -1
  105. package/domains/product/locales/en/.agents/workflows/shape-prioritize.md +1 -0
  106. package/domains/product/locales/en/.agents/workflows/ship-right-thing.md +1 -0
  107. package/domains/product/locales/en/.agents/workflows/spec.md +1 -0
  108. package/domains/product/locales/en/agents/conductor.md +2 -2
  109. package/domains/product/locales/en/agents/data_analyst.md +2 -1
  110. package/domains/product/locales/en/agents/designer.md +2 -1
  111. package/domains/product/locales/en/agents/discovery.md +2 -1
  112. package/domains/product/locales/en/agents/layouter.md +2 -1
  113. package/domains/product/locales/en/agents/mediator.md +2 -1
  114. package/domains/product/locales/en/agents/pm.md +2 -1
  115. package/domains/product/locales/en/agents/product_strategist.md +2 -1
  116. package/domains/product/locales/en/agents/tech_lead.md +3 -2
  117. package/domains/product/locales/en/agents/ux_designer.md +2 -1
  118. package/domains/product/pipeline.yaml +12 -12
  119. package/package.json +5 -5
  120. package/domains/analytics/CONTEXT.md +0 -25
  121. package/domains/analytics/locales/en/CONTEXT.md +0 -25
  122. package/domains/content/CONTEXT.md +0 -19
  123. package/domains/content/locales/en/CONTEXT.md +0 -19
  124. package/domains/development/.agents/workflows/auto-restart-containers.md +0 -56
  125. package/domains/development/CONTEXT.md +0 -62
  126. package/domains/development/locales/en/.agents/workflows/auto-restart-containers.md +0 -24
  127. package/domains/development/locales/en/CONTEXT.md +0 -62
  128. package/domains/product/CONTEXT.md +0 -40
  129. package/domains/product/locales/en/CONTEXT.md +0 -40
@@ -1,276 +1,276 @@
1
- ---
2
- name: handoff
3
- description: "Формирование Context Pack и постановка задачи агенту — цели, ограничения, артефакты, решения, вопросы, Definition of Done. Требует стандартного формата ответа."
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
- - передать задачу
22
- - Context Pack
23
- - постановка агенту
24
- - handoff формат
25
- - цели и ограничения
26
- - Definition of Done
27
- - задача для агента
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
- Передача задач между гейтами с полным контекстом.
61
-
62
- **Разделы:**
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. [Пример: PM→UX Handoff](#6-пример-pmux-handoff)
69
-
70
- ---
71
-
72
- ## 1. Workflow
73
-
74
- ```
75
- 1. Предыдущий gate завершён (☑ в board)
76
- 2. Conductor собирает Context Pack (section 2)
77
- 3. Conductor формирует HANDOFF Envelope (section 3)
78
- 4. Conductor делегирует следующему агенту
79
- 5. Агент получает envelope → читает свой role .md → активирует skills
80
- 6. Агент возвращает ответ по Reply Format (section 4)
81
- 7. Conductor проверяет DoD → ☑ или ⚠️ (возврат)
82
- ```
83
-
84
- ---
85
-
86
- ## 2. Context Pack
87
-
88
- ### Обязательные поля
89
-
90
- | Field | Description | Example |
91
- |-------|------------|---------|
92
- | **Goal** | Что нужно получить | "Create UX Spec for Settings page" |
93
- | **Scope** | Что входит / не входит | "In: Settings CRUD. Out: Analytics" |
94
- | **Constraints** | Стек, деплой, сроки, интеграции | "React + Express, desktop-first" |
95
- | **Inputs** | Ссылки на документы/файлы | "PRD: docs/prd.md, UX Discovery: ..." |
96
- | **Decisions** | Что уже решено (нельзя менять без согласования) | "ADR-001: MongoDB, ADR-002: shadcn" |
97
- | **Open Questions** | Что неизвестно | "Timer design not finalized" |
98
- | **DoD** | Критерий «готово» | "UX Spec covers all PRD flows + states" |
99
- | **Output Format** | В каком виде вернуть результат | "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. Пример: 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
- ## Общие правила handoff-документа (cross-domain)
262
-
263
- > Применяется к **любому** handoff-документу, передающему контекст сессии свежему агенту (session-handoff / conversation summary). Дополняет, не заменяет, разделы про inter-gate handoff выше.
264
-
265
- 1. **Куда сохранять.** Файл — во временную директорию ОС (`%TEMP%` / `/tmp` / `os.tmpdir()`), **не** в рабочий репозиторий. Workspace остаётся чистым; путь к временному файлу цитируется в чате следующей сессии.
266
- 2. **Секция «Suggested skills».** Обязательна секция со списком скиллов, которые свежему агенту имеет смысл подгрузить первым же действием (`$skill-1`, `$skill-2`, ...). Сокращает context-warm-up.
267
- 3. **Не дублировать артефакты.** Если данные уже в PRD / plan / ADR / commit / diff / issue — давать **ссылку по пути или URL**, не копировать содержимое. Дубль создаёт drift между источниками.
268
- 4. **Редакция чувствительных данных.** Перед сохранением — удалить API-ключи, пароли, токены, PII (email, телефон, реальные имена клиентов). Временная директория тоже потенциальный leak-вектор.
269
- 5. **Аргументы юзера = фокус следующей сессии.** Если `/handoff` вызван с аргументом-строкой — трактовать её как описание задачи следующей сессии; адаптировать summary и suggested-skills под этот фокус.
270
-
271
- ---
272
-
273
- ## См. также
274
- - `$gates` — gate definitions and DoD
275
- - `$board` — project board tracking
276
- - `$memory` — context preservation
1
+ ---
2
+ name: handoff
3
+ description: "Формирование Context Pack и постановка задачи агенту — цели, ограничения, артефакты, решения, вопросы, Definition of Done. Требует стандартного формата ответа."
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
+ - передать задачу
22
+ - Context Pack
23
+ - постановка агенту
24
+ - handoff формат
25
+ - цели и ограничения
26
+ - Definition of Done
27
+ - задача для агента
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
+ Передача задач между гейтами с полным контекстом.
61
+
62
+ **Разделы:**
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. [Пример: PM→UX Handoff](#6-пример-pmux-handoff)
69
+
70
+ ---
71
+
72
+ ## 1. Workflow
73
+
74
+ ```
75
+ 1. Предыдущий gate завершён (☑ в board)
76
+ 2. Conductor собирает Context Pack (section 2)
77
+ 3. Conductor формирует HANDOFF Envelope (section 3)
78
+ 4. Conductor делегирует следующему агенту
79
+ 5. Агент получает envelope → читает свой role .md → активирует skills
80
+ 6. Агент возвращает ответ по Reply Format (section 4)
81
+ 7. Conductor проверяет DoD → ☑ или ⚠️ (возврат)
82
+ ```
83
+
84
+ ---
85
+
86
+ ## 2. Context Pack
87
+
88
+ ### Обязательные поля
89
+
90
+ | Field | Description | Example |
91
+ |-------|------------|---------|
92
+ | **Goal** | Что нужно получить | "Create UX Spec for Settings page" |
93
+ | **Scope** | Что входит / не входит | "In: Settings CRUD. Out: Analytics" |
94
+ | **Constraints** | Стек, деплой, сроки, интеграции | "React + Express, desktop-first" |
95
+ | **Inputs** | Ссылки на документы/файлы | "PRD: docs/prd.md, UX Discovery: ..." |
96
+ | **Decisions** | Что уже решено (нельзя менять без согласования) | "ADR-001: MongoDB, ADR-002: shadcn" |
97
+ | **Open Questions** | Что неизвестно | "Timer design not finalized" |
98
+ | **DoD** | Критерий «готово» | "UX Spec covers all PRD flows + states" |
99
+ | **Output Format** | В каком виде вернуть результат | "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. Пример: 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
+ ## Общие правила handoff-документа (cross-domain)
262
+
263
+ > Применяется к **любому** handoff-документу, передающему контекст сессии свежему агенту (session-handoff / conversation summary). Дополняет, не заменяет, разделы про inter-gate handoff выше.
264
+
265
+ 1. **Куда сохранять.** Файл — во временную директорию ОС (`%TEMP%` / `/tmp` / `os.tmpdir()`), **не** в рабочий репозиторий. Workspace остаётся чистым; путь к временному файлу цитируется в чате следующей сессии.
266
+ 2. **Секция «Suggested skills».** Обязательна секция со списком скиллов, которые свежему агенту имеет смысл подгрузить первым же действием (`$skill-1`, `$skill-2`, ...). Сокращает context-warm-up.
267
+ 3. **Не дублировать артефакты.** Если данные уже в PRD / plan / ADR / commit / diff / issue — давать **ссылку по пути или URL**, не копировать содержимое. Дубль создаёт drift между источниками.
268
+ 4. **Редакция чувствительных данных.** Перед сохранением — удалить API-ключи, пароли, токены, PII (email, телефон, реальные имена клиентов). Временная директория тоже потенциальный leak-вектор.
269
+ 5. **Аргументы юзера = фокус следующей сессии.** Если `/handoff` вызван с аргументом-строкой — трактовать её как описание задачи следующей сессии; адаптировать summary и suggested-skills под этот фокус.
270
+
271
+ ---
272
+
273
+ ## См. также
274
+ - `$gates` — gate definitions and DoD
275
+ - `$board` — project board tracking
276
+ - `$memory` — context preservation