apple-mail
Skill0 starsChanged 6 days agoApache-2.0View on GitHub
Use only for Apple Mail or Mail.app tasks on macOS, including listing accounts and mailboxes, inspecting or searching messages, and reading, marking, archiving, moving, or deleting mail. Do not use for other Apple native apps, webmail, IMAP-only work, or generic macOS automation.
9 other projects use a version of this.
Adopted by
Most recently taken up by
- sweetrb/apple-mail-mcptheir own version, first seen Nov 4, 2026
- eins78/agent-skillstheir own version, first seen Oct 30, 2026
- ridzkyyyyy/apple-mailtheir own version, first seen Oct 9, 2026
- mitsuhiko/agent-commandstheir own version, first seen Oct 8, 2026
- mitsuhiko/agent-stufftheir own version, first seen Oct 8, 2026
- joegoldin/agent-skillstheir own version, first seen Oct 6, 2026
Other versions9 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 9
- mitsuhiko/agent-commands★ 3.2ksame name
- mitsuhiko/agent-stuff★ 3.2ksame name
- sweetrb/apple-mail-mcp★ 107same name
- CodeWithBehnam/cc-docs★ 2same name
- eins78/agent-skills★ 2same name
- joegoldin/agent-skills★ 1same name
- alfredourena/skills★ 0same name
- rauleburro/skills★ 0same name
- ridzkyyyyy/apple-mail★ 0same name
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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-defense-prepSkill
- evidence-bound-closeoutSkill
- external-learning-landingSkill
- mail-triageSkill
- xiaohongshu-repo-scoutSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Do not use this skill for webmail sites opened in a browser.
- Very specific: line 61
After move or archive, Mail may assign a new internal numeric id.
- Distinctive: line 65
Default to read-only exploration first.
- Very specific: line 66
Before destructive actions (move, archive, delete), identify the exact target messages from recent or search.
- Very specific: line 67
Prefer mailboxPath over mailbox when a folder name could be ambiguous.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Apple Mail
Overview
This skill is the macOS Mail.app entry point. It implements mail.* automation
with JSON output designed for agent workflows.
When to Use
- User asks to manage Apple Mail on this Mac
- User wants to inspect inboxes, triage messages, archive clutter, or move mail between folders
- User specifically wants local Mail.app behavior, not Gmail web UI or IMAP libraries
Do not use this skill for webmail sites opened in a browser.
Command Surface
The helper lives next to this skill at scripts/apple_apps.py.
Read-only commands:
python3 scripts/apple_apps.py mail accounts
python3 scripts/apple_apps.py mail mailboxes --account "iCloud"
python3 scripts/apple_apps.py mail recent --account "SYSU" --limit 1 --include-read
python3 scripts/apple_apps.py mail triage-meta --account "SYSU" --mailbox-path "INBOX" --limit 5 --include-read --on-date "2026-03-18"
python3 scripts/apple_apps.py mail search --account "SYSU" --query "invoice" --limit 20
python3 scripts/apple_apps.py mail search --account "SYSU" --query "Beta view" --limit 10 --include-read --include-body
python3 scripts/apple_apps.py mail read --id 141819 --account "SYSU" --mailbox-path "INBOX"Mutation commands:
python3 scripts/apple_apps.py mail mark --id 141819 --account "SYSU" --mailbox-path "INBOX" --read true
python3 scripts/apple_apps.py mail move --id 141819 --account "SYSU" --mailbox-path "INBOX" --to-mailbox "Archive"
python3 scripts/apple_apps.py mail archive --id 141819 --account "SYSU" --mailbox-path "INBOX"
python3 scripts/apple_apps.py mail delete --id 141819 --account "SYSU" --mailbox-path "INBOX"Workflow
- For daily inbox triage, start with
triage-meta. - For point lookups and thread recovery, use
search. - For one-message inspection, use
recent. - Capture the returned
id,account, andmailboxPath. - Pass those exact values into
read,mark,move,archive, ordelete.
Current Limits
- The fastest path for daily message triage is
triage-meta, which reads lightweight metadata from headers without loading message bodies. searchnow prefers lightweight thread-aware matching when--include-bodyis not set. It can use subject, sender, recipients, message ids, and reply-chain headers to return both direct hits and nearby thread context.search --include-bodynow uses a two-stage path: lightweight recall first, then body reads for only a small candidate set. This is much more practical for recent-thread recovery, but it is still not a full-mailbox text index.recentis still useful for quick one-message inspection, especiallyrecent --account ... --limit 1 --include-read.read,mark,move,archive, anddeleteare verified for top-level mailbox paths such asINBOXandArchive.- After
moveorarchive, Mail may assign a new internal numericid; refresh it with anotherrecentorreadbefore the next mutation.
Safety Rules
- Default to read-only exploration first.
- Before destructive actions (
move,archive,delete), identify the exact target messages fromrecentorsearch. - Prefer
mailboxPathovermailboxwhen a folder name could be ambiguous.
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
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.

