Configure

anthropics/claude-plugins-official/external_plugins/imessage/skills/configure

作者 anthropics315c4e48967d9541c29c3c656441dded353ca7aa无许可证47K 个星标收录于 2026年11月20日更新于 2026年11月20日仓库今天更新

Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.

精选包含脚本效率与工作流
AI 生成的概览

检查 iMessage 通道配置——完全磁盘访问权限、访问策略与允许名单,并指导用户设置谁能联系助手。

功能
读取本地 iMessage 状态并汇报:检测 chat.db 是否可读(完全磁盘访问权限),读取该通道的 access.json 以了解私信策略、允许的发件人和待处理的配对,最后给出具体的下一步建议。它还会引导用户建立由电话号码或邮箱组成的允许名单,并在策略为 pairing 时提出警示和劝阻,因为该策略会自动回复每位联系人。它只展示状态与建议,本身不保存令牌也不修改配置。
适用场景
当用户询问如何配置 iMessage、谁能通过助手联系到自己,或为什么收到的短信没有送达助手时使用。也适用于查看或调整该通道的访问策略。
运行要求
需在 macOS 上运行,并能访问 ~/Library/Messages/chat.db,这要求为终端或 IDE 授予完全磁盘访问权限。会读取 ~/.claude/channels/imessage/access.json。通过 Bash 使用 Read 和 ls;无需令牌或 .env 文件。

/imessage:configure — iMessage Channel Setup

There's no token to save — iMessage reads ~/Library/Messages/chat.db directly. This skill checks whether that works and orients the user on access policy.

Arguments passed: $ARGUMENTS (unused — this skill only shows status)


Status and guidance

Read state and give the user a complete picture:

  1. Full Disk Access — run ls ~/Library/Messages/chat.db. If it fails with "Operation not permitted", FDA isn't granted. Say: "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. Access — read ~/.claude/channels/imessage/access.json (missing file = defaults: dmPolicy: "allowlist", empty allowlist). Show:

    • DM policy and what it means in one line
    • Allowed senders: count, and list the handles
    • Pending pairings: count, with codes if any (only if policy is pairing)
  3. What next — end with a concrete next step based on state:

    • FDA not granted → the FDA instructions above
    • FDA granted, policy is allowlist → "Text yourself from any device signed into your Apple ID — self-chat always bypasses the gate. To let someone else through: /imessage:access allow +15551234567."
    • FDA granted, someone allowed → "Ready. Self-chat works; {N} other sender(s) allowed."

Build the allowlist — don't pair

iMessage reads your personal chat.db. You already know the phone numbers and emails of people you'd allow — there's no ID-capture problem to solve. Pairing has no upside here and a clear downside: every contact who texts this Mac gets an unsolicited auto-reply.

Drive the conversation this way:

  1. Read the allowlist. Tell the user who's in it (self-chat always works regardless).
  2. Ask: "Besides yourself, who should be able to text you through this?"
  3. "Nobody, just me" → done. The default allowlist with an empty list is correct. Self-chat bypasses the gate.
  4. "My partner / a friend / a couple people" → ask for each handle (phone like +15551234567 or email like [email protected]) and offer to run /imessage:access allow <handle> for each. Stay on allowlist.
  5. Current policy is pairing → flag it immediately: "Your policy is pairing, which auto-replies a code to every contact who texts this Mac. Switch back to allowlist?" and offer /imessage:access policy allowlist. Don't wait to be asked.
  6. User asks for pairing → push back. Explain the auto-reply-to- everyone consequence. If they insist and confirm a dedicated line with few contacts, fine — but treat it as a one-off, not a recommendation.

Handles are +15551234567 or [email protected]. disabled drops everything except self-chat.


Implementation notes

  • No .env file for this channel. No token. The only OS-level setup is FDA plus the one-time Automation prompt when the server first sends (which can't be checked from here).
  • access.json is re-read on every inbound message — policy changes via /imessage:access take effect immediately, no restart.

来源与署名

来源:anthropics/claude-plugins-official位于external_plugins/imessage/skills/configure提交315c4e4

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

在 README 中添加徽章

向读者展示该技能已收录于 SourceWeft,徽章链接到本页。

“Listed on SourceWeft”徽章预览
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-anthropics-claude-plugins-official-configure-external-plugins-imessage-skills-configure-0fbd86a6aa45945f.svg)](https://sourceweft.com/skills/gh-anthropics-claude-plugins-official-configure-external-plugins-imessage-skills-configure-0fbd86a6aa45945f?utm_source=readme&utm_medium=badge)

举报或申请下架