draft-mail

draft-mail is a skill for Claude Code, Codex from fmind/dot. It costs 17 tokens per session (990 once invoked), scanned A, original, MIT.

A Gmail drafting skill that writes new emails or replies as drafts for the user to review; it does not send them.

In plain words
What is it for?
It is for preparing Gmail messages and replies, including matching the recipient's language and recording a clear handoff for the user to send.
Why use it?
It avoids accidental sending while preserving the thread's language, recipients, context, and level of formality.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for preparing Gmail messages and replies, including matching the recipient's language and recording a clear handoff for the user to send.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/draft-mail
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 fmind/dot --skill draft-mail
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

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 draft-mail

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/draft-mail/github.svg)](https://agentmods.dev/skills/fmind/dot/draft-mail)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/draft-mail"><img src="https://agentmods.dev/badge/skills/fmind/dot/draft-mail/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 draft-mail

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/draft-mail"><img src="https://agentmods.dev/badge/skills/fmind/dot/draft-mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 990 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.00017 $0.00990
Opus 5.5 $0.00007 $0.00396
Sonnet 5.5 $0.00003 $0.00198
Haiku 4.5 $0.00002 $0.00099

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

Security

Grade A, and why

draft-mail 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 11d ago.

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/draft-mail/SKILL.md · 55 lines

How it starts

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

Draft Mail

Write an email or reply as a Gmail draft the user reviews and sends from Gmail. This skill never sends: a request to "send" still produces a draft plus a handoff, unless the user explicitly approves sending this exact reviewed draft in the session. gws owns authentication, MIME, and request mechanics.

Workflow

  1. Resolve the context: confirm the account with gws auth status. For a reply, find the message and read the thread with bounded queries; extract the asks, deadlines, attachments mentioned, and every recipient.

    gws gmail users messages list --params '{"userId":"me","q":"from:[email protected] newer_than:30d","maxResults":5}' --format json
    gws gmail +read --id MESSAGE_ID --headers --format json
    
  2. Match language and register: write in the language of the thread, or of the recipient's last message to the user; when none exists, ask rather than guess. Read up to three of the user's sent messages to the same person (q: "to:<address> in:sent") to mirror greeting, sign-off, and formality. In French, keep the thread's tu or vous (default vous for clients and first contact), and French typography (Bonjour Alice,, a space before ? and ! when the user's mail uses one).

  3. Write in the user's voice: short paragraphs, the answer or ask first, concrete dates with weekday and timezone, one clear next step. Never invent commitments, prices, availability, attachments, or facts; mark anything the user must decide as a question in the handoff, not in the draft.

  4. Create the draft from a body file in the scratchpad, plain text by default. Use +reply (or +reply-all when every recipient should stay) for threads so headers and threading stay correct; both quote the original message automatically, so the body file holds only the new text. Preview with --draft --dry-run, then rerun without --dry-run; never remove --draft.

    gws gmail +reply --message-id MESSAGE_ID --body "$(cat "$SCRATCH/body.txt")" --draft --dry-run
    gws gmail +reply --message-id MESSAGE_ID --body "$(cat "$SCRATCH/body.txt")" --draft
    gws gmail +send --to [email protected] --subject 'Subject' --body "$(cat "$SCRATCH/body.txt")" --draft
    

Read the full file on GitHub · 55 lines

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. 11d ago Changed c717af1673f8
  2. 12d ago First seen · 55 lines · 17 tokens per session scan A f56f3f3b16d2

Subscribe to this mod's changes

draft-mail is a skill published in the GitHub repository fmind/dot (11 stars, last pushed yesterday), licensed MIT. It adds 17 tokens to every session and 990 once invoked, about $0.0001 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-05.

Related

Other skills, from other repositories

google-workspace-cli

Use gws across Workspace APIs with schema-first calls, profile isolation, bounded reads, and verified Drive, Docs, Sheets, Gmail, Calendar, or Chat writes.

fmind/dotfiles · 38 tokens

handover

Write a self-contained follow-up prompt carrying this session's decisions, constraints, and verified findings into a fresh agent session. Use when handing unfinished work to a new context window.

fmind/dotfiles · 38 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

telegram

Send notifications, interactive questions, or multiple-choice polls to the user via Telegram. Use when the user asks to be notified ("ping me", "notify me on Telegram", "ask me when..."), when a long-running task finishes and the user is likely away, when an irreversible action needs out-of-band confirmation, or when…

laurigates/dotfiles · 117 tokens

dotfiles

Chezmoi dotfiles conventions and patterns. Use when modifying dotfiles, adding new managed files, working with chezmoi templates, or syncing agent skills and subagents through agentspec. Do NOT use for installing tools, running doctor, or updating a machine through the dotfiles CLI; use manage-machine.

urmzd/dotfiles · 67 tokens