gate-info-defianalysis
General Rules
⚠️ STOP — You MUST read and strictly follow the shared runtime rules before proceeding.
Do NOT select or call any tool until all rules are read. These rules have the highest priority.
→ Read ./references/gate-runtime-rules.md
→ Also read ./references/info-news-runtime-rules.md for gate-info / gate-news shared rules (tool degradation, report standards, security, and output standards).
- - Only call MCP tools explicitly listed in this skill. Tools not documented here must NOT be called, even if they
exist in the MCP server.
The DeFi Ecosystem Analysis Skill. Routes to different sub-scenarios based on user intent (overview / single platform / yield / stablecoins / bridges / reserves / liquidation), each calling one or more MCP tools.
Trigger Scenarios: User asks about DeFi protocols, TVL, yield rates, stablecoins, cross-chain bridges, exchange reserves, liquidation distribution, etc.
MCP Dependencies
Required MCP Servers
| MCP Server | Status |
|---|
| Gate-Info | ✅ Required |
MCP Tools Used
Query Operations (Read-only) — use by sub-scenario; do not call tools outside the active scenario.
- - infoplatformmetricsgetdefioverview
- infoplatformmetricssearchplatforms
- infoplatformmetricsgetplatforminfo
- infoplatformmetricsgetplatformhistory
- infoplatformmetricsgetyieldpools
- infoplatformmetricsgetstablecoininfo
- infoplatformmetricsgetbridgemetrics
- infoplatformmetricsgetexchangereserves
- infoplatformmetricsgetliquidationheatmap
- infocoingetcoin_info
Authentication
- - API Key Required: No
- Credentials Source: None; this skill uses read-only Gate Info / Gate News MCP access only.
Installation Check
- - Required: Gate-Info
- Install: Use the local Gate MCP installation flow for the current host IDE before continuing.
- Continue only after the required Gate MCP server is available in the current environment.
Routing Rules
| User Intent | Keywords | Action |
|---|
| DeFi overview / TVL ranking | "DeFi overview" "TVL ranking" "top DeFi protocols" | Execute Sub-scenario A: Overview |
| Single platform deep-dive |
"Uniswap TVL" "Aave metrics" "Compound info" | Execute Sub-scenario B: Platform Detail |
| Yield / APY query | "best yield" "USDC APY" "lending rates" "where to earn" | Execute Sub-scenario C: Yield Pools |
| Stablecoin analysis | "USDT market cap" "stablecoin ranking" "USDC circulation" | Execute Sub-scenario D: Stablecoins |
| Cross-chain bridge | "bridge volume" "top bridges" "cross-chain TVL" | Execute Sub-scenario E: Bridges |
| Exchange reserves | "Binance BTC reserves" "exchange reserves" "proof of reserves" | Execute Sub-scenario F: Exchange Reserves |
| Liquidation analysis | "BTC liquidation heatmap" "where are liquidations" "liquidation density" | Execute Sub-scenario G: Liquidation Heatmap |
| Coin fundamentals (no DeFi focus) | "analyze SOL" "how is BTC" | Route to
gate-info-coinanalysis |
| Market overview | "how's the market" | Route to
gate-info-marketoverview |
Execution Workflow
Step 0: Multi-Dimension Intent Check
- - If the query is about DeFi/platform metrics, proceed with this Skill.
- If the query also involves coin fundamentals, technicals, or news beyond DeFi scope, route to
gate-info-research (if available).
Step 1: Intent Recognition & Parameter Extraction
Extract from user input:
- -
platform_name (optional): Protocol name (e.g., Uniswap, Aave, Lido) - INLINECODE6 (optional): Token/stablecoin symbol (e.g., USDC, USDT, ETH)
- INLINECODE7 (optional): Blockchain filter (e.g., Ethereum, Arbitrum)
- INLINECODE8 (optional): Exchange name (e.g., Binance, OKX)
Step 2: Call MCP Tools by Sub-scenario
Sub-scenario A: DeFi Overview
| Step | MCP Tool | Parameters | Retrieved Data | Parallel |
|---|
| 1a | INLINECODE9 | INLINECODE10 | Total TVL, volume, fees across DeFi/CEX/DEX | Yes |
| 1b |
info_platformmetrics_search_platforms |
sort_by="tvl", limit=10 | Top 10 platforms by TVL | Yes |
Sub-scenario B: Platform Detail
| Step | MCP Tool | Parameters | Retrieved Data | Parallel |
|---|
| 1a | INLINECODE13 | INLINECODE14 | Full platform metrics (TVL, volume, fees, chains) | Yes |
| 1b |
info_platformmetrics_get_platform_history |
platform_name={name}, metrics=["tvl","volume"] | Historical trend | Yes |
| 1c |
info_coin_get_coin_info |
query={token_symbol} | Platform's native token info | Yes |
Sub-scenario C: Yield Pools
| Step | MCP Tool | Parameters | Retrieved Data |
|---|
| 1 | INLINECODE19 | INLINECODE20 | Yield pool rankings with APY, TVL |
Sub-scenario D: Stablecoins
| Step | MCP Tool | Parameters | Retrieved Data |
|---|
| 1 | INLINECODE21 | INLINECODE22 | Stablecoin ranking or single coin detail with chain distribution |
Sub-scenario E: Bridges
| Step | MCP Tool | Parameters | Retrieved Data |
|---|
| 1 | INLINECODE23 | INLINECODE24 | Bridge ranking or single bridge chain breakdown |
Sub-scenario F: Exchange Reserves
| Step | MCP Tool | Parameters | Retrieved Data |
|---|
| 1 | INLINECODE25 | INLINECODE26 | Exchange on-chain reserves (BTC, ETH, etc.) |
Sub-scenario G: Liquidation Heatmap
| Step | MCP Tool | Parameters | Retrieved Data |
|---|
| 1 | INLINECODE27 | INLINECODE28 | Liquidation density by price range |
Step 3: LLM Aggregation
Generate sub-scenario-specific analysis. For overview, provide market context; for detail, provide competitive positioning; for yield, highlight risk/reward.
Step 4: Progressive Loading (Bridges & Stablecoins)
For Bridges and Stablecoins, use a list-first, detail-on-demand pattern:
- 1. First call (no
bridge_name / narrow symbol): ranking list — summary without full chain breakdown. - Second call (user follow-up): specific
bridge_name or symbol — full chain-level details.
Report Template
Template A: DeFi Overview
CODEBLOCK0
Template B: Platform Detail
CODEBLOCK1
Templates C–G (Yield / Stablecoin / Bridge / Reserve / Liquidation)
- - Summary metrics at top
- Ranked table of data
- 2–3 sentence LLM analysis
- Standard disclaimer
Decision Logic
| Condition | Assessment / next step |
|---|
| Generic DeFi market, TVL leaderboard, or “top protocols” | Sub-scenario A (Overview) |
| User names a specific protocol (Uniswap, Aave, ...) |
Sub-scenario B (Platform detail) |
| Yield, APY, lending, “where to earn” | Sub-scenario C (Yield pools) |
| Stablecoins, peg, circulation, ranking | Sub-scenario D; use progressive loading per Step 4 |
| Bridges, cross-chain TVL, bridge volume | Sub-scenario E; list-first, detail on follow-up |
| Exchange reserves, PoR, “exchange BTC holdings” | Sub-scenario F |
| Liquidations, heatmap, density by price | Sub-scenario G |
| Ambiguous intent | Ask one clarifying question or default to A |
Error Handling
| Error Type | Handling |
|---|
| Platform name not found | Suggest similar platform names; ask user to verify |
| Single Tool fails |
Skip that section; note "Data temporarily unavailable" |
| All Tools fail | Return error; suggest user try again later |
| No yield pools match criteria | Broaden search (remove chain/symbol filter); inform user |
| Exchange not supported | List supported exchanges; ask user to choose another |
| Symbol not recognized | Try matching via
info_coin_get_coin_info; ask user if unclear |
Cross-Skill Routing
| User Follow-up Intent | Route To |
|---|
| "Analyze the token" | INLINECODE34 |
| "Technical analysis of the token" |
gate-info-trendanalysis |
| "Is this protocol safe?" |
gate-info-riskcheck |
| "On-chain data for the token" |
gate-info-tokenonchain |
| "Any news about this protocol?" |
gate-news-briefing |
| "How does macro affect DeFi?" |
gate-info-macroimpact |
| "How's the market overall?" |
gate-info-marketoverview |
Safety Rules
- 1. No yield guarantees: APY/yield data is historical and subject to change; state clearly that past rates do not guarantee future returns.
- Smart contract risk: When showing yield pools or protocols, note that DeFi carries smart contract risk.
- No endorsement: Listing a protocol does not constitute an endorsement; maintain neutrality.
- Reserve disclaimers: Exchange reserve data is on-chain observable but may not reflect total assets.
- Liquidation data: Liquidation heatmaps show estimated levels, not guaranteed triggers.
- Data transparency: Label data source, update frequency, and known limitations.
- Age & eligibility: Intended for users aged 18 or above with full civil capacity in their jurisdiction.
- Data flow: The host agent processes user prompts; this skill directs read-only Gate-Info MCP tools listed above. The LLM formats answers from tool results. Aside from those MCP calls and the documented skill-update flow (GitHub URLs in General Rules and
info-news-runtime-rules.md), this skill does not invoke additional third-party data services.
gate-info-defianalysis
通用规则
⚠️ 停止 — 在继续之前,您必须阅读并严格遵守共享的运行时规则。
在阅读所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读 ./references/gate-runtime-rules.md
→ 同时阅读 ./references/info-news-runtime-rules.md 以了解 gate-info / gate-news 共享规则(工具降级、报告标准、安全性和输出标准)。
- - 仅调用此技能中明确列出的 MCP 工具。 即使 MCP 服务器中存在未在此处记录的工具,也不得调用。
DeFi 生态系统分析技能。根据用户意图(概览 / 单一平台 / 收益 / 稳定币 / 跨链桥 / 储备 / 清算)路由到不同的子场景,每个子场景调用一个或多个 MCP 工具。
触发场景:用户询问 DeFi 协议、TVL、收益率、稳定币、跨链桥、交易所储备、清算分布等。
MCP 依赖项
必需的 MCP 服务器
使用的 MCP 工具
查询操作(只读) — 按子场景使用;请勿调用活动场景之外的工具。
- - infoplatformmetricsgetdefioverview
- infoplatformmetricssearchplatforms
- infoplatformmetricsgetplatforminfo
- infoplatformmetricsgetplatformhistory
- infoplatformmetricsgetyieldpools
- infoplatformmetricsgetstablecoininfo
- infoplatformmetricsgetbridgemetrics
- infoplatformmetricsgetexchangereserves
- infoplatformmetricsgetliquidationheatmap
- infocoingetcoin_info
身份验证
- - 需要 API 密钥:否
- 凭据来源:无;此技能仅使用只读的 Gate Info / Gate News MCP 访问。
安装检查
- - 必需:Gate-Info
- 安装:在继续之前,使用当前主机 IDE 的本地 Gate MCP 安装流程。
- 仅在当前环境中所需的 Gate MCP 服务器可用后继续。
路由规则
| 用户意图 | 关键词 | 操作 |
|---|
| DeFi 概览 / TVL 排名 | DeFi 概览 TVL 排名 顶级 DeFi 协议 | 执行子场景 A:概览 |
| 单一平台深度分析 |
Uniswap TVL Aave 指标 Compound 信息 | 执行子场景 B:平台详情 |
| 收益 / APY 查询 | 最佳收益 USDC APY 借贷利率 在哪里赚取 | 执行子场景 C:收益池 |
| 稳定币分析 | USDT 市值 稳定币排名 USDC 流通量 | 执行子场景 D:稳定币 |
| 跨链桥 | 跨链桥交易量 顶级跨链桥 跨链 TVL | 执行子场景 E:跨链桥 |
| 交易所储备 | 币安 BTC 储备 交易所储备 储备证明 | 执行子场景 F:交易所储备 |
| 清算分析 | BTC 清算热力图 清算在哪里 清算密度 | 执行子场景 G:清算热力图 |
| 币种基本面(非 DeFi 重点) | 分析 SOL BTC 怎么样 | 路由到 gate-info-coinanalysis |
| 市场概览 | 市场怎么样 | 路由到 gate-info-marketoverview |
执行工作流
第 0 步:多维度意图检查
- - 如果查询是关于 DeFi/平台指标的,则继续使用此技能。
- 如果查询还涉及 DeFi 范围之外的币种基本面、技术面或新闻,则路由到 gate-info-research(如果可用)。
第 1 步:意图识别与参数提取
从用户输入中提取:
- - platform_name(可选):协议名称(例如,Uniswap、Aave、Lido)
- symbol(可选):代币/稳定币符号(例如,USDC、USDT、ETH)
- chain(可选):区块链过滤器(例如,Ethereum、Arbitrum)
- exchange(可选):交易所名称(例如,Binance、OKX)
第 2 步:按子场景调用 MCP 工具
子场景 A:DeFi 概览
| 步骤 | MCP 工具 | 参数 | 检索数据 | 并行 |
|---|
| 1a | infoplatformmetricsgetdefioverview | category=all | 跨 DeFi/CEX/DEX 的总 TVL、交易量、费用 | 是 |
| 1b |
info
platformmetricssearch
platforms | sortby=tvl, limit=10 | 按 TVL 排名前 10 的平台 | 是 |
子场景 B:平台详情
| 步骤 | MCP 工具 | 参数 | 检索数据 | 并行 |
|---|
| 1a | infoplatformmetricsgetplatforminfo | platformname={name}, scope=full | 完整平台指标(TVL、交易量、费用、链) | 是 |
| 1b |
infoplatformmetrics
getplatform
history | platformname={name}, metrics=[tvl,volume] | 历史趋势 | 是 |
| 1c | info
coinget
coininfo | query={token_symbol} | 平台的原生代币信息 | 是 |
子场景 C:收益池
| 步骤 | MCP 工具 | 参数 | 检索数据 |
|---|
| 1 | infoplatformmetricsgetyieldpools | project={name}, chain={chain}, symbol={symbol}, sort_by=apy, limit=20 | 带有 APY、TVL 的收益池排名 |
子场景 D:稳定币
| 步骤 | MCP 工具 | 参数 | 检索数据 |
|---|
| 1 | infoplatformmetricsgetstablecoininfo | symbol={symbol}, chain={chain}, limit=10 | 稳定币排名或带有链分布的单一代币详情 |
子场景 E:跨链桥
| 步骤 | MCP 工具 | 参数 | 检索数据 |
|---|
| 1 | infoplatformmetricsgetbridgemetrics | bridge_name={name}, chain={chain} | 跨链桥排名或单一跨链桥的链级细分 |
子场景 F:交易所储备
| 步骤 | MCP 工具 | 参数 | 检索数据 |
|---|
| 1 | infoplatformmetricsgetexchangereserves | exchange={exchange}, asset={asset} | 交易所链上储备(BTC、ETH 等) |
子场景 G:清算热力图
| 步骤 | MCP 工具 | 参数 | 检索数据 |
|---|
| 1 | infoplatformmetricsgetliquidationheatmap | symbol={symbol}, exchange={exchange} | 按价格区间划分的清算密度 |
第 3 步:LLM 聚合
生成特定于子场景的分析。对于概览,提供市场背景;对于详情,提供竞争定位;对于收益,突出风险/回报。
第 4 步:渐进式加载(跨链桥与稳定币)
对于跨链桥和稳定币,使用先列表、按需详情的模式:
- 1. 首次调用(无 bridgename / 窄 symbol):排名列表 — 无完整链级细分的摘要。
- 第二次调用(用户跟进):特定的 bridgename 或 symbol — 完整的链级详情。
报告模板
模板 A:DeFi 概览
markdown
DeFi 生态系统概览
生成时间:{timestamp}
市场摘要
| 指标 | 数值 | 24 小时变化 |
|---|
| DeFi 总 TVL | ${totaltvl} | {change}% |
| DEX 24 小时交易量 |
${dexvolume} | {change}% |
| 总费用(24 小时) | ${total_fees} | {change}% |
| 稳定币市值 | ${stablecoin_mcap} | {change}% |
按 TVL 排名前 10 的协议
| 排名 | 协议 | 类别 | TVL | 24 小时变化 | 链 |
|