# defillama

Hands your agent DefiLlama data: protocol TVL, stablecoin yields, fees, DEX and bridge volume. Useful for comparing protocols or tracking where capital moves.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 329 installs · ★ 29
- Author: Starchild-ai-agent
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Starchild-ai-agent/official-skills/tree/HEAD/defillama/SKILL.md
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/skills/defillama

## What it does

This is a script-mode skill. It does not register as Anthropic tools; instead everything lives in one `exports.py`. The agent reads `SKILL.md`, runs `python` inside `bash`, and imports what it needs after `sys.path.insert(0, "/data/workspace/skills/defillama")`.

Inside are wrappers over the DefiLlama API: `protocols`, `chains`, `protocol_tvl`, `yield_pools`, `dex_overview`, `fees_overview`, `revenue_overview`, `stablecoins`, `bridges`, `treasury`. Free endpoints sit on `https://api.llama.fi` and need no key. Pro endpoints, such as yields and emissions, want `DEFILLAMA_API_KEY` placed in the URL path rather than an HTTP header.

With a fake key, calls have to pass through sc-proxy so the key can be swapped upstream. `PROXY_HOST` and `PROXY_PORT` point the session at that proxy; skip them and a direct request returns a key error. The pro half simply will not answer.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill defillama -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/defillama/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/defillama/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill defillama -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/defillama/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill defillama -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/defillama/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install Starchild-ai-agent/official-skills defillama
```

2. **Manually: put the files in place**
- File: `.github/skills/defillama/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill defillama -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/Starchild-ai-agent/official-skills --path defillama
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/defillama/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add Starchild-ai-agent/official-skills --skill defillama -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/Starchild-ai-agent/official-skills/tree/HEAD/defillama/SKILL.md

## When to use it
- rank protocols by current TVL
- screen stablecoin pools for a workable APY
- compare DEX volume across chains
- pull daily TVL history for one chain
- check bridge volume and chain flows

## Example prompts
- Show the top 10 protocols by TVL right now
- Find USDC pools with a decent APY
- Compare DEX volume on Arbitrum and Ethereum over the last 30 days

## Similar
- [churn-prevention](https://affpapa.org/en/nevibecode/skills/coreyhaines31-churn-prevention.md) — skill · 121000 installs
- [revops](https://affpapa.org/en/nevibecode/skills/revops.md) — skill · 113500 installs
- [community-marketing](https://affpapa.org/en/nevibecode/skills/community-marketing.md) — skill · 89500 installs
- [ads](https://affpapa.org/en/nevibecode/skills/ads.md) — skill · 82800 installs
- [pricing](https://affpapa.org/en/nevibecode/skills/pricing.md) — skill · 79300 installs
- [marketing-plan](https://affpapa.org/en/nevibecode/skills/marketing-plan.md) — skill · 67900 installs

From the same set: [starchild-ai-agent/official-skills](https://affpapa.org/en/nevibecode/by/starchild-ai-agent/official-skills.md) — 30 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
