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

discord-reader — скилл для Claude Code: чтение Discord

Скилл подключает агента к Discord через opencli и помогает читать сообщения, искать обсуждения и просматривать серверы. Пригодится для изучения мнений в финансовых сообществах.

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

Что делает discord-reader

Скилл использует opencli для чтения серверов, каналов, участников и недавних сообщений в активном канале Discord. Он также ищет сообщения по ключевым словам — например, чтобы собрать обсуждения тикера или монеты. Доступ только на чтение: отправлять сообщения, ставить реакции и менять содержимое нельзя.

Для работы нужны Node.js версии 20 или выше и запущенное настольное приложение Discord с удалённой отладкой через CDP. Нужно задать OPENCLI_CDP_ENDPOINT; для чтения другого канала сначала переключитесь на него в приложении. Это важно: команды читают текущий активный сервер и канал, а не произвольный канал по названию.

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

  • найти сообщения о тикере или монете
  • прочитать недавние сообщения активного канала
  • посмотреть серверы и каналы Discord
  • проверить, что обсуждают в финансовом сообществе

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

  • Найди в активном канале обсуждения BTC.
  • Покажи недавние сообщения и выдели мнения о тикере AAPL.
  • Перечисли серверы и каналы, доступные в Discord.

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

1Через Skills CLI (Vercel)

npx skills add himself65/finance-skills --skill discord-reader -a claude-code

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

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

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

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

Вопросы о discord-reader

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

Выполните npx skills add himself65/finance-skills --skill discord-reader -a claude-code. Файл скилла появится по пути ~/.claude/skills/discord-reader/SKILL.md.

Что делает discord-reader?

Он читает серверы, каналы и сообщения Discord, а также ищет сообщения по запросу через opencli. Скилл работает только на чтение.

Что нужно настроить для подключения к Discord?

Нужны Node.js версии 20 или выше и Discord Desktop, запущенный с удалённой отладкой. Задайте OPENCLI_CDP_ENDPOINT, затем проверьте соединение командой opencli discord-app status.

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

SKILL.md · MIT
---
name: discord-reader
description: >
  Read Discord for financial research through opencli connected to the Discord
  desktop app: servers, channels, members, recent messages in the active channel,
  and message search. Use this skill whenever the user wants to check their Discord,
  list servers or channels, read or search messages in trading, crypto, or market
  communities, or gauge what a Discord community is saying about a ticker or coin.
  Read-only: it cannot send, react to, edit, or delete messages.
---

# Discord Skill (Read-Only)

If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the `!` wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation.

