← 返回 Skills 市场
jolestar

DefiLlama Yields OpenAPI Skill

作者 jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
206
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install defillama-yields-openapi-skill
功能描述
Operate DefiLlama public yield APIs through UXC with a curated OpenAPI schema and read-first guardrails.
使用说明 (SKILL.md)

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

References

  • Usage patterns: references/usage-patterns.md
  • Curated OpenAPI schema: references/defillama-yields.openapi.json
  • DefiLlama API docs: https://defillama.com/docs/api
安全使用建议
This skill appears to do exactly what it says: provide read-only access to DefiLlama yields via uxc and a curated OpenAPI schema. Before installing: (1) confirm you have or trust the 'uxc' CLI (SKILL.md requires it but the metadata didn't list it), (2) verify you are comfortable allowing network access to yields.llama.fi and raw.githubusercontent.com (the schema URL), and (3) review the included references/defillama-yields.openapi.json if you want to verify which endpoints will be called. If you plan to run the included scripts/validate.sh locally, note it requires jq and ripgrep (rg). No credentials are requested and there are no obvious exfiltration steps in the instructions — the mismatch about declaring 'uxc' as a required binary is the only notable inconsistency.
功能分析
Type: OpenClaw Skill Name: defillama-yields-openapi-skill Version: 1.0.0 The skill bundle is a legitimate wrapper for the public DefiLlama Yields API, facilitating read-only access to yield pool data and charts via the 'uxc' tool. All files, including SKILL.md and the validation script, align with the stated purpose of providing a curated interface for public financial data without requiring authentication or sensitive permissions.
能力评估
Purpose & Capability
The skill's name, description, OpenAPI schema, and instructions consistently describe a read-only wrapper for yields.llama.fi. However, SKILL.md explicitly requires the 'uxc' CLI be present in PATH (and shows linking commands), but the registry metadata lists no required binaries — this is a minor inconsistency (uxc should be declared as a required binary). Otherwise the declared files (schema, usage patterns) match the stated purpose.
Instruction Scope
Runtime instructions are narrowly scoped to read-only operations on yields.llama.fi via uxc and a curated OpenAPI schema. They instruct creating a local uxc link/CLI and running get:/pools and get:/chart/{pool}. There are no instructions to read unrelated files, exfiltrate secrets, or call other endpoints beyond the documented schema and GitHub-hosted schema URL.
Install Mechanism
There is no install spec (instruction-only skill). The only network resources referenced are public: yields.llama.fi and a raw.githubusercontent.com URL for the schema. No downloads of arbitrary archives or obscure hosts are present.
Credentials
The skill requests no environment variables or credentials and the SKILL.md declares the API is public and read-only. There are no unexpected SECRET/TOKEN/PASSWORD requirements or config path access.
Persistence & Privilege
The skill is not marked 'always: true' and does not request system-wide changes. It is user-invocable and allows normal autonomous invocation (platform default). Nothing here indicates elevated or persistent privileges beyond typical skill behavior.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install defillama-yields-openapi-skill
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /defillama-yields-openapi-skill 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of the DefiLlama Yields OpenAPI Skill. - Enables read-only access to DefiLlama Yield APIs via UXC and a curated OpenAPI schema. - Supports public yield pool discovery and per-pool chart history endpoints. - No authentication required; all endpoints are public and read-only. - Includes comprehensive guardrails and operational workflow for consistent usage. - Excludes write operations and non-yield/Pro API endpoints.
元数据
Slug defillama-yields-openapi-skill
版本 1.0.0
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 1
常见问题

DefiLlama Yields OpenAPI Skill 是什么?

Operate DefiLlama public yield APIs through UXC with a curated OpenAPI schema and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 206 次。

如何安装 DefiLlama Yields OpenAPI Skill?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install defillama-yields-openapi-skill」即可一键安装,无需额外配置。

DefiLlama Yields OpenAPI Skill 是免费的吗?

是的,DefiLlama Yields OpenAPI Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

DefiLlama Yields OpenAPI Skill 支持哪些平台?

DefiLlama Yields OpenAPI Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 DefiLlama Yields OpenAPI Skill?

由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。

💬 留言讨论