Skip to main content
skill Claude Code official · Anthropic

configure · anthropics — Claude Code skill: what it does, how to install

Sets up the Discord channel for Claude Code by storing the bot token and enforcing allowlist access rules.

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin install discord@claude-plugins-official
Open on GitHub

What configure does

This skill writes the Discord bot token into ~/.claude/channels/discord/.env and sets permissions to chmod 600. When called without arguments, it reads the environment file and access.json to report the masked token, DM policy, active pairing codes, and opted-in guild channels.

It actively guides the channel setup toward an explicit allowlist. Temporary pairing mode captures Discord snowflakes on first contact, after which the skill prompts you to lock down access so unauthorized accounts cannot trigger commands. Passing clear removes the token entirely.

Remember that the server reads the .env file only on boot. You must run /reload-plugins or restart your session after updating credentials. If you do not interact with Claude Code through Discord, you can skip this tool.

What it helps with

  • save the Discord bot token to a restricted .env file
  • inspect current bot access policies and pending pairing codes
  • switch bot access from pairing mode to a strict allowlist
  • remove stored bot credentials with clear

Example prompts for the agent

  • /discord:configure MTk4...
  • /discord:configure
  • /discord:configure clear

How to install configure

1Plugin marketplace

/plugin install discord@claude-plugins-official

This installs the whole discord plugin with all its skills

2Skills CLI (Vercel)

npx skills add anthropics/claude-plugins-official --skill configure -a claude-code

3Manually: put the files in place

~/.claude/skills/configure/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/configure/

From the same set37

The whole set →
code-reviewer official Anthropic Reviews code changes against CLAUDE.md project rules and flags material defects. Run it before a commit or pull request. Claude Code 31,050installs code-reviewer official Anthropic This subagent checks code changes for bugs, security issues, and project-rule violations. Use it when a review should focus on findings that matter. Claude Code 31,050installs claude-md-improver official Anthropic This skill audits CLAUDE.md files, produces a quality report, and suggests focused edits. Use it when project instructions need a careful review. Claude Code 12,558installs security-auditor official Anthropic This subagent searches code for security flaws and gives engineers concrete fixes. Use it to review a project before hardening or modernization work. Claude Code 10,718installs test-engineer official Anthropic This subagent captures legacy behavior in tests and compares it with a rewritten implementation. Use it before changing existing modules. Claude Code 9,715installs claude-automation-recommender official Anthropic Analyzes a codebase and recommends Claude Code hooks, subagents, skills, plugins, and MCP servers. Useful when setting up a project or refining an existing workflow. Claude Code 9,057installs playground official Anthropic Builds interactive HTML playgrounds with controls, a live preview, and a generated prompt. Use it when a topic is easier to explore visually than through plain text. Claude Code 7,967installs agent-development official Anthropic This skill guides you through creating agents for Claude Code plugins, from trigger conditions to system prompts and tool access. Use it when adding a subagent to a plugin. Claude Code 7,353installs

Other versions of configure

Similar

debian-linux-triage official github This skill troubleshoots Debian Linux issues with apt, systemd, and dpkg, while accounting for AppArmor and firewall concerns. Use it for guided diagnosis. GitHub Copilot 9,197installs fedora-linux-triage official github This skill troubleshoots Fedora with dnf, systemd, and SELinux-aware checks. Use it when an agent needs a clear diagnostic sequence and ready-to-run commands. GitHub Copilot 8,800installs power-platform-mcp-connector-suite official github Builds Power Platform custom connectors with MCP support for Copilot Studio. Use it when creating, validating, or debugging connector schemas. GitHub Copilot 8,700installs centos-linux-triage official github This skill diagnoses and fixes CentOS issues with RHEL-compatible commands, SELinux-aware checks, and firewalld guidance. Use it for server triage. GitHub Copilot 8,700installs git-guardrails-claude-code Matt Pocock This skill adds a Claude Code hook that stops risky Git commands before they run. Use it when an agent must not push or discard working-tree changes. Claude Code 499,069installs ponytail-review DietrichGebert ponytail-review reviews a change beyond the diff, checking connected code, bugs, risks, load, tests, speed, and unnecessary code. Use it for PRs and commits. Claude Code CX Codex Cursor +1 56,300installs ponytail-audit DietrichGebert It audits a repository and ranks bugs, risks, and redundant code in a one-shot report. Use it when you need a review without code changes. Claude Code CX Codex Cursor +1 44,800installs security-audit cloudflare Reviews codebases and APIs for vulnerabilities using safe sandboxing. Fits pre-release security reviews, pen-test triage, and architecture checks. Claude Code CX Codex Cursor +1 52,200installs

