Agent skill

X Openapi Skill

by holon-run in holon-run/uxc

Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.

MITAuto-check passedBackend & APIs

Install X Openapi Skill

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

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

GitHub CLI
$ gh skill install holon-run/uxc x-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/x-openapi-skill .claude/skills/x-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
x-openapi-skill
GitHub stars
116
Token cost
~1.3k tokens
SKILL.md length
400 words
Files
4 (incl. scripts, references)
Skills in repo
62
Repo updated
First seen
Licence
MIT

At a glance

Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.

  • Works in 4 steps: Open the returned authorization URL in… → Complete login with the callback URL → Bind credential to X API → …
  • Tasks that involve OAuth and OpenID Connect
  • SKILL.md covers Prerequisites, Authentication, Core Workflow and Subscribe / Stream Status, plus 2 more sections
  • Runs Shell scripts from its folder; reaches api.x.com and docs.x.com; needs X_API_BEARER_TOKEN

What it does

X Openapi Skill is an agent skill from holon-run/uxc. Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.

Its SKILL.md is about 1.3k 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 OAuth and OpenID Connect and OpenAPI specifications. It works with OpenAPI and X (Twitter). 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 OAuth and OpenID Connect
  • Tasks that involve OpenAPI specifications

Example prompts

  • “/x-openapi-skill”

Requirements

  • A Bash shell
  • A credential in X_API_BEARER_TOKEN

Workflow steps

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

  1. Open the returned authorization URL in browser and finish consent.
  2. Complete login with the callback URL
  3. Bind credential to X API
  4. Verify binding

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:

    • api.x.com
    • docs.x.com
    • x.com

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

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • X_API_BEARER_TOKEN

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

Context cost

X Openapi Skill loads about 1.3k tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 50 tokens; SKILL.md has 400 words of instructions outside code blocks.

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

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). 400 words, ~1,322 tokens.

Download SKILL.mdSave it as .claude/skills/x-openapi-skill/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
x-openapi-skill
description
Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.

X API Skill

Use this skill to run X API v2 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://api.x.com.
  • Access to the official OpenAPI schema URL:
    • https://api.x.com/2/openapi.json
  • An X developer app with OAuth2 enabled.

Authentication

Preferred Path: OAuth2 Authorization Code + PKCE (User Context)

This path is required for user-context operations such as bookmarks, home timeline, posting, replying, and DM actions.

  1. Start OAuth2 login:
bash
uxc auth oauth start x-api-user \
  --endpoint https://api.x.com/2 \
  --client-id M3VseG9xOXZXZVREZnNqWk9jN1I6MTpjaQ \
  --redirect-uri http://127.0.0.1:11111/callback \
  --scope users.read \
  --scope tweet.read \
  --scope tweet.write \
  --scope tweet.moderate.write \
  --scope media.write \
  --scope like.read \
  --scope like.write \
  --scope follows.read \
  --scope follows.write \
  --scope list.read \
  --scope list.write \
  --scope timeline.read \
  --scope space.read \
  --scope mute.read \
  --scope mute.write \
  --scope block.read \
  --scope block.write \
  --scope bookmark.read \
  --scope bookmark.write \
  --scope dm.read \
  --scope dm.write \
  --authorization-endpoint https://x.com/i/oauth2/authorize \
  --token-endpoint https://api.x.com/2/oauth2/token

This default example intentionally includes the full OAuth2 user scope set exposed by the current X OpenAPI surface, excluding offline.access to avoid refresh-token compatibility failures observed on some X app configurations. Add --scope offline.access only when you explicitly need long-lived refresh behavior and have verified token refresh works for your app.

  1. Open the returned authorization URL in browser and finish consent.
  2. Complete login with the callback URL:
bash
uxc auth oauth complete x-api-user \
  --session-id <session_id> \
  --authorization-response '<callback_url>'
  1. Bind credential to X API:
bash
uxc auth binding add \
  --id x-api-user \
  --host api.x.com \
  --path-prefix /2 \
  --scheme https \
  --credential x-api-user \
  --priority 100
  1. Verify binding:
bash
uxc auth binding match https://api.x.com/2
Optional Path: App-only Bearer Token (Public Reads)

App-only bearer auth is useful for selected public read endpoints.

Do not embed bearer tokens in this skill or repository. Configure local credentials only.

bash
uxc auth credential set x-api-app \
  --auth-type bearer \
  --secret-env X_API_BEARER_TOKEN

uxc auth binding add \
  --id x-api-app \
  --host api.x.com \
  --path-prefix /2 \
  --scheme https \
  --credential x-api-app \
  --priority 90

Use --auth x-api-app when you intentionally want app-only requests.

Core Workflow

  1. Use fixed link command by default:

    • command -v x-openapi-cli
    • If missing, create it: uxc link x-openapi-cli https://api.x.com --schema-url https://api.x.com/2/openapi.json
    • x-openapi-cli -h
  2. Inspect operation schema first:

    • x-openapi-cli get:/2/users/me -h
    • x-openapi-cli get:/2/users/{id}/bookmarks -h
    • x-openapi-cli post:/2/tweets -h
  3. Execute reads before writes:

    • x-openapi-cli get:/2/users/me
    • x-openapi-cli get:/2/users/{id}/bookmarks id=<user_id> max_results=20
    • x-openapi-cli get:/2/users/{id}/timelines/reverse_chronological id=<user_id> max_results=20
  4. Execute writes with explicit user confirmation:

    • key/value: x-openapi-cli post:/2/tweets text='hello from uxc'
    • positional JSON: x-openapi-cli post:/2/tweets '{"text":"hello from uxc"}'
