Skip to content
Back to skills

Defillama Yields Api

ASecurity

Operate DefiLlama public yield APIs through UXC with a curated OpenAPI schema and read-first guardrails.

  • 73 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added May 29, 2026
toolsrailsgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned May 29, 2026

npx -y skills add jiayaoqijia/cryptoskill --skill defillama-yields-api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Defillama Yields Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Defillama Yields Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jiayaoqijia-defillama-yields-api/badge)](https://www.skillsdirectory.com/skills/jiayaoqijia-defillama-yields-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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`.
- Network access to `https://yields.llama.fi`.
- Access to the curated OpenAPI schema URL:
  - `https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-yields-openapi-skill/references/defillama-yields.openapi.json`

## Scope

This skill covers a public read-only yield surface on `yields.llama.fi`:

- yield pool discovery
- per-pool chart history

This skill does **not** cover:

- write operations
- protocol or chain overview endpoints from `api.llama.fi`
- price endpoints from `coins.llama.fi`
- DefiLlama Pro APIs

## Authentication

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:/pools`
- `get:/chart/{pool}`

## 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.
- Public DefiLlama data is split across multiple hosts; this skill intentionally wraps only `yields.llama.fi`.
- `defillama-yields-openapi-cli <operation> ...` is equivalent to `uxc https://yields.llama.fi --schema-url <defillama_yields_openapi_schema> <operation> ...`.

## References

- Usage patterns: `references/usage-patterns.md`
- Curated OpenAPI schema: `references/defillama-yields.openapi.json`
- DefiLlama API docs: https://defillama.com/docs/api

Files in this skill

  • SKILL.md2.4 KB
  • SOURCE.md284 B
  • TRUST.auto.yaml2.1 KB
  • _meta.json314 B
  • agents/openai.yaml272 B
  • references/defillama-yields.openapi.json1.5 KB
  • references/usage-patterns.md809 B
  • scripts/validate.sh1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.