
apple-mail: an agent skill that gives AI assistants full control over macOS Mail.app
I open-sourced an agent skill that gives AI coding assistants full control over macOS Mail.app: read, search, compose, reply, forward, move, delete, and label emails without leaving the editor. It ships as a self-contained skill directory. Drop it into your agent's skill folder (e.g. .cursor/skills/ ) and the agent can triage your inbox, draft replies, and organise mail on your behalf. It works with Cursor, Claude Code, or any agent that can invoke shell commands. Why? Scripting Bridge calls to Mail.app are slow (seconds per message). This skill reads .emlx files directly from disk (~5 ms per message) and maintains a SQLite FTS5 search index for fast full-text search across body, subject, and sender. Highlights Disk-first reads : parses .emlx files directly (~5 ms per message vs seconds via the scripting bridge) FTS5 search : SQLite full-text search index across body, subject, and sender Exchange-safe deletes : uses RFC Message-ID so it works reliably with Exchange accounts Draft-first
Continue reading on Dev.to Python
Opens in a new tab