Show full SKILL.md (126 more words)Show less

Subscribe / Stream Status

X stream endpoints are HTTP streaming routes and can be used with uxc subscribe raw HTTP stream mode.

Example:

bash
uxc subscribe start https://api.x.com/2/tweets/search/stream \
  --auth x-api-app \
  --sink file:$HOME/.uxc/subscriptions/x-search-stream.ndjson

Use the relevant stream rule-management endpoints before starting stream consumers.

Guardrails

  • Keep automation on JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • x-openapi-cli <operation> ... is equivalent to uxc https://api.x.com --schema-url https://api.x.com/2/openapi.json <operation> ....
  • OAuth2 PKCE is the default path for user-context operations.
  • Do not commit or hardcode bearer tokens, client secrets, or refresh tokens.
  • Treat post:/2/tweets, DM endpoints, bookmark write endpoints, and stream rule mutation endpoints as write/high-risk operations; require explicit user confirmation before execution.

References

  • Usage patterns: references/usage-patterns.md
  • X API OpenAPI schema: https://api.x.com/2/openapi.json
  • X OAuth2 authorization code with PKCE: https://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-code
  • X OAuth2 app-only bearer auth: https://docs.x.com/fundamentals/authentication/oauth-2-0/application-only

© 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/x-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

X 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.

X Openapi Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
X Openapi Skill this skillholon-run/uxc116—~1.3kAutomated safety check: PassMIT
Soundcloud API Integrationsoundcloud/api258—~787Automated safety check: PassNone
Canva CI Integrationjeremylongshore/tons-of-skills-marketplace2.8k—~956Automated safety check: PassMIT
ToolJet Marketplace Plugin BuilderToolJet/ToolJet41k—~2.1kAutomated safety check: PassAGPL-3.0
Step Partsearthtojake/text-to-cad18k1 repos~1.5kAutomated safety check: PassMIT
API DesignerJeffallan/claude-skills12k2 repos~2kAutomated 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 7 days ago
    Backend & APIsAuto-check passed
  • Canva CI Integration

    jeremylongshore/tons-of-skills-marketplace

    Build credential-free Canva contract tests with a separately protected live read.

    2.8k GitHub stars~956 tokensUpdated today
    Backend & APIsAuto-check passed
  • Turns an API description, such as an OpenAPI file or a Postman collection, into a connector plugin for ToolJet's marketplace and checks it with the repo's validator.

    41k GitHub stars~2.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Step Parts

    earthtojake/text-to-cad

    Find, evaluate, and download common purchasable CAD parts from step.parts, including named off-the-shelf actuators, servos, motors, electronics boards, connectors, screws, bolts, nuts, washers…

    18k GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed
  • API Designer

    Jeffallan/claude-skills

    Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.

    12k GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • OpenAPI to MCP Server

    mcp-use/mcp-use

    Turns an OpenAPI or Swagger spec into an MCP server with the mcp-use TypeScript SDK, mapping each operation to a tool, wiring auth, testing and deploying.

    11k GitHub stars~5.2k tokensUpdated today
    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 23 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 23 days ago
    Auto-check passed
  • Operate Linear workspace issues, projects, and teams through Linear GraphQL API using UXC.

    116 GitHub stars~1.8k tokensUpdated 23 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 23 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 23 days ago
    Auto-check passed

Categories

Questions about X Openapi Skill

What does X Openapi Skill do?

Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows. X Openapi Skill is an agent skill from holon-run/uxc. Operate X API v2 through UXC with the official OpenAPI schema, OAuth2 PKCE user-context auth, app-only bearer guidance, and read-first guardrails for timeline/bookmark/post workflows.

When should I use X Openapi Skill?

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

How do I install X Openapi Skill in Claude Code?

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

How do I install X Openapi Skill in Codex?

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

Can I use X 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 x-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/x-openapi-skill, .gemini/skills/x-openapi-skill, .github/skills/x-openapi-skill and .opencode/skills/x-openapi-skill in your project.

What does X Openapi Skill need to run?

Going by SKILL.md and its folder, X Openapi Skill needs a shell for the scripts in its folder and credentials named X_API_BEARER_TOKEN. Our summary lists: A Bash shell; A credential in X_API_BEARER_TOKEN.

Does X Openapi Skill access the network?

SKILL.md names 3 domains. In commands or code: api.x.com, docs.x.com and x.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is X 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 X Openapi Skill use?

X 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 X Openapi Skill use?

About 1.3k tokens (SKILL.md is roughly 5.3k 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 760 tokens, read only when the agent opens those files.

What are the alternatives to X Openapi Skill?

Skills that share tags, products or a category with X Openapi Skill: Soundcloud API Integration (soundcloud/api, 258 stars), Canva CI Integration (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), ToolJet Marketplace Plugin Builder (ToolJet/ToolJet, 41k stars) and Step Parts (earthtojake/text-to-cad, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains X 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.