alchemy-openapi-skill
Operate Alchemy Prices API reads through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first…
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.
$ npx -y skills add holon-run/uxc --skill x-openapi-skill --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/x-openapi-skillContext preview
The summary Claude sees to decide when to auto-load this skill.
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.
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.
Use this skill to run X API v2 operations through `uxc` + OpenAPI.
Reuse the `uxc` skill for shared execution, auth, and error-handling guidance.
This path is required for user-context operations such as bookmarks, home timeline, posting, replying, and DM actions.
1. Start OAuth2 login:
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.
2. Open the returned authorization URL in browser and finish consent. 3. Complete login with the callback URL:
uxc auth oauth complete x-api-user \ --session-id <session_id> \ --authorization-response '<callback_url>'
4. Bind credential to X API:
uxc auth binding add \ --id x-api-user \ --host api.x.com \ --path-prefix /2 \ --scheme https \ --credential x-api-user \ --priority 100
5. Verify binding:
uxc auth binding match https://api.x.com/2
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.
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.
1. Use fixed link command by default:
`uxc link x-openapi-cli https://api.x.com --schema-url https://api.x.com/2/openapi.json`
2. Inspect operation schema first:
3. Execute reads before writes:
4. Execute writes with explicit user confirmation:
`x-openapi-cli post:/2/tweets text='hello from uxc'`
`x-openapi-cli post:/2/tweets '{"text":"hello from uxc"}'`
X stream endpoints are HTTP streaming routes and can be used with `uxc subscribe` raw HTTP stream mode.
Example:
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.
`uxc https://api.x.com --schema-url https://api.x.com/2/openapi.json <operation> ...`.
One CLI for tools across protocols UXC helps agents and automation discover and invoke APIs and tools across OpenAPI, MCP, GraphQL, gRPC, and JSON-RPC through one consistent workflow.
Operate Alchemy Prices API reads through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first…
Operate Binance Spot market, account, and order APIs through UXC with a curated OpenAPI schema, Binance query signing, and…
Subscribe to Binance Spot public market streams through UXC raw WebSocket support for trades, book ticker, depth, and ticker…
Operate Binance Web3 public market and research APIs through UXC with a curated OpenAPI schema. Use when tasks need token search,…
Use Birdeye MCP through UXC for token market data, trending and discovery workflows, price monitoring, and DEX-related reads with…
Operate Bitget public exchange market APIs through UXC with a curated OpenAPI schema, market-first discovery, and explicit…