Apple Messages CLI
БесплатноБез исполняемых скриптовНе проверенRead and send Apple Messages (iMessage, SMS) from the command line on macOS. List chats with unread counts, read a conversation, search all messages, and…
от gopaljigaur284 установки в других каталогахОб этом скилле
amcli: Apple Messages CLI
amcli reads ~/Library/Messages/chat.db read-only and sends through Messages.app. Every command takes --json. Exit codes: 0 success, 1 runtime error, 2 validation error, 10 Full Disk Access missing.
First run: reading needs Full Disk Access for the terminal app (System Settings > Privacy & Security > Full Disk Access). On NOT_AUTHORIZED, tell the user to grant it; do not try to work around it.
Chats
amcli chats [--unread] [--limit <n>] [--json]
Newest first. Each chat has id, guid, name, identifier, service, group, participants, lastMessageAt, unread.
Show a chat
amcli show <chat> [--limit <n>] [--since <when>] [--json]
<chat> is the chat id, its guid, or the phone or email it is keyed on. Returns { chat, messages }, the newest limit messages (default 20) in chronological order.
Search
amcli search <text> [--chat <chat>] [--since <when>] [--limit <n>] [--json]
Case-insensitive substring match, newest first. Each message adds chat (the chat name).
Send
amcli send --to <phone|email|chat guid> [text] [--service sms] [--dry-run] [-y] [--json]
Text comes from the argument or stdin. Asks for confirmation; without a terminal it refuses unless -y. --dry-run returns { dryRun: true, wouldSend } and sends nothing.
Message fields
id, guid, chatId, date (ISO 8601), fromMe, sender (handle, null when from me), service, text, attachments (file names).
--since
YYYY-MM-DD, an ISO datetime, or relative: 30m, 12h, 7d.
Agent Best Practices
- Always use
--json, and checkok: falsebefore proceeding - Never send without the user's explicit go-ahead for that exact text and recipient; show a
--dry-runfirst - Read the least needed:
--limitand--sincekeep private conversations out of context - Use the chat
guidfromamcli chatsto reply into a group - Names are not resolved from Contacts; use
apcli searchto map a handle to a person - macOS only
Error Codes
| Code | Meaning |
|---|---|
NOT_AUTHORIZED |
Terminal lacks Full Disk Access |
NO_DATABASE |
No Messages database on this Mac |
CHAT_NOT_FOUND |
No chat matches the id, guid or handle |
SEND_FAILED |
Messages.app refused the send |
MISSING_REQUIRED |
Required argument missing, or --yes needed without a terminal |
INVALID_ARGUMENT |
Invalid flag value |
Установить Apple Messages CLI в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Apple Messages CLI?
Read and send Apple Messages (iMessage, SMS) from the command line on macOS. List chats with unread counts, read a conversation, search all messages, and send, with JSON output for agent use.
Как установить скилл Apple Messages CLI?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Apple Messages CLI запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub