apple-mail-setup

apple-mail-setup is a skill for Claude Code from davekilleen/Dex. It costs 74 tokens per session (2,438 once invoked), scanned A, original, MIT.

A setup and verification tool for Apple Mail search on macOS. Apple Mail is the built-in email app on Mac computers, and its search index is the local data that makes messages searchable.

In plain words
What is it for?
Use it to connect Apple Mail, build or check its search index, and troubleshoot missing search results.
Why use it?
It addresses cases where email search returns nothing because the search index was never created or is not working.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to connect Apple Mail, build or check its search index, and troubleshoot missing search results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davekilleen/dex/apple-mail-setup
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 davekilleen/Dex --skill apple-mail-setup
Clone the repo
git clone --depth 1 https://github.com/davekilleen/Dex

Made for: Claude Code.

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 apple-mail-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/davekilleen/dex/apple-mail-setup/github.svg)](https://agentmods.dev/skills/davekilleen/dex/apple-mail-setup)
Your own site
<a href="https://agentmods.dev/skills/davekilleen/dex/apple-mail-setup"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/apple-mail-setup/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 apple-mail-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/davekilleen/dex/apple-mail-setup"><img src="https://agentmods.dev/badge/skills/davekilleen/dex/apple-mail-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,438 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.00074 $0.02438
Opus 5.5 $0.00030 $0.00975
Sonnet 5.5 $0.00015 $0.00488
Haiku 4.5 $0.00007 $0.00244

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

Security

Grade A, and why

apple-mail-setup 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 1mo 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.

.claude/skills/apple-mail-setup/SKILL.md · 218 lines

How it starts

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

Apple Mail Setup — Make Mail Search Actually Work

Purpose: Connect a community Apple Mail MCP server and — critically — build and verify its search index, so mail search reports honestly instead of failing silently.

When to run:

  • User types /apple-mail-setup
  • User asks about connecting Apple Mail, or wants Dex to read their inbox
  • /dex-doctor reports mail.apple-search as broken
  • User says mail search "finds nothing" or their daily plan misses obvious emails

The failure this prevents

Apple Mail servers have two data paths with different permissions, and only one of them announces failure:

Path Needs What happens when it's missing
List / read messages Automation permission Prompts you — you notice
Search A pre-built local index (default ~/.apple-mail-mcp/index.db), which requires Full Disk Access to build and to keep current Looks empty — or worse, returns subject/sender hits labelled as body matches.

Because list and read keep working, the integration looks healthy. On older server versions, search returned nothing. On the current supported release (0.4.3), a missing index no longer stays silent: body search falls through to a live Mail query of subject and sender, then labels those hits as body matches. That is plausible-looking evidence for a search that never read a message body.

One reporter ran the silent version for months. The labelled-as-body version is worse than silence.

So this setup is not finished when the server is registered. It is finished when the index exists, the serving process can read ~/Library/Mail, and /dex-doctor reports mail.apple-search as OK.


Process

1. Confirm the platform

Apple Mail is macOS-only. On any other platform, say so plainly and stop: "Apple Mail integration only works on macOS. For Gmail, run /google-workspace-setup."

2. Install the server

Check whether it is already installed: which apple-mail-mcp

Read the full file on GitHub · 218 lines

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. 1mo ago Changed · +8 lines 6cee6a458fd5
  2. 2mo ago First seen · 210 lines · 74 tokens per session scan A 8978a2e927a3

Subscribe to this mod's changes

apple-mail-setup is a skill published in the GitHub repository davekilleen/Dex (522 stars, last pushed 7d ago), licensed MIT. It adds 74 tokens to every session and 2,438 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-09-03.

Related

apple-mail-setup compared with skills from other repositories

apple-mail-setup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
apple-mail-setupdavekilleen/DexSkill5227d agoMITA74Claude Code
nft-standardswshobson/agentsSkill43k6d agoMITA48Claude Code
istio-traffic-managementwshobson/agentsSkill43k6d agoMITA40Claude Code
projection-patternswshobson/agentsSkill43k6d agoMITA36Claude Code
9router-web-searchdecolua/9routerSkill33k7d agoMITA74Claude Code, Codex
microservices-patternswshobson/agentsSkill43k6d agoMITA38Claude Code
track-managementwshobson/agentsSkill43k6d agoMITA44Claude Code