DefiLlama Yields OpenAPI Skill
by @jolestar
Operate DefiLlama public yield APIs through UXC with a curated OpenAPI schema and read-first guardrails.
clawhub install defillama-yields-openapi-skillπ About This Skill
name: defillama-yields-openapi-skill description: Operate DefiLlama public yield APIs through UXC with a curated OpenAPI schema and read-first guardrails.
DefiLlama Yields API Skill
Use this skill to run DefiLlama public yield 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.https://yields.llama.fi.https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-yields-openapi-skill/references/defillama-yields.openapi.jsonScope
This skill covers a public read-only yield surface on yields.llama.fi:
This skill does not cover:
api.llama.ficoins.llama.fiAuthentication
This public skill does not require authentication.
Core Workflow
1. Use the fixed link command by default:
- command -v defillama-yields-openapi-cli
- If missing, create it:
uxc link defillama-yields-openapi-cli https://yields.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-yields-openapi-skill/references/defillama-yields.openapi.json
- defillama-yields-openapi-cli -h
2. Inspect operation schema first:
- defillama-yields-openapi-cli get:/pools -h
- defillama-yields-openapi-cli get:/chart/{pool} -h
3. Prefer narrow read validation before broader reads:
- defillama-yields-openapi-cli get:/pools
- defillama-yields-openapi-cli get:/chart/{pool} pool=747c1d2a-c668-4682-b9f9-296708a3dd90
Operations
get:/poolsget:/chart/{pool}Guardrails
--text.ok, kind, protocol, data, error.yields.llama.fi.defillama-yields-openapi-cli ... is equivalent to uxc https://yields.llama.fi --schema-url ... .References
references/usage-patterns.mdreferences/defillama-yields.openapi.jsonβοΈ Configuration
uxc is installed and available in PATH.https://yields.llama.fi.https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-yields-openapi-skill/references/defillama-yields.openapi.json