discord-openapi-skill

discord-openapi-skill is a skill for Codex from holon-run/uxc. It costs 43 tokens per session (2,096 once invoked), scanned A, original, MIT.

A skill for using Discord, a chat platform for communities and teams, through its web API, which lets software communicate with Discord.

In plain words
What is it for?
Use it to read messages, send messages, manage servers, or perform other supported Discord REST operations with a bot token; user authentication is limited to profile-related actions.
Why use it?
It provides a documented way to make Discord requests and explains authentication, while distinguishing full bot access from limited user access.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to read messages, send messages, manage servers, or perform other…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/holon-run/uxc/discord-openapi-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add holon-run/uxc --skill discord-openapi-skill
Clone the repo
git clone --depth 1 https://github.com/holon-run/uxc

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for discord-openapi-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/holon-run/uxc/discord-openapi-skill.svg)](https://agentmods.dev/skills/holon-run/uxc/discord-openapi-skill)
Your own site
<a href="https://agentmods.dev/skills/holon-run/uxc/discord-openapi-skill"><img src="https://agentmods.dev/badge/skills/holon-run/uxc/discord-openapi-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02096
Opus 5 $0.00022 $0.01048
Sonnet 5 $0.00009 $0.00419
Haiku 4.5 $0.00004 $0.00210

Measured 7d ago against content hash b5d27df4688c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

discord-openapi-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/discord-openapi-skill/SKILL.md · 215 lines

How it starts

The opening of the file, as written. The whole thing — 215 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Discord API Skill

Use this skill to run Discord REST operations through uxc + OpenAPI.

Reuse the uxc skill for shared execution, auth, and error-handling guidance.

Prerequisites

  • uxc is installed and available in PATH.
  • Network access to https://discord.com/api/v10.
  • Access to Discord OpenAPI spec URL:
    • https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.json
  • Discord bot token (recommended) or OAuth2 user authentication (limited functionality).

Authentication

Option 1: Bot Token (Recommended)

Bot token provides full access to Discord API including reading messages, managing servers, sending messages, and all administrative operations. This is the recommended method for most use cases.

  1. Create a bot application at https://discord.com/developers/applications
  2. Generate a bot token from the Bot section
  3. Configure bot credential:
uxc auth credential set discord-bot \
  --auth-type api_key \
  --header "Authorization=Bot {{secret}}" \
  --secret "YOUR_BOT_TOKEN_HERE"
  1. Bind credential to Discord API endpoint:
uxc auth binding add \
  --id discord-bot \
  --host discord.com \
  --path-prefix /api/v10 \
  --scheme https \
  --credential discord-bot \
  --priority 100

Option 2: OAuth2 User Authentication (Limited Use Cases)

Important: User OAuth2 has significant limitations and is not recommended for most operations:

  • ❌ Cannot read channel messages via HTTP API (local RPC only)
  • ❌ Cannot send messages or manage servers
  • ✅ Can read user profile, email, connections
  • ✅ Can list user's servers

Only use OAuth2 if you specifically need to access user profile information as the user. For all other operations, use Bot Token.

If you still need OAuth2 for user profile operations:

Configuration:

  • Client ID: 1479302369723285736
  • Redirect URI: http://127.0.0.1:11111/callback

OAuth2 Scopes:

Discord user OAuth2 supports read-only operations. It cannot send messages or manage servers as a user (use Bot Token for those operations).

Read the full file on GitHub · 215 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 215 lines · 43 tokens per session scan A b5d27df4688c

Subscribe to this mod's changes

discord-openapi-skill is a skill published in the GitHub repository holon-run/uxc (113 stars, last pushed 29d ago), licensed MIT. It adds 43 tokens to every session and 2,096 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories