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.
npx skills add dineshdb/pie --skill apple-mailgit clone --depth 1 https://github.com/dineshdb/pieWrote 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.
[](https://agentmods.dev/skills/dineshdb/pie/apple-mail)<a href="https://agentmods.dev/skills/dineshdb/pie/apple-mail"><img src="https://agentmods.dev/badge/skills/dineshdb/pie/apple-mail/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.
<a href="https://agentmods.dev/skills/dineshdb/pie/apple-mail"><img src="https://agentmods.dev/badge/skills/dineshdb/pie/apple-mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00432 |
| Opus 5.5 | $0.00008 | $0.00173 |
| Sonnet 5.5 | $0.00004 | $0.00086 |
| Haiku 4.5 | $0.00002 | $0.00043 |
Grade A, and why
apple-mail 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.
What it actually says
Apple Mail
Search, read, and send emails through Apple Mail via osascript IPC. Routes through Mail.app's own process — no Full Disk Access needed.
Use --md for markdown rendering.
Usage
mail.py <command> [options] --md
search
mail.py search --from "newsletter@" --limit 10
mail.py search --mailbox "INBOX" --unread
mail.py search --subject "weekly" --after 2026-01-01
Flags: --from, --subject, --mailbox, --after, --before,
--unread, --flagged, --limit N
Output: pipe-delimited id|sender|subject|date
read
mail.py read <message_id>
Message ID is the Apple Mail message id string from search output.
send
mail.py send --to "[email protected]" --subject "Hello" --body "..."
mail.py send --to "[email protected]" --subject "Hello" --body-file body.txt
echo "body" | mail.py send --to "[email protected]" --subject "Hello"
accounts
mail.py accounts
Lists configured Mail accounts (name, type, emails).
perm
mail.py perm
Opens System Settings → Privacy & Security → Full Disk Access. (Not required for osascript commands, only for any SQLite-based tools.)
Notes
- Search only scans the specified mailbox (default: INBOX)
- Message IDs are Apple Mail
message idstrings (not ROWIDs) --fromand--subjectare substring filters applied in AppleScript- Mail.app must be running or launchable
- No TCC prompts — uses Apple Events IPC, not direct file access
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 72 lines · 20 tokens per session scan A b9281f319786
apple-mail is a skill published in the GitHub repository dineshdb/pie (2 stars, last pushed 1mo ago), licensed MIT. It adds 20 tokens to every session and 432 once invoked, about $0.0001 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-08-31.
Other skills, from other repositories
reggeli-napindito
Reggeli összefoglaló: email, naptár, AI hírek, plus Dream Engine top-of-message.
automation
Create, inspect, update, delete, and run Kun scheduled tasks or saved workflows.
folyamatos-ellenorzes
Ellenorizd: 1) Naptar - van-e meeting 1 oran belul? 2) Email - jott-e surgos level az elmult oraban? 3) Kanban - van-e mai hataridovel kartya? Ha BARMIT talalsz ami fontos, szolj a beallitott csatornan tomoren. Ha minden csendes, ne irj semmit.
audiobook-maker
A workflow for turning long text, novels, and reports into spoken audio files. Text longer than 3,000 Chinese characters is split into smaller sections before speech is generated.
handoff
Compact the current session into a handoff document. A fresh session or another agent can pick it up with no need to re-derive context. Use when asked to hand off, hand over, wrap up for another session or agent, or park work mid-stream.
automation-workflows
Design and implement automation workflows to save time and scale operations as a solopreneur. Use when identifying repetitive tasks to automate, building workflows across tools, setting up triggers and actions, or optimizing existing automations. Covers automation opportunity identification, workflow design, tool…