add-discord
Skill by nanocoai
Adds Discord bot channel integration to NanoClaw via the Chat SDK bridge. It is for NanoClaw users who want their assistant to chat over Discord direct messages or server channels.
Install add-discord
Built from the published package, never by AI.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.claude/skills && cp -r /tmp/nanoclaw/.claude/skills/add-discord ~/.claude/skills/add-discordRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/nanocoai/nanoclaw /tmp/nanoclaw && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/nanoclaw/.claude/skills/add-discord ~/.gemini/antigravity-cli/skills/add-discordAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The add-discord skill adds Discord bot support to NanoClaw through the Chat SDK bridge. NanoClaw does not ship channels in its trunk, so the skill copies the Discord adapter from the channels branch into src/channels/, registers it, and installs the pinned @chat-adapter/discord package at version 4.41.1. It also applies a committed pnpm patch that fixes a bug where the adapter dropped server messages that @mentioned anyone.
The skill guides you through creating the Discord bot in the Developer Portal. It asks for the Bot Token, reads the Application ID, Public Key and owner ID from that token, stores the credentials in .env, restarts the service, and opens a direct message channel with the bot. It is meant for NanoClaw users who want to talk to their assistant on Discord.
Written from the project's SKILL.md and checked against it.
What it can do
- Copy Discord adapterCopies the Discord adapter and its tests from the channels branch into src/channels/.
- Register adapterAdds the self-registration import to the channel barrel file.
- Apply adapter patchRegisters a pnpm patch that fixes dropped messages that @mention the bot.
- Install adapter packageInstalls @chat-adapter/discord pinned to exact version 4.41.1.
- Build and testRuns the build and two Vitest tests to check registration and gateway delivery.
- Guide bot setupLists the Discord Developer Portal steps to create the bot and enable Message Content Intent.
- Derive credentialsReads the application record from the Bot Token to get the App ID, Public Key and owner ID.
- Store credentialsSaves the bot token and derived credentials to .env without overwriting existing values.
- Resolve DM channelOpens a direct message channel with the owner and returns its platform ID.
What you need
- NanoClaw installation
- Discord account
- Discord bot application created in the Developer Portal
- pnpm
- A Discord server shared with the bot
Try asking
- Add Discord as a channel for my NanoClaw assistant
- Set up the Discord bot so I can DM my assistant
- Check that the Discord adapter is registered and tests pass
Good to know
- The adapter is pinned to 4.41.1 with a patch. Newer adapters need a different setup.
- The bot must have Message Content Intent enabled to read message bodies.
- The bot can only DM you after it shares a server with you.
- The Bot Token is shown only once in the Developer Portal.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/add-discord/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
REMOVE.md908 B -
SKILL.md11 KB -
apply-fixtures.json760 B -
patches/@chat-adapter__discord@4.41.1.patch1022 B
Alternatives to add-discord
All alternatives →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number
add-discord: common questions
Why does the skill apply a patch to the Discord adapter?
Adapter 4.41.1 drops server messages that @mention anyone because it serializes a circular gateway object. The committed patch backports the fix from adapter 4.42.0.
Does the bot need to be in a server with me?
Yes. The source says the bot can only DM you once you share a server, and Discord refuses to open the DM channel otherwise.
Is the skill safe to run more than once?
The source says every directive is idempotent, so the whole skill is safe to re-run.
How do I install add-discord?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is add-discord free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is add-discord safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to add-discord?
Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.
