Agent Skill

Use this skill when an agent works in an afmail mailbox workspace or needs to operate mail with the afmail CLI/API. Prefer afmail over manually editing workspace metadata or using ad hoc IMAP/SMTP scripts.

For flag-level detail, run afmail <command> --help, which returns every legal argument combination of that command at once, or afmail --docs for the whole reference. This skill covers behavior, decisions, and recovery only.

Request Vocabulary

Automatic discovery of this skill does not authorize an operation. Apply these separate boundaries:

Capability Boundaries

Core Rules

Connecting A Mailbox

Product Demo

Human Review Sessions

The open Review is bidirectional

There is no batch: every item settles on its own

review_stale: marked per item, not a whole-session block

Reading what got settled

Notes and drafts

HTTP API Integrations

Triage Decisions

Reasons, Audit, And Notes

Push Discipline

Local Work Agents May Do Freely

Cases, Drafts, And Attachments

Contacts

Archiving And Archived Cases

Native file channels

A workspace can receive non-email messages through files.sources. Use afmail pull --files to select them explicitly, then the normal case, draft, Review, and confirmed push commands. Replies inherit a typed source/conversation route; inspect that route and the output path in the push plan. Do not convert participant ids into email addresses or add SMTP/IMAP steps. File channels currently support text replies, without attachment transfer, cc, bcc, reply-all, or remote draft upload. Input records remain producer-owned. An interrupted publication with missing output is uncertain; never requeue it just because a consumer might have removed the file. See docs/channels.md for contracts.

Event-driven Cloudflare receipt