邮件与消息260k · #587
imessage
它能做什么
这项技能把你的 AI 连接到 Mac 上的“信息”App,使它能读取最近的对话并发送短信。适合希望获得帮助、管理 iMessage 和短信的 Mac 用户。
适用场景
- ✓你让 AI 向某个电话号码或 Apple ID 发送 iMessage 或短信的时候。
- ✓你想读取“信息”中某段对话的近期记录的时候。
- ✓你想查看最近的“信息”对话是否有新动态的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/apple/imessage/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/skills/apple/imessage/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add NousResearch/hermes-agent --skill imessage
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/NousResearch/hermes-agent/main/skills/apple/imessage/SKILL.md -o SKILL.md
可以这样问 AI
“请给我妹妹发短信,说我会晚到 15 分钟,并看看她有没有回复。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能运行 imsg 命令行工具,它读取你的“信息”记录,并通过“信息”App 发送短信。首次使用时需要完全磁盘访问权限和自动化权限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
iMessage
Use imsg to read and send iMessage/SMS via macOS Messages.app.
Prerequisites
- macOS with Messages.app signed in
- Install:
brew install steipete/tap/imsg - Grant Full Disk Access for terminal (System Settings → Privacy → Full Disk Access)
- Grant Automation permission for Messages.app when prompted
When to Use
- User asks to send an iMessage or text message
- Reading iMessage conversation history
- Checking recent Messages.app chats
- Sending to phone numbers or Apple IDs
When NOT to Use
- Telegram/Discord/Slack/WhatsApp messages → use the appropriate gateway channel
- Group chat management (adding/removing members) → not supported
- Bulk/mass messaging → always confirm with user first
Quick Reference
List Chats
imsg chats --limit 10 --json
View History
# By chat ID
imsg history --chat-id 1 --limit 20 --json
# With attachments info
imsg history --chat-id 1 --limit 20 --attachments --json
Send Messages
# Text only
imsg send --to "+14155551212" --text "Hello!"
# With attachment
imsg send --to "+14155551212" --text "Check this out" --file /path/to/image.jpg
# Force iMessage or SMS
imsg send --to "+14155551212" --text "Hi" --service imessage
imsg send --to "+14155551212" --text "Hi" --service sms
Watch for New Messages
imsg watch --chat-id 1 --attachments
Service Options
--service imessage— Force iMessage (requires recipient has iMessage)--service sms— Force SMS (green bubble)--service auto— Let Messages.app decide (default)
Rules
- Always confirm recipient and message content before sending
- Never send to unknown numbers without explicit user approval
- Verify file paths exist before attaching
- Don't spam — rate-limit yourself
Example Workflow
User: "Text mom that I'll be late"
# 1. Find mom's chat
imsg chats --limit 20 --json | jq '.[] | select(.displayName | contains("Mom"))'
# 2. Confirm with user: "Found Mom at +1555123456. Send 'I'll be late' via iMessage?"
# 3. Send after confirmation
imsg send --to "+1555123456" --text "I'll be late"
常见问题
我的 AI 会群发消息吗?
技能说明,批量或群发消息之前应始终先与你确认。
它能管理群聊吗?
不能。技能说明不支持添加或移除群成员。
它能在 Windows 上使用吗?
不能。该技能需要 macOS 和“信息”App。
详情
热度
- GitHub 星标
- 260k
- 排名
- #587
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
编程通用编程
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
编程部署与云(DevOps)
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
编程通用编程
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。
AI 与智能体智能体