Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add skills/nirholas/three.ws/defillama-analytics-guidenpx skills add nirholas/three.ws --skill defillama-analytics-guidegit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/defillama-analytics-guide)<a href="https://agentmods.dev/skills/nirholas/three.ws/defillama-analytics-guide"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/defillama-analytics-guide.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00067 | $0.02060 |
| Opus 5 | $0.00034 | $0.01030 |
| Sonnet 5 | $0.00013 | $0.00412 |
| Haiku 4.5 | $0.00007 | $0.00206 |
Grade A, and why
defillama-analytics-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DeFi Llama Analytics Guide
DeFi Llama is the best free API in crypto — zero API key, zero rate limiting, comprehensive DeFi coverage. This guide teaches AI agents how to use every endpoint.
Why DeFi Llama?
| Feature | DeFi Llama | CoinGecko (Free) | CoinMarketCap (Free) |
|---|---|---|---|
| API Key | None | None | Required |
| Rate Limit | None | 30/min (strict) | 30/min |
| TVL Data | Best in class | Limited | Limited |
| Yield Data | Only source | None | None |
| Price Data | ✅ | ✅ (rate limited) | ✅ (key required) |
| Stablecoin Data | Only source | Limited | Limited |
| Cost | Free forever | Free (crippled) | Free (crippled) |
Core API Endpoints
Base URL: https://api.llama.fi
Protocol TVL
# All protocols
GET https://api.llama.fi/protocols
# Single protocol
GET https://api.llama.fi/protocol/{slug}
# Examples:
GET https://api.llama.fi/protocol/aave
GET https://api.llama.fi/protocol/uniswap
GET https://api.llama.fi/protocol/sperax
Response fields (per protocol):
| Field | Description |
|---|---|
name |
Protocol name |
tvl |
Current total TVL |
chainTvls |
TVL breakdown by chain |
change_1h/1d/7d |
TVL change percentages |
chains |
List of chains protocol is on |
category |
DeFi category (DEX, Lending, CDP, etc.) |
Chain TVL
# All chains
GET https://api.llama.fi/v2/chains
# Historical TVL for a chain
GET https://api.llama.fi/v2/historicalChainTvl/Arbitrum
Global DeFi Stats
# Total DeFi TVL
GET https://api.llama.fi/v2/historicalChainTvl
# Returns: Daily TVL across all chains combined
Token Prices API
Base URL: https://coins.llama.fi
Current Prices
# By chain:address
GET https://coins.llama.fi/prices/current/ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
# Multiple tokens (comma-separated)
GET https://coins.llama.fi/prices/current/ethereum:0xC02aaA39...,arbitrum:0xD74f5255...
# By CoinGecko ID
GET https://coins.llama.fi/prices/current/coingecko:bitcoin,coingecko:ethereum
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 277 lines · 67 tokens per session scan A 0dbad9359495
defillama-analytics-guide is a skill published in the GitHub repository nirholas/three.ws (110 stars, last pushed today), licensed Apache-2.0. It adds 67 tokens to every session and 2,060 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
write-contracts
Generates secure Aptos Move V2 smart contracts with Object model, Digital Asset integration, security patterns, and storage type guidance. Includes comprehensive storage decision framework for optimal data structure selection. Triggers on: 'write contract', 'create NFT collection', 'build marketplace', 'implement…
chainstack
Work with the Chainstack MCP server to manage blockchain nodes and projects. Use when deploying nodes, migrating to Chainstack from another RPC provider such as QuickNode or Alchemy, checking platform status, searching Chainstack docs, contacting the Chainstack team, or interacting with the Chainstack platform API via…
xpr-network-dev
XPR Network (formerly Proton) blockchain development - proton-tsc smart contracts, @proton CLI and web SDK, RPC and Hyperion queries, DeFi (MetalX, Alcor, LOAN), NFTs, the XPR Agents job board, node and Hyperion operations. Use for anything mentioning XPR, Proton, or @proton packages.
crypto-onchain
On-Chain Analytics Agent — whale movements, exchange flows, active addresses, network growth, holder distribution, and transaction metrics with On-Chain Score (0-100).
dune
Expert assistant for querying and analyzing on-chain blockchain data using Dune Analytics. Use whenever the user wants to: analyze blockchain/on-chain data, write SQL for Dune, find wallet activity, track DeFi protocol metrics, analyze NFT trades, monitor token transfers, investigate smart contract events, check token…
convex-lisp
Convex Lisp language reference — CVM conventions, calling library code, actor definitions, juice and error codes. Use when writing or debugging CVM source for queries, transactions or actors.