Claude Skill MartBrowse skillsWhat is a Skill?
Back to list

Add Discord Channel (add-discord)

Installs, registers, and verifies a Discord bot channel adapter for NanoClaw via the Chat SDK bridge.

AutomationIntermediate30,47112,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.ts and its registration test from the channels branch into src/channels/
  • Appends the self-registration import to src/channels/index.ts (skipped if present)
  • Installs @chat-adapter/discord@4.29.0 pinned exactly (no ranges, no latest)
  • Runs pnpm run build plus 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/@me and 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-channels flow
  • People who'd rather derive credentials from one token than paste three values by hand

Examples

  1. First-time setup: Ask "add a Discord channel" during /setup — adapter copy, dependency install, build/test, token prompt, restart all run in order.
  2. Debugging silence: Bot is online but never responds — the troubleshooting section walks you through Message Content Intent and the shared-server requirement.
  3. Drift repair: Someone deletes the barrel import; discord-registration.test.ts goes red, and re-running the Apply steps restores it without duplicating anything.

· · · Install guide · · ·

Install in the Claude app (no terminal)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Download 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.

  1. Open a terminal.
  2. Clone the repo: git clone https://github.com/nanocoai/nanoclaw.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill: cp -r nanoclaw/.claude/skills/add-discord ~/.claude/skills/
  5. Start Claude Code from inside your NanoClaw project directory — this skill only makes sense within that repo.
  6. Ask: "add the Discord channel" to trigger the skill.
  7. Create a bot in the Discord Developer Portal, enable Message Content Intent, and paste the Bot Token when prompted (it's shown only once).
  8. Invite the bot to a server you're also in, then confirm the build and registration test pass.