com um clique
x-openapi-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.
// 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.
Operate Feishu or Lark IM APIs through UXC with a curated OpenAPI schema, tenant-token bearer auth, and chat/message guardrails.
Operate GitHub REST API through UXC with the official OpenAPI schema, explicit gh-to-uxc auth import, and read-first guardrails for repo, issue, pull request, and event workflows.
Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute OpenAPI, GraphQL, gRPC, MCP, or JSON-RPC calls via one CLI contract.
Use a local QMD knowledge base through UXC over MCP stdio, with daemon-backed session reuse and typed retrieval flows that avoid repeated model warmup and unnecessary query-expansion latency.
Operate Notion Public API through UXC with a curated OpenAPI schema for search, block traversal, page reads, content writes, and data source/database inspection. Use when tasks need recursive reads or structured writes that Notion MCP does not expose directly.
Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.
| 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.
uxc is installed and available in PATH.https://api.x.com.https://api.x.com/2/openapi.jsonThis path is required for user-context operations such as bookmarks, home timeline, posting, replying, and DM actions.
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.
uxc auth oauth complete x-api-user \
--session-id <session_id> \
--authorization-response '<callback_url>'
uxc auth binding add \
--id x-api-user \
--host api.x.com \
--path-prefix /2 \
--scheme https \
--credential x-api-user \
--priority 100
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.
Use fixed link command by default:
command -v x-openapi-cliuxc link x-openapi-cli https://api.x.com --schema-url https://api.x.com/2/openapi.jsonx-openapi-cli -hInspect operation schema first:
x-openapi-cli get:/2/users/me -hx-openapi-cli get:/2/users/{id}/bookmarks -hx-openapi-cli post:/2/tweets -hExecute reads before writes:
x-openapi-cli get:/2/users/mex-openapi-cli get:/2/users/{id}/bookmarks id=<user_id> max_results=20x-openapi-cli get:/2/users/{id}/timelines/reverse_chronological id=<user_id> max_results=20Execute 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.
--text.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> ....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.mdhttps://api.x.com/2/openapi.jsonhttps://docs.x.com/fundamentals/authentication/oauth-2-0/authorization-codehttps://docs.x.com/fundamentals/authentication/oauth-2-0/application-only