Guide · Agent skill
How to use the Discord Channel Setup agent skill (configure)
Updated · written with AI from the project's own documentation and checked against our catalogue data
The Discord Channel Setup skill, named configure, walks you through connecting a Discord bot to your AI assistant. You paste the bot token once, the agent saves it locally, and then it checks who is allowed to message the bot. This guide explains what an agent skill is, how to install this one, how to trigger it, and what to watch for before you paste a credential.
Quick start
- 1Download and unzip the skill. Download the ZIP from our page and unzip the configure folder into ~/.claude/skills/ or your project's .claude/skills/ folder, or upload it under Settings → Capabilities → Skills in the Claude apps.
- 2Create a bot token. In the Discord Developer Portal, open your application, go to Bot, and choose Reset Token. Copy it right away, because Discord shows it only once.
- 3Save the token. Ask the assistant to set up Discord with your token, or run /discord:configure followed by the token. The skill saves it to ~/.claude/channels/discord/.env.
- 4Restart or reload. Restart the session or run /reload-plugins so the Discord server reads the new token.
- 5Capture your own ID. DM your bot on Discord. It replies with a pairing code, which you approve with /discord:access pair <code>.
- 6Add everyone else. Have each person DM the bot and approve their codes, or enable Developer Mode and use Copy User ID with /discord:access allow <id>.
- 7Lock the allowlist. When the list is complete, switch to allowlist with /discord:access policy allowlist so no one else can trigger pairing codes.
What is an agent skill, and what does this one do?
An agent skill is a folder containing a SKILL.md file with instructions that an AI agent loads when a request matches the skill's description. This skill is the setup step for the Discord channel plugin.
Its job is narrow: save the Discord bot token to a local settings file, report whether the token is set, and review who can reach the bot. It also tells you when a restart is needed after saving a token.
- Saves the bot token to ~/.claude/channels/discord/.env, preserving other keys in that file.
- Sets restricted permissions on that file with chmod 600, because the token is a credential.
- Reads ~/.claude/channels/discord/access.json and summarises the DM policy, allowed senders and pending pairings.
- Recommends moving to an allowlist of fixed Discord user IDs and offers to make that change.
- Removes the token when you ask it to clear it.
Install the Discord Channel Setup skill
Download the ZIP for this skill from our page. Unzip it so the configure folder, containing SKILL.md, sits in one of these locations:
For a personal install available across projects, unzip into ~/.claude/skills/. For a single project, unzip into that project's .claude/skills/ folder.
If you use the Claude apps, you can instead upload the skill under Settings → Capabilities → Skills.
- Personal: ~/.claude/skills/configure/
- Project only: .claude/skills/configure/ inside your project folder
- Claude apps: Settings → Capabilities → Skills, then upload
Get a Discord bot token before you start
The skill cannot finish setup without a bot token. You get it from the Discord Developer Portal: open your application, go to Bot, and choose Reset Token. Discord shows the token only once, so copy it immediately.
The Discord channel server component is also required. The skill refers to it, but the skill itself only reads and writes local files.
Trigger the skill with natural requests
You do not need to remember a command. The skill loads when your request matches its description. Typical triggers are pasting a Discord bot token, asking to configure Discord, asking how to set this up, asking who can reach you, or asking to check channel status.
You can also invoke it directly as /discord:configure. Adding a token after the command saves it, and running the command with no arguments shows status and next steps.
- "Here is my Discord bot token, please save it."
- "How do I set this up?"
- "Who can reach my assistant through the bot?"
- "Check the status of the Discord channel."
- "Remove the Discord bot token."
/discord:configure <token>What happens during setup, step by step
When you give the skill a token, it trims whitespace, creates the channel folder if needed, and writes the DISCORD_BOT_TOKEN line into the .env file without quotes. It then sets the file to owner-only permissions and shows the status view.
The status view covers three things: whether a token is set (only the first six characters are shown), the DM policy and what it means, and the allowed senders and pending pairings. It ends with a concrete next step.
Discord's server reads the .env file once at startup, so after saving a token you need a session restart or /reload-plugins. Changes to access.json take effect on the next inbound message without a restart.
Lock access down to an allowlist
The skill pushes toward one end state: a policy of allowlist with a defined list of Discord user IDs. Pairing is a temporary way to capture IDs you do not know yet. Once everyone who should reach the bot is in the list, the skill offers to switch the policy to allowlist.
To add someone whose ID you can get directly, enable Developer Mode in Discord under User Settings → Advanced, right-click the person, choose Copy User ID, and add it with the access command. Discord's own gating, such as a shared-server requirement and the Public Bot toggle, is not a substitute for locking the allowlist.
- Pairing: the bot replies with a code when someone DMs it; approve with /discord:access pair <code>.
- Direct add: /discord:access allow <id>.
- Lock: /discord:access policy allowlist.
/discord:access policy allowlistExample sessions
A first-time setup usually goes like this: you paste the token, the skill saves it and reminds you to restart, then you DM the bot yourself so your own ID is captured. The skill then asks whether that is everyone, and if so, offers the lockdown.
If you are auditing an existing bot, ask who can reach it. The skill reads the access file and lists allowed senders and any pending pairings, then asks whether that list is correct.
Safety notes: scripts, network and the token
This skill runs no scripts and makes no network calls. It reads and writes local files, and its tool permissions are limited to Read, Write, and listing or creating directories with ls and mkdir.
The bot token is a credential that grants control of the bot. Do not paste it into a shared or untrusted chat. If it leaks, reset it in the Developer Portal and run the skill again with the new token. You can also run clear to remove it locally.
- Runs scripts: no
- Uses network: no
- Token file permissions: owner-only (chmod 600)
What people use it for
- Connecting a personal AI assistant to a private Discord bot for first-time setup.
- Auditing who can message an existing bot and confirming the access list is correct.
- Rotating a bot token after a reset in the Developer Portal.
- Removing the stored token from your machine when you stop using the bot.
- Adding a teammate to a locked allowlist using their Discord user ID.
Frequently asked questions
Is the Discord Channel Setup skill free to use?
The source does not state pricing or licence terms for the plugin beyond the listed licence, which is Apache-2.0. Check the repository's licence file for the terms that apply to your use.
What do I need before installing this skill?
You need a Discord bot token from the Discord Developer Portal, found under your application's Bot page. The skill also refers to the Discord channel server component, which handles the connection; the skill itself only reads and writes local files.
Where does the skill store my Discord bot token?
It saves the token to ~/.claude/channels/discord/.env as the DISCORD_BOT_TOKEN line and sets the file to owner-only permissions with chmod 600. The token is never shown in full in the status view, only its first six characters.
Why does the skill keep recommending an allowlist?
Pairing is meant only as a temporary way to capture Discord user IDs. An allowlist of fixed IDs limits who can trigger the assistant. The skill may not suit open or public communities where access should not be narrowed.
Do I need to restart after saving a token?
Yes. The server reads the .env file once at boot, so restart the session or run /reload-plugins after saving. Changes to the access file take effect on the next message without a restart.
How do I remove or rotate my bot token?
To remove it locally, run the clear option, which deletes the DISCORD_BOT_TOKEN line or the file if it is the only line. To rotate, reset the token in the Developer Portal and run the skill again with the new one.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you are setting up a Discord bot for the first time, want to see who can reach your assistant, or need to rotate or remove a token. Pick something else if you have no bot token, or if you run an open community bot where narrowing access to a fixed list would not fit.
Download the skill