From bridgey-discord
Set up the Discord bot — configure token, daemon URL, guild channels. Use when user says "configure discord", "set discord token", "discord setup", "discord bot setup".
How this skill is triggered — by the user, by Claude, or both
Slash command
/bridgey-discord:configureThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Configure the bridgey-discord transport adapter.
Configure the bridgey-discord transport adapter.
The bot reads DISCORD_BOT_TOKEN from the environment (not auto-loaded from a file). Recommended: store in pass and pass inline.
If $ARGUMENTS contains a bot token (long alphanumeric string):
pass insert discord/bot-token (prompt user to paste)DISCORD_BOT_TOKEN=$(pass show discord/bot-token) npm startIf no arguments provided, show status:
pass show discord/bot-token succeedsDISCORD_BOT_TOKEN env var is currently set~/.bridgey/discord.config.jsonConfig file: ~/.bridgey/discord.config.json
Default config structure:
{
"token_env": "DISCORD_BOT_TOKEN",
"daemon_url": "http://localhost:8092",
"port": 8094,
"dm_policy": "pairing",
"guilds": {}
}
Create this file if it doesn't exist when configuring.
Guide the user through adding guild channels:
guilds:{
"guilds": {
"<guild_id>": {
"channels": ["<channel_id_1>", "<channel_id_2>"],
"require_mention": true,
"allow_from": []
}
}
}
After configuration, tell the user:
cd ${CLAUDE_PLUGIN_ROOT} && DISCORD_BOT_TOKEN=$(pass show discord/bot-token) npm startdist/bot.js (esbuild bundle) with discord.js/zod as external depsDependencies (discord.js, zod) are auto-installed on first Claude Code session via the SessionStart hook. If the bot fails with a missing module error:
node_modules/discord.js exists in the plugin directorynpm install --omit=dev --prefix ${CLAUDE_PLUGIN_ROOT}dist/bot.js is missing, rebuild: cd ${CLAUDE_PLUGIN_ROOT} && npm run buildnpx claudepluginhub kickinrad/bridgey --plugin bridgey-discordCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.