instances/xiaodazi/skills/apple-mail/SKILL.md
Search, read, and compose emails in Apple Mail on macOS via AppleScript/JXA.
npx skillsauth add malue-ai/dazee-small apple-mailInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通过 AppleScript/JXA 操作 macOS 内置的 Apple Mail 应用,支持搜索、阅读、撰写邮件。
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'
development
Local web search (Tavily/Exa, requires API Key). For quick searches. If no Key configured or deep research needed, use cloud_agent instead.
development
Get current weather and forecasts (no API key required).
tools
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
tools
Start voice calls via the Moltbot voice-call plugin.