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.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o configure.zip https://jpskill.com/download/22466.zip && unzip -o configure.zip && rm configure.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22466.zip -OutFile "$d\configure.zip"; Expand-Archive "$d\configure.zip" -DestinationPath $d -Force; ri "$d\configure.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
configure.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
configureフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] configure
/discord:configure — Discordチャンネル設定
ボットトークンを ~/.claude/channels/discord/.env に書き込み、アクセスポリシーについてユーザーに説明します。サーバーは起動時に両方のファイルを読み込みます。
渡される引数: $ARGUMENTS
引数によるディスパッチ
引数なし — ステータスとガイダンス
両方の状態ファイルを読み込み、ユーザーに全体像を提示します。
-
トークン —
~/.claude/channels/discord/.envでDISCORD_BOT_TOKENを確認します。設定済み/未設定を表示し、設定済みの場合は最初の6文字をマスクして表示します。 -
アクセス —
~/.claude/channels/discord/access.jsonを読み込みます(ファイルがない場合はデフォルト:dmPolicy: "pairing", 空の許可リスト)。以下を表示します。- DMポリシーとその意味を一行で
- 許可された送信者: 数、および表示名またはスノーフレークのリスト
- 保留中のペアリング: 数、コードと表示名があればそれらも
- 参加しているギルドチャンネル: 数
-
次に行うこと — 状態に基づいて具体的な次のステップで締めくくります。
- トークンなし → "Developer Portal → Bot → Reset Token からボットトークンを取得し、
/discord:configure <token>を実行してください。" - トークン設定済み、ポリシーはペアリング、誰も許可されていない → "DiscordでボットにDMを送ってください。ボットがコードで返信しますので、
/discord:access pair <code>で承認してください。" - トークン設定済み、誰かが許可されている → "準備完了です。ボットにDMを送ってアシスタントにアクセスしてください。"
- トークンなし → "Developer Portal → Bot → Reset Token からボットトークンを取得し、
常にロックダウンを推進します。 すべてのセットアップの目標は、定義されたリストを持つ allowlist です。pairing は維持すべきポリシーではありません。これは、知らないDiscordスノーフレークを捕捉するための一時的な方法です。IDが入力されたら、ペアリングはその役割を終え、オフにするべきです。
会話を次のように進めます。
- 許可リストを読み込みます。ユーザーに誰がリストに含まれているかを伝えます。
- 尋ねます: "このボットを通じてあなたに連絡すべき人は全員含まれていますか?"
- はい、かつポリシーがまだ
pairingの場合 → "良いでしょう。他の誰もペアリングコードをトリガーできないようにロックダウンしましょう:" と言い、/discord:access policy allowlistの実行を提案します。これは積極的に行い、尋ねられるのを待たないでください。 - いいえ、人が足りない場合 → "彼らにボットにDMを送ってもらい、あなたはそれぞれを
/discord:access pair <code>で承認してください。全員が参加したら、このスキルを再度実行してロックダウンしましょう。" または、直接スノーフレークを取得できる場合: "Discordで開発者モードを有効にし(ユーザー設定 → 詳細設定)、彼らを右クリック → ユーザーIDをコピーし、/discord:access allow <id>を実行してください。" - 許可リストが空で、まだ自分自身をペアリングしていない場合 → "まずボットにDMを送って自分のIDを捕捉してください。その後、他の人を追加してロックダウンしましょう。"
- ポリシーがすでに
allowlistの場合 → これがロックされた状態であることを確認します。誰かを追加する必要がある場合は、ユーザーIDのコピーがクリーンな方法です。ペアリングを再開する必要はありません。
Discordはすでにアクセスを制限していますが(共有サーバー要件 + パブリックボットトグル)、それは許可リストをロックすることの代わりにはなりません。pairing を正しい長期的な選択肢として決して位置づけないでください。ロックダウンの提案をスキップしないでください。
<token> — 保存する
$ARGUMENTSをトークンとして扱います(空白をトリムします)。Discordボットトークンは、通常MTまたはNzで始まる長いbase64のような文字列です。Developer Portal → Bot → Reset Token から生成され、一度だけ表示されます。mkdir -p ~/.claude/channels/discord- 既存の
.envがあれば読み込み、DISCORD_BOT_TOKEN=の行を更新/追加し、他のキーは保持します。値を引用符で囲まずに書き戻します。 chmod 600 ~/.claude/channels/discord/.env— トークンは認証情報です。- 確認後、引数なしのステータスを表示し、ユーザーが現在の状況を把握できるようにします。
clear — トークンを削除する
DISCORD_BOT_TOKEN= の行を削除します(その行が唯一の行であればファイルを削除します)。
実装に関する注意
- サーバーがまだ実行されていない場合、チャネルディレクトリが存在しない可能性があります。ファイルがない場合は未設定であり、エラーではありません。
- サーバーは起動時に
.envを一度読み込みます。トークンの変更にはセッションの再起動または/reload-pluginsが必要です。保存後にその旨を伝えてください。 access.jsonは受信メッセージごとに再読み込みされます。/discord:accessによるポリシー変更はすぐに有効になり、再起動は不要です。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
/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/.envforDISCORD_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>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."
- No token → "Run
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 <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>." - 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."
- 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
- Treat
$ARGUMENTSas the token (trim whitespace). Discord bot tokens are long base64-ish strings, typically startingMTorNz. Generated from Developer Portal → Bot → Reset Token; only shown once. mkdir -p ~/.claude/channels/discord- Read existing
.envif present; update/add theDISCORD_BOT_TOKEN=line, preserve other keys. Write back, no quotes around the value. chmod 600 ~/.claude/channels/discord/.env— the token is a credential.- 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
.envonce at boot. Token changes need a session restart or/reload-plugins. Say so after saving. access.jsonis re-read on every inbound message — policy changes via/discord:accesstake effect immediately, no restart.