← Back to Skills Marketplace
jolestar

DefiLlama Pro OpenAPI Skill

by jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
187
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install defillama-pro-openapi-skill
Description
Operate DefiLlama Pro analytics APIs through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.
README (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

Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install defillama-pro-openapi-skill
  3. After installation, invoke the skill by name or use /defillama-pro-openapi-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug defillama-pro-openapi-skill
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is 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. It is an AI Agent Skill for Claude Code / OpenClaw, with 187 downloads so far.

How do I install DefiLlama Pro OpenAPI Skill?

Run "/install defillama-pro-openapi-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is DefiLlama Pro OpenAPI Skill free?

Yes, DefiLlama Pro OpenAPI Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does DefiLlama Pro OpenAPI Skill support?

DefiLlama Pro OpenAPI Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created DefiLlama Pro OpenAPI Skill?

It is built and maintained by jolestar (@jolestar); the current version is v1.0.0.

💬 Comments