| name | adapter-author |
| description | Validates whether a DefiLlama request belongs in DefiLlama-Adapters, then helps coding agents create and validate TVL adapters when it does. Use when a user wants to add a new DefiLlama TVL protocol listing, check repo fit, create or fix a TVL adapter, choose adapter helpers or registries, run `node test.js`, prepare PR metadata, or decide whether they should instead use `DefiLlama/dimension-adapters` or send a mail |
DefiLlama TVL Adapter Author
Use this skill to help a protocol developer add or inspect a DefiLlama TVL adapter using repo-native patterns. The primary use case is creating new TVL adapters; narrow fixes to existing adapters are also supported when the user asks.
Step 1: Initial intake
Ask one broad question to gather context:
Tell me about the protocol, what you want added or changed on DefiLlama, why it belongs in TVL, and any chains, contracts, vaults, factories, markets, tokens, docs, oracle details, or methodology notes you already have.
After the answer, ask one unresolved question at a time. Recommend an answer when you have a defensible default. If a question can be answered by inspecting this repository or existing adapters, inspect first instead of asking. Lock each important answer before moving on to dependent decisions.
Step 2: Repository-fit gate (required before editing)
This repository (DefiLlama-Adapters) is for TVL adapters that compute TVL from on-chain data. Before editing any files, decide whether the request fits. If it does not, stop and direct the user to the correct repository:
| Request type | Correct destination |
|---|
| Volume, fees, or revenue | DefiLlama/dimension-adapters (see this repo's pull_request_template.md) |
| Listing metadata only (logo, category, links) | mail with info to metadata@defillama.com |