Reading and managing Apple Mail via JXA. Use when working with email, archiving messages, or processing the inbox.
Claude Code
$ npx -y skills add bendrucker/claude --skill mail --agent claude-code
Codex
$ npx skills add bendrucker/claude --skill mail -a codex -y
Cursor
$ npx skills add bendrucker/claude --skill mail -a cursor -y
Gemini CLI
$ npx skills add bendrucker/claude --skill mail -a gemini-cli -y
GitHub Copilot
$ npx skills add bendrucker/claude --skill mail -a github-copilot -y
OpenCode
$ npx skills add bendrucker/claude --skill mail -a opencode -y
Windsurf
$ npx skills add bendrucker/claude --skill mail -a windsurf -y
SKILL.md
mail.SKILL.mdname: mail description: Reading and managing Apple Mail via JXA. Use when working with email, archiving messages, or processing the inbox.
Apple Mail automation via JXA (`osascript -l JavaScript`).
Archiving
Mail.app `delete()` moves messages to Trash, not Archive. There is no `archiveMailbox` property — find the archive mailbox by name per account.
See [archiving.md](archiving.md) for account detection, mailbox lookup, and batch archive patterns.
Reading
var app = Application("Mail");
var inbox = app.inbox();
var messages = inbox.messages();Key properties: `subject()`, `sender()`, `dateReceived()`, `content()`, `mailbox().account()`.
Notes
- JXA arrays from Mail may lack `.map()/.filter()` — use `Array.from()` or for-loops
- `.whose()` selectors fail on child mailbox arrays — use for-loops
- Launch Mail first if not running: `open -g -a "Mail"`
Other skills on claude.
cli
Type-safe CLI argument parsing with commander and @commander-js/extra-typings, the standard parser for this repo's Bun scripts.…
prose-lab
Turn the user's labels on repo prose, or their notes from reviewing a document in Plannotator, into calibrated Vale rules.
activity
Report real device usage from ActivityWatch. Covers per-app time, window titles, and active vs idle spans. Use when asked "what…
agent-team
Orchestrating Claude Code agent teams. Use when creating teams, spawning teammates, assigning tasks, configuring teammate modes,…
handoff
Hand the current conversation off to a fresh background agent that picks up the work immediately, so you can step away and track…
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about mail.
- Which coding agents can use mail?
- mail installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

