Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

discord-skillDiscord 技能

Agent Skill

用于处理 Discord 服务器、频道、消息、成员和机器人交互。它适合让 Agent 辅助查询社区对话、整理频道内容、发布通知或管理基础协作流程。使用时需要确认 bot 权限、频道可见范围和服务器规则;涉及删除消息、管理成员、批量通知或读取私密频道时,应先获得明确授权并控制操作范围。

总安装

188

周安装

8

GitHub Stars

8

下载量

66
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:discord-skill(Discord 技能)
来源仓库:https://github.com/idanbeck/claude-skills
仓库路径:skills/discord-skill
安装命令:
npx skills add https://github.com/idanbeck/claude-skills --skill discord-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/idanbeck/claude-skills --skill discord-skill

简介

用于发送消息、读取频道与管理 Discord 服务器。

  • 适合发布公告、整理频道内容或执行基础协作流程。
  • 使用时必须获得用户明确确认后才可发送任何消息,防止误操作。
  • 安装前请确认权限范围和维护状态,注意可能触发网络请求与命令执行。
  • discord-skill 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Discord Skill - Server Messaging & Management

Send messages, read channels, and interact with Discord servers.

CRITICAL: Message Confirmation Required

Before sending ANY Discord message, you MUST get explicit user confirmation.

When the user asks to send a message:

  1. First, show them the complete message details:

- Account/bot being used - Channel or user (for DMs) - Full message text

  1. Ask: "Do you want me to send this Discord message?"
  2. ONLY run the send command AFTER the user explicitly confirms
  3. NEVER send without confirmation

First-Time Setup

Option 1: Bot Token (Recommended)

Best for server automation:

  1. Go to Discord Developer Portal
  2. Click "New Application" → Name it
  3. Go to "Bot" section:

- Click "Reset Token" and copy the token - Enable "Message Content Intent" under Privileged Gateway Intents

  1. Create credentials.json: {"client_id": "YOUR_APP_CLIENT_ID", "client_secret": "YOUR_APP_CLIENT_SECRET", "bot_token": "YOUR_BOT_TOKEN"} Save to: ~/.claude/skills/discord-skill/credentials.json
  2. Invite bot to your server:

- OAuth2 → URL Generator - Select scopes: bot - Select permissions: Send Messages, Read Message History, Add Reactions - Copy URL and open in browser to invite

  1. Authenticate: python3 ~/.claude/skills/discord-skill/discord_skill.py login --bot

Option 2: User OAuth2

For user account access (limited by Discord ToS):

  1. Same app setup as above
  2. Add redirect URL: http://localhost:9997
  3. Run: python3 ~/.claude/skills/discord-skill/discord_skill.py login
  4. Authorize in browser

Commands

Account Management

# List accounts
python3 ~/.claude/skills/discord-skill/discord_skill.py accounts

# Login with bot token
python3 ~/.claude/skills/discord-skill/discord_skill.py login --bot [--account NAME]

# Login with OAuth (user)
python3 ~/.claude/skills/discord-skill/discord_skill.py login [--account NAME]

# Logout
python3 ~/.claude/skills/discord-skill/discord_skill.py logout [--account NAME]

User & Server Info

# Get current user/bot info
python3 ~/.claude/skills/discord-skill/discord_skill.py me [--account NAME]

# List servers
python3 ~/.claude/skills/discord-skill/discord_skill.py guilds [--account NAME]

# List channels in a server
python3 ~/.claude/skills/discord-skill/discord_skill.py channels GUILD_ID [--account NAME]

# List server members
python3 ~/.claude/skills/discord-skill/discord_skill.py members GUILD_ID [--limit N] [--account NAME]

Messages (Requires Confirmation)

# Send message to channel
python3 ~/.claude/skills/discord-skill/discord_skill.py send CHANNEL_ID "message" [--account NAME]

# Read messages from channel
python3 ~/.claude/skills/discord-skill/discord_skill.py messages CHANNEL_ID [--limit N] [--account NAME]

# Reply to a message
python3 ~/.claude/skills/discord-skill/discord_skill.py reply CHANNEL_ID MESSAGE_ID "reply text" [--account NAME]

# Send direct message
python3 ~/.claude/skills/discord-skill/discord_skill.py dm USER_ID "message" [--account NAME]

# Search messages in server
python3 ~/.claude/skills/discord-skill/discord_skill.py search GUILD_ID "query" [--account NAME]

Reactions

# Add reaction to message
python3 ~/.claude/skills/discord-skill/discord_skill.py react CHANNEL_ID MESSAGE_ID "👍" [--account NAME]

Finding IDs

Discord uses snowflake IDs. Enable Developer Mode to copy them:

  1. User Settings → Advanced → Developer Mode: ON
  2. Right-click any server/channel/message/user → "Copy ID"

Or use the skill commands:

  • guilds → lists server IDs
  • channels GUILD_ID → lists channel IDs
  • messages CHANNEL_ID → lists message IDs

Examples

Send a Message

# Get server list
python3 ~/.claude/skills/discord-skill/discord_skill.py guilds

# Get channels in server
python3 ~/.claude/skills/discord-skill/discord_skill.py channels 123456789012345678

# Send message
python3 ~/.claude/skills/discord-skill/discord_skill.py send 987654321098765432 "Hello from Claude!"

Read Recent Messages

python3 ~/.claude/skills/discord-skill/discord_skill.py messages 987654321098765432 --limit 10

Reply to Someone

python3 ~/.claude/skills/discord-skill/discord_skill.py reply 987654321098765432 111222333444555666 "Thanks for the info!"

React to a Message

python3 ~/.claude/skills/discord-skill/discord_skill.py react 987654321098765432 111222333444555666 "🎉"

Bot vs User Authentication

FeatureBotUser (OAuth)
Send messages
Read messagesLimited
Server management
Multiple servers
Rate limitsHigherLower
ToS complianceGray area

Recommendation: Use bot tokens for automation.

Output

All commands output JSON for easy parsing.

Requirements

  • Python 3.9+
  • pip install requests

Bot Permissions

When inviting your bot, select these permissions:

  • Send Messages - Post in channels
  • Read Message History - Read past messages
  • Add Reactions - React to messages
  • View Channels - See channel list

For more features:

  • Manage Messages - Delete/pin messages
  • Embed Links - Rich embeds
  • Attach Files - Upload files

Security Notes

  • Message confirmation required - Claude must confirm before sending
  • Bot tokens grant full bot access - keep credentials.json secure
  • Tokens stored in ~/.claude/skills/discord-skill/tokens/
  • Revoke bot tokens in Developer Portal if compromised

Rate Limits

Discord has strict rate limits:

  • ~5 messages per 5 seconds per channel
  • ~10 reactions per 10 seconds
  • Bots get higher limits than users

The skill doesn't auto-retry on rate limits - space out bulk operations.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.93%
按下载量换算24

Claude

30.49%
按下载量换算20

Cursor

19.49%
按下载量换算13

Gemini CLI

9.71%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

未通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills