← 返回 Skills 市场
jolestar

DefiLlama Pro OpenAPI Skill

作者 jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
187
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install defillama-pro-openapi-skill
功能描述
Operate DefiLlama Pro analytics APIs through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.
使用说明 (SKILL.md)

DefiLlama Pro API Skill

Use this skill to run DefiLlama Pro API 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://pro-api.llama.fi.
  • Access to the curated OpenAPI schema URL:
    • https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.json
  • A DefiLlama Pro API key.

Scope

This skill covers a read-first analytics surface:

  • protocol TVL list and per-protocol detail
  • chain overview reads
  • current token price lookups
  • yield pool discovery
  • yield chart history
  • stablecoin dominance reads

This skill does not cover:

  • write operations or account management
  • the public unauthenticated host variants
  • the full DefiLlama Pro endpoint surface

Authentication

DefiLlama Pro places the API key in the request path, between the host and the endpoint path.

Configure one API-key credential with a request path prefix template:

uxc auth credential set defillama-pro \
  --auth-type api_key \
  --secret-env DEFILLAMA_PRO_API_KEY \
  --path-prefix-template "/{{secret}}"

uxc auth binding add \
  --id defillama-pro \
  --host pro-api.llama.fi \
  --scheme https \
  --credential defillama-pro \
  --priority 100

Validate the active mapping when auth looks wrong:

uxc auth binding match https://pro-api.llama.fi

Core Workflow

  1. Use the fixed link command by default:

    • command -v defillama-pro-openapi-cli
    • If missing, create it: uxc link defillama-pro-openapi-cli https://pro-api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.json
    • defillama-pro-openapi-cli -h
  2. Inspect operation schema first:

    • defillama-pro-openapi-cli get:/api/protocols -h
    • defillama-pro-openapi-cli get:/coins/prices/current/{coins} -h
    • defillama-pro-openapi-cli get:/yields/chart/{pool} -h
  3. Prefer narrow read validation before broader reads:

    • defillama-pro-openapi-cli get:/api/v2/chains
    • defillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aave
    • defillama-pro-openapi-cli get:/yields/pools
  4. Execute with key/value parameters:

    • defillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aave
    • defillama-pro-openapi-cli get:/coins/prices/current/{coins} coins=ethereum:0x0000000000000000000000000000000000000000 searchWidth=4h
    • defillama-pro-openapi-cli get:/stablecoins/stablecoindominance/{chain} chain=ethereum

Operation Groups

Protocol And Chain Analytics

  • get:/api/protocols
  • get:/api/protocol/{protocol}
  • get:/api/v2/chains

Prices, Yields, And Stablecoins

  • get:/coins/prices/current/{coins}
  • get:/yields/pools
  • get:/yields/chart/{pool}
  • get:/stablecoins/stablecoindominance/{chain}

Guardrails

  • Keep automation on the JSON output envelope; do not use --text.
  • Parse stable fields first: ok, kind, protocol, data, error.
  • Treat this v1 skill as read-only. Do not imply wallet, trading, or admin support.
  • This skill assumes the Pro host and key-in-path auth model. Do not bind the same credential to a different path shape without checking the upstream docs first.
  • API keys are sensitive because they appear in the request path. Use --secret-env or --secret-op, not shell history literals, when possible.
  • Avoid sharing raw daemon logs when troubleshooting this integration. The key is part of the request path, so if you inspect ~/.uxc/daemon/daemon.log, sanitize, rotate, or delete the log after debugging and avoid verbose logging unless necessary.
  • defillama-pro-openapi-cli \x3Coperation> ... is equivalent to uxc https://pro-api.llama.fi --schema-url \x3Cdefillama_pro_openapi_schema> \x3Coperation> ....

References

安全使用建议
This skill appears to do what it says: provide read-only access to DefiLlama Pro via the uxc CLI and a curated OpenAPI schema. Before installing: (1) confirm you have and trust uxc and that the schema URL (raw.githubusercontent.com/holon-run/...) is the intended source, (2) do not paste your API key on the command line or into chat—use uxc's secret handling as instructed (DEFILLAMA_PRO_API_KEY), (3) be aware the API key is placed in the request path and can appear in uxc daemon logs (~/.uxc/daemon/daemon.log); sanitize or rotate keys if you inspect logs, and (4) if you want to limit autonomous behavior, consider disabling autonomous invocation for this skill in your agent policy. The only minor inconsistency: the registry metadata does not list the DEFILLAMA_PRO_API_KEY requirement even though the docs show it—make sure you supply a Pro API key through uxc before using the skill.
功能分析
Type: OpenClaw Skill Name: defillama-pro-openapi-skill Version: 1.0.0 The skill bundle is a legitimate integration for the DefiLlama Pro API using the uxc tool. It includes a curated OpenAPI schema, validation scripts, and detailed instructions in SKILL.md that emphasize read-only operations and provide specific guardrails for handling API keys securely, particularly noting the risk of keys appearing in request paths and daemon logs. No evidence of malicious intent, data exfiltration, or unauthorized execution was found.
能力评估
Purpose & Capability
Name/description, OpenAPI schema, usage examples, and agent prompt all consistently describe read-only DefiLlama Pro API access via the uxc CLI. The included schema contains the documented read endpoints referenced in SKILL.md.
Instruction Scope
SKILL.md stays on scope: it requires uxc, the curated OpenAPI schema, network access to pro-api.llama.fi and a DefiLlama Pro API key, and gives explicit read-first guardrails. It does not instruct reading unrelated host files or sending data to unexpected endpoints. It explicitly warns about the API key appearing in request paths and daemon logs.
Install Mechanism
This is an instruction-only skill with no install spec. The only executable file is a local validation script (scripts/validate.sh) that requires jq and rg for developer-side checks; nothing is downloaded or written at install time.
Credentials
The skill does not declare required env vars in registry metadata, but SKILL.md instructs configuring a credential that uses DEFILLAMA_PRO_API_KEY via uxc. Requesting a single API key for the Pro host is proportional, but the metadata omission (no required env / primary credential) is a mild inconsistency the user should be aware of.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system-wide privileges, nor does it modify other skills. Model invocation is allowed (platform default), which is expected for utility skills.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install defillama-pro-openapi-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /defillama-pro-openapi-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the DefiLlama Pro OpenAPI skill. - Enables read-only access to DefiLlama Pro analytics APIs via UXC and a curated OpenAPI schema. - Supports protocol TVL, per-protocol, chain, price, yield, and stablecoin dominance queries. - Implements path-templated API-key authentication. - Provides setup and workflow guidance for credential management and cli usage. - Enforces read-first guardrails and operational safety guidance.
元数据
Slug defillama-pro-openapi-skill
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

DefiLlama Pro OpenAPI Skill 是什么?

Operate DefiLlama Pro analytics APIs through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 187 次。

如何安装 DefiLlama Pro OpenAPI Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install defillama-pro-openapi-skill」即可一键安装,无需额外配置。

DefiLlama Pro OpenAPI Skill 是免费的吗?

是的,DefiLlama Pro OpenAPI Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

DefiLlama Pro OpenAPI Skill 支持哪些平台?

DefiLlama Pro OpenAPI Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DefiLlama Pro OpenAPI Skill?

由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。

💬 留言讨论