email-sorting

email-sorting is a skill for Codex from AiAi-Mastermind/aiai-mastermind-tools-and-skills. It costs 66 tokens per session (1,571 once invoked), scanned A, original, MIT.

An email-organising workflow for Gmail, Google Workspace, Outlook, Microsoft 365, and similar mailboxes. It first studies a limited sample without changes, then lets a person review and approve sorting recommendations before applying them.

In plain words
What is it for?
Use it to set up or redesign sorting rules, review inbox batches, recommend folders or labels, and apply selected sorting actions to an authorised mailbox.
Why use it?
Inbox cleanup can be risky when labels, folders, or messages are changed without confirmation. This separates recommendations from approved changes and does not send or reply to email.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to set up or redesign sorting rules, review inbox batches, recommend folders or labels, and apply selected sorting actions to an authorised mailbox.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting
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 AiAi-Mastermind/aiai-mastermind-tools-and-skills --skill email-sorting
Clone the repo
git clone --depth 1 https://github.com/AiAi-Mastermind/aiai-mastermind-tools-and-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting/github.svg)](https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting)
Your own site
<a href="https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting/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-sorting

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting"><img src="https://agentmods.dev/badge/skills/aiai-mastermind/aiai-mastermind-tools-and-skills/email-sorting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,571 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.00066 $0.01571
Opus 5.5 $0.00026 $0.00628
Sonnet 5.5 $0.00013 $0.00314
Haiku 4.5 $0.00007 $0.00157

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

Security

Grade A, and why

email-sorting 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/init_workspace.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/email-sorting/SKILL.md · 76 lines

How it starts

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

Email Sorting

Help the business owner work in their existing mailbox and talk directly to their AI assistant. Learn how they work before recommending another structure. The first run is a read-only consultation. Setup and sorting are separate approvals.

Choose the mode

  • Install or customize: No approved private profile exists, the account changed, or the member asks to redesign the system. Follow SETUP.md.
  • Propose a sort: Load the approved profile and provider reference. Read a bounded batch, normally 15 conversations, and show recommendations. Write nothing to the mailbox.
  • Apply approved rows: Use the exact reviewed proposal and the member's explicit selection. Follow the apply procedure below.

Installing the files does not connect an email account or grant write permission. Use the member's existing authorized mail tools. Follow the host's tool and account rules. If only read access is available, complete the recommendations and give a manual setup checklist. Never claim setup happened without readback.

Private configuration

Use a private workspace outside the installed skill and outside any Git repository. Keep its path in the member's private project instructions, not in the distributed package. Read profile.json there at the start of each run. If the path is unknown, ask for it; do not search unrelated private folders.

The blank profile template is a starting point, not an approved policy. It deliberately contains no account, people, sender lists or industry rules. Store customized profiles, email samples, proposals, feedback and receipts only in the private workspace. Minimize copied email content and use restricted local file permissions where supported. Never add these files to a shared skill, repository or member download.

The starting framework

Recommend these four work stages unless the member's existing structure works better:

Stage Meaning
10 Action A next step belongs to this business or person
20 Waiting A concrete response or event is expected from somebody else
30 Reading Optional reading or useful FYI with no required action
90 Filed Finished work or reference material with no unresolved obligation

Read the full file on GitHub · 76 lines

Files

What ships with it

11 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. 4d ago First seen · 76 lines · 66 tokens per session scan A e598cc690c20

Subscribe to this mod's changes

email-sorting is a skill published in the GitHub repository AiAi-Mastermind/aiai-mastermind-tools-and-skills (2 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 1,571 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-10-16.

Related

Other skills, from other repositories

apply

A browser-based job application workflow for submitting applications through services such as Ashby, Greenhouse, Lever, and Hacker News. It uses prepared candidate information, answers, job links, and cover letters.

tonydzi/second-brain-starter-kit · 66 tokens

screenpipe-api

Query the user's local and synced-device data via the screenpipe REST API at localhost:3030 — recordings, audio, UI, meetings, connected services, and memory. Use for screen activity, other-device or cross-device history, productivity, media export, connections, durable memory, or discovering and automating saved…

tonydzi/second-brain-starter-kit · 68 tokens

retro-lost

Run a retrospective for an abandoned agent session (untouched for over 24 hours, never closed with a retro): rebuild context cold from the transcript, list what was built, sort Keep/Drop/Try and file the durable parts. Use from a nightly routine or on demand. Triggers: /retro-lost, retro for an abandoned session.

tonydzi/second-brain-starter-kit · 74 tokens

nsr

A routine for starting a new, visible coding-agent session automatically through a scheduled task, so it appears in the recent-session list without someone pressing a start button.

tonydzi/second-brain-starter-kit · 129 tokens

routine-opt

Audit and cut the cost of a machine's scheduled routines: measure tokens per run, pick a lever (cheaper model, split, lower frequency, shorter prefix, retire) and prove the saving with a before-and-after measurement. Use when background routines burn more than interactive work. Triggers: /routine-opt, /ropt, routine…

tonydzi/second-brain-starter-kit · 76 tokens

slot

Registry of reusable agent sessions and slot allocation: claim a free scheduled-task slot instead of creating a new session, set its prompt and fire time, and release it when done. Use when you need to spawn or reuse a visible background session.

tonydzi/second-brain-starter-kit · 50 tokens