inbox-triage

inbox-triage is a skill for Codex from dcramer/agents. It costs 61 tokens per session (1,902 once invoked), scanned A, original, Apache-2.0.

An inbox-cleanup workflow for Gmail that applies private account rules and records its decisions. It considers sender, recipients, message content, and relationship history before making audited spam, archive, or unsubscribe changes.

In plain words
What is it for?
Use it for inbox triage, scheduled cleanup, verified unsubscribe actions, or correcting earlier sorting decisions.
Why use it?
It helps clean a busy inbox without applying one broad rule to every message. Unclear cases are left unchanged, and it does not delete mail or draft replies.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for inbox triage, scheduled cleanup, verified unsubscribe actions, or correcting earlier sorting decisions.

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

Made for: 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 inbox-triage

README.md
[![agentmods](https://agentmods.dev/badge/skills/dcramer/agents/inbox-triage/github.svg)](https://agentmods.dev/skills/dcramer/agents/inbox-triage)
Your own site
<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.

agentmods 80×15 button for inbox-triage

Your own site · 80×15
<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>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,902 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.00061 $0.01902
Opus 5.5 $0.00024 $0.00761
Sonnet 5.5 $0.00012 $0.00380
Haiku 4.5 $0.00006 $0.00190

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

Security

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.

skills/inbox-triage/SKILL.md · 44 lines

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Read the full file on GitHub · 44 lines

Files

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.

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. 1mo ago Changed · -21 lines · +3 tokens per session 5f1639e2816b
  2. 1mo ago First seen · 65 lines · 58 tokens per session scan A ea7ca595f248

Subscribe to this mod's changes

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.

Related

inbox-triage compared with skills from other repositories

inbox-triage next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
inbox-triagedcramer/agentsSkill571mo agoApache-2.0A61Codex
orbit-notionnexu-io/open-designSkill110ktodayApache-2.0A117Claude Code, Codex
agentmailpaperclipai/paperclipSkill118kyesterdayMITA30Claude Code, Codex
rowboat-spacesrowboatlabs/rowboatSkill18kyesterdayApache-2.0A60Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20k12d agoMITA184Claude Code
feishuHmbown/CodeWhaleSkill41kyesterdayMITA33Claude Code, Codex
pinchtab-mcppinchtab/pinchtabSkill11k5d agoMITA52Claude Code, Codex