Reads Discord for financial research using [opencli](https://github.com/jackwener/opencli), a universal CLI tool that bridges desktop apps and web services to the terminal via Chrome DevTools Protocol (CDP).

**This skill is read-only.** It is designed for financial research: searching trading server discussions, monitoring crypto/market groups, tracking sentiment in financial communities, and reading messages. It does NOT support sending messages, reacting, editing, deleting, or any write operations.

**Important**: opencli connects to the Discord desktop app via CDP — no bot account or token extraction needed. Just have Discord Desktop running.

---

## Step 1: Ensure opencli Is Installed and Discord Is Ready

**Current environment status:**

```
!`(command -v opencli && opencli discord-app status 2>&1 | head -5 && echo "READY" || echo "SETUP_NEEDED") 2>/dev/null || echo "NOT_INSTALLED"`
```

If the status above shows `READY`, skip to Step 2. If `NOT_INSTALLED`, install first:

```bash
# Install opencli globally
npm install -g @jackwener/opencli
```

If `SETUP_NEEDED`, guide the user through setup:

### Setup

opencli requires Node.js >= 20. It connects to Discord Desktop via CDP (Chrome DevTools Protocol) — no Browser Bridge extension is needed for the Discord adapter. Two things are required:

1. **Start Discord with remote debugging enabled:**

```bash
# macOS
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &

# Linux
discord --remote-debugging-port=9232 &
```

2. **Set the CDP endpoint environment variable:**

```bash
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
```

Add this to your shell profile (`.zshrc` / `.bashrc`) so it persists across sessions.

3. **Verify connectivity:**

```bash
opencli discord-app status
```

### Common setup issues

| Symptom | Fix |
|---------|-----|
| `CDP connection refused` | Ensure Discord is running with `--remote-debugging-port=9232` |
| `OPENCLI_CDP_ENDPOINT not set` | Run `export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"` |
| `status` shows disconnected | Restart Discord with the CDP flag and retry |
| Discord not on expected port | Check that no other app is using port 9232, or use a different port |

### Tip: create a shell alias

```bash
alias discord-cdp='/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &'
```

---

## Step 2: Identify What the User Needs

Match the user's request to one of the read commands below, then use the corresponding command from `references/commands.md`.

| User Request | Command | Key Flags |
|---|---|---|
| Connection check | `opencli discord-app status` | — |
| List servers | `opencli discord-app servers` | `-f json` |
| List channels | `opencli discord-app channels` | `-f json` |
| List online members | `opencli discord-app members` | `-f json` |
| Read recent messages | `opencli discord-app read` | `N` (count), `-f json` |
| Search messages | `opencli discord-app search "QUERY"` | `-f json` |

**Note:** opencli operates on the **currently active** server and channel in Discord. To read from a different channel, the user must navigate to it in the Discord app first, or use the `channels` command to identify what's available.

---

## Step 3: Execute the Command

### General pattern

```bash
# Use -f json or -f yaml for structured output
opencli discord-app servers -f json
opencli discord-app channels -f json

# Read recent messages from the active channel
opencli discord-app read 50 -f json

# Search for financial topics in the active channel
opencli discord-app search "AAPL earnings" -f json
opencli discord-app search "BTC pump" -f json
```

### Key rules

1. **Check connection first** — run `opencli discord-app status` before any other command
2. **Use `-f json` or `-f yaml`** for structured output when processing data programmatically
3. **Navigate in Discord first** — opencli reads from the currently active server/channel in the Discord app
4. **Start with small reads** — use `opencli discord-app read 20` unless the user asks for more
5. **Use search for keywords** — `opencli discord-app search` uses Discord's built-in search (Cmd+F / Ctrl+F)
6. **Read-only** — opencli also exposes `discord-app send` and `discord-app delete`; don't invoke them, and don't send messages, react, edit, delete, or manage server settings.

### Output format flag (`-f`)

| Format | Flag | Best for |
|---|---|---|
| Table | `-f table` (default) | Human-readable terminal output |
| JSON | `-f json` | Programmatic processing, LLM context |
| YAML | `-f yaml` | Structured output, readable |
| Markdown | `-f md` | Documentation, reports |
| CSV | `-f csv` | Spreadsheet export |

### Typical workflow for reading a server

```bash
# 1. Verify connection
opencli discord-app status

# 2. List servers to confirm you're in the right one
opencli discord-app servers -f json

# 3. List channels in the current server
opencli discord-app channels -f json

# 4. Read recent messages (navigate to target channel in Discord first)
opencli discord-app read 50 -f json

# 5. Search for topics of interest
opencli discord-app search "price target" -f json
```

---

## Step 4: Present the Results

Lead with what matters for the user's research question rather than a raw dump. Attribute each message (username, timestamp, content), group search results by theme, and note the bullish or bearish lean and where views are consensus or contrarian. Show server and channel listings as a table of names and types. Keep CDP endpoints and session details private.

---

## Step 5: Diagnostics

If something isn't working, check:

1. **Is Discord running with CDP?**
```bash
# Check if the port is open
lsof -i :9232
```

2. **Is the environment variable set?**
```bash
echo $OPENCLI_CDP_ENDPOINT
```

3. **Can opencli connect?**
```bash
opencli discord-app status
```

If all checks fail, restart Discord with the CDP flag:
```bash
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
opencli discord-app status
```

---

## Error Reference

| Error | Cause | Fix |
|-------|-------|-----|
| `CDP connection refused` | Discord not running with CDP or wrong port | Start Discord with `--remote-debugging-port=9232` |
| `OPENCLI_CDP_ENDPOINT not set` | Missing environment variable | `export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"` |
| `No active channel` | Not viewing any channel in Discord | Navigate to a channel in the Discord app |
| Rate limited | Too many requests | Wait a few minutes, then retry |

---

## Reference Files

- `references/commands.md` — Complete read command reference with all flags and usage examples

Read the reference file when you need exact command syntax or detailed flag descriptions.

© himself65 · MIT · himself65/finance-skills

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

Всё по теме «Финансы и бизнес» →
churn-prevention coreyhaines31 Скилл для Claude Code, который разбирает отток подписок: опрос при отмене, предложение под причину ухода, восстановление неудачных платежей. CX Codex +1 121 000установок revops coreyhaines31 Скилл помогает проектировать RevOps: вести лидов по этапам, считать скоринг и выстраивать передачу из маркетинга в продажи. Нужен для CRM-процессов. CX Codex +1 113 500установок community-marketing coreyhaines31 Помогает запустить и развивать сообщество в Discord или Slack для удержания пользователей и создания базы амбассадоров. CX Codex +1 89 500установок ads coreyhaines31 Скилл помогает планировать, проверять и оптимизировать рекламу в Google Ads, Meta и LinkedIn. Опирается на плейбуки и требует фактов вместо домыслов. CX Codex +1 82 800установок pricing coreyhaines31 Помогает агенту разобрать цены и тарифы SaaS: выбрать метрику, собрать планы, проверить страницу с ценами. Пригодится, когда непонятно, сколько брать и за что. CX Codex +1 79 300установок marketing-plan coreyhaines31 Генерирует 12-месячный маркетинговый план по структуре AARRR с аудитом и дорожной картой на 90 дней. Готовый результат оформляется в Markdown для Notion. CX Codex +1 67 900установок

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

saas-valuation-compression Скилл исследует историю раундов SaaS-стартапов и считает мультипликатор оценки к ARR. Он объясняет сжатие мультипликатора влиянием ставок, замедлением роста или сменой нарратива. CX Codex +1 2 900установок skill-creator Скилл, который помогает собрать новый агентский скилл, починить существующий или оценить его по рубрике. Пригодится, когда ручной процесс хочется превратить в повторяемый. CX Codex +1 2 800установок yc-reader Скилл ищет компании и батчи Y Combinator через публичный API yc-oss: профили, отрасли, теги, найм, статистика портфеля. Только чтение, ключи не нужны. CX Codex +1 2 800установок finance-sentiment Скилл собирает нормализованный сентимент по акциям из Reddit, X.com, новостей и Polymarket через Adanos Finance API. Пригодится, когда нужно понять, о чём говорят рынки. CX Codex +1 1 600установок linkedin-reader Вытягивает ленту LinkedIn и вакансии в финансах и трейдинге через opencli. Только чтение: постов, лайков и откликов не будет. CX Codex +1 1 200установок opencli-reader Скилл читает данные из поддерживаемых opencli сайтов через агент. Подходит для финансовых страниц, сообществ, исследований, блогов и медиа. CX Codex +1 1 100установок tradingview-reader Скилл подключается к запущенному TradingView.app на macOS и вытаскивает котировки, опционные цепочки, скринер, новости, алерты и скриншоты графика. CX Codex +1 1 100установок hyperliquid-reader Читает публичные данные рынков Hyperliquid: цены, фондирование, стакан и свечи. Нужен для анализа перпетуалов и спотовых пар без доступа к кошельку. CX Codex +1 533установок

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

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