New to Claude Skills? Learn how to install them →

himself65 on GitHub

Discord Reader

Free

Read financial discussions from Discord channels.

Get this skill

Free · Opens the source repo

What Discord Reader does

The Discord Reader skill allows users to leverage Discord as a source of financial research by reading messages from trading servers and monitoring discussions around cryptocurrencies and market trends. It operates in a read-only mode, meaning it does not support any write operations such as sending messages or reacting to posts. This skill is particularly useful for traders and financial analysts looking to gauge market sentiment or gather insights from community discussions without the need for a bot account or token extraction.

Utilizing the opencli tool, the skill connects to the Discord desktop application via the Chrome DevTools Protocol (CDP). Users must ensure that Discord is running with remote debugging enabled, allowing the skill to execute commands that read server and channel information, search messages, and retrieve recent discussions. The setup process is straightforward, requiring users to install opencli and configure it to connect to the Discord app.

Once set up, users can issue commands to check their connection, list available servers and channels, read recent messages, or search for specific topics. The output can be formatted in various ways, such as JSON or YAML, making it easy to process the information programmatically or present it in a human-readable format. This flexibility is beneficial for users who want to analyze sentiment or extract key insights from discussions about specific stocks or market movements.

The Discord Reader skill is ideal for anyone involved in financial research who wants to tap into the wealth of information available on Discord without the overhead of traditional data-gathering methods. By focusing solely on reading capabilities, it streamlines the process of gathering relevant data from community discussions, making it a valuable tool for informed trading decisions.

When to use it

Use this skill when you need to gather information from Discord about financial topics, market sentiment, or specific trading discussions.

When not to use it

This skill is not suitable for users looking to interact with Discord channels or send messages, as it is strictly read-only.

What you can build with it

Market Sentiment Analysis

Analyze discussions in crypto channels to gauge market sentiment around specific assets.

Researching Trading Strategies

Search for messages in trading servers to gather insights on various trading strategies and community opinions.

Monitoring Financial Discussions

Keep track of recent messages in financial Discord channels to stay updated on market trends and news.

How to install Discord Reader

View source

1. Install with the skills CLI

npx skills add himself65/finance-skills/discord-reader --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by himself65

Discord Skill (Read-Only)

Reads Discord for financial research using 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:

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

If SETUP_NEEDED, guide the user through setup:

Setup

opencli requires Node.js >= 21. 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:
# macOS
/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232 &

# Linux
discord --remote-debugging-port=9232 &
  1. Set the CDP endpoint environment variable:
export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"

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

  1. Verify connectivity:
opencli discord-app status

Common setup issues

SymptomFix
CDP connection refusedEnsure Discord is running with --remote-debugging-port=9232
OPENCLI_CDP_ENDPOINT not setRun export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
status shows disconnectedRestart Discord with the CDP flag and retry
Discord not on expected portCheck that no other app is using port 9232, or use a different port

Tip: create a shell alias

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 RequestCommandKey Flags
Connection checkopencli discord-app status
List serversopencli discord-app servers-f json
List channelsopencli discord-app channels-f json
List online membersopencli discord-app members-f json
Read recent messagesopencli discord-app readN (count), -f json
Search messagesopencli 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

# 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 keywordsopencli discord-app search uses Discord's built-in search (Cmd+F / Ctrl+F)
  6. NEVER execute write operations — this skill is read-only. opencli exposes discord-app send and discord-app delete commands; do not invoke them. Do not send messages, react, edit, delete, or manage server settings.

Output format flag (-f)

FormatFlagBest for
Table-f table (default)Human-readable terminal output
JSON-f jsonProgrammatic processing, LLM context
YAML-f yamlStructured output, readable
Markdown-f mdDocumentation, reports
CSV-f csvSpreadsheet export

Typical workflow for reading a server

# 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

After fetching data, present it clearly for financial research:

  1. Summarize key content — highlight the most relevant messages for the user's financial research
  2. Include attribution — show username, message content, and timestamp
  3. For search results, group by relevance and highlight key themes, sentiment, or market signals
  4. For server/channel listings, present as a clean table with names and types
  5. Flag sentiment — note bullish/bearish sentiment, consensus vs contrarian views
  6. Treat sessions as private — never expose CDP endpoints or session details

Step 5: Diagnostics

If something isn't working, check:

  1. Is Discord running with CDP?
# Check if the port is open
lsof -i :9232
  1. Is the environment variable set?
echo $OPENCLI_CDP_ENDPOINT
  1. Can opencli connect?
opencli discord-app status

If all checks fail, restart Discord with the CDP flag:

/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

ErrorCauseFix
CDP connection refusedDiscord not running with CDP or wrong portStart Discord with --remote-debugging-port=9232
OPENCLI_CDP_ENDPOINT not setMissing environment variableexport OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"
No active channelNot viewing any channel in DiscordNavigate to a channel in the Discord app
Rate limitedToo many requestsWait 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.

Frequently asked questions about Discord Reader

Similar skills