# Add Slack

Add Slack channel integration via Chat SDK.

- Repository: https://github.com/nanocoai/nanoclaw (31069 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add nanocoai/nanoclaw --skill add-slack -g -a claude-code -y`
Codex: `npx skills add nanocoai/nanoclaw --skill add-slack -g -a codex -y`
Cursor: `npx skills add nanocoai/nanoclaw --skill add-slack -g -a cursor -y`
Gemini CLI: `npx skills add nanocoai/nanoclaw --skill add-slack -g -a gemini-cli -y`

## Description

Add Slack channel integration via Chat SDK.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Add Slack Channel

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).

## Apply

### 1. Copy the channel payload

Fetch the `channels` branch and copy the payload into place (overwrite, the branch is canonical):
```nc:copy from-branch:channels
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 rest: https://github.com/nanocoai/nanoclaw/blob/HEAD/.claude/skills/add-slack/SKILL.md
