/discord:configure — Discord Channel Setup
Writes the bot token to
~/.claude/channels/discord/.env
and orients the
user on access policy. The server reads both files at boot.
Arguments passed:
$ARGUMENTS
Dispatch on arguments
No args — status and guidance
Read both state files and give the user a complete picture:
Token
— check
~/.claude/channels/discord/.env
for
DISCORD_BOT_TOKEN
. Show set/not-set; if set, show first 6 chars masked.
Access
— read
~/.claude/channels/discord/access.json
(missing file
= defaults:
dmPolicy: "pairing"
, empty allowlist). Show:
DM policy and what it means in one line
Allowed senders: count, and list display names or snowflakes
Pending pairings: count, with codes and display names if any
Guild channels opted in: count
What next
— end with a concrete next step based on state:
No token →
"Run
/discord:configure
."
Token set, someone allowed →
"Ready. DM your bot to reach the
assistant."
Push toward lockdown — always.
The goal for every setup is
allowlist
with a defined list.
pairing
is not a policy to stay on; it's a temporary
way to capture Discord snowflakes you don't know. Once the IDs are in,
pairing has done its job and should be turned off.
Drive the conversation this way:
Read the allowlist. Tell the user who's in it.
Ask:
"Is that everyone who should reach you through this bot?"
If yes and policy is still
pairing
→
"Good. Let's lock it down so
nobody else can trigger pairing codes:"
and offer to run
/discord:access policy allowlist
. Do this proactively — don't wait to
be asked.
If no, people are missing
→
"Have them DM the bot; you'll approve
each with
/discord:access pair
. Run this skill again once
everyone's in and we'll lock it."
Or, if they can get snowflakes
directly:
"Enable Developer Mode in Discord (User Settings → Advanced),
right-click them → Copy User ID, then
/discord:access allow
configure
安装
npx skills add https://github.com/anthropics/claude-plugins-official --skill configure