Questions about configure

How do I install configure in Claude Code?

Run /plugin install discord@claude-plugins-official inside Claude Code or add it using npx skills add anthropics/claude-plugins-official --skill configure -a claude-code.

What does the configure skill do?

It manages bot credentials in ~/.claude/channels/discord/.env, reports channel status, and guides you to lock down access to specific Discord IDs.

Does changing the bot token require a restart?

Yes. The Discord channel server reads .env once at startup, so updating the token requires a session restart or running /reload-plugins.

Source text

SKILL.md · Apache-2.0
---
name: configure
description: Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how do I set this up" or "who can reach me," or wants to check channel status.
user-invocable: true
allowed-tools:
  - Read
  - Write
  - Bash(ls *)
  - Bash(mkdir *)
---

# /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:

1. **Token** — check `~/.claude/channels/discord/.env` for
   `DISCORD_BOT_TOKEN`. Show set/not-set; if set, show first 6 chars masked.

2. **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

3. **What next** — end with a concrete next step based on state:
   - No token → *"Run `/discord:configure <token>` with your bot token from
     the Developer Portal → Bot → Reset Token."*
   - Token set, policy is pairing, nobody allowed → *"DM your bot on
     Discord. It replies with a code; approve with `/discord:access pair
     <code>`."*
   - 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:

1. Read the allowlist. Tell the user who's in it.
2. Ask: *"Is that everyone who should reach you through this bot?"*
3. **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.
4. **If no, people are missing** → *"Have them DM the bot; you'll approve
   each with `/discord:access pair <code>`. 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 <id>`."*
5. **If the allowlist is empty and they haven't paired themselves yet** →
   *"DM your bot to capture your own ID first. Then we'll add anyone else
   and lock it down."*
6. **If policy is already `allowlist`** → confirm this is the locked state.
   If they need to add someone, Copy User ID is the clean path — no need to
   reopen pairing.

Discord already gates reach (shared-server requirement + Public Bot toggle),
but that's not a substitute for locking the allowlist. Never frame `pairing`
as the correct long-term choice. Don't skip the lockdown offer.

### `<token>` — save it

1. Treat `$ARGUMENTS` as the token (trim whitespace). Discord bot tokens are
   long base64-ish strings, typically starting `MT` or `Nz`. Generated from
   Developer Portal → Bot → Reset Token; only shown once.
2. `mkdir -p ~/.claude/channels/discord`
3. Read existing `.env` if present; update/add the `DISCORD_BOT_TOKEN=` line,
   preserve other keys. Write back, no quotes around the value.
4. `chmod 600 ~/.claude/channels/discord/.env` — the token is a credential.
5. Confirm, then show the no-args status so the user sees where they stand.

### `clear` — remove the token

Delete the `DISCORD_BOT_TOKEN=` line (or the file if that's the only line).

---

## Implementation notes

- The channels dir might not exist if the server hasn't run yet. Missing file
  = not configured, not an error.
- The server reads `.env` once at boot. Token changes need a session restart
  or `/reload-plugins`. Say so after saving.
- `access.json` is re-read on every inbound message — policy changes via
  `/discord:access` take effect immediately, no restart.

© anthropics · Apache-2.0 · anthropics/claude-plugins-official

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor