Packages, hardens, and reuses MCP, OpenAPI, GraphQL, gRPC, or JSON-RPC interfaces through UXC as a stable JSON CLI facade. Creates deterministic links, manages daemon-backed stdio children, and pins UXC for automation.
Ships in adonis-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use UXC as a protocol adapter and stable JSON CLI facade. Do not turn it into a second service runtime, because UXC can prove transport but cannot validate which service instance answered.
Three parties share every facade. Use these names only:
uxc binary. It may be the owner skill or a named shared owner.The native host may stay authoritative for services that require host-native tools, or become an explicit compatibility path when a measured shared facade is the owner skill's default. UXC success is transport proof, not task acceptance.
When the user invokes /uxc-facade without naming a target, return this contract unfilled. Do not install UXC, create a link, import configuration, or mutate files until a concrete target is in scope.
UXC Facade Contract
- Owner skill:
- Native host role (authoritative | compatibility path | none):
- Protocol and host:
- Readiness operation:
- Allowed readiness output:
- Fixed link name:
- Binary owner (sole installer and updater):
- UXC install root:
- UXC version and official source:
- Digest or package-lock proof:
- Authentication owner:
- Shared mutable state:
- Exclusivity key, if needed:
- Idle TTL, if needed:
- Writable file root, if the server validates paths:
- Task acceptance action:
- Native compatibility acceptance, if retained:
If the contract cannot name a safe readiness operation or the task acceptance action, the facade is not ready to automate.
For Chrome DevTools, CDP, list_pages, correct-Chrome identity, or /chrome-dev-mcp, hand the task to chrome-dev-mcp. Apply this method only as its generic UXC design layer.
Use the facade when at least one condition holds:
Skip the facade when:
| Layer | Owns | Must not claim |
|---|---|---|
| Native host | Registration, permissions, lifecycle, optional native tool exposure | Service identity unless it validates it |
| Owner skill | Endpoint identity, auth boundary, recovery policy, safe output, final acceptance | Generic UXC installation for every service |
| UXC facade | Protocol discovery, stable link, JSON envelope, optional daemon reuse | Correct service instance or native-host acceptance |
Authentication stays with the native host, a credential provider, or the owner skill's configuration. Never copy secrets into skill text, command examples, link metadata, test output, or readiness reports.
A private install root isolates the binary only. The daemon socket, schema cache, and credentials live under $HOME/.uxc and are shared by every UXC version on the machine; UXC provides no per-owner daemon directory (verified on 0.17.0; re-check uxc daemon --help after upgrades). Therefore pin one UXC version per user, name its binary owner, and let consumers verify the version and digest but never install, replace, or update it. Never let two owner skills silently overwrite one shared uxc command, because a replaced binary changes daemon behavior for every consumer at once.
Keep link and readiness helpers in each owner skill. Keep the binary installer with the binary owner. Do not add an ownerless shared installer merely because several skills use UXC.
Run the sequence below with the contract values. Confirm every flag against the installed version with uxc link --help before execution.
# 1. Pin and install (official installer verifies the published SHA256 by default; never pass --no-verify)
curl -fsSL https://raw.githubusercontent.com/holon-run/uxc/main/scripts/install.sh | bash -s -- -v vX.Y.Z -d "<install-root>"
# Alternative when a Rust toolchain is the provenance policy (cargo writes <install-root>/bin/uxc; point UXC_ROOT there):
cargo install uxc --version X.Y.Z --root "<install-root>"
# 2. Pass both ownership gates (script below), then confirm one daemon version per user
uxc daemon status # require version_mismatch=false before claiming TRANSPORT_READY
# 3. Discover before linking
uxc "<host>" -h
uxc "<host>" <operation> -h
# 4. Create the fixed link; add daemon flags only for shared mutable state
uxc link <link-name> "<host-or-stdio-command>" --skill <owner-skill> \
[--daemon-exclusive <key>] [--daemon-idle-ttl <seconds>] [--force]
# 5. Sanitized readiness through the link
<link-name> <readiness-operation> <safe-arguments>
--daemon-idle-ttl 0 disables idle reaping; use it only when retention is explicitly required and verified. Use --force only to replace a link whose exact contract changed; never use it for idempotency. Add --schema-url, --credential, or --inject-env NAME={{secret}} only when the protocol requires them, and keep secret values outside committed content. Native Windows is unsupported by UXC; record it as UNVERIFIED.
For an existing MCP configuration, preview the import before changing state with uxc config import mcp --dry-run. Keep the host's native registration—such as Antigravity's lazy MCP registration (agy mcp list, ~/.gemini/config/mcp_config.json)—in the Native host layer alongside that dry-run preview rather than overwriting or absorbing it, so host-managed tool schemas, permissions, and lazy lifecycle stay isolated unless the user explicitly asks to migrate.
Before install, link, or readiness, prove two gates so an incomplete contract is never mistaken for permission to overwrite state. Keep the facade UNVERIFIED until both pass.
Use the fill-in script in references/ownership-gates.md. Leave an exact existing link untouched, and keep the native registration unchanged unless the user explicitly asks to migrate it.
Use --daemon-exclusive only when the endpoint owns shared mutable state, such as one stdio child. Give idle sessions a finite TTL unless retention is explicitly required and verified.
The daemon is one per user and serves every facade on the machine. Never run uxc daemon stop or restart, or kill its children, to recover one facade: that cuts off every other consumer mid-call. Only the binary owner restarts it, during an authorized version update.
UXC does not negotiate MCP roots. A server that validates file paths against roots falls back to its own default (for example, only the child's temporary directory), so record that writable root in the contract instead of letting callers guess paths.
Prove reuse with metadata, never with timing, because a faster second call can come from caching or a warm host:
uxc daemon status # record mcp_reuse_hits
<link-name> <readiness-operation> <safe-arguments>
<link-name> <readiness-operation> <safe-arguments>
uxc daemon sessions # expect one stdio session for this command, reuse-eligible
uxc daemon status # expect mcp_reuse_hits increased and mcp_stdio_sessions unchanged
"ok": true only means UXC delivered the call; the tool's own failure arrives as data.isError: true inside a successful envelope. Readiness and task checks must require both.Return bounded status fields only. Discard URLs, titles, body content, credentials, cookies, tokens, and raw tool payloads unless the user explicitly requested safe data from them.
| Status | Proven by |
|---|---|
FACADE_READY | Discovery succeeded and both ownership gates passed |
TRANSPORT_READY | One sanitized call through the fixed link, no data.isError, and version_mismatch=false |
SESSION_REUSED | Second call plus uxc daemon sessions and mcp_reuse_hits metadata |
TASK_ACCEPTANCE | The owner skill's real operation completed |
NATIVE_COMPAT | Native-host real call, reported only when the owner skill retains that path |
Mark any required but unproved layer UNVERIFIED and name one next action. Never collapse them into one generic success claim. Consumer skills may rename these statuses to their own vocabulary but must keep the layers separate.
Read references/facade-contract.md for the evidence table and version update checklist. Use the official UXC repository as the source of truth for current commands and supported protocols.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
uxc, protocol-adapter, json-cli-facade, mcp-packaging, service-harden
/adonis-skills:uxc-facadefrom adonis-skills
npx claudepluginhub adonis0123/adonis-skills --plugin adonis-skills34 skills in this plugin
/agent-dispatchPick the lightest agent setup for coding, review, drafting or design research: do it yourself, fan out 2-3 workers across local CLIs and accounts (Claude Code, Codex, Grok, Cursor), run a scoped architecture loop, or brief independent researchers; choose a cross-model reviewer and track dispatched work on a Run Board. Use when work may need delegation, or the user asks to dispatch, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or check dispatched work. 中文触发:派活、并行、多开几个 agent、分给多个账号 / codex / grok、找另一个 AI 审、多方意见、派出的任务进行到哪了。Not for trivial edits, a single diff review (agentic-review-handoff) or the session list (sideby sessions); inside another named workflow, only size its workers./agentic-review-handoffValidate review findings, run auto Git review-fix-re-review loop, DecisionConsult, or DDD/cohesion review. Requires Git & review/consult intent./agent-practice-auditOther plugins' skills for the same job