Token导航 LogoToken导航

Agent Skill · 研究检索

discord(Discord 社区管理)

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

discord 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证为 MIT,第三方扫描有未通过项,按安装量在研究检索类的 73,674 个 Skill 里排第 38,909。

总安装 1,493周安装 61GitHub Stars 7,091下载 478核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于处理 Discord 服务器、频道、消息和机器人交互,支持社区内容管理。适用于 Codex、Claude、Cursor、Gemini CLI,可通过 REST API 发送消息和管理反应。支持导航频道、发布带嵌入内容的公告,以及管理线程和成员基础操作。

使用时需确认 bot 权限和服务器规则,涉及删除或批量操作时应获得明确授权。discord 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/discord

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/civitai/civitai --skill discord;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

discord 怎么安装?

在终端执行 npx skills add https://github.com/civitai/civitai --skill discord。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

discord 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

discord 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

discord 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

discord 用的人多吗?

公开数据是累计安装 1,493 次,近一周安装 61 次,下载 478 次,GitHub 7,091 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

discord 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 来源仓库有 7,091 星,维护活跃度相对可查。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
discord

Discord 社区管理 · 本页

1,4937,091接触敏感数据MIT未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Discord

Post messages and announcements to Discord channels via the REST API. Navigate channels by name, send formatted messages with embeds, manage reactions, threads, and more.

Setup

Run the setup script to authenticate via Discord:

node .claude/skills/discord/setup.mjs https://discord-proxy.civitai.com

This will:

  1. Open your browser for Discord authentication
  2. Verify you're in the team server
  3. Save your personal API token to .env

Admin Only: Direct Bot Token

If you manage the bot directly and need to bypass the proxy:

  1. Copy .env.example to .env in this skill directory
  2. Uncomment and set DISCORD_BOT_TOKEN
  3. Optionally set DISCORD_GUILD for auto-detection
cp .claude/skills/discord/.env.example .claude/skills/discord/.env

Running Commands

node .claude/skills/discord/query.mjs <command> [options]

Commands

