apple-mail

apple-mail is a skill for Claude Code, Codex from malue-ai/dazee-small. It costs 22 tokens per session (763 once invoked), scanned A, original, MIT.

A macOS mail assistant that controls Apple Mail, the built-in email app, through system automation. It can search, read, and compose messages.

In plain words
What is it for?
Use it to find recent, unread, or topic-related emails, read message contents, draft or reply to emails, and summarize unread messages.
Why use it?
It removes the need to switch to Apple Mail and manually find or draft messages. It helps turn plain-language email requests into actions in the app.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to find recent, unread, or topic-related emails, read message contents, draft or reply to emails, and summarize unread messages.

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

Made for: Claude Code, Codex.

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

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

agentmods 80×15 button for apple-mail

Your own site · 80×15
<a href="https://agentmods.dev/skills/malue-ai/dazee-small/apple-mail"><img src="https://agentmods.dev/badge/skills/malue-ai/dazee-small/apple-mail.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 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.00022 $0.00763
Opus 5 $0.00011 $0.00381
Sonnet 5 $0.00004 $0.00153
Haiku 4.5 $0.00002 $0.00076

Measured 9d ago against content hash 96895aac6e94, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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 9d 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.

instances/xiaodazi/skills/apple-mail/SKILL.md · 98 lines

How it starts

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

Apple 邮件

通过 AppleScript/JXA 操作 macOS 内置的 Apple Mail 应用,支持搜索、阅读、撰写邮件。

使用场景

  • 用户说「帮我查看最新的邮件」「有没有来自 XX 的邮件」
  • 用户说「帮我写一封邮件给…」「回复刚才那封邮件」
  • 用户说「搜索关于项目进度的邮件」
  • 用户说「帮我总结今天的未读邮件」

执行方式

获取未读邮件

osascript -e '
tell application "Mail"
    set unreadMessages to (messages of inbox whose read status is false)
    set output to ""
    repeat with msg in (items 1 thru (min of {10, count of unreadMessages}) of unreadMessages)
        set output to output & "From: " & (sender of msg) & linefeed
        set output to output & "Subject: " & (subject of msg) & linefeed
        set output to output & "Date: " & (date received of msg) & linefeed
        set output to output & "---" & linefeed
    end repeat
    return output
end tell'

读取邮件内容

osascript -e '
tell application "Mail"
    set msgs to (messages of inbox whose subject contains "关键词")
    if (count of msgs) > 0 then
        set msg to item 1 of msgs
        return "From: " & (sender of msg) & linefeed & ¬
               "Subject: " & (subject of msg) & linefeed & ¬
               "Date: " & (date received of msg) & linefeed & ¬
               "Content: " & linefeed & (content of msg)
    end if
end tell'

搜索邮件

osascript -e '
tell application "Mail"
    set results to (messages of inbox whose subject contains "搜索词" or sender contains "搜索词")
    set output to ""
    repeat with msg in (items 1 thru (min of {20, count of results}) of results)
        set output to output & (sender of msg) & " | " & (subject of msg) & " | " & (date received of msg) & linefeed
    end repeat
    return output
end tell'

创建新邮件

osascript -e '
tell application "Mail"
    set newMessage to make new outgoing message with properties ¬
        {subject:"邮件主题", content:"邮件正文", visible:true}
    tell newMessage
        make new to recipient at end of to recipients ¬
            with properties {address:"[email protected]"}
    end tell
    -- 不自动发送,让用户确认
end tell'

安全规则

  • 不自动发送邮件:创建草稿后让用户在 Mail 中确认发送
  • 不删除邮件:只读取和搜索
  • 隐私保护:不记录邮件内容到日志

Read the full file on GitHub · 98 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. 9d ago First seen · 98 lines · 22 tokens per session scan A 96895aac6e94

Subscribe to this mod's changes

apple-mail is a skill published in the GitHub repository malue-ai/dazee-small (36 stars, last pushed 5mo ago), licensed MIT. It adds 22 tokens to every session and 763 once invoked, about $0.0001 per session on Opus 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.