mail-service

mail-service is a skill for Claude Code, Codex from ellmos-ai/bach. It costs 73 tokens per session (692 once invoked), scanned A, original, MIT.

A service for reading and sending email with a focus on financial information. It can access IMAP and Gmail accounts, extract PDF attachments, identify providers, and categorise tax-related messages.

In plain words
What is it for?
Use it to import financial emails, extract PDF attachments, assign tax categories, export data as JSON, and send a confirmed Gmail draft.
Why use it?
It gathers financial information from email and prevents accidental sending by saving every outgoing message as a draft until the user confirms it.

Skill for Claude CodeCodex

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

Good fit Use it to import financial emails, extract PDF attachments, assign tax categories, export data as JSON, and send a confirmed Gmail draft.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ellmos-ai/bach/mail"><img src="https://agentmods.dev/badge/skills/ellmos-ai/bach/mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 692 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.00073 $0.00692
Opus 5.5 $0.00029 $0.00277
Sonnet 5.5 $0.00015 $0.00138
Haiku 4.5 $0.00007 $0.00069

Measured 2mo ago against content hash 7f6ed7bbb4e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mail-service 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 2mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (__init__.py, account_manager.py, email_sender.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.

system/hub/_services/mail/SKILL.md · 69 lines

What it actually says

Mail Service

Kategorie: Kommunikation & Finanz-Datenquellen Integration: tools/send_report.py (Gmail-Versand), tools/llmauto/chains/session_financial_mail.json Handler: keiner eigenstaendig (Mail-Handler-Paket in hub/email.py getrennt hiervon)


Zweck

Finanzrelevante E-Mails erfassen, extrahieren und kategorisieren sowie E-Mails sicher versenden. Sicherheitsprinzip: Es wird nie direkt versendet — jede Mail wird zunaechst als Draft in der DB gespeichert und erst nach confirm <id> durch den User gesendet.


API / Module

Modul Funktion
mail_service.py Financial Mail Service v1.1: IMAP- + Gmail-OAuth2-Abruf, Pattern-Matching (Anbieter-Erkennung), PDF-Anhang-Extraktion, Steuer-Kategorisierung, N8N-JSON-Export, Daemon-Integration
email_sender.py E-Mail-Versand via Gmail API (OAuth2); Draft-zuerst-Prinzip, Versand nur nach confirm <id>
account_manager.py Verwaltung von IMAP-Konten (Keyring-Passwortspeicher) und Gmail-API-Konten
mail_setup.py OAuth2-Einrichtung: python mail_setup.py check (Status), python mail_setup.py refresh (Token erneuern)
mail_abo_sync_service.py Sync: financial_subscriptions (Mail-Extraktion) → abo_subscriptions (zentrale Abo-Verwaltung)

Konfiguration im Ordner:

  • config.json — Service-Konfiguration
  • providers.json / providers.schema.json — Anbieter-Patterns (valide against Schema)
  • schema_financial.sql — Tabellen-Schema der Finanz-Extraktion

Abhaengigkeiten

  • keyring (IMAP-Passwoerter), imaplib
  • Gmail API: credentials.json / token.json (OAuth2, read + send)
  • User-DB: financial_subscriptions, Draft-Tabelle
  • abo-Verwaltung (abo_subscriptions) fuer Abo-Sync
  • N8N (optionaler JSON-Export)
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. 2mo ago First seen · 69 lines · 73 tokens per session scan A 7f6ed7bbb4e5

Subscribe to this mod's changes

mail-service is a skill published in the GitHub repository ellmos-ai/bach (9 stars, last pushed today), licensed MIT. It adds 73 tokens to every session and 692 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-09-22.

Related

mail-service compared with skills from other repositories

mail-service next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mail-serviceellmos-ai/bachSkill9todayMITA73Claude Code, Codex
x402browser-use/browser-useSkill122kyesterdayMITA166Claude Code
connect-recommendstripe/aiSkill2.1k6d agoMITA151Claude Code, Codex
stripe-implementation-plannerstripe/aiSkill2.1k6d agoMITA106Claude Code
metronomestripe/aiSkill2.1k6d agoMITA184Claude Code, Codex
stripe-bfcm-dashboardstripe/aiSkill2.1k6d agoMITA120Claude Code, Codex
stripe-best-practicesstripe/aiSkill2.1k6d agoMITA161Claude Code, Codex