Skill Development

imessage-configure

A Claude Code skill that checks whether the iMessage channel can read your local Messages database and reviews who is allowed to reach the assistant over iMessage. It guides you toward building an allowlist of trusted handles instead of using pairing.

Last verified: write-up checked

Scanned with NVIDIA SkillSpector No significant issues found · risk score 0/100 · Nov 4, 2026 What this means

imessage-configure — illustration

What it is

The configure skill is invoked as /imessage:configure and is a status-and-guidance tool for the iMessage channel. There is no token to save: the iMessage channel reads ~/Library/Messages/chat.db directly. The skill checks whether that access works and orients the user on access policy. Arguments passed to it are unused, since it only shows status. It is allowed to use the Read tool and Bash limited to ls commands. First it checks Full Disk Access by running ls ~/Library/Messages/chat.db. If that fails with "Operation not permitted", FDA isn't granted, and the user is told to grant Full Disk Access to their terminal (or IDE if that's where Claude Code runs) via System Settings → Privacy & Security → Full Disk Access. Next it reads ~/.claude/channels/imessage/access.json. If the file is missing, the defaults apply: dmPolicy "allowlist" with an empty allowlist. It then shows the DM policy with a one-line explanation, the count and handles of allowed senders, and pending pairings with codes (only if the policy is pairing). It ends with a concrete next step based on the current state. The skill deliberately steers users away from pairing. Because iMessage reads your personal chat.db, you already know the phone numbers and emails of people you'd allow. Pairing would send an unsolicited auto-reply code to every contact who texts the Mac. The skill asks who besides yourself should be able to text through the channel. It offers to run /imessage:access allow <handle> for each person named, and immediately flags a pairing policy, offering to switch back to allowlist. Self-chat always bypasses the gate, and the disabled policy drops everything except self-chat. On implementation: there is no .env file and no token for this channel. The only OS-level setup is FDA plus a one-time Automation prompt when the server first sends, which can't be checked from the skill. access.json is re-read on every inbound message, so policy changes made via /imessage:access take effect immediately without a restart.

Who it's for

  • Claude Code users setting up the iMessage channel on a Mac
  • Users asking "how do I set this up" or "who can reach me" for iMessage
  • Users troubleshooting why texts aren't reaching the assistant
  • Users who want to review or adjust who is allowed to message the assistant

Requirements

Requirements

  • A Mac with Messages data at ~/Library/Messages/chat.db
  • Full Disk Access granted to the terminal (or IDE where Claude Code runs)
  • A one-time Automation prompt approval when the server first sends
  • The iMessage plugin's /imessage:access command for changing the allowlist or policy

Setup

  1. Grant Full Disk Access

    Grant Full Disk Access to your terminal (or IDE if that's where Claude Code runs): System Settings → Privacy & Security → Full Disk Access. The server can't read chat.db without it.

  2. Verify chat.db is readable

    The skill checks access by listing the Messages database. If it fails with "Operation not permitted", FDA isn't granted.

    bash
    ls ~/Library/Messages/chat.db

هاد الـskill بيفحصلك إذا قناة iMessage قادرة تقرا قاعدة بيانات الرسايل عندك على الماك، وبيوضحلك مين مسموحله يحكي مع المساعد. وبينصحك تعمل allowlist بالأرقام والإيميلات اللي بتعرفها بدل الـpairing.

Examples

Run the configure skill

text
text
/imessage:configure

What it does: Shows Full Disk Access status, the current access policy, allowed senders, and a suggested next step.

Check Full Disk Access

bash
bash
ls ~/Library/Messages/chat.db

What it does: If this fails with "Operation not permitted", Full Disk Access isn't granted.

Allow a specific phone number

text
text
/imessage:access allow +15551234567

What it does: Adds a sender to the allowlist so someone other than yourself can reach the assistant.

Allow a handle

text
text
/imessage:access allow <handle>

What it does: Run once for each trusted person. A handle is a phone number like +15551234567 or an email like them@icloud.com.