Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计异常

discordDiscord 社区管理

Agent Skill

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

总安装

1,493

周安装

61

GitHub Stars

7,091

下载量

478
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

用于处理 Discord 服务器、频道、消息和机器人交互,支持社区内容管理。

  • 适用于 Codex、Claude、Cursor、Gemini CLI,可通过 REST API 发送消息和管理反应。
  • 支持导航频道、发布带嵌入内容的公告,以及管理线程和成员基础操作。
  • 使用时需确认 bot 权限和服务器规则,涉及删除或批量操作时应获得明确授权。
  • discord 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

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)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

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、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills