mail-draft

mail-draft is a skill for Claude Code from bks-lab/open-bridge. It costs 85 tokens per session (2,230 once invoked), scanned A, original, MIT.

An email drafting tool that prepares a message as a draft in Apple Mail, Outlook, or an .eml file, but never sends it. It uses configured identity, recipient, occasion, language, and visual settings.

In plain words
What is it for?
Use it to prepare outgoing emails with the appropriate recipient details, footer, attachments, tone, and mail-safe HTML formatting.
Why use it?
It reduces the risk of sending an incorrect email by leaving the final review and sending step to a person. It also avoids rebuilding greetings, signatures, and formatting each time.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to prepare outgoing emails with the appropriate recipient details, footer, attachments, tone, and mail-safe HTML formatting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bks-lab/open-bridge/mail-draft
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bks-lab/open-bridge --skill mail-draft
Clone the repo
git clone --depth 1 https://github.com/bks-lab/open-bridge

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mail-draft

README.md
[![agentmods](https://agentmods.dev/badge/skills/bks-lab/open-bridge/mail-draft/github.svg)](https://agentmods.dev/skills/bks-lab/open-bridge/mail-draft)
Your own site
<a href="https://agentmods.dev/skills/bks-lab/open-bridge/mail-draft"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/mail-draft/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mail-draft

Your own site · 80×15
<a href="https://agentmods.dev/skills/bks-lab/open-bridge/mail-draft"><img src="https://agentmods.dev/badge/skills/bks-lab/open-bridge/mail-draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,230 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02230
Opus 5.5 $0.00034 $0.00892
Sonnet 5.5 $0.00017 $0.00446
Haiku 4.5 $0.00009 $0.00223

Measured 18d ago against content hash 800e3c0908eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mail-draft scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

The scan reads SKILL.md. This mod also ships 33 executable files (engine/__init__.py, engine/cli.py, engine/clients/__init__.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mail-draft/SKILL.md · 157 lines

How it starts

The opening of the file, as written. The whole thing — 157 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mail-draft

Builds a mail as a DRAFT in the person's mail client. The person reads it and presses Send. There is no send command, not behind a flag, not in any client module: a draft that is wrong costs a minute, a sent mail that is wrong cannot be taken back. "Send X to Y" is a request for the finished draft.

Engine: skills/mail-draft/mail-draft.sh (Python, stdlib + PyYAML). Model and every field: docs/mail-draft.md.

What decides what

Question Answered by Tier
Who signs, how to reach them identity/mail-footers/<id>.yaml (borrows from a persona) user / org
What occasion, which footer, greeting, attachments workflow/mail-profiles/<id>.yaml user / org
Who receives it, in which language, formal or not identity/mandants/<id>.yaml (mail_profile, defaults.language, defaults.address_form) user
Colours and type DESIGN.md through the design theme core / fork
Machine defaults (client, drafts folder) bridge-config.yaml mail: user
Which senders store drafts on the server, on which machines bridge-config.yaml mail.imap_accounts user

CORE ships only the engine, the two _schema.yaml and the two _template.yaml. Every real footer and profile is a USER file (or org when a team shares one through an overlay), and the schema refuses scope: core for a footer.

Decision tree

Request about mail
├── write / draft / "send" a mail ──────────► § Draft a mail
├── answer / reply to a mail ───────────────► § Reply (--reply-as-new)
├── "how will X be addressed?" ─────────────► mail-draft.sh explain --to X
├── new footer / signature / profile ───────► § Set up
├── paste a signature into Outlook/Mail ────► mail-draft.sh signature <footer> --out <dir>
├── "is my mail setup ok?" ─────────────────► mail-draft.sh validate && mail-draft.sh list
└── "what can my mails look like?" ─────────► mail-draft.sh gallery --open

Draft a mail

  1. Resolve the recipient and occasion first: mail-draft.sh explain --to <who>. It prints the profile, footer, language, form of address and sender, each with the reason. If the profile names a style_skill, load that skill before writing the text.
  2. Write the body as Markdown into a file (greeting and sign-off come from the profile; leave them out unless the text needs its own). Syntax: headings, lists, tables, > [!NOTE] alerts, [[Button]](url), [done] badges, {{snippet:<name>}} from the profile.
  3. Preview and show the person the text part in chat: mail-draft.sh preview --to <who> --subject "<s>" --body-file <f> [--attach <file>]
  4. On their go: mail-draft.sh compose ... with the same arguments. Preflight errors stop it (missing attachment, leftover {placeholder}, required attachment absent). Warnings are printed for the person.
  5. Report what the command printed: client, recipients, attachments, whether the Drafts folder counted it, and for Outlook that "From" must be switched by hand. Never claim a draft that was not verified.

Read the full file on GitHub · 157 lines

Files

What ships with it

44 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago Changed · +17 lines 800e3c0908eb
  2. 25d ago Changed · +2 lines · +3 tokens per session 46d0e99b061b
  3. 1mo ago Changed · +29 lines e9ded385badd
  4. 1mo ago First seen · 109 lines · 82 tokens per session scan A e2f5f24274f4

Subscribe to this mod's changes

mail-draft is a skill published in the GitHub repository bks-lab/open-bridge (16 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 2,230 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-08.

Related

mail-draft compared with skills from other repositories

mail-draft next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mail-draftbks-lab/open-bridgeSkill16todayMITA85Claude Code
agent-user-toolsruvnet/rufloSkill83ktodayMITA16Claude Code
V3 CLI Modernizationruvnet/rufloSkill83ktodayMITA35Claude Code
Hooks Automationruvnet/rufloSkill83ktodayMITC46Claude Code
agent-quorum-managerruvnet/rufloSkill83ktodayMITA18Claude Code
agent-agentruvnet/rufloSkill83ktodayMITA13Claude Code
agent-crdt-synchronizerruvnet/rufloSkill83ktodayMITA25Claude Code