market-analysis
Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools. Covers valuation ratios (P/S, P/F), growth screening with pct_change columns, multi-metric protocol comparison, category comparison, and cross-entity analysis. Use when users ask to compare protocols, screen for undervalued projects, analyze growth trends, or do sector analysis.
Best use case
market-analysis is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools. Covers valuation ratios (P/S, P/F), growth screening with pct_change columns, multi-metric protocol comparison, category comparison, and cross-entity analysis. Use when users ask to compare protocols, screen for undervalued projects, analyze growth trends, or do sector analysis.
Teams using market-analysis should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/defillama-official-market-analysis/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How market-analysis Compares
| Feature / Agent | market-analysis | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Patterns for DeFi market analysis, screening, and comparison using DefiLlama MCP tools. Covers valuation ratios (P/S, P/F), growth screening with pct_change columns, multi-metric protocol comparison, category comparison, and cross-entity analysis. Use when users ask to compare protocols, screen for undervalued projects, analyze growth trends, or do sector analysis.
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
AI Agent for Product Research
Browse AI agent skills for product research, competitive analysis, customer discovery, and structured product decision support.
AI Agent for SaaS Idea Validation
Use AI agent skills for SaaS idea validation, market research, customer discovery, competitor analysis, and documenting startup hypotheses.
SKILL.md Source
# DeFi Market Analysis ## Valuation Ratios Pre-computed in `defillama:get_protocol_metrics` and `defillama:get_category_metrics`: - `ps_ratio` = mcap / annualised revenue. Lower = potentially undervalued relative to revenue. - `pf_ratio` = mcap / annualised fees. Lower = more fee-efficient valuation. ## Growth Screening Use `*_pct_change` columns for momentum analysis. Values are **decimals** (0.35 = +35%, -0.13 = -13%). Available windows: `*_7d_pct_change`, `*_30d_pct_change`, `*_90d_pct_change` Metrics with pct_change: `tvl_base`, `fees_1d`, `revenue_1d`, `price`, `volume_dexs_1d` Sort by any pct_change column to find fastest movers. ## Protocol Comparison Use array params for side-by-side comparison in a single call: ``` defillama:get_protocol_metrics( protocol: ["aave", "compound-v3", "morpho"], metrics: ["tvl_base", "fees_1d", "revenue_1d", "ps_ratio"] ) ``` This returns one row per protocol, which is more efficient than calling once per protocol. ## Category Comparison Use `defillama:get_category_metrics` to compare DeFi sectors: ``` defillama:get_category_metrics( category: "Lending", metrics: ["tvl_base", "fees_1d", "protocol_count"] ) ``` Call once per category in parallel for side-by-side comparison. ## Token Sector Screening Use `defillama:get_token_prices` for token-level analysis: ``` defillama:get_token_prices(token: "coingecko:ethereum", period: "30d") ``` ## Historical Trends Use `period` for trend analysis: - Short-term: `7d` or `30d` - Medium-term: `90d` or `180d` - Long-term: `365d` - Custom range: `start_date` / `end_date` (YYYY-MM-DD) overrides `period` Historical queries return daily data points with a `date` column. ## Cross-Entity Analysis Compare across entity types using parallel tool calls: - "ETH price vs Ethereum TVL" -> `defillama:get_token_prices` + `defillama:get_chain_metrics` - "Aave TVL vs AAVE token price" -> `defillama:get_protocol_metrics` + `defillama:get_token_prices` - "Lending vs DEX category" -> two `defillama:get_category_metrics` calls in parallel ## Examples **Example 1:** User: "Most undervalued DeFi protocols by P/S ratio" Tool call: `defillama:get_protocol_metrics(sort_by: "ps_ratio asc", limit: 20, metrics: ["tvl_base", "revenue_1d", "ps_ratio", "mcap"])` **Example 2:** User: "Which protocols grew TVL most in last 30 days?" Tool call: `defillama:get_protocol_metrics(sort_by: "tvl_base_30d_pct_change desc", limit: 10, metrics: ["tvl_base", "tvl_base_30d_pct_change"])` **Example 3:** User: "Compare Aave and Compound fees" Tool call: `defillama:get_protocol_metrics(protocol: ["aave", "compound-v3"], metrics: ["tvl_base", "fees_1d", "revenue_1d"])` **Example 4:** User: "Compare Lending vs DEX fees and TVL" Tool call: `defillama:get_category_metrics(category: ["Lending", "DEX"], metrics: ["tvl_base", "fees_1d", "revenue_1d"])` **Example 5:** User: "Aave TVL trend over 90 days" Tool call: `defillama:get_protocol_metrics(protocol: "aave", metrics: ["tvl_base"], period: "90d")` **Example 6:** User: "Aave fees in Q1 2025" Tool call: `defillama:get_protocol_metrics(protocol: "aave", metrics: ["fees_1d"], start_date: "2025-01-01", end_date: "2025-03-31")`
Related Skills
okx-cex-market
This skill should be used when the user asks for 'price of BTC', 'ETH ticker', 'show me the orderbook', 'market depth', 'BTC candles', 'OHLCV chart data', 'funding rate', 'open interest', 'mark price', 'index price', 'recent trades', 'price limit', 'list instruments', 'what instruments are available', or any request to query public market data on OKX CEX. All commands are read-only and do NOT require API credentials. Do NOT use for account balance/positions (use okx-cex-portfolio), placing/cancelling orders (use okx-cex-trade), or grid/DCA bots (use okx-cex-bot).
okx-dex-market
This skill should be used when the user asks about live on-chain market data: token prices, price charts (K-line, OHLC), trade history, or swap activity. Also covers on-chain signals — smart money, whale, and KOL wallet activity, large trades, and signal-supported chains. For meme tokens: scanning new launches (扫链/trenches,golden dog, alpha, pump fun), checking dev wallets, developer reputation, rug pull detection, tokens by same creator, bundle/sniper detection, bonding curves, and meme token safety checks. For token search, market cap, liquidity, trending tokens, or holder distribution, use okx-dex-token instead.
recipe-morning-market-brief
Generate a morning market summary with prices, volume, and portfolio state.
kraken-market-intel
Read market state with low-noise data pulls and streaming updates.
gate-info-trendanalysis
Trend and technical analysis. Use this skill whenever the user asks for technical or trend analysis of one coin. Trigger phrases include: technical analysis, K-line, RSI, MACD, trend, support, resistance. MCP tools: info_markettrend_get_kline, info_markettrend_get_indicator_history, info_markettrend_get_technical_analysis, info_marketsnapshot_get_market_snapshot.
gate-info-marketoverview
Market overview. Use this skill whenever the user asks about overall market. Trigger phrases include: how is the market, market overview, what is happening in crypto. MCP tools: info_marketsnapshot_get_market_overview, info_coin_get_coin_rankings, info_platformmetrics_get_defi_overview, news_events_get_latest_events, info_macro_get_macro_summary.
gate-exchange-marketanalysis
The market analysis function of Gate Exchange, such as liquidity, momentum, liquidation, funding arbitrage, basis, manipulation risk, order book explainer, slippage simulation. Use when the user asks about liquidity, depth, slippage, buy/sell pressure, liquidation, funding rate arbitrage, basis/premium, manipulation risk, order book explanation, or slippage simulation (e.g. market buy $X slippage). Trigger phrases: liquidity, depth, slippage, momentum, buy/sell pressure, liquidation, squeeze, funding rate, arbitrage, basis, premium, manipulation, order book, spread, slippage simulation.
gate-dex-market
Gate DEX market data skill. Uses AK/SK authentication to call Gate DEX OpenAPI, providing token and market quote read-only queries. Use when users mention quotes, prices, token information, rankings, security audits.
gate-info-coinanalysis
Coin comprehensive analysis. Use this skill whenever the user asks to analyze a single coin. Trigger phrases include: analyze, how is, worth buying, look at. MCP tools: info_coin_get_coin_info, info_marketsnapshot_get_market_snapshot, info_markettrend_get_technical_analysis, news_feed_search_news, news_feed_get_social_sentiment.
market-intel
On-chain and institutional market intelligence — the structural layer beneath price. Use this skill whenever the user asks about: whale activity, exchange flows, token unlocks, ETF inflows/outflows, institutional buying or selling, DeFi TVL, yield opportunities, DEX trending tokens, meme coins, new token launches, market cycle indicators, AHR999, Pi Cycle, rainbow chart, accumulation zone, BTC market cycle, is now a good time to DCA, Coinbase premium, stablecoin supply, on-chain health, ETH gas, BTC fees, mempool, market cap rankings, or anything about what large holders and institutions are doing with their coins.
crypto-market-rank
Crypto market rankings and leaderboards. Query trending tokens, top searched tokens, Binance Alpha tokens, tokenized stocks, social hype sentiment ranks, smart money inflow token rankings, top meme token rankings from Pulse launchpad, and top trader PnL leaderboards. Use this skill when users ask about token rankings, market trends, social buzz, meme rankings, breakout meme tokens, or top traders.
uniswap-pool-analysis
Analyze Uniswap pool data including liquidity distribution, fee tiers, tick ranges, and TVL. Use when the user asks about pool metrics, liquidity analysis, or wants to query on-chain pool state.