skillfed

add-discord

This skill adds Discord channel support to ClaudeClaw, handling bot token setup, code integration via git merge, and interactive channel registration. It guides you through creating a Discord bot application, configuring environment credentials, and registering channels for message routing with optional trigger-based responses.

Add Discord skill integrates a Discord bot channel into ClaudeClaw for multi-server messaging.

AI-generated summary based on this skill's SKILL.md

184 60 MIT updated by sbusso

Install

sbusso/claudeclaw/add-discord · repository language: TypeScript

CLI (skillfed)coming soon
git clone https://github.com/sbusso/claudeclaw
cp -r claudeclaw/skills/add-discord ~/.claude/skills/add-discord

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I add a Discord bot to ClaudeClaw?

ClaudeClaw's add-discord skill enables Discord channel support by guiding you through bot creation, token setup, and channel registration. Start by creating a Discord bot application in the Developer Portal, obtain your bot token, add it to your environment variables, then use the skill's interactive setup to register channels for message routing. The skill handles code integration via git merge to connect your bot to ClaudeClaw.

What's involved in Discord channel integration setup?

add-discord walks you through registering Discord channels with ClaudeClaw by collecting channel IDs and configuring message handling. The setup process includes creating your Discord bot application, configuring OAuth2 permissions, enabling the Message Content Intent, and then registering specific channels where your bot will listen and respond. Each channel can be configured with optional trigger-based responses.

How do I set up a Discord bot token for ClaudeClaw?

add-discord guides you to create a bot token through Discord's Developer Portal, then securely store it as an environment variable. The skill provides step-by-step instructions for generating the token from your bot application, setting the required OAuth2 scopes and permissions, and configuring your local environment so ClaudeClaw can authenticate with Discord's API.

What permissions and intents does add-discord require?

add-discord enables Discord Message Content Intent and configures OAuth2 permissions needed for your bot to read and send messages. The skill automatically guides you through enabling the Message Content Intent in the Developer Portal and setting appropriate bot permissions like Send Messages, Read Messages, and Read Message History so your ClaudeClaw assistant can interact properly in Discord channels.

How do I troubleshoot Discord bot connection issues?

add-discord provides troubleshooting guidance for connection and message delivery problems. Check that your bot token is correctly set in environment variables, verify the Message Content Intent is enabled, confirm channel IDs are registered properly, and ensure your bot has appropriate permissions in each Discord server. The skill helps diagnose authentication failures and message routing issues.

Can I register multiple Discord channels with ClaudeClaw?

Yes, add-discord supports registering multiple Discord channels for message handling. The interactive channel registration process lets you add as many channels as needed, each with its own configuration. You can manage channel IDs and customize trigger-based responses per channel, allowing ClaudeClaw to monitor and respond across your entire Discord server structure.

SKILL.md

rendered from the published skill — quoted content, verbatim

Add Discord Channel

This skill adds Discord support to ClaudeClaw, then walks through interactive setup.

Phase 1: Pre-flight

Check if already applied

Check if src/channels/discord.ts exists. If it does, skip to Phase 3 (Setup). The code changes are already in place.

Ask the user

Use AskUserQuestion to collect configuration:

AskUserQuestion: Do you have a Discord bot token, or do you need to create one?

If they have one, collect it now. If not, we'll create one in Phase 3.

Phase 2: Apply Code Changes

Ensure channel remote
git remote -v

If discord is missing, add it:

git remote add discord https://github.com/qwibitai/claudeclaw-discord.git
Merge the skill branch
git fetch discord main
git merge discord/main || {
  git checkout --theirs package-lock.json
  git add package-lock.json
  git merge --continue
}

This merges in: - src/channels/discord.ts (DiscordChannel class with self-registration via registerChannel) - src/channels/discord.test.ts (unit tests with discord.js mock) - import './discord.js'

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
skills/add-discord/SKILL.md

Related skills

Tags

bot-integration messaging-platform oauth2-setup channel-registration environment-config developer-portal service-deployment multi-channel-support