跳到主要内容

configure 精选

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.

编码 Claude CodeMCP 客户端 Apache-2.0 3.8 万
在 GitHub 打开

安装方式

cp -r external_plugins/discord/skills/configure ~/.claude/skills/configure

把该 skill 目录放进客户端 skills 目录。不同客户端的目录可能不同,Claude Code 默认是 ~/.claude/skills/

整仓一次性获取:git clone --depth 1 https://github.com/anthropics/claude-plugins-official.git

依赖与权限

  • 无需 API Key
  • 无需联网
  • 无外部命令依赖
  • 以上为按正文与 frontmatter 自动推断的信号,仅供参考;安装前建议先阅读原文。
allowed-tools
Read Write Bash(ls *) Bash(mkdir *)

SKILL.md 正文

来源 anthropics/claude-plugins-official@f359d43 · 许可 Apache-2.0 · 内容未修改

/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.

  1. 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
  1. 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.

  1. 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>."*

  1. 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."*

  1. 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.

  1. mkdir -p ~/.claude/channels/discord
  2. Read existing .env if present; update/add the DISCORD_BOT_TOKEN= line,

preserve other keys. Write back, no quotes around the value.

  1. chmod 600 ~/.claude/channels/discord/.env — the token is a credential.
  2. 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/claude-plugins-official
仓库星标
3.8 万
最近更新
今天
采集时间
今天
commit
f359d43b4060
内容指纹
sha256:9364d7895d6f38b
文件路径
external_plugins/discord/skills/configure/SKILL.md

同仓库其它 Skill

查看全部 33 个
access
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the iMessage channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Check iMessage channel setup and review access policy. Use when the user asks to configure iMessage, asks "how do I set this up" or "who can reach me," or wants to know why texts aren't reaching the assistant.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
access
Manage Telegram channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Telegram channel.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
configure
Set up the Telegram channel — save the bot token and review access policy. Use when the user pastes a Telegram bot token, asks to configure Telegram, asks "how do I set this up" or "who can reach me," or wants to check channel status.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端
claude-automation-recommender
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
精选 anthropics/claude-plugins-official 3.8 万 原文
Claude CodeMCP 客户端

相似 Skill

更多「编码」
code-simplifier
Review RTK Rust code for idiomatic simplification. Detects over-engineering, unnecessary allocations, verbose patterns. Applies Rust idioms without changing behavior.
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI
design-patterns
Rust design patterns for RTK. Newtype, Builder, RAII, Trait Objects, State Machine. Applied to CLI filter modules. Use when designing new modules or refactoring existing ones.
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI
issue-triage
Issue triage: audit open issues, categorize, detect duplicates, cross-ref PRs, risk assessment, post comments. Args: "all" for deep analysis of all, issue numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI
performance
CLI performance optimization - startup time, memory usage, token savings benchmarking
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI
pr-review
Batch review des PRs RTK par ordre de complexité croissante (XS → S → M → L). Pour chaque PR : vérifie l'état (conflits, CLA, reviews), lit le diff complet, analyse le code en contexte, présente un résumé avec lien + taille + recommandation. Attend validation explicite avant tout merge. Poste des commentaires boldguy-adapt sur les PRs bloquées (conflit, CLA, CHANGES_REQUESTED). Args: "triage" pour lancer un triage complet avant la review. "from:<num>" pour reprendre à partir d'un numéro de PR spécifique.
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI
pr-triage
PR triage: audit open PRs, deep review selected ones, draft and post review comments. Args: "all" to review all, PR numbers to focus (e.g. "42 57"), "en"/"fr" for language, no arg = audit only in French.
精选 rtk-ai/rtk 8.3 万 原文
Claude CodeCodex CLI