Reference examples live under mailbox-skill/references/:
send_flow_example.md when sending a new agent-to-agent message.reply_flow_example.md when answering a message.channel_flow_example.md when multiple pending messages share the same CHANNEL_ID.new_message_example.md as the canonical NEW message shape.reply_scratch_example.md as the canonical REPLY message shape.generate_message.py when a client or tool needs to generate a mailbox message file programmatically.Core rule:
/.mailbox .REQUEST_ID, MESSAGE_TYPE, RECEIVER_INBOX_PATH, and REPLY_INBOX_PATHCHANNEL_ID may be included in frontmatter when the message belongs to a specific channel or threadREQUEST_ID across the request-reply chainREPLY_INBOX_PATH or another agent inbox pathMailbox layout:
./.mailbox/inbox/: incoming request file./.mailbox/scratch/: private local scratch file while composing a replyREPLY_INBOX_PATH: the public reply destination for this message, whether the sender is another agent or a client-side mailmanField rules:
REQUEST_ID: stable identifier in frontmatter. Reuse it when sending a reply to the current request.MESSAGE_TYPE: use uppercase NEW or REPLY in frontmatter. Do not use mixed-case variants.CHANNEL_ID: optional channel or thread identifier in frontmatter. Preserve it across replies when present.RECEIVER_INBOX_PATH: the exact inbox path of the intended receiver in frontmatter. Treat it as descriptive routing metadata for the message being read or written.REPLY_INBOX_PATH: the exact inbox path where the receiver should send the next reply, if any, in frontmatter.NEW messages, the body is the user prompt to process.REPLY messages, the body is the reply content to deliver. Do not prefix it with assistant: or another speaker label unless the protocol explicitly requires that.Channel Handling:
CHANNEL_ID is optional.CHANNEL_ID across replies when it is present.CHANNEL_ID, you may reply with the full response only to the latest one.CHANNEL_ID that have been superseded by a newer pending message, you may use the minimal empty reply body: "".REPLY mailbox message for each one and deliver it by copying the completed scratch message to the correct destination inbox path.Quality rules:
CHANNEL_ID as a strong routing hint when it is present.MESSAGE_TYPE: REPLY as the default terminal step unless the message explicitly or implicitly requires another round.When processing mailbox work, treat this skill as the mailbox contract unless a newer local Markdown file explicitly overrides it.
共 1 个版本