邮件与消息11k · #11725
imsg
它能做什么
这项技能让 AI 通过 Mac 上的信息应用读取和发送 iMessage 或短信。适合希望智能体帮忙处理个人短信的人。
适用场景
- ✓当你明确要求向某人发送 iMessage 或短信时。
- ✓当你想读取某个信息对话的近期记录时。
- ✓当你想查看最近的信息聊天列表的时候。
技能链接
https://github.com/spinabot/brigade/blob/main/skills/imsg/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/spinabot/brigade/blob/main/skills/imsg/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add spinabot/brigade --skill imsg
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/spinabot/brigade/main/skills/imsg/SKILL.md -o SKILL.md
可以这样问 AI
“请显示我最近的五个信息聊天,然后给 Sam 发短信,告诉他晚饭七点开始。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会在 Mac 上运行 imsg 命令行工具。它可以列出聊天、读取聊天记录,并向电话号码或 Apple ID 发送短信。信息应用必须已登录,并且已授予相应权限。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
imsg
Use imsg to read and send iMessage/SMS via macOS Messages.app.
When to Use
✅ USE this skill when:
- User explicitly asks to send iMessage or SMS
- Reading iMessage conversation history
- Checking recent Messages.app chats
- Sending to phone numbers or Apple IDs
When NOT to Use
❌ DON'T use this skill when:
- Telegram messages → use
messagetool withchannel:telegram - Signal messages → use Signal channel if configured
- WhatsApp messages → use WhatsApp channel if configured
- Discord messages → use
messagetool withchannel:discord - Slack messages → use
slackskill - Group chat management (adding/removing members) → not supported
- Bulk/mass messaging → always confirm with user first
- Replying in current conversation → just reply normally (Brigade routes automatically)
Requirements
- macOS with Messages.app signed in
- Full Disk Access for terminal
- Automation permission for Messages.app (for sending)
Common Commands
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
Watch for New Messages
imsg watch --chat-id 1 --attachments
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
# Specify service
imsg send --to "+14155551212" --text "Hi" --service imessage
imsg send --to "+14155551212" --text "Hi" --service sms
Service Options
--service imessage— Force iMessage (requires recipient has iMessage)--service sms— Force SMS (green bubble)--service auto— Let Messages.app decide (default)
Safety Rules
- Always confirm recipient and message content before sending
- Never send to unknown numbers without explicit user approval
- Be careful with attachments — confirm file path exists
- Rate limit yourself — don't spam
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"
常见问题
需要哪些权限?
终端需要完全磁盘访问权限,并且信息应用必须被允许发送消息。
它可以把人加入群聊吗?
不可以。该技能不支持管理群成员。
它能处理群发消息吗?
群发消息应始终先与你确认,因此该技能不会一次性向许多人发送消息。
详情
作者的原始描述
iMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
repo: spinabot/brigade
热度
- GitHub 星标
- 11k
- 排名
- #11725
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …