/apple-mail:email-managementfrom apple-mail
This skill should be used when the user asks to "help me get to inbox zero", "build a repeatable triage program", "coordinate a multi-week cleanup across mailboxes", "set up sustained email habits", or "I'm drowning in email" and needs a multi-week umbrella program coordinating triage, taxonomy, cleanup, drafting, and analytics, not a single pass. Uses get_inbox_overview, search_emails, move_email, update_email_status, manage_trash, and get_statistics; routes single-purpose work to the narrow sibling skill instead. Do NOT use for tooling-only onboarding (see apple-mail-operator), a single 5–10 minute read-first scan (inbox-triage), a one-shot bulk move/archive/delete campaign (email-archive-cleanup), folder-architecture redesign without execution (mailbox-taxonomy), Mail filter prose only (mail-rules-advisor), or drafting voice capture (email-style-profile before email-drafting).
Ships in apple-mail. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Sustained inbox organization for Apple Mail: repeatable processing habits plus Inbox Zero programs that combine reading, queues, guarded moves/trash, and analytics. Prefer narrow sibling skills (mailbox-taxonomy, email-archive-cleanup, mail-rules-advisor, email-drafting, apple-mail-operator) when the user intent is clearly one-shot or specialized; use this umbrella when they want coordinated multi-week cleanup or habitual discipline.
See recent-first-triage.md. Even in multi-week programs, daily action starts from the newest human mail in small batches (3 to 5). Widen recent_days or pull older threads only after the current recent window is cleared or the user names a specific older item.
See large-inbox-rules.md for the canonical pre-flight checklist. On large Exchange profiles, also exchange-account-patterns.md.
full_inbox_export is disabledfull_inbox_export returns UNBOUNDED_EXPORT_DISABLED. For a live backup, work one mailbox at a time and start with up to five messages per call. Prefer reviewed exact IDs, or use export_emails(scope="entire_mailbox", mailbox=..., max_emails=5, offset=0) for a positional slice. Verify the files before running the next call. For timeout recovery and how to verify a cleanup backup, see Bulk cleanup.
Umbrella programs may end in replies. Load email-drafting and follow pre-draft-verification.md before any reply_to_email call.
Paper/R&R mail with author briefs: after triage, follow research-project-tracking.md so empirical work lands in the Research issue tracker, not only in mail drafts.
Use when the request is about reducing inbox volume through habitual processing, combining analytics with guarded moves/trash, or coaching an Inbox Zero cadence that may span multiple skill handoffs.
Do NOT use for:
email-drafting (reply_to_email(message_id=...) for thread replies).inbox-triage.email-attachments.apple-mail-operator.mailbox-taxonomy (then email-archive-cleanup once moves ship).For finding a single specific email, call search_emails() directly without invoking this skill.
Internalize these before constructing any tool call. The defaults exist to keep AppleScript queries fast on large Exchange inboxes.
search_emails defaults to the last 48 hours on the configured account and inspects at most 50 messages per mailbox. Follow next_offset for more matches within the scanned window. If the response reports a scan ceiling, narrow the mailbox or dates. A wider date filter still uses the same ceiling. recent_days=0 without an explicit start date returns UNBOUNDED_SCAN_REQUIRED.list_inbox_emails defaults to the 50 most-recent emails, and 50 is also the hard per-call ceiling regardless of max_emails. For triage and drafting, pass max_emails=5 (up to 8) per batch; see recent-first-triage.md. max_emails=0 is refused with code: UNBOUNDED_SCAN_REQUIRED; full_inbox_export is disabled, so use a bounded max_emails and page with repeated calls for the rare full walk.all_accounts=True only when truly needed; otherwise let the DEFAULT_MAIL_ACCOUNT environment variable keep things scoped.When in doubt, run a narrow query first and widen only if results are insufficient.
| Request signal | Route to |
|---|---|
| "Help me get to inbox zero" / "daily habits" | This skill |
| "How does this MCP work?" / timeouts | apple-mail-operator |
| "What came in today / needs reply NOW" | inbox-triage |
| "Design folder layout / taxonomy brainstorm" | mailbox-taxonomy |
| Staged archival / bulk deletes with dry runs | email-archive-cleanup |
| Newsletter noise; propose Mail rules prose | mail-rules-advisor |
| Compose / drafts | email-drafting (+ email-style-profile beforehand) |
| Attachments extraction | email-attachments |
| Single lookup | Prefer apple-mail-operator cheat sheet vs loading this umbrella |
Templates are examples, not the skill contract. Copy-paste workflows under templates/ and examples/ must follow templates/search-patterns.md (discovery → ids → action). When in doubt, route to the narrow sibling skill above.
The MCP server enforces conservative defaults. Confirm with the user before raising any cap.
| Operation | Default cap | When to confirm with user |
|---|---|---|
manage_trash(action="move_to_trash") | 5 messages | Any time max_deletes exceeds 20 |
manage_trash(action="delete_permanent") | 5 messages | Always; this is irreversible |
manage_trash(action="empty_trash") | hard confirm via confirm_empty=True, and dry_run=False to act | Always |
move_email | 50 messages | Any bulk move (max_moves > 10); use explicit max_moves=1 for single-message filing |
update_email_status | 10 messages | Any bulk update (max_updates > 10). This tool has no dry_run, so show the collected ids and get confirmation before the call |
Pattern: identify candidates with search_emails(), preview the count and sample, confirm the user's intent, then run the destructive call with an explicit cap.
If a move or trash batch reports PARTIAL, use its confirmed total and failed IDs. Refresh those IDs and their current folder before retrying. A capped Trash deletion can leave messages behind even when every selected deletion succeeds.
Every manage_trash action defaults to dry_run=True and previews without touching mail, empty_trash included. Read the preview back to the user, then repeat the same call with dry_run=False to act. A preview that reports what would go is not proof that anything was deleted.
get_inbox_overview() to understand current state before acting.Goal: process inbox to zero or near-zero in 15 to 30 minutes. For a 5–10 minute scan only, use the inbox-triage skill instead.
get_inbox_overview() to see unread counts, recent messages, and suggested actions.get_needs_response(days_back=2, max_results=20, output_format="json") for likely replies; defaults already exclude rows with was_replied_to=true or has_draft=true and report skipped_replied_count / skipped_drafted_count. Use each row's numeric message_id for downstream reads, replies, moves, and status updates; keep internet_message_id only for replied-header correlation. Optionally use get_awaiting_reply(days_back=7) for follow-ups you sent. Use keyword search_emails only when the user names a topic.message_id, use get_email_by_id(account="...", message_id=...) for full content; do not re-search by subject.email-drafting → reply_to_email(message_id=...) for thread replies; compose_email only for new standalone mail.update_email_status(action="flag", message_ids=["..."]).move_email(message_ids=["..."], to_mailbox="...", dry_run=True) then execute.manage_trash(action="move_to_trash", message_ids=["..."]) and an explicit cap, then repeat the same call with dry_run=False to act.update_email_status(action="mark_read", message_ids=[...]).get_inbox_overview() to confirm the queue is drained.Tips:
Goal: keep folder structure healthy and archive aging messages.
list_mailboxes(include_counts=True).get_statistics(scope="account_overview") plus get_top_senders(). For per-folder volume, prefer list_mailboxes(include_counts=True); when calling get_statistics(scope="mailbox_breakdown"), pass explicit mailbox=; omitting it scopes to the default Inbox in code. Full guidance lives in references/analytics.md.mailbox-taxonomy for naming; create net-new folders with create_mailbox after explicit confirmation (rename/delete heavy work still occurs in Mail UI when needed).email-archive-cleanup):
search_emails(sender_exact="[email protected]", recent_days=30) or search_emails(sender_domain="example.com", recent_days=30) when the exact sender/domain is known; use fuzzy sender="..." only for discovery when the address is uncertain.search_emails(sender_exact="...", recent_days=30) → collect message_ids → move_email(message_ids=[...], to_mailbox="...", dry_run=True) → execute.sender=; collect ids with search_emails(sender_exact="...", ...) or search_emails(sender_domain="...", ...), then call move_email(message_ids=[...]).Archive/<year>.Human-Sender Screen applies to every archive move in this workflow. Before any id from steps 5 or 6 reaches move_email(dry_run=True, ...), apply the Human-Sender Screen in email-archive-cleanup's SKILL.md (section "Human-Sender Screen"); drop human-looking or ambiguous senders from the candidate list and archive only the confidently automated or promotional subset. This umbrella skill does not carry its own copy of the screen; all archive execution defers to email-archive-cleanup and inherits its screen, so the safety guarantee holds no matter which skill the user entered through.
Detailed safe bulk operations are documented in references/bulk-cleanup.md.
Goal: drain the inbox by processing every message exactly once.
get_inbox_overview() and get_statistics(scope="account_overview") to size the problem.manage_trash(action="move_to_trash", message_ids=[...]), then repeat the same call with dry_run=False to act.email-drafting (forward_email tool) after user confirms recipients.email-drafting → reply_to_email(message_id=...) for thread replies; compose_email only for new standalone mail. Never auto-send under --draft-safe. compose_email, create_rich_email_draft, and manage_drafts(action="create") are standalone-only and refuse Re:/Fwd: subjects or quoted bodies unless standalone_confirmed=True.move_email(message_ids=[...], to_mailbox="...") for reference material.Mindset:
| Goal | Tool | Notes |
|---|---|---|
| Inbox snapshot | get_inbox_overview() | Always the first call |
| Daily 5-min scan | inbox-triage skill | Uses needs-response + list, not full cleanup |
| Likely need reply | get_needs_response(days_back=2, output_format="json") | Fast subject-only by default; excludes already-replied/already-drafted rows unless include_already_replied=True / include_drafted=True; JSON message_id is the numeric Mail id for actions |
| Follow-ups you sent | get_awaiting_reply(days_back=7) | Optional daily check |
| Full dashboard | inbox_dashboard() | Heavier, richer view |
| Find a specific email | search_emails(subject_keyword="...") | Defaults to last 48 hours |
| Read one message by id | get_email_by_id(account="...", message_id="...") | After search/list returns an id |
| Search by sender | search_emails(sender_exact="[email protected]") or search_emails(sender_domain="example.com") | Use fuzzy sender="..." only when the address is uncertain |
| Search email bodies | search_emails(body_text="...", allow_body_scan=True) | Slower; requires explicit opt-in |
| Cross-account search | search_emails(account=None, all_accounts=True) | Costly on Exchange; use sparingly |
| Recent inbox listing | list_inbox_emails(max_emails=50, read_status="unread", include_content=False) | Default cap is 50; read_status="unread" is the cheapest pass on a large inbox. Legacy include_read=False still works but deprecated. |
| View a conversation | get_email_thread(account="...", message_id="...") | Discovery-only: if no id yet, run bounded search_emails or list_inbox_emails first, then pass returned message_id. In JSON, check all four completeness fields (thread_incomplete, window_truncated, return_limit_reached, scan_ceiling_hit) before treating the result as the whole conversation (thread-management.md) |
| Move messages | move_email(message_ids=[...], max_moves=N) | ID-first; filter scans need allow_filter_scan=True |
| Flag / mark read | update_email_status(action="...", message_ids=[...]) | ID-first; default cap 10 |
| Move to trash / delete | manage_trash(action="...", message_ids=[...]) | Previews by default; repeat the same call with dry_run=False to act. See references/bulk-cleanup.md |
| Analytics | get_statistics() and get_top_senders() | See references/analytics.md |
| Export for backup | export_emails(message_ids=[...]) or export_emails(scope="...", mailbox="...") | Prefer reviewed ids for batches; run before any large delete. Use format="eml" when raw source headers and MIME are needed; see references/bulk-cleanup.md for attachment and timeout limits. |
| Sync stale account | synchronize_account(account="...", confirm_sync=True) | Only after the user explicitly accepts that Mail may fetch a large backlog |
get_inbox_overview() and get_statistics(scope="account_overview").get_top_senders(top_n=10).search_emails(subject_keyword="...") on the default account and default 48-hour window.recent_days=30. If the tool returns code: UNBOUNDED_SCAN_REQUIRED, follow the remediation.fallback_tool field. Usually a wider recent_days covers it; for older history, page with offset across bounded calls rather than reaching for full_inbox_export, which is disabled.all_accounts=True to search every configured account.search_emails(body_text="...", allow_body_scan=True, recent_days=30) before asking to run a full scan.search_emails(has_attachments=True, ...).search_emails(mailbox="Trash", recent_days=30, ...). For a true full Trash walk, page bounded search_emails(mailbox="Trash", limit=50, offset=N) calls; full_inbox_export is disabled and never the tool for this.list_mailboxes(include_counts=True).create_mailbox if the user confirms).search_emails(subject_keyword="ProjectName", recent_days=30), widening only after review.move_email(message_ids=[...], to_mailbox="Projects/ProjectName", dry_run=True) then execute.update_email_status(action="flag", message_ids=["..."], max_updates=1).update_email_status(action="unflag", message_ids=["..."]).get_statistics(scope="sender_stats", sender="...").search_emails(sender_exact="...", recent_days=30) or search_emails(sender_domain="...", recent_days=30). If the user wants every message from this sender across all time, page with offset across bounded calls rather than ratcheting recent_days indefinitely; full_inbox_export is disabled and not an option.references/bulk-cleanup.md.message_ids from step 2 (email-archive-cleanup workflow).get_top_senders() and unsubscribe in Apple Mail.references/analytics.md: Email analytics, statistics scopes, and using get_top_senders for noise diagnosis.references/bulk-cleanup.md: Safe bulk cleanup operations with confirmation patterns.references/thread-management.md: Working with reconstructed email threads.The examples/ directory contains worked walkthroughs:
examples/email-triage.mdexamples/folder-organization.mdexamples/inbox-zero-workflow.mdThe templates/ directory holds reusable query and workflow templates referenced by the examples.
README.md (opens in a new tab)examples/email-triage.md (opens in a new tab)examples/folder-organization.md (opens in a new tab)examples/inbox-zero-workflow.md (opens in a new tab)references/analytics.md (opens in a new tab)references/bulk-cleanup.md (opens in a new tab)references/exchange-account-patterns.md (opens in a new tab)references/large-inbox-rules.md (opens in a new tab)references/pre-draft-verification.md (opens in a new tab)references/recent-first-triage.md (opens in a new tab)references/research-project-tracking.md (opens in a new tab)references/thread-management.md (opens in a new tab)templates/common-workflows.md (opens in a new tab)templates/search-patterns.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub agentic-assets/apple-mail-mcp --plugin apple-mail12 skills in this plugin
/apple-mail-archive-exportUse when the user asks to "back up an Apple Mail account", "recover my partial.emlx attachments", "search an offline mail archive", or "convert my mail for Thunderbird". Runs local scripts to snapshot the Mail cache, rebuild detached MIME payloads, verify the output, and create a SQLite search index. Also indexes verified EML and ICS plugin exports with a manifest. Route staged moves or trash to email-archive-cleanup./apple-mail-operatorThis skill should be used when the user asks "how does this Mail MCP work", "why is Mail slow", "set up Mail for the assistant", "list my accounts/mailboxes", "find an email quickly", or "export my mail in batches". Uses list_accounts, list_mailboxes, get_inbox_overview, search_emails, and export_emails. Do NOT use for sustained inbox-zero programs (see email-management), a 5–10 minute triage ritual (see inbox-triage), or drafting mail (see email-drafting)./calendar-operatorThis skill should be used when the user asks "what's on my calendar", "am I free Thursday", "add an event", "block time for this", "clean up my test calendar", or "which calendar tool should I use". Covers bounded reads, timezone handling, safe event creation, ID-first updates and deletes, and calendar management with list_calendars, list_events, create_event, delete_events, and manage_calendars. Do NOT use for coordinating meetings with other people or invitation workflows (see meeting-scheduler), and do NOT use for email work (see apple-mail-operator)./email-archive-cleanupThis skill should be used when the user asks to "archive old mail safely", "move everything from X sender" (screens out human correspondents unless confidently spam), "clear newsletters", "bulk mark read after export", "preview what would move with dry_run=True", or run staged cleanup campaigns. Uses search_emails, move_email(dry_run=True) preview → execute, update_email_status, export_emails, manage_trash (max_deletes cap), synchronize_account, and get_statistics when measuring progress. Do NOT use for taxonomy design sessions without execution (mailbox-taxonomy), proposing Mail filter rules copy (mail-rules-advisor only), drafting mail (email-drafting), or the 5-minute triage skim (inbox-triage)./email-attachmentsThis skill should be used when the user asks to "list attachments on messages about X", "save this PDF from email", "which invoices have ZIP files", or needs disk-safe attachment extraction. Uses bounded search_emails (has_attachments filters) to collect message_ids first, then list_email_attachments, save_email_attachment, get_email_by_id for confirmation, and optionally export_emails for bundles. Discovery-only; pass subject_keyword to search_emails when ids are unknown; never pass subject_keyword to list_email_attachments or save_email_attachment. Do NOT use when the real goal is writing responses (email-drafting), diagnosing slow accounts (apple-mail-operator), bulk deleting mail (email-archive-cleanup), or designing folder hierarchies (mailbox-taxonomy)./email-draftingThis skill should be used when the user asks to "draft an email", "reply to this message", "forward this thread", "verify my draft", or needs compose workflows in Apple Mail with draft-safe defaults. Covers compose_email, reply_to_email, forward_email, create_rich_email_draft, manage_drafts, verify_draft, and verify_drafts with exact message ids for replies, standalone-draft guardrails, native reply defaults, signatures, and post-draft verification. Do NOT use for inbox triage (inbox-triage), Mail MCP setup (apple-mail-operator), folder taxonomy (mailbox-taxonomy), Mail rules (mail-rules-advisor), staged bulk moves (email-archive-cleanup), or attachment extraction (email-attachments).