CommandDescription
guildsList all guilds (servers) the bot is in
channels [guild]List text channels in a guild
send <channel> "message"Send a plain text message
announce <channel> "message"Send a formatted announcement embed
meShow bot information
usersList all members in the guild
`user <name\id>`Get user info and mention format
rolesList all roles in the guild
`role <name\id>`Get role info and mention format
messages <channel>Get recent messages from a channel
edit <msg_link> "content"Edit a message (bot's own only)
delete <msg_link>Delete a message
reply <msg_link> "content"Reply to a message
rich-embed <channel>Send embed with structured fields
react <msg_link> <emoji>Add reaction to a message
unreact <msg_link> <emoji>Remove reaction from a message
pin <msg_link>Pin a message
unpin <msg_link>Unpin a message
pins <channel>List pinned messages in a channel
thread <channel> --thread "name"Create a thread
dm <user> "message"Send a direct message to a user
dm-messages <user>Read DM history with a user

Options

FlagDescription
--jsonOutput raw JSON response
--title "text"Set embed title
--color <hex>Set embed color (default: #1E88E5 blue)
--footer "text"Set embed footer text
--url "link"Add a URL to the embed title
--limit, -n <N>Limit results (users: default 100, messages: default 20)
`--field "Name\Value\inline"`Add field to rich embed (repeatable)
--thumbnail "url"Add thumbnail image to embed
--image "url"Add large image to embed
--thread "name"Thread name (for thread command)

Examples

Send Messages

# Send to channel by name
node .claude/skills/discord/query.mjs send dev-general "Deployment complete!"

# Send to channel by ID
node .claude/skills/discord/query.mjs send 966054537880289330 "Build passed"

Send Announcements

# Basic announcement with auto-formatting
node .claude/skills/discord/query.mjs announce dev-alerts "New feature deployed!"

# Announcement with custom title and color
node .claude/skills/discord/query.mjs announce deployments "v5.0.1381 released" --title "Release" --color "#00C853"

Rich Embeds with Fields

# Structured release announcement
node .claude/skills/discord/query.mjs rich-embed dev-general "New release is live!" \
  --title "Release v5.0.1382" \
  --field "Version|5.0.1382|inline" \
  --field "Author|@justin|inline" \
  --field "Changes|3 files modified" \
  --footer "Civitai" \
  --color "#00C853"

Edit Messages

# Edit using message link
node .claude/skills/discord/query.mjs edit "https://discord.com/channels/955.../966.../123..." "Updated content"

# Edit using channel + message ID
node .claude/skills/discord/query.mjs edit dev-general 1234567890 "Updated content"

Delete Messages

# Delete using message link
node .claude/skills/discord/query.mjs delete "https://discord.com/channels/955.../966.../123..."

# Delete using channel + message ID
node .claude/skills/discord/query.mjs delete dev-general 1234567890

Reply to Messages

# Reply using message link
node .claude/skills/discord/query.mjs reply "https://discord.com/channels/955.../966.../123..." "Thanks for the update!"

# Reply using channel + message ID
node .claude/skills/discord/query.mjs reply dev-general 1234567890 "Got it!"

Reactions

# Add a reaction (use Unicode emoji)
node .claude/skills/discord/query.mjs react "https://discord.com/channels/..." "U+2705"
node .claude/skills/discord/query.mjs react dev-general 1234567890 "U+1F44D"

# Remove a reaction
node .claude/skills/discord/query.mjs unreact "https://discord.com/channels/..." "U+2705"

Pin/Unpin Messages

# Pin a message
node .claude/skills/discord/query.mjs pin "https://discord.com/channels/..."

# Unpin a message
node .claude/skills/discord/query.mjs unpin "https://discord.com/channels/..."

# List pinned messages
node .claude/skills/discord/query.mjs pins dev-general

Threads

# Create thread from a message
node .claude/skills/discord/query.mjs thread "https://discord.com/channels/..." --thread "Discussion"

# Create thread in channel (no parent message)
node .claude/skills/discord/query.mjs thread dev-general --thread "New Topic"

Direct Messages

# Send DM to a user by name
node .claude/skills/discord/query.mjs dm justin "Hey, can you review this PR?"

# Send DM to a user by ID
node .claude/skills/discord/query.mjs dm 303445765865603073 "Quick question about the deployment"

# Read DM history with a user
node .claude/skills/discord/query.mjs dm-messages justin

# Read last 50 DMs
node .claude/skills/discord/query.mjs dm-messages justin --limit 50

Users and Roles

# List users
node .claude/skills/discord/query.mjs users --limit 50

# Find user to get mention format
node .claude/skills/discord/query.mjs user justin
# Output: Mention: <@303445765865603073>

# List roles
node .claude/skills/discord/query.mjs roles

# Find role to get mention format
node .claude/skills/discord/query.mjs role devs
# Output: Mention: <@&955572624992382996>

Mention Users and Roles

# Mention a user in a message
node .claude/skills/discord/query.mjs send dev-general "<@303445765865603073> check this PR"

# Mention a role
node .claude/skills/discord/query.mjs announce dev-general "<@&955572624992382996> new release!" --title "Attention Devs"

Read Messages

# Get last 20 messages (default)
node .claude/skills/discord/query.mjs messages dev-general

# Get last 50 messages
node .claude/skills/discord/query.mjs messages dev-general --limit 50

Message Links

Most commands accept Discord message links directly:

  • Format: https://discord.com/channels/GUILD_ID/CHANNEL_ID/MESSAGE_ID
  • Right-click any message in Discord > "Copy Message Link"

Commands that accept message links: edit, delete, reply, react, unreact, pin, unpin, thread

Channel Name Matching

Channel names are matched flexibly:

  • Exact match: dev-general
  • Partial match: dev-gen matches dev-general
  • With or without emoji prefix: team matches team
  • Case insensitive: DEV-GENERAL matches dev-general

When to Use

  • Deployments: Announce releases to deployments or dev-alerts
  • Bug fixes: Share fixes with the team in dev-general
  • Feature announcements: Post to relevant channels
  • Team updates: Share progress in team or project-specific channels
  • Automated notifications: Post from CI/CD or scripts
  • Mentioning users: Look up user IDs with user command, then @mention them
  • Mentioning roles: Look up role IDs with role command, then @mention them
  • Reading context: Check recent messages with messages command
  • Reactions: Acknowledge messages with emoji reactions
  • Organizing discussions: Create threads for focused conversations
  • Direct messages: Send private DMs to team members, read DM history

Tips

  • Use announce for important updates (creates rich embed)
  • Use send for quick messages or automated notifications
  • Use rich-embed for structured data with multiple fields
  • Channel names are cached after first lookup
  • Bot must have appropriate permissions in target channel
  • Use --json for scripting or piping to other tools
  • Message links work across all message-targeting commands

Permissions Required

The bot needs these Discord permissions:

  • View Channels - to list and find channels
  • Send Messages - to post messages
  • Embed Links - for rich announcements
  • Read Message History - to read channel messages
  • Add Reactions - to add reactions
  • Manage Messages - to pin/unpin and delete messages
  • Create Public Threads - to create threads
  • Server Members Intent - enabled in Discord Developer Portal (for listing members)

平台分布

Claude Code

30.47%
按下载量换算146

Gemini CLI

24.3%
按下载量换算116

windsurf

17.71%
按下载量换算85

OpenCode

13.9%
按下载量换算66

Codex

8.23%
按下载量换算39

github-copilot

4.1%
按下载量换算20

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。

继续浏览同类 Skills