AGENT SKILL

iMessage 渠道集成

add-imessage

通过 Chat SDK 添加 iMessage 渠道集成。支持本地(macOS)或远程(Photon API)模式。

License 许可
MIT
最近更新
2026-10-30
Stars
★ 5
Forks
2

01 前言 Front Matter

name
add-imessage
description
Add iMessage channel integration via Chat SDK. Local (macOS) or remote (Photon API) mode.

02 资源文件 3

03 SKILL.md 正文

Add iMessage Channel

Adds iMessage support via the Chat SDK bridge. Two modes: local (macOS with Full Disk Access) or remote (Photon API).

Install

NanoClaw doesn't ship channels in trunk. This skill copies the iMessage adapter in from the channels branch.

Pre-flight (idempotent)

Skip to Credentials if all of these are already in place:

  • src/channels/imessage.ts exists
  • src/channels/index.ts contains import './imessage.js';
  • chat-adapter-imessage is listed in package.json dependencies

Otherwise continue. Every step below is safe to re-run.

1. Fetch the channels branch

git fetch origin channels

2. Copy the adapter

git show origin/channels:src/channels/imessage.ts > src/channels/imessage.ts

3. Append the self-registration import

Append to src/channels/index.ts (skip if the line is already present):

import './imessage.js';

4. Install the adapter package (pinned)

pnpm install chat-adapter-imessage@0.1.1

5. Build

pnpm run build

Credentials

Local Mode (macOS)

Requirements: macOS with Full Disk Access granted to the Node.js binary.

The Node binary path is buried deep (e.g. ~/.nvm/versions/node/v22.x.x/bin/node). To make it easy, open the folder in Finder so the user can drag the file into System Settings:

open "$(dirname "$(which node)")"

Then tell the user:

  1. Open System Settings > Privacy & Security > Full Disk Access
  2. Click +, then drag the node file from the Finder window that just opened
  3. Toggle it on

Stop and wait for the user to confirm before continuing.

Remote Mode (Photon API)

  1. Set up a Photon account
  2. Get your server URL and API key

Configure environment

Local mode -- add to .env:

IMESSAGE_ENABLED=true
IMESSAGE_LOCAL=true

Remote mode -- add to .env:

IMESSAGE_LOCAL=false
IMESSAGE_SERVER_URL=https://your-photon-server.com
IMESSAGE_API_KEY=your-api-key

Sync to container: mkdir -p data/env && cp .env data/env/env

Next Steps

If you're in the middle of /setup, return to the setup flow now.

Otherwise, run /manage-channels to wire this channel to an agent group.

Channel Info

  • type: imessage
  • terminology: iMessage has "conversations." Each conversation is with a contact identified by phone number or email address. Group chats are also supported.
  • how-to-find-id: The platform ID is the contact's phone number (e.g. +15551234567) or email address. For group chats, the ID is assigned by iMessage internally.
  • supports-threads: no
  • typical-use: Interactive 1:1 chat — personal messaging
  • default-isolation: Same agent group if you're the only person messaging the bot across iMessage and other channels. Separate agent group if different contacts should have information isolation.

04 同仓库更多 Skills

microsoft
microsoft/amplifier-app-nanoclaw

WhatsApp 消息格式化

whatsapp-formatting

为 WhatsApp 格式化消息,包括可渲染为真实 WhatsApp 标签的提及(mention)。在 WhatsApp 对话中回复时使用(platform_id / chatJid 以 @s.whatsapp.net 或 @g.us 结尾)。

普通用户即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

新频道欢迎引导

welcome

向新连接的频道介绍自己。当频道首次接入时自动触发。发送友好的问候和简要的功能概述。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Vercel 应用部署

vercel-cli

将应用部署到 Vercel。当用户要求部署、发布 Web 应用,或管理 Vercel 项目、域名和环境变量时使用。

软件开发工程师部署与发布管理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

Slack 消息格式化

slack-formatting

使用 mrkdwn 语法为 Slack 格式化消息。当回复 Slack 频道时使用(文件夹以“slack_”开头,或 JID 包含 slack 标识符)。

内部沟通专员即时通讯与消息处理
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

智能体自我定制

self-customize

定制你自己的智能体——添加能力、安装包、添加 MCP 服务器、编辑代码或 CLAUDE.md。当用户要求你添加功能、安装工具或修改工作方式时使用。对于非平凡的代码改动,请通过 create_agent 委派给构建智能体处理。

AI 工程师智能体开发
★ 5
microsoft
microsoft/amplifier-app-nanoclaw

OneCLI 网关凭证代理

onecli-gateway

OneCLI 网关:一种透明的 HTTPS 代理,可将存储的凭证注入到对外调用中。当用户要求读取电子邮件、查看日历、访问 GitHub 仓库、创建 issue、检查 Stripe 付款,或与任何外部服务或 API 交互时,你必须使用本技能。不要使用浏览器扩展或 OAuth CLI 工具。直接发起 HTTP 请求;网关会自动注入凭证。

安全工程师API 网关配置与管理
★ 5