add-anydoc
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word,…
Add iMessage to NanoClaw — one channel, two backends. Local (this Mac's chat.db via the Chat SDK bridge; macOS + Full Disk Access) or Hosted iMessage (via photon.codes — native spectrum-ts with a device-login wizard; any OS, no Mac relay). Triggers on "add imessage", "connect
$ npx -y skills add nanocoai/nanoclaw --skill add-imessage --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/add-imessageContext preview
The summary Claude sees to decide when to auto-load this skill.
Add iMessage to NanoClaw — one channel, two backends. Local (this Mac's chat.db via the Chat SDK bridge; macOS + Full Disk Access) or Hosted iMessage (via photon.codes — native spectrum-ts with a device-login wizard; any OS, no Mac relay). Triggers on "add imessage", "connect
name: add-imessage description: Add iMessage to NanoClaw — one channel, two backends. Local (this Mac's chat.db via the Chat SDK bridge; macOS + Full Disk Access) or Hosted iMessage (via photon.codes — native spectrum-ts with a device-login wizard; any OS, no Mac relay). Triggers on "add imessage", "connect imessage", "add photon", "imessage via photon", "native imessage".
NanoClaw talks to iMessage through a single **`imessage`** channel with two pluggable backends:
reading this Mac's signed-in iMessage account (`chat.db`). macOS only; the Node binary needs Full Disk Access.
`spectrum-ts` gRPC stream. The hosted service owns the iMessage line, so there's no Mac relay, webhook, or public URL. Works on any OS, and a device-login flow provisions everything for you.
Both register the same `imessage` channel type; only one runs per install. NanoClaw doesn't ship channels in trunk — this skill copies the unified `imessage` adapter in from the `channels` branch. Full reference: [docs/imessage.md](docs.md).
The mechanical steps under **Apply** carry `nc:` directive fences: an agent reads the prose and applies them, and a parser can apply them deterministically from the same document. Every directive is idempotent, so the whole skill is safe to re-run; anything a parser can't apply falls back to the prose beside it.
Pick the backend first — it decides which package gets installed and which walkthrough runs below (the other backend's steps are skipped):
How should iMessage run — `local` (this Mac's signed-in iMessage account; macOS only, needs Full Disk Access) or `hosted` (a managed line via photon.codes; works on any OS)?
The local backend only works on a Mac — it reads this machine's iMessage `chat.db` directly, and there is no such database off macOS. On any other OS, stop here and choose `hosted` instead; otherwise you'd write a local config that can never receive a message:
[ "$(uname)" = Darwin ]
Fetch the `channels` branch and copy the unified iMessage adapter and its tests into `src/channels/`:
src/channels/imessage.ts src/channels/imessage.test.ts src/channels/imessage-registration.test.ts
Append the self-registration import to the channel barrel (skipped if the line is already present). This one line is the skill's only reach-in into core:
import './imessage.js';
Pinned to an exact version — the supply-chain policy rejects ranges and `latest`. Install only the chosen backend's package.
**Local** — the Chat SDK iMessage adapter:
chat-adapter-imessage@0.1.1
**Hosted** — Photon's Spectrum SDK:
spectrum-ts@11.0.0
> Pin exactly. `spectrum-ts` ships breaking majors (v11 is what the adapter > targets); don't `@latest`. NanoClaw's pnpm gate (`minimumReleaseAge`) requires > a version ≥3 days old — both pins clear it. A fresher pin needs human sign-off > before a `minimumReleaseAgeExclude` entry (CLAUDE.md → Supply Chain Security).
Build guards the typed `createChatSdkBridge(...)` core call used by the local backend, and the registration test proves the channel is wired:
pnpm run build
pnpm exec vitest run src/channels/imessage-registration.test.ts
Both must be clean. `imessage-registration.test.ts` imports the real channel barrel and asserts the registry contains `imessage` — it goes red if the `import './imessage.js';` line is missing or the barrel fails to evaluate. The adapter loads neither backend's SDK at import (hosted `spectrum-ts` only in `setup()`, local `chat-adapter-imessage` only in the factory), so the test needs no package.
For the hosted backend, also run the full adapter suite — it includes an integration block that exercises the real installed `spectrum-ts` (version, exports, builders) and auto-skips when the package is absent:
pnpm exec vitest run src/channels/imessage.test.ts
The adapter reads this Mac's `chat.db`, which requires Full Disk Access granted to the Node binary the host runs under. The Node path is buried deep (e.g. `~/.nvm/versions/node/v22.x.x/bin/node`), so open its folder in Finder to make the drag-and-drop target obvious. Harmless off a desktop (SSH/headless) — it just no-ops:
open "$(dirname "$(which node)")" 2>/dev/null || true
Then tell the user:
Grant Full Disk Access to Node so iMessage can read your chat history: 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, then come back here.
Stop and wait for the user to confirm Full Disk Access is granted before continuing.
Now select the local backend in `.env`. The configure script owns this upsert-and-remove (a plain set-if-absent env write can neither replace a stale value nor delete a key, and a lingering hosted selector would shadow the choice):
bash setup/channels/imessage-configure.sh local
The provisioning flow needs the phone number you send iMessages from — it registers that number with your project so the hosted line recognises you:
The phone number you iMessage from, in E.164 f
A lightweight alternative to OpenClaw that runs in containers for security. Connects to WhatsApp, Telegram, Slack, Discord, Gmail and other messaging apps,, has memory, scheduled jobs, and runs directly on Anthropic's Agents SDK
Repo: nanocoai/nanoclaw
Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word,…
Convert an attached Word document, presentation, spreadsheet, OpenDocument file, RTF, EPUB, CSV, or text-based PDF into local Markdown. Use when a message…
Add Atomic Chat MCP server so the container agent can call local models served by the Atomic Chat desktop app via its OpenAI-compatible API.
Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired…
Use Codex (OpenAI's codex app-server) as a full agent provider — planning, tool orchestration, MCP tools, server-side history, session resume — alongside or…
Add a monitoring dashboard to NanoClaw. Installs @nanoco/nanoclaw-dashboard and a pusher that sends periodic JSON snapshots.