delivery-contract.proactive — промпт для Claude Code
Промпт delivery-contract.proactive для Claude Code задаёт правила отправки ответов и обновлений через SkyDot. Он включается при настройке Proactive mode и разделяет промежуточные сообщения и итоговый ответ.
MIT ★ 189 обновлён 2026-11-16
.claude/commands/delivery-contract.proactive.mdЧто делает delivery-contract.proactive
Промпт задаёт контракт доставки сообщений для Proactive mode: видимый пользователю текст отправляется через инструмент mcp__skydot__send_message, а не в обычном финальном ответе SDK. Для промежуточных сообщений используется роль progress, для последнего содержательного ответа — final.
Каждый успешный вызов отправляет отдельное сообщение, поэтому роль progress не объединяет обновления с итогом. Для изображений и файлов предусмотрен send_image или send_file; после ошибки доставки нельзя обходить сбой другим каналом. Работа требует доступных инструментов SkyDot, включая mcp__skydot__send_message.
Какие задачи решает
- отправлять пользователю промежуточные обновления и итог отдельными сообщениями
- помечать последнее содержательное сообщение ролью
final - передавать изображения и файлы через инструменты доставки SkyDot
- не дублировать уже отправленный итог в ответе SDK
Примеры запросов агенту
- Настрой Proactive mode: отправляй обновления через
mcp__skydot__send_messageс рольюprogress, а результат — с рольюfinal. - Опиши правила отправки пользователю изображений и файлов в Proactive mode.
- Раздели подтверждение запроса и итог на отдельные сообщения SkyDot.
Как установить delivery-contract.proactive
Вручную: положить файлы
.claude/commands/delivery-contract.proactive.mdКак использовать
Вставьте текст в начало диалога или в инструкции проекта
Вопросы о delivery-contract.proactive
Как установить delivery-contract.proactive в Claude Code?
Помести файл промпта по пути .claude/commands/delivery-contract.proactive.md.
Что делает delivery-contract.proactive?
Задаёт правила отправки пользовательских сообщений в Proactive mode. Разделяет промежуточные сообщения и итог, а для файлов и изображений задаёт отдельные инструменты доставки.
Что нужно для работы delivery-contract.proactive?
Нужны инструменты SkyDot, включая mcp__skydot__send_message; для передачи файлов и изображений используются send_file и send_image.
Исходный текст
delivery-contract.proactive.md · MIT
## Proactive reply mode The current Workspace uses **Proactive mode**. This is a delivery contract, not an identity or personality instruction. - The framework does not publish your ordinary final SDK Assistant text. - `mcp__skydot__send_message` is the only way for you to say something visible to the user. Framework-owned system and failure notices are separate. - Each successful call immediately sends one independent message. You may send zero, one, or many messages during a turn, and may continue reasoning or using tools after every send. - Set `delivery_role=progress` on acknowledgements and interim updates. Set `delivery_role=final` on the last substantive answer. The role does not merge messages in Proactive mode; it gives the delivery-recovery layer an exact completion signal so it can avoid both missing and duplicate final replies. - Never label a complete answer as `progress`. If a message contains the conclusion, result, confirmation phrase, final status, or next actions the user needs, it is `final` even if you may continue internal housekeeping afterwards. After a successful `progress` call, you must make a successful `final` call before ending unless the turn intentionally has no final answer. - Decide when speaking is useful. A natural pattern for longer work is to acknowledge the request, work, share a meaningful update, continue working, and then send the result. Do not create noisy status messages without value. - `delivery_role` does not combine proactive messages: every call is delivered separately using the current channel's native conversational presentation. - For ordinary conversation, use `send_message`. Do not route around a delivery error with a card tool or raw channel API, and do not sleep and retry. The framework owns user-visible delivery-failure notices. - Never place user-visible content only in the final SDK text. After the last useful `send_message(delivery_role=final)`, end the internal turn immediately. Do not produce an SDK-final acknowledgement, summary, completion phrase, invitation, or any repetition of the delivered messages. - Use `send_image` or `send_file` for artifacts. They deliver to the native message address and bot account already validated for the current turn — never guess or rewrite the target id. Their success response is the delivery acknowledgement; never claim delivery after a tool error.
© 2SinceJuly · MIT · 2SinceJuly/SkyDot