← 返回
AI智能 中文

Uxc

Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute Open...
使用UXC发现并调用远程模式暴露的接口。当代理或技能需要列出操作、检查操作模式并执行Open等操作时使用。
jolestar
AI智能 clawhub v1.0.4 2 版本 100000 Key: 无需
★ 0
Stars
📥 888
下载
💾 18
安装
2
版本
#latest

概述

UXC Skill

Use this skill when a task requires calling a remote interface and the endpoint can expose machine-readable schema metadata.

When To Use

  • You need to call APIs/tools from another skill and want one consistent CLI workflow.
  • The interface may be OpenAPI, GraphQL, gRPC reflection, MCP, or JSON-RPC/OpenRPC.
  • You need deterministic, machine-readable output (ok, kind, data, error).

Do not use this skill for pure local file operations with no remote interface.

Prerequisites

  • uxc is installed and available in PATH.
  • For gRPC runtime calls, grpcurl is installed and available in PATH.

Install uxc

Choose one of the following methods:

Homebrew (macOS/Linux):

brew tap holon-run/homebrew-tap
brew install uxc

Install Script (macOS/Linux, review before running):

curl -fsSL https://raw.githubusercontent.com/holon-run/uxc/main/scripts/install.sh -o install-uxc.sh
# Review the script before running it
less install-uxc.sh
bash install-uxc.sh

Cargo:

cargo install uxc

For more options, see the Installation section in the UXC README.

Core Workflow

  1. Discover operations:
    • uxc -h
  2. Inspect a specific operation:
    • uxc -h
  3. Execute with structured input:
    • uxc key=value
    • uxc ''
  4. Parse result as JSON envelope:
    • Success: .ok == true, consume .data
    • Failure: .ok == false, inspect .error.code and .error.message
  5. For disambiguation, use operation-level help first:
    • uxc -h
  6. For auth-protected endpoints, use the right auth track:
    • simple bearer / single-secret API key: see references/auth-configuration.md
    • multi-field auth or request signing: see references/auth-configuration.md
    • OAuth flows: see references/oauth-and-binding.md

Link-First Workflow For Wrapper Skills

Wrapper skills should default to a fixed local link command instead of calling uxc ... directly on every step.

  1. Pick a fixed command name during skill development:
    • naming convention: -mcp-cli
    • examples: notion-mcp-cli, context7-mcp-cli, deepwiki-mcp-cli
  2. Check whether the command already exists:
    • command -v
  3. If command is missing, create it:
    • uxc link
    • For OpenAPI services whose schema is hosted at a separate fixed URL, create the link with uxc link --schema-url
    • For stdio hosts that need credential-driven child env auth, create the link with uxc link --credential --inject-env NAME={{secret}}
  4. Validate link command:
    • -h
  5. Use only the link command for the rest of the skill flow.

Naming Governance

  • Link naming is a skill author decision, not a runtime agent decision.
  • Resolve ecosystem conflicts during skill development/review.
  • Do not implement dynamic rename logic inside runtime skill flow.
  • If runtime detects a command conflict that cannot be safely reused, stop and ask for skill maintainer intervention.

Equivalence Rule

  • ... is equivalent to uxc ....
  • If the link was created with --schema-url , it is equivalent to uxc --schema-url ....
  • If the link was created with --credential --inject-env NAME={{secret}}, it is equivalent to uxc --auth --inject-env NAME={{secret}} ....
  • Callers can still override that persisted schema by passing --schema-url explicitly at runtime.
  • Use uxc ... only as a temporary fallback when link setup is unavailable.

Input Modes

  • Preferred (simple payload): key/value
  • uxc field=value
  • Bare JSON positional:
  • uxc '{"field":"value"}'

Do not pass raw JSON through --args; use positional JSON.

Output Contract For Reuse

Other skills should treat this skill as the interface execution layer and consume only the stable envelope:

  • Success fields: ok, kind, protocol, endpoint, operation, data, meta
  • Failure fields: ok, error.code, error.message, meta

Default output is JSON. Do not use --text in agent automation paths.

Reuse Rule For Other Skills

  • If a skill needs remote API/tool execution, reuse this skill instead of embedding protocol-specific calling logic.
  • Wrapper skills should adopt a fixed link command (-mcp-cli) as the default invocation path.
  • Upstream skill inputs should be limited to:
  • target host
  • operation id/name
  • JSON payload
  • required fields to extract from .data

Reference Files (Load On Demand)

  • Workflow details and progressive invocation patterns:
  • references/usage-patterns.md
  • Protocol operation naming quick reference:
  • references/protocol-cheatsheet.md
  • Public endpoint examples and availability notes:
  • references/public-endpoints.md
  • Authentication configuration (simple secret, named fields, headers/query params, and request signers):
  • references/auth-configuration.md
  • OAuth and credential/binding lifecycle:
  • references/oauth-and-binding.md
  • Failure handling and retry strategy:
  • references/error-handling.md

版本历史

共 2 个版本

  • v1.0.4 当前
    2026-03-29 18:44 安全 安全
  • v1.0.3
    2026-03-11 10:49

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,349 📥 317,674
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 709 📥 243,508
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,055 📥 795,652