跳到正文
Skillpedia
邮件与消息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 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. Always confirm recipient and message content before sending
  2. Never send to unknown numbers without explicit user approval
  3. Verify file paths exist before attaching
  4. 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。

详情

作者的原始描述

Send and receive iMessages/SMS via the imsg CLI on macOS.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#587
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能