mail-digest

mail-digest is a skill for Claude Code, Codex from radif-ru/ai-multi-agent-system. It costs 0 tokens per session (629 once invoked), scanned A, original, MIT.

A mail-summary tool that counts email and groups it by unread status, sender and date. It uses a script to calculate the figures instead of reading every message individually.

In plain words
What is it for?
Getting totals, unread counts, the top senders and date-based breakdowns for a selected set of email.
Why use it?
It gives a quick view of inbox volume without opening and analysing each email.

Skill for Claude CodeCodex

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

Good fit Getting totals, unread counts, the top senders and date-based breakdowns for a selected set of email.

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

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-digest

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/radif-ru/ai-multi-agent-system/mail-digest"><img src="https://agentmods.dev/badge/skills/radif-ru/ai-multi-agent-system/mail-digest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 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.00000 $0.00629
Opus 5 $0.00000 $0.00315
Sonnet 5 $0.00000 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 9d ago against content hash a05b8d883419, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mail-digest 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/stats.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.

app/skills/mail-digest/SKILL.md · 41 lines

What it actually says

Description: Сводка по почте: вызывает email_list, запускает stats.py для детерминированного подсчёта, интерпретирует результат.

Skill: mail-digest

Когда использовать

  • Пользователь просит «сводку по почте», «сколько писем», «топ отправителей», «статистику по письмам».
  • Нужно быстро оценить объём входящей почты без чтения каждого письма.

Не использовать, если пользователь просит прочитать конкретное письмо — для этого скилл email-assistant и tool email_read.

Алгоритм

  1. Вызови tool email_list с нужными параметрами (provider, unread_only, limit).
  2. Сохрани JSON-вывод во временный файл (в tmp_dir пользователя).
  3. Вызови run_skill_script с skill="mail-digest", script="stats.py", args=["--input", "<путь_к_файлу>"].
  4. Интерпретируй JSON-сводку из stdout: назови цифры (всего/непрочитанных), перечисли топ-3 отправителей, укажи разбивку по датам.
  5. Верни результат в final_answer как краткий текстовый отчёт.

Скрипты

Скрипт Назначение Аргументы Вывод
stats.py Подсчёт сводки по JSON-выводу email_list --input <file> (или stdin) JSON: {total, unread, read, top_senders, by_date}

Пример

Вход: пользователь пишет «дай сводку по почте».

  1. email_list({"limit": 50}){"messages": [...], "warnings": []}
  2. Сохранить JSON в tmp/mail.json.
  3. run_skill_script({"skill": "mail-digest", "script": "stats.py", "args": ["--input", "tmp/mail.json"]})
  4. stdout: {"total": 42, "unread": 12, "read": 30, "top_senders": [["[email protected]", 8], ...], "by_date": {"2026-07-08": 5, ...}}
  5. final_answer: «Всего 42 письма (12 непрочитанных). Топ отправителей: [email protected] (8), [email protected] (5). За 2026-07-08 — 5 писем.»

Чего избегать

  • Не считай статистику в уме — для этого есть скрипт.
  • Не читай тела писем для сводки — достаточно метаданных из email_list.
  • Не забывай передать путь к файлу через --input, если JSON сохранён в файл.
Files

What ships with it

1 file 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. 9d ago First seen · 41 lines · 0 tokens per session scan A a05b8d883419

Subscribe to this mod's changes

mail-digest is a skill published in the GitHub repository radif-ru/ai-multi-agent-system (6 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 629 tokens. 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-08-31.