К основному содержанию
скилл CX Codex

discord · civitai — скилл для Claude Code: что делает и как установить

Скилл для Claude Code отправляет сообщения, анонсы и эмбеды в каналы Discord через REST API. Передаёт уведомления о релизах и командную переписку из консоли.

Apache-2.0 ★ 7 327 обновлён 2026-10-25

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add civitai/civitai --skill discord -a claude-code
Открыть на GitHub

Что делает discord

Скилл связывает агента с Discord через скрипты setup.mjs и query.mjs. Он умеет находить каналы по именам или ID, слать обычный текст, форматировать карточки rich-embed с полями, управлять ветками, реакциями и закрепами. Бот может также читать историю чатов и отправлять личные сообщения пользователям.

Для работы требуется Node.js. Авторизация проходит либо через прокси https://discord-proxy.civitai.com с браузером и записью токена в .env, либо напрямую через DISCORD_BOT_TOKEN в файле .claude/skills/discord/.env. Без настроенного токена команды к API завершатся ошибкой.

Какие задачи решает

  • отправлять уведомления о деплоях и релизах в каналы Discord
  • публиковать форматированные карточки rich-embed с полями и цветом
  • читать последние сообщения из текстовых каналов или переписки DM
  • создавать ветки обсуждений и прикреплять реакции по коду emoji

Примеры запросов агенту

  • Отправь анонс о релизе в канал dev-alerts с заголовком Release
  • Покажи последние 20 сообщений из канала dev-general
  • Напиши личное сообщение пользователю jane с просьбой проверить PR

Как установить discord

1Через Skills CLI (Vercel)

npx skills add civitai/civitai --skill discord -a claude-code

2Вручную: положить файлы

~/.claude/skills/discord/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/discord/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о discord

Как установить discord в Claude Code?

Выполните команду npx skills add civitai/civitai --skill discord -a claude-code. Конфигурация сохранится по пути ~/.claude/skills/discord/SKILL.md.

Что делает этот скилл?

Он позволяет агенту отправлять сообщения и анонсы в Discord, управлять ветками, реакциями, пинами и читать историю сообщений через Node.js-скрипты.

Как настроить авторизацию бота?

Запустите node .claude/skills/discord/setup.mjs https://discord-proxy.civitai.com для входа через браузер или скопируйте .env.example в .env и укажите DISCORD_BOT_TOKEN.

Исходный текст

SKILL.md · Apache-2.0
---
name: discord
description: Post announcements and messages to Discord channels. Use when sharing updates, releases, or team communications.
---

# 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:

```bash
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

```bash
cp .claude/skills/discord/.env.example .claude/skills/discord/.env
```

## Running Commands

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

### Commands

| Command | Description |
|---------|-------------|
| `guilds` | List 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 |
| `me` | Show bot information |
| `users` | List all members in the guild |
| `user <name\|id>` | Get user info and mention format |
| `roles` | List 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

| Flag | Description |
|------|-------------|
| `--json` | Output 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

```bash
# 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

```bash
# 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

```bash
# 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|@jane|inline" \
  --field "Changes|3 files modified" \
  --footer "Civitai" \
  --color "#00C853"
```

### Edit Messages

```bash
# 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

```bash
# 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

```bash
# 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

```bash
# 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

```bash
# 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

```bash
# 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

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

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

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

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

### Users and Roles

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

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

# 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

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

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

### Read Messages

```bash
# 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)

© civitai · Apache-2.0 · civitai/civitai

Похожие скиллы

Все скиллы по теме «DevOps и инфраструктура» →

Сначала — discord от других авторов.

discord openclaw Скилл прогоняет месседжинг Discord через message-инструмент OpenClaw: отправлять, править, удалять, закрепить и отреагировать, плюс интерактивные кнопки. Поможет, когда агенту нужен Discord как канал ответов и уведомлений. CX Codex +1 3 000установок discord acedatacloud Интегрирует аккаунт Discord с ИИ-агентом: читает профиль и список серверов по OAuth либо отправляет сообщения через токен пользователя. CX Codex +1 189установок discord imoonkey Управляет чатами и серверами Discord через CLI-утилиту openweb. Пригодится агентам для чтения каналов и отправки ответов прямо из терминала. CX Codex +1 ★ 79звёзд репо discord-channel Crokily Скилл discord-channel для Claude Code настраивает подключение бота Pots к Discord и отправляет сообщения, файлы и интерактивные кнопки через REST API. CX Codex +1 ★ 79звёзд репо discord-bot claude-office-skills Скилл discord-bot для Claude Code помогает проектировать Discord-ботов для модерации, уведомлений и управления сообществом. Он описывает настройки бота, команды и сценарии с ИИ. CX Codex +1 5 500установок Kite Discord Bot Builder merlinfuchs MCP-сервер Kite Discord Bot Builder позволяет создавать и исправлять ботов для Discord в диалоге с ИИ. Kite берёт хостинг на себя, избавляя от ручного развёртывания кода. CX Codex +1 ★ 332звёзд репо discord-notifications davila7 Хук discord-notifications для Claude Code. Отправляет уведомление в Discord когда Claude завершил работу или выполнил субагента. Подставляет текущее время через date. 217установок discordbot acedatacloud Скилл discordbot для Claude Code управляет Discord от имени бота: показывает серверы и каналы, читает и отправляет сообщения. Работает на серверах, куда бота уже пригласили. CX Codex +1 181установок discord-automation davepoon Скилл discord-automation автоматизирует отправку сообщений, управление ролями, вебхуками и реакциями в Discord через Rube MCP и Composio. Помогает ботам работать с каналами и пользователями прямо из агента. CX Codex +1 128установок

Из того же набора11

Весь набор →
quick-mockups Скилл quick-mockups для Claude Code: генерирует от 3 до 5 параллельных вариантов интерфейса в HTML для сравнения разных сеток и подачи новой фичи. CX Codex +1 1 700установок meilisearch-admin Скилл meilisearch-admin для мониторинга Meilisearch: проверяет индексы, задачи, здоровье сервера и настройки поиска. Помогает отловить ошибки в индексировании и понять, что происходит с поиском. CX Codex +1 132установок postgres-query Скилл postgres-query для Claude Code выполняет запросы к PostgreSQL при отладке и профилировании базы данных. Запускает команды через скрипт с обязательным указанием контура --prod или --dev. CX Codex +1 105установок agent-review Скилл agent-review для Claude Code отправляет код на проверку внешнему AI-агенту. Выполняет ревью, помогает оценить архитектурные решения и получить второе мнение. CX Codex +1 3установок clickhouse-query Скилл clickhouse-query гоняет ad-hoc запросы к ClickHouse прямо из чата с агентом: метрики, события, план выполнения. По умолчанию только чтение. CX Codex +1 ★ 7 327звёзд репо redis-inspect Скилл redis-inspect для Claude Code проверяет ключи, значения и TTL в основном и системном инстансах Redis. Показывает, что сейчас хранится в кэше. CX Codex +1 ★ 7 327звёзд репо postgres-query Скилл postgres-query выполняет SQL-запросы к PostgreSQL, запускает EXPLAIN ANALYZE и проверяет индексы через агент в безопасном режиме чтения. CX Codex +1 ★ 7 327звёзд репо browser-automation Скилл browser-automation для Claude Code запускает браузер через HTTP-сервер, сохраняет авторизацию и поддерживает несколько сессий. Проверяет пользовательские потоки и повторяемые сценарии. CX Codex +1 ★ 7 327звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой