email-cleanup

email-cleanup is a skill for Claude Code, Codex from EveryInc/garbage-man. It costs 84 tokens per session (1,007 once invoked), scanned A, original, MIT.

A read-only workflow for reviewing email senders and creating rules for future messages. It inventories message headers and metadata without reading email bodies or changing the mailbox.

In plain words
What is it for?
Use it to build a sender inventory, review newsletter and sender volume in a private keyboard-friendly app, and export portable policies plus Gmail and Sieve rules. It excludes spam, trash, drafts, and sent mail.
Why use it?
It helps identify recurring senders and decide which domains should be blocked later, while avoiding accidental deletion, archiving, unsubscribing, or other mailbox changes during review.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the email-cleaner plugin — 1 skill shipped together

Good fit Use it to build a sender inventory, review newsletter and sender volume in a private keyboard-friendly app, and export portable policies plus Gmail and Sieve rules. It excludes spam, trash, drafts, and sent mail.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/everyinc/garbage-man/email-cleanup
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 EveryInc/garbage-man --skill email-cleanup
Clone the repo
git clone --depth 1 https://github.com/EveryInc/garbage-man

Made for: Claude Code, Codex.

Or install email-cleaner, the plugin that ships this one along with the rest of its 1 skill.

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 email-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/everyinc/garbage-man/email-cleanup/github.svg)](https://agentmods.dev/skills/everyinc/garbage-man/email-cleanup)
Your own site
<a href="https://agentmods.dev/skills/everyinc/garbage-man/email-cleanup"><img src="https://agentmods.dev/badge/skills/everyinc/garbage-man/email-cleanup/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 email-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/everyinc/garbage-man/email-cleanup"><img src="https://agentmods.dev/badge/skills/everyinc/garbage-man/email-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,007 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.00084 $0.01007
Opus 5.5 $0.00034 $0.00403
Sonnet 5.5 $0.00017 $0.00201
Haiku 4.5 $0.00008 $0.00101

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

Security

Grade A, and why

email-cleanup 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 3mo 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.

plugins/email-cleaner/skills/email-cleanup/SKILL.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Email Cleanup

Create future-mail policy without changing the mailbox during review. Keep runtime data in the current workspace's .mailroom/ directory, never inside this plugin.

Safety contract

  • Keep inventory, review, and export read-only.
  • Never send, draft, label, archive, trash, mark read, unsubscribe, or install server-side rules unless the user separately and explicitly asks.
  • Inventory headers and message metadata only. Do not read bodies.
  • Exclude Spam, Trash, Drafts, and Sent.
  • Do not infer that unread mail is unwanted. The user must decide every blocked domain.
  • Never ask the user to paste mailbox passwords, app passwords, or tokens into chat.
  • Do not publish, commit, or quote mailbox inventory.
  • Treat a root-domain block as broad. Show observed exact senders and representative subjects before each decision.

Create .mailroom/ with owner-only permissions. In a Git worktree, add .mailroom/ to the worktree's local .git/info/exclude; do not edit the tracked .gitignore merely to run this workflow.

Before ingestion, install the plugin's pinned runtime dependencies when <plugin-root>/node_modules is absent:

npm install --omit=dev --ignore-scripts --prefix <plugin-root>

1. Choose a source adapter

Read provider-adapters.md and use the first available route:

  1. Native email connector already available to the AI.
  2. Read-only IMAP with credentials configured locally by the user.
  3. Canonical metadata JSONL produced from another connector or a local export.

Default to unread messages from the last 60 days across non-junk mail, with Inbox membership counted separately. Honor a different user-specified window.

For native connectors, paginate completely and write one record per message to .mailroom/messages.jsonl using message-schema.md. Capture a stable message ID for deduplication, exact From address, display name, subject, date, folder/labels, and List-ID when already available. Do not open messages merely to obtain List-ID.

Read the full file on GitHub · 96 lines

Files

What ships with it

5 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. 3mo ago First seen · 96 lines · 84 tokens per session scan A a3a53d155a93

Subscribe to this mod's changes

email-cleanup is a skill published in the GitHub repository EveryInc/garbage-man (8 stars, last pushed 3mo ago), licensed MIT. It adds 84 tokens to every session and 1,007 once invoked, about $0.0003 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-08-31.

Related

email-cleanup compared with skills from other repositories

email-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
email-cleanupEveryInc/garbage-manSkill83mo agoMITA84Claude Code, Codex
email-labelerrNLKJA/gmail-labelerSkill51mo agoGPL-3.0A172Claude Code, Codex
inbox-triagetheagentledger/agent-skillsSkill68mo agononeA39Claude Code, Codex
copilotkit-channelsCopilotKit/CopilotKitSkill39ktodayMITA112Claude Code
setup-slack-channelCopilotKit/CopilotKitSkill39ktodayMITA206Claude Code
channels-setupCopilotKit/CopilotKitSkill39ktodayMITA141Claude Code
scheduleMarker-Inc-Korea/AutoRAGSkill6.2ktodayApache-2.0A119Claude Code, Codex