Agent skill

Discord Openapi Skill

by holon-run in holon-run/uxc

Operate Discord HTTP API through UXC with Discord OpenAPI schema.

MITAuto-check passedBackend & APIs

Install Discord Openapi Skill

skills CLI
$ npx skills add holon-run/uxc --skill discord-openapi-skill -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install holon-run/uxc discord-openapi-skill --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/holon-run/uxc.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/discord-openapi-skill .claude/skills/discord-openapi-skill && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
discord-openapi-skill
GitHub stars
116
Token cost
~2.2k tokens
SKILL.md length
795 words
Files
4 (incl. scripts, references)
Skills in repo
62
Repo updated
First seen
Licence
MIT

At a glance

Operate Discord HTTP API through UXC with Discord OpenAPI schema.

  • Works in 4 steps: Create a bot application at… → Generate a bot token from the Bot section → Configure bot credential → …
  • Tasks that involve OpenAPI specifications
  • SKILL.md covers Prerequisites, Authentication, Core Workflow and Authentication Methods…, plus 3 more sections
  • Runs Shell scripts from its folder; reaches discord.com and raw.githubusercontent.com

What it does

Discord Openapi Skill is an agent skill from holon-run/uxc. Operate Discord HTTP API through UXC with Discord OpenAPI schema. Bot token recommended for full API access including messages and server management. OAuth2 user authentication available for limited profile operations only.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/usage-patterns.md` and `scripts/validate.sh`).

It sits in Backend & APIs, covering OpenAPI specifications, OAuth and OpenID Connect and REST APIs. It works with Discord and OpenAPI. The repository describes itself as: A unified CLI for discovering and invoking tools across OpenAPI, MCP, GraphQL, gRPC, and JSON-RPC. The licence is MIT.

When your agent uses it

  • Tasks that involve OpenAPI specifications
  • Tasks that involve OAuth and OpenID Connect
  • Tasks that involve REST APIs

Example prompts

  • “/discord-openapi-skill”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Create a bot application at https://discord.com/developers/applications
  2. Generate a bot token from the Bot section
  3. Configure bot credential
  4. Bind credential to Discord API endpoint

What it can do on your machine

Read from SKILL.md and the folder at commit 562d47c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • discord.com
    • raw.githubusercontent.com

    Also links to:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Discord Openapi Skill loads about 2.2k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 61 tokens; SKILL.md has 795 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from holon-run/uxc at commit 562d47c, republished under its MIT licence (© holon-run). 795 words, ~2,209 tokens.

Download SKILL.mdSave it as .claude/skills/discord-openapi-skill/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
discord-openapi-skill
description
Operate Discord HTTP API through UXC with Discord OpenAPI schema. Bot token recommended for full API access including messages and server management. OAuth2 user authentication available for limited profile operations only.

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

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:
bash
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:
bash
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).

Recommended Scopes (Full Functionality):

bash
--scope "identify email connections guilds guilds.members.read messages.read openid"

Minimal Read-Only Scopes:

bash
--scope "identify email connections guilds guilds.members.read"

Scope Reference:

ScopeDescriptionWrite Operation
identifyBasic user info (username, avatar, etc.)❌ Read
emailUser's email address❌ Read
connectionsLinked third-party accounts (Twitch, YouTube, etc.)❌ Read
guildsUser's server list❌ Read
guilds.joinJoin user to servers (requires the same application's bot to already be in that guild)✅ Write
guilds.members.readUser's member info in servers❌ Read
messages.readRead messages (local RPC only, not HTTP API)❌ Read
openidOpenID Connect support❌ Read

Note: User OAuth2 cannot send messages or manage servers as the user. Use Bot Token for write operations. guilds.join is a special user OAuth write capability that depends on the same application's bot already being in the target guild, so it is not part of the default read-only flow. See Discord OAuth2 documentation for complete scope list.

Two-Stage OAuth Flow (Agent-Friendly):

  1. Start OAuth flow with desired scopes:
bash
uxc auth oauth start discord-user \
  --endpoint https://discord.com/api/oauth2/token \
  --client-id 1479302369723285736 \
  --redirect-uri http://127.0.0.1:11111/callback \
  --scope "identify email connections guilds guilds.members.read messages.read openid"
  1. Open the displayed authorization URL in browser, complete authorization, then copy the callback URL from browser address bar.

  2. Complete OAuth flow:

bash
uxc auth oauth complete discord-user \
  --session-id <session_id_from_step_1> \
  --authorization-response "<callback_url_from_browser>"
  1. Bind credential:
bash
uxc auth binding add \
  --id discord-user \
  --host discord.com \
  --path-prefix /api/v10 \
  --scheme https \
  --credential discord-user \
  --priority 100

Interactive Alternative (Local Terminal Only):

bash
uxc auth oauth login discord-user \
  --endpoint https://discord.com/api/oauth2/token \
  --flow authorization_code \
  --client-id 1479302369723285736 \
  --redirect-uri http://127.0.0.1:11111/callback \
  --scope "identify email connections guilds guilds.members.read messages.read openid"

Then paste the callback URL when prompted.

Core Workflow

  1. Use fixed link command by default:

    • command -v discord-openapi-cli
    • If missing, create it: uxc link discord-openapi-cli https://discord.com/api/v10 --schema-url https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.json
    • discord-openapi-cli -h
  2. Discover operations with schema mapping:

    • discord-openapi-cli -h
  3. Inspect operation schema first:

    • discord-openapi-cli get:/users/@me -h
    • discord-openapi-cli post:/channels/{channel_id}/messages -h
  4. Execute operation:

    • connectivity check (no auth): discord-openapi-cli get:/gateway
    • key/value: discord-openapi-cli get:/guilds/{guild_id}/channels guild_id=GUILD_ID
    • positional JSON: discord-openapi-cli post:/channels/{channel_id}/messages '{"channel_id":"CHANNEL_ID","content":"Hello from uxc"}'
    • binding check when auth looks wrong: uxc auth binding match https://discord.com/api/v10
Show full SKILL.md (313 more words)Show less

Authentication Methods Comparison

FeatureBot TokenUser OAuth2
Read channel messages✅ Full access❌ Not via HTTP API
Send messages✅ As the bot❌ Not supported
Manage channels/roles✅ Bot permissions❌ Not supported
Moderation actions✅ Bot permissions❌ Not supported
List servers✅ Servers bot is in✅ User's servers
Read user info❌ Not available✅ As the user
Message appearanceBot badge "BOT"N/A

Key Recommendation: Use Bot Token for almost all operations. User OAuth2 is only useful if you need to read user profile information as that specific user. For reading channel messages, managing servers, or sending messages, Bot Token is required.

Subscribe / Gateway Status

Discord inbound events flow through the Gateway WebSocket, not through this REST/OpenAPI surface.

Current uxc subscribe status:

  • the built-in discord-gateway transport now bootstraps through GET /gateway/bot
  • live Gateway sessions reached READY and delivered GUILD_CREATE
  • a real posted channel message produced a MESSAGE_CREATE event in the subscribe sink
  • heartbeat scheduling, IDENTIFY, sequence tracking, and reconnect handling are implemented

Recommended invocation:

bash
uxc subscribe start https://discord.com/api/v10 \
  '{"intents":4609,"device":"uxc-discord"}' \
  --transport discord-gateway \
  --auth discord-bot \
  --sink file:$HOME/.uxc/subscriptions/discord-gateway.ndjson

Intent notes:

  • 4609 = GUILDS | GUILD_MESSAGES | DIRECT_MESSAGES
  • add 32768 (MESSAGE_CONTENT) only when the bot has that privileged intent enabled in the Discord developer portal

Use discord-openapi-cli for REST calls and uxc subscribe start ... --transport discord-gateway ... for inbound Gateway events.

Guardrails

  • OAuth2 Scope Limitation: User OAuth2 tokens cannot read channel messages via HTTP API, send messages, or manage servers. These operations require Bot Token authentication.
  • Discord OpenAPI spec is persisted in the generated link via uxc link --schema-url ...; pass --schema-url <other-url> only when you need to override it temporarily.
  • Keep automation on JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Prefer positional JSON for non-string objects instead of --input-json.
  • discord-openapi-cli <operation> ... is equivalent to uxc https://discord.com/api/v10 --schema-url <discord_openapi_spec> <operation> ....
  • Treat post:/channels/{channel_id}/messages, delete/update endpoints, and moderation endpoints as write/high-risk operations; require explicit user confirmation before execution.

References

© holon-run, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts, references) in skills/discord-openapi-skill of holon-run/uxc.

  • SKILL.md
  • agents/openai.yaml
  • references/usage-patterns.md
  • scripts/validate.sh

Open the folder on GitHubat commit 562d47c

Compare with similar skills

Discord Openapi Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Discord Openapi Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Discord Openapi Skill this skillholon-run/uxc116—~2.2kAutomated safety check: PassMIT
Soundcloud API Integrationsoundcloud/api258—~787Automated safety check: PassNone
FastAPI ExpertJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT
NestJS ExpertJeffallan/claude-skills12k—~2kAutomated safety check: PassMIT
API Designeraiskillstore/marketplace4301 repos~3.6kAutomated safety check: PassNone
Fishjam Platformsoftware-mansion-labs/skills291—~1.7kAutomated safety check: PassMIT

Similar skills

  • Integrates applications with the SoundCloud HTTP API using OAuth 2.1, OpenAPI, and developer docs.

    258 GitHub stars~787 tokensUpdated 8 days ago
    Backend & APIsAuto-check passed
  • FastAPI Expert

    Jeffallan/claude-skills

    Builds async Python APIs with FastAPI and Pydantic V2, covering endpoints, JWT authentication, async SQLAlchemy, WebSockets and pytest checks against the OpenAPI docs.

    12k GitHub stars~1.8k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • NestJS Expert

    Jeffallan/claude-skills

    Scaffolds NestJS modules, controllers, services, DTOs and guards for TypeScript backends, with validation, JWT and Passport auth, Swagger docs and unit and E2E tests.

    12k GitHub stars~2k tokensUpdated 5 days ago
    Backend & APIsAuto-check passed
  • API Designer

    aiskillstore/marketplace

    Design and document RESTful and GraphQL APIs with OpenAPI/Swagger specifications, authentication patterns, versioning strategies, and best practices.

    430 GitHub starsUsed in 1 repo~3.6k tokens
    Backend & APIsAuto-check passed
  • Fishjam Platform

    software-mansion-labs/skills

    Fishjam platform fundamentals — domain model and auth shared by all SDKs.

    291 GitHub stars~1.7k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Inngest API

    majiayu000/claude-skill-registry

    A skill your agent uses when the user explicitly asks for the Inngest REST API v2, raw HTTP, OpenAPI, API docs, API authentication, or an endpoint that the Inngest CLI does not expose.

    666 GitHub starsUsed in 1 repo~1.2k tokens
    Backend & APIsAuto-check passed

More from holon-run/uxc

All 62 skills in this repo
  • Context7 MCP Skill

    holon-run/uxc

    Query up-to-date library documentation and code examples using Context7 MCP.

    116 GitHub stars~564 tokensUpdated 24 days ago
    Auto-check passed
  • Deepwiki MCP Skill

    holon-run/uxc

    Ask questions and read documentation about any GitHub repository using DeepWiki MCP.

    116 GitHub stars~700 tokensUpdated 24 days ago
    Auto-check passed
  • Operate Linear workspace issues, projects, and teams through Linear GraphQL API using UXC.

    116 GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed
  • Operate Notion Public API through UXC with a curated OpenAPI schema for search, block traversal, page reads, content writes, and data source/database inspection.

    116 GitHub stars~2.3k tokensUpdated 24 days ago
    Auto-check passed
  • Operate Alchemy Prices API reads through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.

    116 GitHub starsUsed in 1 repo~1k tokens
    Auto-check passed
  • Uxc

    holon-run/uxc

    Discover and call remote schema-exposed interfaces with UXC.

    116 GitHub stars~1.8k tokensUpdated 24 days ago
    Auto-check passed

Works with

Categories

Questions about Discord Openapi Skill

What does Discord Openapi Skill do?

Operate Discord HTTP API through UXC with Discord OpenAPI schema. Discord Openapi Skill is an agent skill from holon-run/uxc. Operate Discord HTTP API through UXC with Discord OpenAPI schema.

When should I use Discord Openapi Skill?

Discord Openapi Skill fits situations like: tasks that involve OpenAPI specifications; tasks that involve OAuth and OpenID Connect; tasks that involve REST APIs.

How do I install Discord Openapi Skill in Claude Code?

Run `npx skills add holon-run/uxc --skill discord-openapi-skill -a claude-code`. Or copy the skill folder (skills/discord-openapi-skill in holon-run/uxc) into .claude/skills/discord-openapi-skill in your project. Claude Code loads it when a task matches its description.

How do I install Discord Openapi Skill in Codex?

Run `npx skills add holon-run/uxc --skill discord-openapi-skill -a codex`. Or copy the skill folder (skills/discord-openapi-skill in holon-run/uxc) into .agents/skills/discord-openapi-skill in your project. Codex loads it when a task matches its description.

Can I use Discord Openapi Skill in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add holon-run/uxc --skill discord-openapi-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/discord-openapi-skill, .gemini/skills/discord-openapi-skill, .github/skills/discord-openapi-skill and .opencode/skills/discord-openapi-skill in your project.

What does Discord Openapi Skill need to run?

Going by SKILL.md and its folder, Discord Openapi Skill needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Discord Openapi Skill access the network?

SKILL.md names 3 domains. In commands or code: discord.com and raw.githubusercontent.com; the agent is likely to contact these when it follows the instructions. As links in the text: github.com. This is read from the text; nothing was executed.

Is Discord Openapi Skill safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Discord Openapi Skill use?

Discord Openapi Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Discord Openapi Skill use?

About 2.2k tokens (SKILL.md is roughly 8.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 496 tokens, read only when the agent opens those files.

What are the alternatives to Discord Openapi Skill?

Skills that share tags, products or a category with Discord Openapi Skill: Soundcloud API Integration (soundcloud/api, 258 stars), FastAPI Expert (Jeffallan/claude-skills, 12k stars), NestJS Expert (Jeffallan/claude-skills, 12k stars) and API Designer (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Discord Openapi Skill?

holon-run (a GitHub organization) maintains it in holon-run/uxc, which has 116 GitHub stars. The repository holds 62 skills in this directory. The repository was last updated on September 15, 2026.

Source: holon-run/uxc on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.