defillama-openapi-skill
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
Works with
---
name: defillama-openapi-skill
description: Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails.
license: MIT
---
# 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/apiMore API Design skills
lark-event
larksuite/cli
Lark/Feishu real-time event listening / subscribing / consuming: stream events as NDJSON via `lark-cli event consume <EventKey>` (covers IM messages/reactions/chat changes, Approval status changes, Task updates, VC meeting started/joined/ended, Minutes generated, Whiteboard updated, etc.). Use for Lark bots, real-time message processing, long-running subscribers, streaming webhook/push handlers. Supports `--max-events` / `--timeout` bounded runs and a stderr ready-marker contract — designed for AI agents running as subprocesses.
lark-contact
larksuite/cli
飞书 / Lark 通讯录:按姓名 / 邮箱解析成 open_id,或按 open_id 反查姓名 / 部门 / 邮箱 / 联系方式 / 个人状态 / 签名,以及按关键词搜索当前用户可见的机器人 / 智能体(agent)。当用户提到一个名字要下一步发消息 / 排日程,或拿到 open_id 想查具体信息时使用。不负责部门树遍历、按部门列员工、组织架构图,这类需求走原生 OpenAPI。
lark-openapi-explorer
larksuite/cli
飞书/Lark 原生 OpenAPI 探索:从官方文档库中挖掘未经 CLI 封装的原生 OpenAPI 接口。当用户的需求无法被现有 lark-* skill 或 lark-cli 已注册命令满足,需要查找并调用原生飞书 OpenAPI 时使用。

