agentleFS
n24q02mn24q02m/better-email-mcp/skills/inbox-review/SKILL.md

inbox-review

Skill33 starsChanged 8 months agoApache-2.0View on GitHub

Morning inbox workflow -- multi-account scan, thread grouping, priority classification, draft replies

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Always iterate ALL configured accounts, not just the default:

    line 13
  2. Very specific:

    Never assume a single account.

    line 24
  3. Distinctive:

    Use proper IMAP search criteria -- these are NOT free-text queries:

    line 28
  4. Distinctive:

    Start of day inbox review

    line 89
  5. Distinctive:

    When inbox has accumulated many unread messages across accounts

    line 91

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Inbox Review

Systematic morning inbox review with email-specific intelligence.

Multi-Account Handling

Always iterate ALL configured accounts, not just the default:

# List folders for all accounts first
folders(action="list")

# Then search each account
messages(action="search", query="UNSEEN", account="work@company.com")
messages(action="search", query="UNSEEN", account="personal@gmail.com")

Never assume a single account. Users with EMAIL_CREDENTIALS containing multiple accounts expect all to be checked.

IMAP Search Syntax

Use proper IMAP search criteria -- these are NOT free-text queries:

IntentCorrect syntaxWrong (will fail or return wrong results)
Unread emailsUNSEENunread, is:unread
Since a dateSINCE 2026-03-20after:2026-03-20, date>2026-03-20
From a senderFROM sender@email.comfrom:sender, sender@email.com
Flagged/starredFLAGGEDstarred, is:starred
With subjectSUBJECT "meeting notes"subject:meeting
Combine criteriaUNSEEN SINCE 2026-03-20UNSEEN AND SINCE 2026-03-20 (no AND keyword)
Unread + fromUNSEEN FROM boss@co.comUNSEEN AND FROM boss@co.com

IMAP criteria are space-separated (implicit AND). There is no explicit AND/OR keyword in basic IMAP search.

Thread Grouping

Group messages by conversation, not individual emails:

  1. Fetch unread messages
  2. Group by Subject line (strip Re:, Fwd: prefixes, normalize whitespace)
  3. Within each thread, sort by date ascending
  4. Display thread with message count: "Meeting Q2 Planning (4 messages, latest from Alice 2h ago)"

This prevents showing 10 individual replies to the same thread as 10 separate items.

Priority Classification

Classify based on recipient role and sender signals:

SignalPriorityReasoning
You are in To: fieldAction RequiredDirect request to you
You are in CC: fieldFYIInformational, no action expected
Mailing list headers presentLowBulk/automated
Reply-To differs from FromLowLikely automated/newsletter
Known sender + To: you directlyHighPersonal direct message
noreply@, notifications@LowSystem notification

Output Format

Present results grouped by priority, not by account:

## Action Required (3)
- [work] "Q2 Budget Approval" from CFO (2h ago) -- needs your sign-off
- [work] "Code Review: PR #142" from Alice (5h ago) -- review requested
- [personal] "Lease Renewal" from landlord (1d ago) -- response needed

## FYI (5)
- [work] "Sprint Retro Notes" from PM (3h ago) -- CC'd, meeting summary
...

## Low Priority (12)
- [work] 8 newsletter/notification emails
- [personal] 4 promotional emails

For Action Required items, suggest one-line draft replies the user can approve or edit.

When to Use

  • Start of day inbox review
  • Catching up after time away from email
  • When inbox has accumulated many unread messages across accounts

Download now (ZIP)

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. n24q02m/email★ 33100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.