triage

triage is a skill for Claude Code, Codex from csitte/mailwarden. It costs 96 tokens per session (1,240 once invoked), scanned A, original, MIT.

Work a Gmail inbox with mailwarden — search, bulk actions, snooze, unsubscribe and recurring checks, with the rules that keep a bulk action from touching mail the user never meant to touch. Use when the user asks to triage, clean up, archive, label, snooze or unsubscribe from mail through mailwarden, before any…

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/csitte/mailwarden/triage
Any agent
npx skills add csitte/mailwarden --skill triage
Clone the repo
git clone --depth 1 https://github.com/csitte/mailwarden

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 triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/csitte/mailwarden/triage.svg)](https://agentmods.dev/skills/csitte/mailwarden/triage)
Your own site
<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>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,240 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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 $0.00096 $0.01240
Opus 5 $0.00048 $0.00620
Sonnet 5 $0.00019 $0.00248
Haiku 4.5 $0.00010 $0.00124

Measured today against content hash 25f65324add0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

skills/triage/SKILL.md · 86 lines

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_modify result carries unverifiedPredicates. 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 search first and act on the thread ids it returns.
  • dryRun: true does 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: true is 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.

Read the full file on GitHub · 86 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. today First seen · 86 lines · 96 tokens per session scan A 25f65324add0

Subscribe to this mod's changes

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.

Related

Other skills, from other repositories