Imessage

作者 nousresearch25a71a744cb9MIT252K 個星標收錄於 2026年10月8日更新於 2026年10月8日儲存庫今天更新

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

僅含說明Communication
AI 產生的概覽

在 macOS 上透過 imsg 命令列工具收發 iMessage/SMS 對話。

功能
此技能指示代理在 macOS 上使用 imsg 命令列工具列出聊天、讀取對話歷史、傳送文字訊息(可附帶檔案),以及監看新進訊息。它說明了指令語法、iMessage 與 SMS 的服務選擇,以及傳送前確認收件人等安全規則。其產出為已傳送的訊息,以及取得的聊天或歷史記錄輸出,通常為 JSON 格式。
適用情境
當使用者要求傳送 iMessage 或簡訊、讀取 iMessage 對話歷史,或查看 Messages.app 最近的聊天時使用。它不適用於其他訊息平台、群組聊天成員管理或大量群發訊息。
執行需求
需要已登入 Messages.app 的 macOS、已安裝的 imsg 命令列工具(例如透過 Homebrew 安裝)、為終端機授予完整磁碟存取權,以及為 Messages.app 授予自動化權限。此技能不含指令碼,僅為說明文件。

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

bash
imsg chats --limit 10 --json

View History

bash
# By chat IDimsg history --chat-id 1 --limit 20 --json
# With attachments infoimsg history --chat-id 1 --limit 20 --attachments --json

Send Messages

bash
# Text onlyimsg send --to "+14155551212" --text "Hello!"
# With attachmentimsg send --to "+14155551212" --text "Check this out" --file /path/to/image.jpg
# Force iMessage or SMSimsg send --to "+14155551212" --text "Hi" --service imessageimsg send --to "+14155551212" --text "Hi" --service sms

Watch for New Messages

bash
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"

bash
# 1. Find mom's chatimsg 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 confirmationimsg send --to "+1555123456" --text "I'll be late"

來源與署名

來源:nousresearch/hermes-agent位於skills/apple/imessage提交25a71a7

授權條款: MIT

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架