defi-analyst

DeFi research and analysis via Tavily MCP, GeckoTerminal API, and DeFiLlama. Use for protocol research, TVL tracking, yield analysis, token discovery, and competitive landscape research.

3,891 stars
Complexity: medium

About this skill

The DeFi Analyst skill is a powerful tool designed for in-depth research and analysis within the decentralized finance (DeFi) ecosystem. It integrates multiple robust data sources: Tavily for general web research and advanced search queries, GeckoTerminal API for granular token price and liquidity pool data, and DeFiLlama for aggregate protocol metrics such as Total Value Locked (TVL), lending rates, and DEX overviews. This combined capability allows AI agents to gather and synthesize critical information efficiently across the DeFi landscape. Users can deploy this skill to perform a wide array of DeFi-related tasks. This includes generating detailed overviews of specific protocols, tracking the historical and current TVL of various platforms, analyzing yield opportunities across different lending pools and decentralized exchanges (DEXes), identifying new or trending tokens, and understanding the competitive positioning of various DeFi projects. By centralizing access to these diverse data sources, the skill significantly streamlines the research process, enabling faster and more informed decision-making. Why use this skill? It empowers AI agents to act as specialized DeFi research assistants. Instead of manually querying multiple platforms or sifting through vast amounts of information, agents equipped with this skill can quickly retrieve structured data, perform comparative analysis, and generate actionable insights. This is invaluable for investors, researchers, and developers who need to stay abreast of the rapidly evolving DeFi space and make data-driven decisions.

Best use case

The primary use case is providing comprehensive, data-driven insights into the decentralized finance (DeFi) ecosystem for researchers, investors, and analysts. It enables these users to quickly gather crucial data on protocols, tokens, and market trends, facilitating informed decision-making regarding investments, project development, or competitive strategy.

DeFi research and analysis via Tavily MCP, GeckoTerminal API, and DeFiLlama. Use for protocol research, TVL tracking, yield analysis, token discovery, and competitive landscape research.

Users should expect well-structured reports, data points, and summarized insights on DeFi protocols, TVL, yields, token information, and competitive analysis, derived from multiple external data sources.

Practical example

Example input

Research the Aave V3 protocol, including its current TVL, recent performance, and available lending yields. Also, find the top 5 trending pools on the Ethereum network.

Example output

```json
{
  "aave_v3_overview": "Aave V3 is a decentralized non-custodial liquidity protocol for earning interest on deposits and borrowing assets. It features enhanced capital efficiency and risk management compared to V2.",
  "aave_tvl": {
    "name": "Aave",
    "tvl": 5000000000,
    "change_1d": 0.5,
    "change_7d": -2.1
  },
  "top_eth_pools": [
    {"pool": "WETH/USDC", "volume_24h": 12000000, "tvl": 50000000},
    {"pool": "UNI/ETH", "volume_24h": 8000000, "tvl": 30000000}
  ]
}
```

When to use this skill

  • When needing a deep dive into a specific DeFi protocol's mechanics, yields, or TVL.
  • To track the performance and trends of various DeFi protocols and tokens.
  • For competitive analysis of the DeFi landscape, identifying market leaders and emerging projects.
  • When researching new yield farming opportunities or token discovery on different networks.

When not to use this skill

  • For executing direct trades or financial transactions on-chain.
  • When real-time, millisecond-level price action data is critical for high-frequency trading.
  • If you lack the necessary API keys (Tavily) or are unwilling to install `mcporter`, `curl`, and `jq`.
  • For tasks entirely unrelated to DeFi or financial data analysis.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/defi-analyst/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/0x-wzw/defi-analyst/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/defi-analyst/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How defi-analyst Compares

Feature / Agentdefi-analystStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexitymediumN/A

Frequently Asked Questions

What does this skill do?

DeFi research and analysis via Tavily MCP, GeckoTerminal API, and DeFiLlama. Use for protocol research, TVL tracking, yield analysis, token discovery, and competitive landscape research.

How difficult is it to install?

The installation complexity is rated as medium. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# DeFi Analyst Skill

Research DeFi protocols, track yields, analyze TVL trends, and monitor the competitive landscape.

## Prerequisites

