← Back to Skills Marketplace
jolestar

DefiLlama OpenAPI Skill

by jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
209
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install defillama-openapi-skill
Description
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
README (SKILL.md)

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 \x3Coperation> ... is equivalent to uxc https://api.llama.fi --schema-url \x3Cdefillama_openapi_schema> \x3Coperation> ....

References

  • Usage patterns: references/usage-patterns.md
  • Curated OpenAPI schema: references/defillama-public.openapi.json
  • DefiLlama API docs: https://defillama.com/docs/api
Usage Guidance
This skill appears coherent and read-only, but check these before installing: ensure you trust the 'uxc' tool (SKILL.md requires it) and understand what 'uxc link' will do in your environment; confirm you are comfortable allowing network access to https://api.llama.fi and that fetching the curated OpenAPI schema from raw.githubusercontent.com is acceptable; verify the included local schema (references/defillama-public.openapi.json) and that it points only to api.llama.fi (it does); validate that you don't need DefiLlama Pro or other hosts (the skill deliberately avoids them). The validate.sh script requires jq and ripgrep (rg) for local validation only — these are not credentials but are runtime requirements for maintainers. If you rely on autonomous agent invocation, remember this skill can be invoked by agents (platform default), but its read-only scope keeps privilege limited.
Capability Analysis
Type: OpenClaw Skill Name: defillama-openapi-skill Version: 1.0.0 The skill bundle provides a structured interface for an AI agent to interact with the public DefiLlama API using the 'uxc' CLI tool. It includes a valid OpenAPI schema, clear usage instructions in SKILL.md, and a validation script (scripts/validate.sh) that ensures the bundle adheres to expected patterns. The operations are strictly read-only analytics queries, and there is no evidence of data exfiltration, malicious execution, or prompt injection.
Capability Assessment
Purpose & Capability
The skill's name, description, OpenAPI schema, and runtime instructions are aligned: it only exposes a small read-only subset of DefiLlama (protocols, per-protocol, chains). One minor mismatch: the SKILL.md requires the 'uxc' CLI to be present and network access to api.llama.fi, but the registry metadata lists no required binaries — the skill will fail at runtime if 'uxc' is absent. This is an operational omission rather than a security mismatch.
Instruction Scope
SKILL.md limits actions to inspecting and calling three GET operations via a uxc-backed CLI, instructs to use JSON output only, and explicitly excludes write/admin operations and other hosts. It does not instruct reading unrelated files or environment variables. The included validate script is a local sanity check and not executed by the skill at runtime.
Install Mechanism
No install spec is provided (instruction-only skill), so nothing is written to disk by the skill itself. The only network fetch called out is the curated OpenAPI schema on raw.githubusercontent.com (a well-known host). There is no download-from-arbitrary-server install behavior.
Credentials
The skill requests no environment variables or credentials and explicitly states it is public and read-only. The included files and scripts do not reference secrets or unrelated credential stores.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or global agent config, and is user-invocable only. Autonomous model invocation is allowed (platform default) but the skill's scope is read-only which limits risk.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install defillama-openapi-skill
  3. After installation, invoke the skill by name or use /defillama-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 OpenAPI skill for UXC. - Enables read-only access to DefiLlama's public analytics API via a curated OpenAPI schema. - Supports protocol TVL list, per-protocol detail, and chain overview reads. - No authentication required; focuses on public endpoints from api.llama.fi only. - Outlines recommended CLI linking, operation inspection, and safe-automation guardrails.
Metadata
Slug defillama-openapi-skill
Version 1.0.0
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is DefiLlama OpenAPI Skill?

Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails. It is an AI Agent Skill for Claude Code / OpenClaw, with 209 downloads so far.

How do I install DefiLlama OpenAPI Skill?

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

Is DefiLlama OpenAPI Skill free?

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

Which platforms does DefiLlama OpenAPI Skill support?

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

Who created DefiLlama OpenAPI Skill?

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

💬 Comments