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 Slack channel integration via Chat SDK.
$ npx -y skills add nanocoai/nanoclaw --skill add-slack --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/add-slackContext preview
The summary Claude sees to decide when to auto-load this skill.
Add Slack channel integration via Chat SDK.
name: add-slack description: Add Slack channel integration via Chat SDK.
Adds Slack support via the Chat SDK bridge. Trunk ships no channels — this skill copies the Slack channel layer (adapter, shared lib, bot-inbound guard, provisioning core, container skills) in from the `channels` branch. The **Apply** steps carry `nc:` directive fences (an agent applies the prose, a parser the directives); all idempotent.
This is the base Slack experience: one bot, DM and channel chat. The Slack **agents** feature — child bots provisioned from `create_agent`, shared rooms, canvases, DM onboarding — ships separately in `/slack-a2a-rooms` + `/slack-agent-flow`, in-tree under `.claude/skills/` (their canonical home; the channels branch keeps a compatibility copy for older checkouts). The setup wizard applies them automatically, and they can be applied on top of this install at any time. Existing classic installs that want the Slack agents experience should use `/migrate-slack-agents` rather than re-running this skill (classic keeps working; that migration is optional).
Fetch the `channels` branch and copy the payload into place (overwrite — the branch is canonical):
src/channels/slack.ts src/channels/slack-lib.ts src/channels/slack-lib.test.ts src/channels/slack-a2a-guard.ts src/channels/slack-a2a-guard.test.ts src/channels/slack-raw-text.ts src/channels/slack-raw-text.test.ts src/channels/slack-registration.test.ts src/channels/slack-instances-registration.test.ts src/provisioning/slack-app.ts src/provisioning/slack-app.test.ts container/skills/slack-formatting/SKILL.md
The room/canvas/onboarding host modules, their container files, and the Slack welcome-tour addendum (it describes rooms, canvases, and the agents access model) are part of the agents feature and install with `/slack-agent-flow`, not here.
Append the self-registration imports (each append is skipped if its first line is already present). The adapter and the guard, in the channel barrel:
import './slack.js';
import './slack-a2a-guard.js';
Pinned exactly — the supply-chain policy rejects ranges and `latest`:
@chat-adapter/slack@4.29.0
The build guards the typed `createChatSdkBridge(...)` call and proves the dependency installed; the tests pin registration (barrel import, dependency, the `SLACK_INSTANCES` loop), the guard, the shared lib, and the provisioning core.
pnpm run build
pnpm exec vitest run src/channels/slack-registration.test.ts src/channels/slack-instances-registration.test.ts src/channels/slack-lib.test.ts src/channels/slack-a2a-guard.test.ts src/provisioning/slack-app.test.ts
Socket Mode (an outbound WebSocket — no public URL, the right default behind NAT) vs webhook delivery (needs a public HTTPS Request URL); the adapter picks Socket Mode automatically whenever `SLACK_APP_TOKEN` is set.
How should Slack deliver events? `socket` (Socket Mode — no public URL, recommended for local or behind-NAT installs) or `webhook` (needs a public HTTPS Request URL).
`provisioned` is never offered interactively (`choices:` limits the select; `validate:` stays wider because pre-bound inputs may exceed the offered set) — it arrives only via pre-bound `inputs` (a programmatically created app) and behaves like Socket Mode minus the walkthrough below.
For Socket Mode, tell the user:
Create the Slack app (Socket Mode): 1. Go to api.slack.com/apps and create a new app using whichever creation flow is currently available (e.g. starting from scratch or from a manifest). Name it (e.g. "NanoClaw") and pick your workspace. 2. OAuth & Permissions → add these Bot Token Scopes: chat:write, im:write, channels:history, groups:history, im:history, channels:read, groups:read, mpim:read, users:read, reactions:write, files:read, files:write. 3. App Home → enable the Messages Tab, and check "Allow users to send Slash commands and messages from the messages tab." 4. Basic Information → App-Level Tokens → "Generate Token and Scopes" → add the connections:write scope → copy the token (starts with xapp-). 5. Socket Mode → toggle "Enable Socket Mode" on. 6. Event Subscriptions → toggle "Enable Events" on, then under "Subscribe to bot events" add: message.channels, message.groups, message.im, app_mention. Save Changes. (No Request URL is needed in Socket Mode.) 7. Install to Workspace, then copy the Bot User OAuth Token (starts with xoxb-).
For webhook delivery, tell the user:
Create the Slack app (webhook delivery): 1. Go to api.slack.com/apps and create a new app using whichever creatio
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.