defillama-openapi-skill
DefiLlama Public API Skill
Use this skill to run DefiLlama public API operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
Prerequisites
uxcis installed and available inPATH.- Network access to
https://api.llama.fi. - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json
Scope
This skill covers a public read-only analytics surface on api.llama.fi:
- protocol TVL list
- per-protocol detail
- chain overview reads
This skill does not cover:
- write operations or account management
- DefiLlama Pro key-in-path auth
- split-host public services such as
coins.llama.fiandyields.llama.fi - the full DefiLlama public API surface
Authentication
This public skill does not require authentication.
Core Workflow
-
Use the fixed link command by default:
command -v defillama-openapi-cli- If missing, create it:
uxc link defillama-openapi-cli https://api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json defillama-openapi-cli -h
-
Inspect operation schema first:
defillama-openapi-cli get:/protocols -hdefillama-openapi-cli get:/protocol/{protocol} -hdefillama-openapi-cli get:/v2/chains -h
-
Prefer narrow read validation before broader reads:
defillama-openapi-cli get:/v2/chainsdefillama-openapi-cli get:/protocolsdefillama-openapi-cli get:/protocol/{protocol} protocol=aave
-
Execute with key/value parameters:
defillama-openapi-cli get:/protocol/{protocol} protocol=aavedefillama-openapi-cli get:/v2/chains
Operations
get:/protocolsget:/protocol/{protocol}get:/v2/chains
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.
- Public DefiLlama data is split across multiple hosts. This skill intentionally stays on
api.llama.fi; use the separate Pro skill when you need the unified Pro host. defillama-openapi-cli <operation> ...is equivalent touxc https://api.llama.fi --schema-url <defillama_openapi_schema> <operation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/defillama-public.openapi.json - DefiLlama API docs: https://defillama.com/docs/api
More from holon-run/uxc
chrome-devtools-mcp-skill
Use Chrome DevTools MCP through UXC over local stdio for page navigation, DOM/a11y snapshots, network inspection, console inspection, and performance tooling, with a live-browser autoConnect default and optional browserUrl or isolated fallback modes.
53playwright-mcp-skill
Run browser automation through @playwright/mcp over UXC stdio MCP, with daemon-friendly session reuse and safe action guardrails. Use when tasks need deterministic page navigation, DOM snapshots, and scripted browser interaction from CLI.
49uxc
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.
44dune-mcp-skill
Use Dune MCP through UXC for blockchain table discovery, SQL query creation/execution, execution result retrieval, and visualization with help-first schema inspection, explicit auth binding, and guarded credit-consuming operations.
28context7-mcp-skill
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Python libraries, or other programming languages.
26etherscan-mcp-skill
Use Etherscan MCP through UXC for address balance checks, token holder analysis, transaction inspection, and contract lookup tasks. Use when tasks need Etherscan MCP tools for onchain investigation with help-first schema inspection, bearer-key auth, and tier-aware read-first handling.
25