- **Tavily API key** — free at [tavily.io](https://tavily.io)
- **mcporter** — OpenClaw skill for MCP tool calling
- **curl + jq** — for GeckoTerminal/DeFiLlama API calls

### Setup Tavily MCP

```bash
mcporter config add tavily https://mcp.tavily.com/mcp/?tavilyApiKey=<YOUR_KEY>
```

## Core Operations

### Protocol Research (Tavily)

```bash
mcporter call tavily.tavily_search query="Aave V3 protocol overview yield lending" max_results=5 search_depth="advanced"
```

### TVL Tracking (DeFiLlama)

```bash
# Get protocol TVL
curl -s "https://api.llama.fi/protocol/aave" | jq '{name: .name, tvl: .tvl, change_1d: .change_1d, change_7d: .change_7d}'

# Top DeFi protocols by TVL
curl -s "https://api.llama.fi/tvl" | jq '.[0:10]'

# Lending rates overview
curl -s "https://api.llama.fi/overview/lending" | jq '.categories[0:10]'
```

### Token Price + Volume (GeckoTerminal)

```bash
# Pool data for a token
curl -s "https://api.geckoterminal.com/api/v2/networks/eth/tokens/0x.../info" | jq '{name, base_volume, quote_volume, pool_count}'

# Trending pools on a network
curl -s "https://api.geckoterminal.com/api/v2/networks/eth/pools" | jq '.[0:5] | .[].attributes | {pool: .name, volume_24h: .volume_usd.h24s, tvl: .tvl_usd}'

# Specific pool APY
curl -s "https://api.geckoterminal.com/api/v2/networks/bsc/pools/0x..." | jq '.data.attributes | {apy: .apy_7d, tvl: .tvl_usd}'
```

### DEX Aggregator Research

```bash
# Compare yields across DEXes
curl -s "https://api.llama.fi/overview/dex?exclude_bridge=true" | jq '.dexes[0:5]'
```

## Analyst Agents

### Technical Analyst
On top of classic candlestick patterns, pulls 24h volume delta, liquidity depth ratios, and cross DEX price variance. Output: `{direction, confidence, key_levels}`.

### Sentiment Analyst
Aggregates social sentiment via Tavily (`{token} sentiment today`) + Moltbook agent network pulse. Output: sentiment score (-1 to +1) with weighted breakdown by source credibility.

### Debate Round
Bull Agent → Tavily for bull cases + on-chain growth metrics.
Bear Agent → Tavily for risk factors + whale wallet outflows.
Synthesized output: `{bull_probability, bear_probability, reconciled_direction, confidence}`.

## Use Cases

### Research a Protocol

```bash
# 1. TVL + metrics
TVL=$(curl -s "https://api.llama.fi/protocol/your-protocol" | jq '.tvl')
# 2. Recent news via Tavily
mcporter call tavily.tavily_search query="protocol audit exploit update 2026" max_results=5
# 3. Competitor comparison
mcporter call tavily.tavily_search query="protocol vs aave vs compound defi" max_results=3
```

### Track Yield Opportunities

```bash
# Get all lending rates
curl -s "https://api.llama.fi/overview/lending" | jq '.categories[0:10]'
```

### DeFi Landscape Analysis

```bash
mcporter call tavily.tavily_search query="DeFi trends 2026 yield farming liquid staking real yield" max_results=10 search_depth="advanced"
```

## Rate Limits

- GeckoTerminal: 30 req/min, no auth needed
- DeFiLlama: ~60 req/min, public API
- Tavily: 20 req/min free tier, 1000 req/month free

Related Skills

Data Analyst — AfrexAI ⚡📊

3891
from openclaw/skills

**Transform raw data into decisions. Not just charts — answers.**

Data & Research

us-stock-analyst

3891
from openclaw/skills

Professional US stock analysis with financial data, news, social sentiment, and multi-model AI. Comprehensive reports at $0.02-0.10 per analysis.

Data & Research

tavily-search

3891
from openclaw/skills

Use Tavily API for real-time web search and content extraction. Use when: user needs real-time web search results, research, or current information from the web. Requires Tavily API key.

Data & Research

baidu-search

3891
from openclaw/skills

Search the web using Baidu AI Search Engine (BDSE). Use for live information, documentation, or research topics.

Data & Research

notebooklm

3891
from openclaw/skills

Google NotebookLM 非官方 Python API 的 OpenClaw Skill。支持内容生成(播客、视频、幻灯片、测验、思维导图等)、文档管理和研究自动化。当用户需要使用 NotebookLM 生成音频概述、视频、学习材料或管理知识库时触发。

Data & Research

openclaw-search

3891
from openclaw/skills

Intelligent search for agents. Multi-source retrieval with confidence scoring - web, academic, and Tavily in one unified API.

Data & Research

aisa-tavily

3891
from openclaw/skills

AI-optimized web search via AIsa's Tavily API proxy. Returns concise, relevant results for AI agents through AIsa's unified API gateway.

Data & Research

Market Sizing — TAM/SAM/SOM Calculator

3891
from openclaw/skills

Build defensible market sizing for any product, pitch deck, or business case. Top-down and bottom-up methodologies combined.

Data & Research

Competitor Monitor

3891
from openclaw/skills

Tracks and analyzes competitor moves — pricing changes, feature launches, hiring, and positioning shifts

Data & Research

afrexai-competitive-intel

3891
from openclaw/skills

Complete competitive intelligence system — market mapping, product teardowns, pricing intel, win/loss analysis, battlecards, and strategic monitoring. Goes far beyond SEO to cover the full business landscape.

Data & Research

trending-news-aggregator

3891
from openclaw/skills

智能热点新闻聚合器 - 自动抓取多平台热点新闻, AI分析趋势,支持定时推送和热度评分。 核心功能: - 每天自动聚合多平台热点(微博、知乎、百度等) - 智能分类(科技、财经、社会、国际等) - 热度评分算法 - 增量检测(标记新增热点) - AI趋势分析

Data & Research

search-cluster

3891
from openclaw/skills

Aggregated search aggregator using Google CSE, GNews RSS, Wikipedia, Reddit, and Scrapling.

Data & Research