imsg

GitHub

用于在macOS上通过Messages.app读取和发送iMessage/SMS消息的CLI工具技能。支持列出聊天、查看历史记录、监控新消息及发送文本或附件,需确认收件人并遵守安全规范。

skills/imsg/SKILL.md linuxhsj/openclaw-zero-token

Trigger Scenarios

用户要求发送iMessage或SMS 查询iMessage聊天记录历史 检查最近的Messages.app聊天

Install

npx skills add linuxhsj/openclaw-zero-token --skill imsg -g -y
More Options

Use without installing

npx skills use linuxhsj/openclaw-zero-token@imsg

指定 Agent (Claude Code)

npx skills add linuxhsj/openclaw-zero-token --skill imsg -a claude-code -g -y

安装 repo 全部 skill

npx skills add linuxhsj/openclaw-zero-token --all -g -y

预览 repo 内 skill

npx skills add linuxhsj/openclaw-zero-token --list

SKILL.md

Frontmatter
{
    "name": "imsg",
    "homepage": "https:\/\/imsg.to",
    "metadata": {
        "openclaw": {
            "os": [
                "darwin"
            ],
            "emoji": "📨",
            "install": [
                {
                    "id": "brew",
                    "bins": [
                        "imsg"
                    ],
                    "kind": "brew",
                    "label": "Install imsg (brew)",
                    "formula": "steipete\/tap\/imsg"
                }
            ],
            "requires": {
                "bins": [
                    "imsg"
                ]
            }
        }
    },
    "description": "iMessage\/SMS CLI for listing chats, history, and sending messages via Messages.app."
}

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 message tool with channel:telegram
  • Signal messages → use Signal channel if configured
  • WhatsApp messages → use WhatsApp channel if configured
  • Discord messages → use message tool with channel:discord
  • Slack messages → use slack skill
  • Group chat management (adding/removing members) → not supported
  • Bulk/mass messaging → always confirm with user first
  • Replying in current conversation → just reply normally (Clawdbot 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

  1. Always confirm recipient and message content before sending
  2. Never send to unknown numbers without explicit user approval
  3. Be careful with attachments — confirm file path exists
  4. 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"

Version History

  • a654bcf Current 2026-07-25 07:13

Same Skill Collection

diffs/skills/diffs/SKILL.md
extensions/acpx/skills/acp-router/SKILL.md
extensions/diffs/skills/diffs/SKILL.md
extensions/feishu/skills/feishu-doc/SKILL.md
extensions/feishu/skills/feishu-drive/SKILL.md
extensions/feishu/skills/feishu-perm/SKILL.md
extensions/feishu/skills/feishu-wiki/SKILL.md
extensions/open-prose/skills/prose/SKILL.md
extensions/tavily/skills/tavily/SKILL.md
open-prose/skills/prose/SKILL.md
skills/1password/SKILL.md
skills/apple-notes/SKILL.md
skills/apple-reminders/SKILL.md
skills/bear-notes/SKILL.md
skills/blogwatcher/SKILL.md
skills/blucli/SKILL.md
skills/bluebubbles/SKILL.md
skills/browser-cdp/SKILL.md
skills/clawhub/SKILL.md
skills/discord/SKILL.md
skills/eightctl/SKILL.md
skills/gemini/SKILL.md
skills/gh-issues/SKILL.md
skills/gifgrep/SKILL.md
skills/github/SKILL.md
skills/gog/SKILL.md
skills/goplaces/SKILL.md
skills/healthcheck/SKILL.md
skills/himalaya/SKILL.md
skills/mcporter/SKILL.md
skills/model-usage/SKILL.md
skills/nano-banana-pro/SKILL.md
skills/nano-pdf/SKILL.md
skills/notion/SKILL.md
skills/obsidian/SKILL.md
skills/openai-image-gen/SKILL.md
skills/openai-whisper-api/SKILL.md
skills/openai-whisper/SKILL.md
skills/openhue/SKILL.md
skills/oracle/SKILL.md
skills/ordercli/SKILL.md
skills/peekaboo/SKILL.md
skills/session-logs/SKILL.md
skills/sherpa-onnx-tts/SKILL.md
skills/slack/SKILL.md
skills/songsee/SKILL.md
skills/sonoscli/SKILL.md
skills/spotify-player/SKILL.md
skills/summarize/SKILL.md

Metadata

Files
0
Version
a654bcf
Hash
55dd0913
Indexed
2026-07-25 07:13

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-22 00:18
浙ICP备14020137号-1 $mapa de visitantes$