mailbuttons
БесплатноБез исполняемых скриптовНе проверенWire up a governed email inbox for an AI agent using Mailbuttons. Use this skill whenever the user wants to give an agent, app, bot, or workflow its own email…
от mailbuttons633 установки в других каталогахОб этом скилле
Mailbuttons — governed agent email setup
Mailbuttons is governed email for AI agents: give an agent its own inbox, but every message is checked against your policy on Mailbuttons' servers before the model sees it, the agent only acts on senders you've allowed, and every action is logged. EU/UK hosted. Sign up and get an API key at mailbuttons.com — docs at mailbuttons.com/developers.
This skill scaffolds a complete, working email integration for an AI agent against Mailbuttons, end to end: a sandbox inbox, a reviewed policy, wired inbound delivery, example code for the user's stack, and a green self-test. Then it stops and hands the "go live" decision to a human.
The one rule that governs everything here
Everything you do with this skill happens in a sandbox. You never enable external sending, never promote sandbox → production, and never widen a token's scope. Those are human-only actions. When the integration is ready, you call mailbuttons_request_promotion, which returns an approval link for a person to click. You do not click it, simulate it, or work around it. This is the product's core promise — a stranger can't email the agent into doing something it shouldn't, and the agent can't grant itself permission either. Respect it exactly.
If a user asks you to enable external send, raise the limit, or "just make it live," explain that promotion is a human approval by design and produce the approval request instead.
Prerequisites
MAILBUTTONS_API_KEYavailable in the environment, set to a sandbox token (mb_sandbox_...). The fastest way to get one is step 1 (it returns the token). If the user already has one, set it as an env var; do not hard-code it.- The user's account API key (for step 1 only) to provision the inbox. Provisioning is a customer action — an agent can never create its own inbox.
- The Mailbuttons MCP tools are available (this skill assumes the
mailbuttons_*tool surface). If a tool call fails with an auth error, surface the message and stop — do not retry blindly.
Workflow
Do these in order. Narrate each step plainly to the user; keep secrets out of generated code.
Create the sandbox inbox. Provision one in a single call with the user's account API key:
POST /api/v1/mcp/sandbox-inboxes(body optional{label, seed_sender}). It returns{address, inbox_id, environment:"sandbox", sandbox_token}. Setsandbox_tokenasMAILBUTTONS_API_KEYfor every subsequent (agent) call, and useinbox_id. This is a customer action, not an agent tool — the agent can't provision its own inbox, and the returned token cannot send externally. (If the user already has a sandbox inbox + token, skip this and use theirs.)Generate and review the policy. Ask the user, in one question, who the agent should accept mail from and whether it may ever send outside the org. Pass their answer to
mailbuttons_generate_policy, which writesmailbuttons.policy.jsonto the repo (allowlist, content guards, send scope, audit retention). It is closed by default (defaultAction: "bounce") and caps send scope at internal — external send is never generated. Show the user the policy and ask them to confirm it before continuing. Do not invent senders or loosen filters to make examples "work."Scaffold the integration. Detect the user's stack (see Stack detection). Call
mailbuttons_scaffold_integrationwith that stack and the sandbox inbox id. It emits example code wired to the inbox: a governed send wrapper and an inbound handler. The code reads the API key from the environment, never inline.Run the self-test. Call
mailbuttons_run_selftestwith the inbox id. It sends an internal message through the loop (send → receive → parse) entirely in sandbox and returns pass/fail per stage. If a stage fails, read the detail, fix the scaffolded code or policy, and re-run. If it reportsbackend_reachable: false, the API isn't running atMAILBUTTONS_API_URL— start it and retry. Don't proceed until it's green.Hand off promotion. When the user is ready to go live, call
mailbuttons_request_promotionwith the inbox id and the capabilities they want (e.g.send_external). Return theapproval_urland tell the user a human must approve it in the dashboard (or runmailbuttons promotein the CLI). Stop there.
Tool reference
Build-time (stdio / local only):
mailbuttons_generate_policy— turn a plain-language allow/block description intomailbuttons.policy.json. Closed by default; never invents senders; never generates external send.mailbuttons_scaffold_integration— emit example code (governed send wrapper + inbound handler) for a target framework, wired to the sandbox inbox id.mailbuttons_run_selftest— exercise send (internal) → receive → parse in sandbox; reports pass/fail per stage and a clean "backend unreachable" ra
Установить mailbuttons в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mailbuttons?
Wire up a governed email inbox for an AI agent using Mailbuttons. Use this skill whenever the user wants to give an agent, app, bot, or workflow its own email address; set up sending or receiving email for an agent; add an agent inbox, sender allowlist, or email webhook; or integrate "Mailbuttons", "mbag", or "email for AI agents." Trigger this even when the user just says things like "let my agent send/receive email", "give my bot an inbox", "handle email in my agent", or names Mailbuttons/mbag — and even if they don't say the word "skill". This skill always works in a sandbox and never enables sending to external recipients without an explicit human approval step.
Как установить скилл mailbuttons?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mailbuttons запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic