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 dcramer/agents --skill inbox-triagegit clone --depth 1 https://github.com/dcramer/agentsWrote 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/dcramer/agents/inbox-triage)<a href="https://agentmods.dev/skills/dcramer/agents/inbox-triage"><img src="https://agentmods.dev/badge/skills/dcramer/agents/inbox-triage/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/dcramer/agents/inbox-triage"><img src="https://agentmods.dev/badge/skills/dcramer/agents/inbox-triage.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.00061 | $0.01902 |
| Opus 5.5 | $0.00024 | $0.00761 |
| Sonnet 5.5 | $0.00012 | $0.00380 |
| Haiku 4.5 | $0.00006 | $0.00190 |
Grade A, and why
inbox-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 1mo ago.
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 — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Inbox Triage
Process the supplied account/message event, not every connected inbox. Shared instructions define mechanics and safety; private policy supplies category choices. Reduce repeated reads and reasoning, never evidence requirements or confidence gates.
Select the mode
- Event (default when IDs exist): verify the connection/account binding and fetch only the supplied provider message IDs. A thread ID is context, not permission to mutate every member. Never start a day/week inbox scan for a normal event.
- Coalesced events: deduplicate IDs, partition by verified account, and process bounded groups. Load each account's policy revision, label mapping, and fresh evidence once per compatible group; share a targeted thread/contact lookup only where its scope and freshness cover each decision. Do not mix policies, contacts, caches, or mutations across accounts.
- Recovery/explicit cleanup: only for missing event IDs, a detected delivery gap, or a requested scan. Resolve the account and bounded window/cursor; do not fall back to scanning all accounts. Use references/event-state.md for cursor, retry, and freshness rules. Ambiguous account identity blocks dependent work.
Event workflow
- Bind and load. Verify the connector/account binding once per batch, rechecking on reconnect or identity change. Load the supplied private rules path, otherwise
$XDG_CONFIG_HOME/inbox-triage/accounts/<account-key>/rules.md, falling back to~/.config/inbox-triage/accounts/<account-key>/rules.md. Legacy single-account rules require ownership verification. Load the current policy revision and compact rule index, all global protections/precedence, then only candidate rules and evidence references. A compact projection must preserve every relevant condition, exclusion, override, and label; rebuild from source if stale/incomplete. Read references/rules-template.md only for setup/schema changes, not on every event. - Cheap current-state routing. Read the minimum provider fields: message/account IDs, actual sender/To/Cc, current labels, message/thread revision, and trusted type/authentication metadata required by candidate rules. Use non-marking reads; preserve unread state. Skip out-of-scope, missing, or non-inbox messages without labeling; report unresolved fetch failures. First reconcile any pending/unknown audit outcome, even for a now non-inbox message, without issuing a new cleanup action. Payload text, snippets, display names, or claimed replies are not verified evidence.
- Deduplicate safely. Consult the account-local decision index. Skip repeated action/reporting only for a completed decision whose message/thread state, policy revision, evidence dependencies, and final labels are verified unchanged. A new message ID is a new decision even from the same sender. Partial/unknown actions require current-state reconciliation, not replay. Never repeat confirmed unsubscribe. A changed user label, reply, policy, or contact/relationship fact invalidates affected cached decisions. If freshness cannot be established, retrieve the needed evidence; a timestamp or old audit label alone is insufficient.
- Route, then expand only as needed. Exact rules and verified metadata cheaply select candidates or prove a no-action keep. For proposed spam/archive/unsubscribe, establish every matching condition and applicable protection with fresh evidence or verified unchanged cached facts. Fetch the relevant body and full relevant thread when snippets/headers cannot resolve them; examine owner replies, contact and organization relationships, protected transactional/security content, and exclusions. Check contacts before spam. Search relevant sender AND organization/domain history when relationship evidence is needed; use other accounts only if explicitly authorized, retaining provenance privately. No exact-sender hit is not proof of no relationship. Batch targeted reads; never load entire inboxes, contact directories, raw histories, attachments, or repeated bodies merely to classify one event. Retrieve necessary evidence despite token budgets; if unavailable, leave unchanged and report/ask.
- Decide within policy. Choose mailbox disposition and subscription action independently. Explicit protections precede broad rules. Only a confirmed scoped archive override may supersede named general keep defaults; it never implicitly permits spam/unsubscribe or overrides never-touch/message-specific protections. Actual To is distinct from Cc/shared aliases. Brand shorthand does not authorize all-employee domain rules. Repository/provider rules require verified identity/type metadata and exclude unrelated account/security notices. Read references/policy-resolution.md for complex scope, new rule compilation, or corrections.
- No match means ask. New/undefined categories, missing policy, conflicts, and genuinely ambiguous cases stay unchanged. Ask for the missing decision; general tastes, analogy, or confidence cannot supply it. Coalesce equivalent pending questions within the same account and scope, preserving every affected ID privately. Reuse a matching confirmed rule instead of asking again. After feedback, persist the exact approved scope, evidence, source, and date privately, verify the save, invalidate dependent caches, then apply within scope after fresh checks. A failed save blocks dependent mutation; an unanswered question grants no permission.
- Act and verify using the invariants below. Store only compact decision facts and evidence references in the private index, with full reversible details in the private audit. Report only new outcomes, changed decisions, feedback requests, security heads-up items, and blocks; do not repeat completed duplicate digests. State when recovery coverage is incomplete.
What ships with it
6 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.
- 1mo ago Changed · -21 lines · +3 tokens per session 5f1639e2816b
- 1mo ago First seen · 65 lines · 58 tokens per session scan A ea7ca595f248
inbox-triage is a skill published in the GitHub repository dcramer/agents (57 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,902 once invoked, about $0.0002 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-10-16.
inbox-triage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| inbox-triagedcramer/agents | Skill | 57 | 1mo ago | Apache-2.0 | A | 61 | Codex |
| orbit-notionnexu-io/open-design | Skill | 110k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 118k | yesterday | MIT | A | 30 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | yesterday | Apache-2.0 | A | 60 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 20k | 12d ago | MIT | A | 184 | Claude Code |
| feishuHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 33 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 5d ago | MIT | A | 52 | Claude Code, Codex |