nanomsg CLI for iMessage/SMS

VerifiedCaution

Read and send iMessage or SMS using the nanomsg CLI on macOS. Provides structured JSON output for agent processing.

Sby Skills Guide Bot
ProductivityBeginner
7/24/2026
Claude CodeCursorCodex
#imessage#sms#messaging#cli#json-output

Recommended for

Automated summary

Drives the macOS Messages app through the nanomsg CLI to read conversations, unread items, history, search results and contacts, and to send iMessage or SMS, all with structured JSON output.

Strengths

  • Consistent `--json` output that an agent can parse directly
  • Broad read coverage: chats, unread, history, search and contacts
  • Reliable sender attribution via the per-message `senderDisplayName` field
  • Sending supported by phone number or by chat ID

Limitations

  • Requires a Mac with nanomsg installed and access to the Messages database
  • Does not explain macOS permission or authentication setup
  • Actually sending a message is an irreversible action that needs confirmation
When to use it

When you need to inspect or send iMessage/SMS messages from a terminal on a Mac that has nanomsg available.

When not to use it

When you are not on macOS, nanomsg is not installed, or you need a cloud messaging API rather than the local Messages app.

Security analysis

Caution
Quality score87/100

The skill wraps a legitimate CLI for reading and sending messages on macOS. It does not contain destructive, exfiltrating, or obfuscated instructions, but it grants access to highly sensitive personal data and the ability to send messages, so it warrants caution rather than a safe rating.

Findings
  • •Provides direct terminal access to private iMessage/SMS data, which may expose sensitive personal conversations.
  • •Enables sending messages via the CLI; despite the confirmation step, misuse or accidental sending is possible.
  • •No declared allowed-tools, but the skill instructs running `nanomsg` commands, which is a shell execution context.
How this analysis is made

Examples

Summarize unread messages
Use nanomsg to list my unread iMessages as JSON, then summarize who wrote what and flag anything that looks urgent.
Reply with context
Look up chat 207 with nanomsg history --json, read the last 20 messages to understand the context, then draft a reply and ask me before sending it.
Find messages from a person
Search my Messages for "invoice" from Alice using nanomsg search --json --from "Alice" and show me the matching messages with their dates.

name: nanomsg description: Read and send iMessage or SMS with the nanomsg CLI. Use when working on a Mac where nanomsg is installed and you need terminal access to Messages data or sending.

nanomsg CLI

Always use --json — output is human-readable text by default, but agents need structured JSON.

Read

nanomsg chats --json --limit 20
nanomsg chats --json --unread
nanomsg unread --json --limit 20
nanomsg unread --json --chat-id 207
nanomsg history --json --chat-id 207 --limit 20
nanomsg history --json --chat-id 207 --since "2026-02-13"
nanomsg search --json "query" --limit 20
nanomsg search --json "query" --chat-id 207
nanomsg search --json "query" --from "Alice"
nanomsg contacts --json

Attributing senders

Every message has a senderDisplayName field — always present, "You" for outgoing, otherwise the resolved contact name (or raw handle). Read it per message. In group chats (isGroup: true on the chat/unread group) the chat's name is not the sender of any given message, so never attribute a message to the chat name — use each message's senderDisplayName.

Write

nanomsg send --json --to "+1234567890" --text "Hello"
nanomsg send --json --chat-id 207 --text "Hello"

Workflow

  1. Run chats --json first to identify target chat IDs.
  2. Use history --json for context before replying.
  3. Use search --json --from when sender context matters.
  4. Ask for confirmation before sending messages.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/nanomsg-cli-for-imessage-sms-mryiqivk/download' --output '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md.part' && mv '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md.part' '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && test -s '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/nanomsg' && cp -R '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk' '.claude/skills/nanomsg'

Cursor
test -f '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && test -s '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/nanomsg' && cp -R '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk' '.cursor/skills/nanomsg'

Codex
test -f '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && test -s '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/nanomsg' && cp -R '.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk' '.agents/skills/nanomsg'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk'

openskills read 'nanomsg-cli-for-imessage-sms-mryiqivk'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/nanomsg-cli-for-imessage-sms-mryiqivk/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills