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.
npx skills add ithinkihaveacat/dotfiles --skill mail-gatewaygit clone --depth 1 https://github.com/ithinkihaveacat/dotfilesWrote 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.
[](https://agentmods.dev/skills/ithinkihaveacat/dotfiles/mail-gateway)<a href="https://agentmods.dev/skills/ithinkihaveacat/dotfiles/mail-gateway"><img src="https://agentmods.dev/badge/skills/ithinkihaveacat/dotfiles/mail-gateway/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.
<a href="https://agentmods.dev/skills/ithinkihaveacat/dotfiles/mail-gateway"><img src="https://agentmods.dev/badge/skills/ithinkihaveacat/dotfiles/mail-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00108 | $0.01116 |
| Opus 5.5 | $0.00043 | $0.00446 |
| Sonnet 5.5 | $0.00022 | $0.00223 |
| Haiku 4.5 | $0.00011 | $0.00112 |
Grade A, and why
mail-gateway 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prepared Mail Gateway
mail-gateway implements a read-only Category 5 Vaulted Gateway for Gmail. It
holds gmail.readonly only on the trusted host and exposes a rate-limited,
age-gated, sanitised Read Level 3 Streamable HTTP (/mcp) and stdio MCP
interface (mail-gateway-mcp).
Key Boundaries
- Read-only: Never requests or implements send, compose, modify, or delete.
- Online-only: Fails fast when
AGENT_OFFLINE=1is set; Phase 2 categorisation and auth gating always use the Gemini Decisions API (gemini-decision-1, zero generated output tokens), followed by isolated zero-tool structured extraction (gemini-flash-lite-latest) only for non-auth structured categories (no heuristic fallback). - Age floor (
>=30m): Enforced on providerinternalDate(never the spoofableDate:header) across all CLI and MCP queries. - Sanitisation: Decodes RFC 2047 headers and strips scripts, styles,
comments, CSS-hidden elements, invisible Unicode (including Tag block
U+E0000–U+E007Fand variation selectors), and magic-login, password-reset, redirect-wrapped, or token-bearing URLs across both subjects and bodies. - Withholding & deep links:
auth_or_secretmessages (detected deterministically and by the isolated zero-tool classifier) have their body and subject withheld and are never stored raw in SQLite; onlymessage_id, sender metadata, a closedsecret_kindlabel,gmail_url(respecting optionalaccount_emailinconfig.toml), andrfc822_message_id(when present) are exposed so the owner can open them directly in their mail client. - JSON category metadata & optional tags: Per-category structured fields
(
orders,invoices,shipping,travel,threads,auth_or_secret) live inmessages.structured_jsonand are queried via SQLite JSON operators.action_neededis persisted on all non-auth messages. Existing Gmail labels are passed as an optional hint (maintaining Gmail filters is not required). An optional host-local TOML config (MAIL_GATEWAY_CONFIGor<data_dir>/config.toml) can declareaccount_email,gmail_query, extrabulk_labels, and custom[tags](tag = "description"), which are evaluated as additionalnoulquestions in the same Decisions API forward pass and filterable vialist --tag. - Incremental sync & token telemetry:
mail-gateway syncskips messages already stored in SQLite by default (pass--reclassifyto re-run classification after changing[tags]orbulk_labels), excludes sent, drafts, spam, and trash, reports Gemini call/token usage insyncoutput and cumulativestatus.usage, and writes$AGENT_TELEMETRY_JSONwhen set. - Structured attachments: Attachment metadata (
filename,mime_type,size_bytes,extracted) is stored separately fromnormalized_textinmessages.attachments_json([]for withheld messages). For non-bulk, tagged, or structured-category messages, small PDF/.ics/text/CSV attachments (<=2 MB, up to 3/message) have their text extracted, Phase 1 sanitised (failing closed on secrets), and stored inattachments_json.list/queryexpose metadata only;readreturns full structured records; Stage 2b extraction andmaprender body and extracted attachments together for LLM prompts. - Diagnostics & decision scores: Stage 2a numeric probabilities
(
decision_scores, zero email content/secrets) are persisted inmessages.decision_scores_jsonand returned onreadandquery auth_or_secret(never on<30mstubs). Runmail-gateway trace <file.eml> [--dir DIR]to replay a downloaded.emlthrough Phase 1, Stage 2a scores, attachment extraction, and Stage 2b without modifying SQLite. - Hard budgets: Hourly and daily message-read caps and lookback caps are persisted in SQLite per caller.
What ships with it
4 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.
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.
- today First seen · 74 lines · 108 tokens per session scan A 33bffd47945c
mail-gateway is a skill published in the GitHub repository ithinkihaveacat/dotfiles (46 stars, last pushed today), licensed Apache-2.0. It adds 108 tokens to every session and 1,116 once invoked, about $0.0004 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-12-01.
mail-gateway compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mail-gatewayithinkihaveacat/dotfiles | Skill | 46 | today | Apache-2.0 | A | 108 | Claude Code, Codex |
| herdrsfc-gh-eraigosa/dotfiles | Skill | 57 | yesterday | Apache-2.0 | A | 91 | Claude Code, Codex |
| rexfreekmurze/dotfiles | Skill | 1.0k | 7d ago | none | A | 30 | Claude Code, Codex |
| master-buildfreekmurze/dotfiles | Skill | 1.0k | 7d ago | none | C | 80 | Claude Code, Codex |
| completion-script-generatorcuriositech/windags-skills | Skill | 21 | 4d ago | none | B | 50 | Claude Code |
| diagnose_system_lagAI-Shell-Team/aish | Skill | 590 | 5d ago | Apache-2.0 | A | 78 | Claude Code |
| remote-fleet-opsAI-Shell-Team/aish | Skill | 590 | 5d ago | Apache-2.0 | A | 88 | Claude Code |