Claude Skill MartBrowse skillsQuick linesLearn by videoTerminal guideWhat is a Skill?
← Back to list

Add Discord Channel (NanoClaw)

Copies, registers, and validates the Discord bot adapter for a NanoClaw project, then wires up credentials and your DM channel.

Dev & CodingIntermediate★ 30,840⑂ 12,826AI score 7/10Last updated: Sep 23, 2026

What it does

  • Pulls src/channels/discord.ts and its registration test from the channels branch into src/channels/.
  • Appends the single self-registration import to src/channels/index.ts (idempotent — skipped if present).
  • Installs @chat-adapter/discord@4.29.0 at an exact pinned version, then runs pnpm run build and the registration test.
  • Walks you through the Discord Developer Portal, takes the Bot Token, and derives Application ID, Public Key, and your user ID from one GET /oauth2/applications/@me call before writing them to .env.
  • Restarts the service and opens your DM channel to produce a discord:@me:<channelId> conversation address.
  • Ships a troubleshooting section for rejected tokens, 401s, missing Message Content Intent, and drifted installs.

Who it's for

  • NanoClaw users who want to talk to their agent through Discord.
  • TypeScript/pnpm developers who prefer deterministic, re-runnable integration steps.
  • Anyone tired of hand-copying App IDs and public keys from the Developer Portal.

Examples

  1. Mid-/setup, ask "add a Discord channel" and the skill runs copy → register → pin dep → build → test.
  2. Bot is online but silent: follow the troubleshooting path to check Message Content Intent and shared-server membership.
  3. After resetting a token, refresh .env values and restart with bash setup/lib/restart.sh.

· · · Install guide · · ·

Try it now, no install

Paste this into Claude to use the skill without installing anything.

Read the instructions in this file and follow them to help me:
https://raw.githubusercontent.com/nanocoai/nanoclaw/HEAD/.claude/skills/add-discord/SKILL.md

What I want: (describe your task here)

If Claude can't open the link, open it yourself and paste the contents instead.

↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.

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 && mkdir -p ~/.claude/skills && cp -r 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/ (skip if you work inside the NanoClaw repo, where it already lives in .claude/skills/).
  5. Make sure Node.js and pnpm are installed (pnpm -v).
  6. Start Claude Code from your NanoClaw project directory and ask it to "add the Discord channel".
  7. Follow the prompts to create the bot and paste the Bot Token — the remaining credentials are derived automatically and stored in .env.