defillama-openapi-skill
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
Best use case
defillama-openapi-skill is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
Teams using defillama-openapi-skill should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/defillama-api/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How defillama-openapi-skill Compares
| Feature / Agent | defillama-openapi-skill | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# 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
- `uxc` is installed and available in `PATH`.
- 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.fi` and `yields.llama.fi`
- the full DefiLlama public API surface
## Authentication
This public skill does not require authentication.
## Core Workflow
1. 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`
2. Inspect operation schema first:
- `defillama-openapi-cli get:/protocols -h`
- `defillama-openapi-cli get:/protocol/{protocol} -h`
- `defillama-openapi-cli get:/v2/chains -h`
3. Prefer narrow read validation before broader reads:
- `defillama-openapi-cli get:/v2/chains`
- `defillama-openapi-cli get:/protocols`
- `defillama-openapi-cli get:/protocol/{protocol} protocol=aave`
4. Execute with key/value parameters:
- `defillama-openapi-cli get:/protocol/{protocol} protocol=aave`
- `defillama-openapi-cli get:/v2/chains`
## Operations
- `get:/protocols`
- `get:/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 to `uxc 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/apiRelated Skills
mexc-openapi-skill
Operate MEXC Spot REST APIs through UXC with a curated OpenAPI schema, HMAC query signing, and separate public/signed workflow guardrails.
kucoin-openapi-skill
Operate KuCoin public exchange market APIs through UXC with a curated OpenAPI schema, market-first discovery, and explicit private-auth boundary notes.
kraken-openapi-skill
Operate Kraken public market APIs through UXC with a curated OpenAPI schema, market-first discovery, and explicit private-auth boundary notes.
coinbase-openapi-skill
Operate Coinbase Advanced Trade REST APIs through UXC with a curated OpenAPI schema, products-first discovery, and explicit JWT bearer auth guidance.
bybit-openapi-skill
Operate Bybit V5 public market APIs through UXC with a curated OpenAPI schema, market-first discovery, and explicit private-auth boundary notes.
bitget-openapi-skill
Operate Bitget public exchange market APIs through UXC with a curated OpenAPI schema, market-first discovery, and explicit private-auth boundary notes.
binance-web3-openapi-skill
Operate Binance Web3 public market and research APIs through UXC with a curated OpenAPI schema. Use when tasks need token search, token metadata/market snapshots, address holdings, rankings, token audit, or smart money signals on Binance Web3.
binance-spot-openapi-skill
Operate Binance Spot market, account, and order APIs through UXC with a curated OpenAPI schema, Binance query signing, and separate mainnet/testnet link flows.
moralis-openapi-skill
Operate Moralis EVM wallet and token reads through UXC with a curated OpenAPI schema, API-key auth, and wallet-intelligence guardrails.
alchemy-openapi-skill
Operate Alchemy Prices API reads through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.
defillama-yield-compare
Compare yields for any token across ALL DeFi protocols on ALL chains with risk-adjusted scoring and one-click execution routing.
defillama-yields
Cross-chain yield discovery and comparison across 2000+ DeFi protocols and 30+ chains.