Add Discord Channel (add-discord)
Installs, registers, and verifies a Discord bot channel adapter for NanoClaw via the Chat SDK bridge.
AutomationIntermediate★ 30,471⑂ 12,865AI score 7/10Last updated: Aug 9, 2026
What it does
Automates the full path from "no Discord" to "agent DMs you on Discord":
- Copies
discord.tsand its registration test from thechannelsbranch intosrc/channels/ - Appends the self-registration import to
src/channels/index.ts(skipped if present) - Installs
@chat-adapter/discord@4.29.0pinned exactly (no ranges, nolatest) - Runs
pnpm run buildplus a single integration test that proves both the barrel wiring and the dependency - Takes only the Bot Token, then derives Application ID, Public Key, and your Discord user ID from
GET /oauth2/applications/@meand writes them to.env(set-if-absent) - Restarts the service and opens your DM channel to produce the
discord:@me:<channelId>address
Every step is expressed as an idempotent nc: directive, so the skill is safe to re-run.
Who it's for
- Self-hosters running NanoClaw who want a Discord front end for their agent
- Anyone inside the
/setup,/init-first-agent, or/manage-channelsflow - People who'd rather derive credentials from one token than paste three values by hand
Examples
- First-time setup: Ask "add a Discord channel" during
/setup— adapter copy, dependency install, build/test, token prompt, restart all run in order. - Debugging silence: Bot is online but never responds — the troubleshooting section walks you through Message Content Intent and the shared-server requirement.
- Drift repair: Someone deletes the barrel import;
discord-registration.test.tsgoes red, and re-running the Apply steps restores it without duplicating anything.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-discord folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-discord/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/add-discord ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/nanocoai/nanoclaw.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r nanoclaw/.claude/skills/add-discord ~/.claude/skills/ - Start Claude Code from inside your NanoClaw project directory — this skill only makes sense within that repo.
- Ask: "add the Discord channel" to trigger the skill.
- Create a bot in the Discord Developer Portal, enable Message Content Intent, and paste the Bot Token when prompted (it's shown only once).
- Invite the bot to a server you're also in, then confirm the build and registration test pass.
View source on GitHub ↗License: MIT