imessage-gateway

imessage-gateway is a skill for Claude Code from wolfiesch/wolfies-imessage-gateway. It costs 31 tokens per session (1,567 once invoked), scanned A, original, MIT.

A macOS skill that turns plain-language iMessage requests into commands for searching, reading, sending, and managing messages. It also supports group chats and media such as attachments and voice messages.

In plain words
What is it for?
Find messages by contact or query, read recent and unread conversations, send texts, list groups, inspect attachments and voice messages, and extract shared links.
Why use it?
It avoids making you remember command syntax when working with Messages from Claude Code.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the imessage-gateway plugin — 1 skill, 1 command shipped together

Good fit Find messages by contact or query, read recent and unread conversations, send texts, list groups, inspect attachments and voice messages, and extract shared links.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wolfiesch/wolfies-imessage-gateway --skill imessage-gateway
Clone the repo
git clone --depth 1 https://github.com/wolfiesch/wolfies-imessage-gateway

Made for: Claude Code.

Or install imessage-gateway, the plugin that ships this one along with the rest of its 1 skill, 1 command.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imessage-gateway

README.md
[![agentmods](https://agentmods.dev/badge/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway/github.svg)](https://agentmods.dev/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway)
Your own site
<a href="https://agentmods.dev/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway"><img src="https://agentmods.dev/badge/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for imessage-gateway

Your own site · 80×15
<a href="https://agentmods.dev/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway"><img src="https://agentmods.dev/badge/skills/wolfiesch/wolfies-imessage-gateway/imessage-gateway.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,567 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01567
Opus 5 $0.00015 $0.00783
Sonnet 5 $0.00006 $0.00313
Haiku 4.5 $0.00003 $0.00157

Measured 10d ago against content hash b21baed87289, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

imessage-gateway scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/imessage-gateway/SKILL.md · 169 lines

How it starts

The opening of the file, as written. The whole thing — 169 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EXECUTE IMMEDIATELY

ARGUMENTS: {{ARGUMENTS}}

When arguments are provided, execute via Bash NOW. Add --json flag for data retrieval commands:

python3 ${SKILL_PATH}/../../gateway/imessage_client.py {{ARGUMENTS}}

If no arguments provided, show the Reference section below.

Command Mapping (use FIRST match)

Messaging & Reading

User says Execute
recent <N> recent --limit <N> --json (default: 50)
find <contact> [for "<query>"] find "<contact>" [--query "<query>"] --limit 50 --json
messages <name> / from <name> messages "<name>" --limit 20 --json
unread unread --json
send <name> <message> send "<name>" "<message>" (no --json)
send-by-phone <phone> <message> send-by-phone "<phone>" "<message>"

Groups & Media

User says Execute
groups groups --json
attachments [<contact>] attachments ["<contact>"] --json
voice [<contact>] voice ["<contact>"] --json
links [<days>] links --days <N> --json (default: 30)

Analytics & Discovery

User says Execute
analytics [<contact>] [<days>] analytics ["<contact>"] --days <N> --json (default: 30)
followup [<days>] followup --days <N> --json (default: 7)
contacts contacts --json
handles [<days>] handles --days <N> --json (default: 30)
unknown [<days>] unknown --days <N> --json (default: 7)
summary <name> [<days>] summary "<name>" --days <N> --json (default: 7)

Semantic Search (RAG)

User says Execute
search "<query>" search "<query>" --json
ask "<question>" ask "<question>" --json
index [<source>] index --source=<source> --json (imessage, superwhisper, notes, local)
stats stats --json
sources sources --json
clear [<source>] clear [--source=<source>] --force --json

Read the full file on GitHub · 169 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 169 lines · 31 tokens per session scan A b21baed87289

Subscribe to this mod's changes

imessage-gateway is a skill published in the GitHub repository wolfiesch/wolfies-imessage-gateway (5 stars, last pushed 2mo ago), licensed MIT. It adds 31 tokens to every session and 1,567 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.