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 agentmods add skills/csitte/mailwarden/triagenpx skills add csitte/mailwarden --skill triagegit clone --depth 1 https://github.com/csitte/mailwardenWrote 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/csitte/mailwarden/triage)<a href="https://agentmods.dev/skills/csitte/mailwarden/triage"><img src="https://agentmods.dev/badge/skills/csitte/mailwarden/triage.svg" alt="Measured on agentmods" 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 | $0.00096 | $0.01240 |
| Opus 5 | $0.00048 | $0.00620 |
| Sonnet 5 | $0.00019 | $0.00248 |
| Haiku 4.5 | $0.00010 | $0.00124 |
Grade A, and why
triage 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 — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Triage a mailbox with mailwarden
The tools are self-describing; this is about the handful of places where the obvious call is the wrong one. Everything below is a property of the tools, not a style preference.
The one rule that prevents lost mail
search re-verifies its hits. bulk_modify does not. search fetches every thread it returns
anyway, so it checks each one's live labels against your query and drops the index's false
positives. A bulk action is sized in thousands and cannot pay that, so it acts on what Gmail's index
returned.
That matters because the index can be wrong about read state in a way that is neither rare nor
uniform: in one measured mailbox, category:updates is:unread matched 131 threads through the
thread index of which only 17 held an unread message — a bulk archive over that query would have
moved 114 threads the user had already read. Another mailbox, measured the same day, drifted not at
all. A server cannot tell which kind of mailbox it is in, and neither can you.
So:
- Every
bulk_modifyresult carriesunverifiedPredicates. Empty means the query had no condition worth distrusting — proceed. Non-empty (+UNREAD,-INBOX, …) means those conditions rest on the index alone. - When it is non-empty and a wrong hit would matter — anything the user would notice or cannot
easily undo — resolve the set with
searchfirst and act on the thread ids it returns. dryRun: truedoes not close this gap. It re-reads the same index, so it confirms how big the set is, never whether it is right. Use it for size, not for correctness.crossCheck: trueis the cheap middle option: it re-asks each predicate as a label filter and drops messages the two routes disagree about, for one extra list call per predicate. Read a disagreement as real and agreement as nothing — both routes read the same index.
Reporting what actually happened
bulk_modify returns submittedMessages, and that is the count of ids handed to the API. Gmail's
batchModify answers with no body and ignores ids it does not recognise without a word, so an
accepted request is not a performed one. Do not tell the user that N messages were archived on
the strength of that number. Pass verify: true when the outcome will be reported as done or
cannot be easily reversed, and quote verified.applied — the only field that reports something
observed.
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 · 86 lines · 96 tokens per session scan A 25f65324add0
triage is a skill published in the GitHub repository csitte/mailwarden (0 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,240 once invoked, about $0.0005 per session on Opus 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-04.
Other skills, from other repositories
gmail
Send, read, and manage Gmail messages and email attachments automatically.
google-workspace
Google Workspace integration - Gmail, Calendar, Drive operations via Google APIs.
gmail-tool
Gmail integration tool for unread checks, reading bodies, and drafts via OAuth2 Gmail API access. Use when: reading inbox mail, fetching message bodies, writing drafts, or searching labeled mail.
imap-smtp-email
Read, search, and manage email via IMAP protocol. Send email via SMTP. Supports Gmail, Outlook, 163.com, 126.com, QQ Mail, and any standard IMAP/SMTP server with multi-account support.
mail-operations
Use this skill whenever the user wants to interact with email. This includes reading inbox, sending emails, replying, searching messages, managing labels and categories, downloading attachments, setting up auto-reply rules, or triggering agents to handle incoming emails. Supports Gmail, Outlook, and IMAP/SMTP (QQ…
mail-muncher
Give an agent or script its own read-only mailbox as files on disk. Works with any IMAP server (Fastmail, iCloud, Gmail, Proton Bridge, work and self-hosted accounts) or with the Gmail API. Use when the user wants email in an agent workflow, wants to archive or export mail, wants to monitor an inbox for specific…