setup

setup is a skill for Claude Code from chrismdemian/claude-code-discord-bridge. It costs 20 tokens per session (832 once invoked), scanned A, original, Apache-2.0.

A setup guide for connecting a Discord bot to the Discord bridge for Claude Code. A bot is a program that can read and send messages in Discord.

In plain words
What is it for?
It helps open the Discord developer tools, create and configure a bot, save its connection token, add it to a server, and start the bridge service.
Why use it?
It guides you through creating the bot, enabling the required access, storing its token, and adding it to a server, which are otherwise easy to miss.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_DATA} variable. Also seen: mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the discord-bridge plugin — 3 skills, 1 MCP server shipped together

Good fit It helps open the Discord developer tools, create and configure a bot, save its connection token, add it to a server, and start the bridge service.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add chrismdemian/claude-code-discord-bridge
Claude Code
/plugin install discord-bridge

Made for: Claude Code.

Or install discord-bridge, the plugin that ships this one along with the rest of its 3 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrismdemian/claude-code-discord-bridge/setup.svg)](https://agentmods.dev/skills/chrismdemian/claude-code-discord-bridge/setup)
Your own site
<a href="https://agentmods.dev/skills/chrismdemian/claude-code-discord-bridge/setup"><img src="https://agentmods.dev/badge/skills/chrismdemian/claude-code-discord-bridge/setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 832 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00020 $0.00832
Opus 5 $0.00010 $0.00416
Sonnet 5 $0.00004 $0.00166
Haiku 4.5 $0.00002 $0.00083

Measured 7d ago against content hash 85f20be5d3f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discord Bridge Setup

Walk the user through setting up the Discord bridge.

Steps

  1. Open the Discord Developer Portal in the user's browser automatically. Detect the platform and run the appropriate command:

    • macOS: open https://discord.com/developers/applications
    • Windows: start https://discord.com/developers/applications
    • Linux: xdg-open https://discord.com/developers/applications

    Then print this concise guide:

    1. Click "New Application" → name it anything (e.g. "CC Bridge")
    2. Go to Bot → Reset Token → copy it
    3. Under Bot → Privileged Gateway Intents → enable Message Content Intent
    4. Paste your token below:
    
  2. Ask the user to paste the bot token.

  3. Save the token to ${CLAUDE_PLUGIN_DATA}/.env:

    DISCORD_TOKEN=<the token>
    BRIDGE_PORT=7676
    
  4. Add bot to a Discord server. Tell the user:

    • Create a new Discord server (click the + in Discord's sidebar), or use an existing one
    • In the Developer Portal, go to OAuth2 (left sidebar)
    • Under OAuth2 URL Generator: check bot and applications.commands scopes
    • Under Bot Permissions: check Administrator
    • Copy the Generated URL at the bottom and open it in your browser
    • Select your server and authorize
    • Wait for the user to confirm the bot has been added to their server.
  5. If the user has their Server ID, add DISCORD_GUILD_ID=<id> to the .env file. If not, that's fine — the setup script will auto-detect it if the bot is in exactly one server.

  6. Install dependencies and run the setup script:

    cd ${CLAUDE_PLUGIN_ROOT} && bun install && PLUGIN_DATA=${CLAUDE_PLUGIN_DATA} bun run bridge/setup.ts --yes
    

    This will:

    • Check that pm2 is installed
    • Login the bot and auto-brand it
    • Auto-detect the Discord server (or ask for DISCORD_GUILD_ID if in multiple)
    • Set up the CLAUDE CODE category with #sessions, #dashboard, and #alerts channels
    • Create webhooks and save config
    • Post a welcome message and generate an invite link
    • Add a shell alias (claude-dc)
    • Start the bridge service via pm2 and verify health

Read the full file on GitHub · 74 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 74 lines · 20 tokens per session scan A 85f20be5d3f2

Subscribe to this mod's changes

setup is a skill published in the GitHub repository chrismdemian/claude-code-discord-bridge (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 832 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

browser-use

Automates browser interactions for social media management across Instagram, LinkedIn, and X. Handles posting, DMs, connection requests, lead scraping, and monitoring. Use when the user needs to navigate, interact with, or extract data from approved websites.

wanikua/danghuangshang · 53 tokens

self-improvement

Captures learnings, errors, and corrections to enable continuous improvement. Use when: (1) A command or operation fails unexpectedly, (2) User corrects Claude ('No, that's wrong...', 'Actually...'), (3) User requests a capability that doesn't exist, (4) An external API or tool fails, (5) Claude realizes its knowledge…

wanikua/danghuangshang · 102 tokens

novel-prose

A fiction-writing guide for creating novel chapters scene by scene, with rules for viewpoint, dialogue, description, pacing, and chapter structure.

wanikua/danghuangshang · 40 tokens

novel-openviking

Instructions for connecting a novel-writing workflow to OpenViking, a semantic memory system that stores and retrieves related information by meaning. It maps character details, world rules, chapter summaries, and plot clues to memory operations.

wanikua/danghuangshang · 63 tokens

novel-archiving

A writing-workflow skill for archiving each completed novel chapter. It creates a chapter summary and updates files that record characters, plot clues, the timeline, relationships, and world details.

wanikua/danghuangshang · 44 tokens

novel-memory

A file-based memory system for Chinese-language fiction projects. It stores story plans, character details, world rules, timelines, relationships, chapter summaries, and unresolved clues.

wanikua/danghuangshang · 51 tokens