gate-info-defianalysis
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesegate-info-defianalysis
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 gate-runtime-rules.md
→ Also read info-news-runtime-rules.md for gate-info / gate-news-specific rules (tool degradation, report standards, security, routing degradation, per-skill version checks when is present, and legacy wrapper routing).
scripts/- 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.
- Legacy / routing mode: when Step 0 emits , use only the MCP tools listed in this file. When Step 0 emits
__FALLBACK__, do not call those MCP tools; delegate to the mapped primary skill per Step 0.__ROUTE_CLI__
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.
Per-skill updates: This directory includes and may include . ClawHub packages uploaded to the marketplace often omit (upload-page restriction); GitHub / Bitbucket source trees keep both. Policy: info-news-runtime-rules.md §1. The Trigger update steps below apply in addition to gate-runtime-rules.md; when scripts are present, use this flow for version checks before execution.
scripts/update-skill.shscripts/update-skill.ps1update-skill.ps1Update check — user visibility: Technical failures during version check (missing script, sandbox, network, non-zero exit, no parseable line) must not be explained to the user; continue with Execution per info-news-runtime-rules.md. Only successful / outcomes may be summarized (including / strict exit 3, which is still a success path that requires user confirmation before ). Do not auto-download from the network. Static reference if is missing: canonical scripts live in gate/gate-skills under (same as frontmatter).
Result=checkapplyupdate_availableapplyupdate-skill.*.ps1skills/<name>/scripts/<name>⚠️ 停止 — 你必须先阅读并严格遵守共享的运行时规则,然后再继续。
在阅读完所有规则之前,请勿选择或调用任何工具。这些规则具有最高优先级。
→ 阅读gate-runtime-rules.md
→ 同时阅读info-news-runtime-rules.md以了解gate-info / gate-news专属规则(工具降级、报告标准、安全、路由降级、当存在时的逐技能版本检查,以及旧版包装器路由)。
scripts/- 仅调用本技能中明确列出的MCP工具。即使MCP服务器中存在未在此处记录的工具,也不得调用。
- 旧版/路由模式:当步骤0输出时,仅使用本文件中列出的MCP工具。当步骤0输出
__FALLBACK__时,请勿调用这些MCP工具;根据步骤0将请求委托给映射的主技能。__ROUTE_CLI__
DeFi生态系统分析Skill。根据用户意图(概览/单一平台/收益率/稳定币/跨链桥/储备/清算)路由至不同子场景,每个子场景调用一个或多个MCP工具。
触发场景:用户询问DeFi协议、TVL、收益率、稳定币、跨链桥、交易所储备、清算分布等相关内容。
逐技能更新:本目录包含,可能还包含。上传至市场的ClawHub包通常会省略(受上传页面限制);GitHub / Bitbucket源码树会保留这两个文件。相关政策:info-news-runtime-rules.md §1。以下触发更新步骤是对gate-runtime-rules.md的补充;当存在脚本时,在执行前需使用此流程进行版本检查。
scripts/update-skill.shscripts/update-skill.ps1update-skill.ps1更新检查 — 用户可见性:版本检查期间的技术故障(缺失脚本、沙箱问题、网络问题、非零退出码、无可解析的行)不得向用户解释;需根据info-news-runtime-rules.md继续执行。仅成功的 / 结果可进行汇总(包括**** / 严格的退出码3,这仍属于需要用户确认后才能执行的成功路径)。请勿从网络自动下载。静态参考:若缺失文件,标准脚本位于gate/gate-skills的目录下(与前置元数据中的名称一致)。
Result=checkapplyupdate_availableapplyupdate-skill.*.ps1skills/<name>/scripts/<name>Step 0 — Wrapper routing probe
步骤0 — 包装器路由探测
This legacy skill is a compatibility alias for the primary CLI skill
.
gate-info-web3Before Trigger update, MCP tool selection, or any legacy Execution Workflow,
run a deterministic shell probe:
bash
PRIMARY_SKILL="gate-info-web3"
HAS_PRIMARY=0
for root in \
"$HOME/.cursor/skills" \
"$HOME/.codex/skills" \
"$HOME/.openclaw/skills" \
"$HOME/.agents/skills" \
"$HOME/.gemini/antigravity/skills"
do
if [ -f "$root/$PRIMARY_SKILL/SKILL.md" ]; then
HAS_PRIMARY=1
break
fi
done
if command -v gate-cli >/dev/null 2>&1 && [ "$HAS_PRIMARY" = "1" ]; then
echo "__ROUTE_CLI__"
else
echo "__FALLBACK__"
fiInterpretation:
- → stop here. Do not run Trigger update or the legacy MCP sections below. Follow
__ROUTE_CLI__and its playbook contract. Carry over the minimum context: protocol/platform intent plus any availablehttps://github.com/gate/gate-skills/blob/master/skills/gate-info-web3/SKILL.md,platform,token,asset, orexchangehints from the user.symbol - → continue with Trigger update and the legacy MCP workflow in this file.
__FALLBACK__
本旧版技能是主CLI技能的兼容别名。
gate-info-web3在触发更新、选择MCP工具或执行任何旧版工作流程之前,运行确定性shell探测:
bash
PRIMARY_SKILL="gate-info-web3"
HAS_PRIMARY=0
for root in \
"$HOME/.cursor/skills" \
"$HOME/.codex/skills" \
"$HOME/.openclaw/skills" \
"$HOME/.agents/skills" \
"$HOME/.gemini/antigravity/skills"
do
if [ -f "$root/$PRIMARY_SKILL/SKILL.md" ]; then
HAS_PRIMARY=1
break
fi
done
if command -v gate-cli >/dev/null 2>&1 && [ "$HAS_PRIMARY" = "1" ]; then
echo "__ROUTE_CLI__"
else
echo "__FALLBACK__"
fi解释:
- → 在此处停止。请勿运行触发更新或以下旧版MCP部分内容。遵循
__ROUTE_CLI__及其操作手册约定。传递最少上下文:协议/平台意图,以及从用户输入中获取的任何可用https://github.com/gate/gate-skills/blob/master/skills/gate-info-web3/SKILL.md、platform、token、asset或exchange提示信息。symbol - → 继续执行触发更新和本文件中的旧版MCP工作流程。
__FALLBACK__
Trigger update (with Execution)
触发更新(含执行)
Default (PD / blocking): On each trigger, run first without . The script only compares local vs remote; if , it does not overwrite files. STOP — ask the user whether to update before any , , or skill Execution. In sandboxes (e.g. Cursor), use full / all permissions when later running . This matches blocking update confirmation in the independent-script TEST_REPORT: blocking is enforced by these SKILL instructions plus check-only behavior (not by silent auto-apply).
checkGATE_SKILL_UPDATE_MODE=autoResult=update_availableapplyrunapplyStrict check (Agent / IDE — recommended on ): Use . When , exits 3 and prints — it stops only that shell step. Hard rule: after you ask the user, end this assistant turn; do not call , , or MCP in the same message. applies without a prior user step — do not use in chat for the blocking flow; use → user confirms → .
checkGATE_SKILL_CHECK_STRICT=1Result=update_availablecheckGATE_SKILL_CHECK_EXIT=3applyrunrunruncheckapply默认(产品开发/阻塞模式):每次触发时,先运行**,且不设置**。脚本仅对比本地版本与远程版本;若返回,则不会覆盖文件。停止 — 在执行任何**、或技能执行之前,询问用户是否进行更新。在沙箱环境(如Cursor)中,后续运行时需使用完全/所有权限**。这与独立脚本TEST_REPORT中的阻塞更新确认一致:阻塞由这些SKILL指令加上仅检查行为强制执行(而非静默自动应用)。
checkGATE_SKILL_UPDATE_MODE=autoResult=update_availableapplyrunapply严格检查(Agent/IDE — 推荐在时使用):设置**。当返回时,会退出并返回码3**,同时打印**** — 仅停止该shell步骤。硬性规则:询问用户后,结束本次助手对话轮次;请勿在同一条消息中调用**、或MCP工具。会在无用户前置步骤的情况下应用更新 — 在阻塞流程的聊天场景中请勿使用;请使用 → 用户确认 → **流程。
checkGATE_SKILL_CHECK_STRICT=1Result=update_availablecheckGATE_SKILL_CHECK_EXIT=3applyrunrunruncheckapplyStep 1 — Check
步骤1 — 检查
Install root: / read . Typical : , , , , . Single-arg: the script resolves in that order when exists; otherwise is . Workspace-only trees need two-arg / with explicit .
checkapply$DEST/SKILL.md$SKILL_ROOT$HOME/.cursor/skills/<name>/$HOME/.codex/skills/<name>/$HOME/.openclaw/skills/<name>/$HOME/.agents/skills/<name>/$HOME/.gemini/antigravity/skills/<name>/DESTSKILL.mdDESTscripts/../checkapplyDESTAgent selection rules (run at most one of the fenced examples below; choose by OS and files under ):
$SKILL_ROOT/scripts/- macOS / Linux / WSL / Git Bash: If exists → use only the Bash example.
update-skill.sh - Windows (native PowerShell): If exists → use only the PowerShell example.
update-skill.ps1 - Windows without (typical ClawHub install): If only
.ps1exists → try WSL or Git Bash (update-skill.sh) using the same command shape as the Bash example. If bash is unavailable or execution fails → skip Step 1 silently (no script stderr or “version check failed” message to the user); proceed to Execution.bash - Neither script exists: Skip Step 1 silently; proceed to Execution. Do not invent or run
GATE_SKILL_CONFIRM_TOKEN/apply.revoke-pending
Bash (blocking — no auto; example Cursor):
bash
GATE_SKILL_CHECK_STRICT=1 bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" check "gate-info-defianalysis"PowerShell:
powershell
$env:GATE_SKILL_CHECK_STRICT = '1'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" check "gate-info-defianalysis"Result semantics: = no action. = remote newer; with blocking flow, do not apply until the user agrees. = could not compare — proceed with current version per info-news-runtime-rules.md; do not surface technical check failure details to the user.
skippedupdate_availablecheck_failedAgent parse (stdout): . → Step 2 before Execution. → no block from the check script.
GATE_SKILL_UPDATE_AGENT_ACTION=…BLOCK_UNTIL_USER_CONFIRMS_UPDATECONTINUE_SKILL_EXECUTION安装根目录: / 会读取**。典型的:、、、、。单参数模式:当存在时,脚本会按上述顺序解析;否则为。仅工作区的目录树需要双参数模式的** / ,并指定明确的****。
checkapply$DEST/SKILL.md$SKILL_ROOT$HOME/.cursor/skills/<name>/$HOME/.codex/skills/<name>/$HOME/.openclaw/skills/<name>/$HOME/.agents/skills/<name>/$HOME/.gemini/antigravity/skills/<name>/SKILL.mdDESTDESTscripts/../checkapplyDESTAgent选择规则(以下 fenced 示例最多运行一个;根据操作系统和下的文件选择):
$SKILL_ROOT/scripts/- macOS / Linux / WSL / Git Bash:若存在→ 仅使用Bash示例。
update-skill.sh - Windows(原生PowerShell):若存在→ 仅使用PowerShell示例。
update-skill.ps1 - Windows无文件(典型ClawHub安装):若仅存在
.ps1→ 尝试使用WSL或Git Bash(update-skill.sh)运行与Bash示例相同格式的命令。若bash不可用或执行失败 → 静默跳过步骤1(不向用户显示脚本错误或“版本检查失败”消息);继续执行后续流程。bash - 两个脚本都不存在:静默跳过步骤1;继续执行后续流程。请勿自行生成或运行
GATE_SKILL_CONFIRM_TOKEN/apply。revoke-pending
Bash(阻塞模式 — 无自动更新;Cursor示例):
bash
GATE_SKILL_CHECK_STRICT=1 bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" check "gate-info-defianalysis"PowerShell:
powershell
$env:GATE_SKILL_CHECK_STRICT = '1'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" check "gate-info-defianalysis"结果语义: = 无操作。 = 远程版本更新;在阻塞模式下,需获得用户同意后再应用更新。 = 无法对比版本 — 根据info-news-runtime-rules.md继续使用当前版本;请勿向用户展示技术检查失败的细节。
skippedupdate_availablecheck_failedAgent解析(标准输出):。 → 执行前先进行步骤2。 → 检查脚本无阻塞,可继续执行。
GATE_SKILL_UPDATE_AGENT_ACTION=…BLOCK_UNTIL_USER_CONFIRMS_UPDATECONTINUE_SKILL_EXECUTIONStep 2 — Confirm or Reject (blocking)
步骤2 — 确认或拒绝(阻塞模式)
Runtime: Use the same shell family for Step 2 as for Step 1 (Bash vs PowerShell). If Step 1 was skipped, do not run or .
applyrevoke-pendingIf :
update_available-
STOP — do NOT proceed to Execution yet.
-
Inform the user (e.g. newer version available; summarize if helpful).
-
Wait for the user’s reply — blocking step.Hard rule (Cursor / Agent): Whenreports
check, orupdate_available, or strictBLOCK_UNTIL_USER_CONFIRMS_UPDATE, end this turn after asking. Only in the user’s next message runexit 3(if they agree) orapply(if they decline). Do not chainrevoke-pendingin the same turn asapplyfor this flow.check- User agrees → run with
applyfrom strictGATE_SKILL_CONFIRM_TOKENstdout when required, then Execution.check - User declines → , then Execution on the current install.
revoke-pending
- User agrees → run
Two-step gate (strict ): / (without ) fail until matches . User decline → .
checkapplyrunGATE_SKILL_UPDATE_MODE=autoGATE_SKILL_CONFIRM_TOKEN.gate-skill-apply-tokenrevoke-pendingbash
GATE_SKILL_CONFIRM_TOKEN="<paste from check stdout>" bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" apply "gate-info-defianalysis"bash
bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" revoke-pending "gate-info-defianalysis"powershell
$env:GATE_SKILL_CONFIRM_TOKEN = '<paste from check stdout>'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" apply "gate-info-defianalysis"powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" revoke-pending "gate-info-defianalysis"If Step 1 was not strict (no pending token): without is allowed.
applyGATE_SKILL_CONFIRM_TOKENIf or : no update step; proceed to Execution.
skippedcheck_failed运行时:步骤2使用与步骤1相同的shell类型(Bash或PowerShell)。若步骤1被跳过,请勿运行或。
applyrevoke-pending若返回:
update_available-
停止 — 暂不继续执行后续流程。
-
告知用户(例如:有新版本可用;如有帮助可简要说明更新内容)。
-
等待用户回复 — 阻塞步骤。硬性规则(Cursor/Agent):当返回**
check、update_available或严格模式下的BLOCK_UNTIL_USER_CONFIRMS_UPDATE时,询问用户后结束本次对话轮次**。仅在用户的下一条消息中运行**退出码3(若用户同意)或apply(若用户拒绝)。在阻塞流程中,请勿在同一次对话轮次中连续执行revoke-pending和check**。apply- 用户同意 → 运行**,必要时使用严格模式下
apply标准输出中的check**,然后执行后续流程。GATE_SKILL_CONFIRM_TOKEN - 用户拒绝 → 运行****,然后基于当前安装版本执行后续流程。
revoke-pending
- 用户同意 → 运行**
两步验证(严格模式): / (未设置**)在与匹配前会执行失败**。用户拒绝时 → 运行****。
checkapplyrunGATE_SKILL_UPDATE_MODE=autoGATE_SKILL_CONFIRM_TOKEN.gate-skill-apply-tokenrevoke-pendingbash
GATE_SKILL_CONFIRM_TOKEN="<粘贴check输出中的令牌>" bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" apply "gate-info-defianalysis"bash
bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" revoke-pending "gate-info-defianalysis"powershell
$env:GATE_SKILL_CONFIRM_TOKEN = '<粘贴check输出中的令牌>'
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" apply "gate-info-defianalysis"powershell
powershell -ExecutionPolicy Bypass -File "$env:USERPROFILE\.cursor\skills\gate-info-defianalysis\scripts\update-skill.ps1" revoke-pending "gate-info-defianalysis"若步骤1未使用严格模式(无待处理令牌):允许不携带**运行**。
GATE_SKILL_CONFIRM_TOKENapply若返回或:无需执行更新步骤;继续执行后续流程。
skippedcheck_failedOptional — GATE_SKILL_UPDATE_MODE=auto
GATE_SKILL_UPDATE_MODE=auto可选 — GATE_SKILL_UPDATE_MODE=auto
GATE_SKILL_UPDATE_MODE=autoFor CI / unattended automation only: setting on makes the script apply immediately when the remote is newer — no user confirmation and incompatible with blocking update confirmation tests. Do not use on when reproducing the blocking PD flow.
GATE_SKILL_UPDATE_MODE=autocheckautocheck仅适用于CI/无人值守自动化:在**时设置,当远程版本更新时,脚本会立即应用更新** — 无需用户确认,且与阻塞更新确认测试不兼容。在复现阻塞模式的产品开发流程时,请勿在**时使用**模式。
checkGATE_SKILL_UPDATE_MODE=autocheckautoParameters
参数
- name: Frontmatter above; must match
nameon gate-skills.skills/<name>/ - Invoke: Use (or
$SKILL_ROOT/scripts/update-skill.sh) where.ps1is this skill — e.g.$SKILL_ROOT/SKILL.md,~/.cursor/skills/<name>,~/.codex/skills/<name>,~/.openclaw/skills/<name>,~/.agents/skills/<name>; do not treat~/.gemini/antigravity/skills/<name>(or any host root without~/.cursor) as the install. With one arg, the script resolvesskills/<name>/SKILL.mdin that order before falling back to the script’s directory; workspace installs need explicit$SKILL_ROOT. Two-argDEST/check/apply: canonical order is absoluterevoke-pending(skill root) first, thenDEST;name/update-skill.shauto-swap when only one normalized path containsupdate-skill.ps1(e.g. agent passesSKILL.mdthen path).name - ClawHub vs full tree: Installs without may copy it from gate/gate-skills under
update-skill.ps1(manual only; agents must not auto-download).skills/<name>/scripts/
Do not dump raw script logs into the user-facing reply except when debugging. On exit 3 (strict), do not run Execution until Step 2 is resolved. On or failure, still run Execution when appropriate per runtime rules.
checkcheck_failedapply- name:上方前置元数据中的;必须与gate-skills上的
name路径匹配。skills/<name>/ - 调用方式:使用**(或
$SKILL_ROOT/scripts/update-skill.sh),其中.ps1为本技能文件 — 例如$SKILL_ROOT/SKILL.md、~/.cursor/skills/<name>、~/.codex/skills/<name>、~/.openclaw/skills/<name>、~/.agents/skills/<name>;请勿将~/.gemini/antigravity/skills/<name>(或任何不含~/.cursor的主机根目录)视为安装目录。单参数模式下,脚本会按上述顺序解析skills/<name>/SKILL.md,若未找到则回退到脚本所在目录;工作区安装需使用双参数模式的$SKILL_ROOT** /check/apply,并指定明确的**revoke-pending。双参数模式的DEST/check/apply:标准顺序为绝对路径revoke-pending(技能根目录)在前**,然后是**DEST;当只有一个标准化路径包含name时,SKILL.md/update-skill.sh会自动交换参数顺序**(例如Agent传递update-skill.ps1然后是路径)。name - ClawHub与完整目录树:无的安装可从gate/gate-skills的
update-skill.ps1目录手动复制该文件;Agent不得自动下载。skills/<name>/scripts/
除非调试,否则请勿将原始脚本日志输出到用户可见的回复中。在严格模式下**退出码3时,需先完成步骤2才能执行后续流程。在或失败**时,仍需根据运行时规则在适当情况下执行后续流程。
checkcheck_failedapplyMCP Dependencies
MCP依赖
Legacy path only — this section applies when Step 0 emitted .
__FALLBACK__仅适用于旧版路径 — 当步骤0输出时,本部分内容生效。
__FALLBACK__Required MCP Servers
必需的MCP服务器
| MCP Server | Status |
|---|---|
| Gate-Info | ✅ Required |
| MCP服务器 | 状态 |
|---|---|
| Gate-Info | ✅ 必填 |
MCP Tools Used
使用的MCP工具
Query Operations (Read-only) — use by sub-scenario; do not call tools outside the active scenario.
- info_platformmetrics_get_defi_overview
- info_platformmetrics_search_platforms
- info_platformmetrics_get_platform_info
- info_platformmetrics_get_platform_history
- info_platformmetrics_get_yield_pools
- info_platformmetrics_get_stablecoin_info
- info_platformmetrics_get_bridge_metrics
- info_platformmetrics_get_exchange_reserves
- info_platformmetrics_get_liquidation_heatmap
- info_coin_get_coin_info
查询操作(只读) — 按子场景使用;请勿调用当前场景外的工具。
- info_platformmetrics_get_defi_overview
- info_platformmetrics_search_platforms
- info_platformmetrics_get_platform_info
- info_platformmetrics_get_platform_history
- info_platformmetrics_get_yield_pools
- info_platformmetrics_get_stablecoin_info
- info_platformmetrics_get_bridge_metrics
- info_platformmetrics_get_exchange_reserves
- info_platformmetrics_get_liquidation_heatmap
- info_coin_get_coin_info
Authentication
认证
- API Key Required: No
- Credentials Source: None; this skill uses read-only Gate Info / Gate News MCP access only.
- 是否需要API密钥:否
- 凭证来源:无;本技能仅使用只读的Gate Info / Gate News MCP访问权限。
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.
- 必需组件:Gate-Info
- 安装方式:继续之前,请使用当前主机IDE的本地Gate MCP安装流程完成安装。
- 仅当当前环境中可用所需的Gate MCP服务器时,才可继续执行。
Routing Rules
路由规则
Legacy path only — when Step 0 emitted , routing is delegated to
.
__ROUTE_CLI__gate-info-web3| 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 |
| Market overview | "how's the market" | Route to |
仅适用于旧版路径 — 当步骤0输出时,路由由处理。
__ROUTE_CLI__gate-info-web3| 用户意图 | 关键词 | 操作 |
|---|---|---|
| DeFi概览/TVL排名 | "DeFi overview" "TVL ranking" "top DeFi protocols" | 执行子场景A:概览 |
| 单一平台深度分析 | "Uniswap TVL" "Aave metrics" "Compound info" | 执行子场景B:平台详情 |
| 收益率/APY查询 | "best yield" "USDC APY" "lending rates" "where to earn" | 执行子场景C:收益池 |
| 稳定币分析 | "USDT market cap" "stablecoin ranking" "USDC circulation" | 执行子场景D:稳定币 |
| 跨链桥 | "bridge volume" "top bridges" "cross-chain TVL" | 执行子场景E:跨链桥 |
| 交易所储备 | "Binance BTC reserves" "exchange reserves" "proof of reserves" | 执行子场景F:交易所储备 |
| 清算分析 | "BTC liquidation heatmap" "where are liquidations" "liquidation density" | 执行子场景G:清算热力图 |
| 代币基本面(无DeFi聚焦) | "analyze SOL" "how is BTC" | 路由至 |
| 市场概览 | "how's the market" | 路由至 |
Execution Workflow
执行工作流程
Legacy path only — this section applies when Step 0 emitted .
__FALLBACK__仅适用于旧版路径 — 当步骤0输出时,本部分内容生效。
__FALLBACK__Step 0: Multi-Dimension Intent Check
步骤0:多维度意图检查
- 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 (if available).
gate-info-research
- 若查询内容涉及DeFi/平台指标,继续使用本Skill。
- 若查询内容还涉及DeFi范围外的代币基本面、技术分析或新闻,路由至(若可用)。
gate-info-research
Step 1: Intent Recognition & Parameter Extraction
步骤1:意图识别与参数提取
Extract from user input:
- (optional): Protocol name (e.g., Uniswap, Aave, Lido)
platform_name - (optional): Token/stablecoin symbol (e.g., USDC, USDT, ETH)
symbol - (optional): Blockchain filter (e.g., Ethereum, Arbitrum)
chain - (optional): Exchange name (e.g., Binance, OKX)
exchange
从用户输入中提取:
- (可选):协议名称(如Uniswap、Aave、Lido)
platform_name - (可选):代币/稳定币符号(如USDC、USDT、ETH)
symbol - (可选):区块链筛选条件(如Ethereum、Arbitrum)
chain - (可选):交易所名称(如Binance、OKX)
exchange
Step 2: Call MCP Tools by Sub-scenario
步骤2:按子场景调用MCP工具
Sub-scenario A: DeFi Overview
子场景A:DeFi概览
| Step | MCP Tool | Parameters | Retrieved Data | Parallel |
|---|---|---|---|---|
| 1a | | | Total TVL, volume, fees across DeFi/CEX/DEX | Yes |
| 1b | | | Top 10 platforms by TVL | Yes |
| 步骤 | MCP工具 | 参数 | 获取的数据 | 是否并行 |
|---|---|---|---|---|
| 1a | | | DeFi/CEX/DEX的总TVL、交易量、手续费 | 是 |
| 1b | | | TVL排名前10的平台 | 是 |
Sub-scenario B: Platform Detail
子场景B:平台详情
| Step | MCP Tool | Parameters | Retrieved Data | Parallel |
|---|---|---|---|---|
| 1a | | | Full platform metrics (TVL, volume, fees, chains) | Yes |
| 1b | | | Historical trend | Yes |
| 1c | | | Platform's native token info | Yes |
| 步骤 | MCP工具 | 参数 | 获取的数据 | 是否并行 |
|---|---|---|---|---|
| 1a | | | 完整平台指标(TVL、交易量、手续费、支持链) | 是 |
| 1b | | | 历史趋势 | 是 |
| 1c | | | 平台原生代币信息 | 是 |
Sub-scenario C: Yield Pools
子场景C:收益池
| Step | MCP Tool | Parameters | Retrieved Data |
|---|---|---|---|
| 1 | | | Yield pool rankings with APY, TVL |
| 步骤 | MCP工具 | 参数 | 获取的数据 |
|---|---|---|---|
| 1 | | | 带APY、TVL的收益池排名 |
Sub-scenario D: Stablecoins
子场景D:稳定币
| Step | MCP Tool | Parameters | Retrieved Data |
|---|---|---|---|
| 1 | | | Stablecoin ranking or single coin detail with chain distribution |
| 步骤 | MCP工具 | 参数 | 获取的数据 |
|---|---|---|---|
| 1 | | | 稳定币排名或单币种详情(含链上分布) |
Sub-scenario E: Bridges
子场景E:跨链桥
| Step | MCP Tool | Parameters | Retrieved Data |
|---|---|---|---|
| 1 | | | Bridge ranking or single bridge chain breakdown |
| 步骤 | MCP工具 | 参数 | 获取的数据 |
|---|---|---|---|
| 1 | | | 跨链桥排名或单桥链上细分数据 |
Sub-scenario F: Exchange Reserves
子场景F:交易所储备
| Step | MCP Tool | Parameters | Retrieved Data |
|---|---|---|---|
| 1 | | | Exchange on-chain reserves (BTC, ETH, etc.) |
| 步骤 | MCP工具 | 参数 | 获取的数据 |
|---|---|---|---|
| 1 | | | 交易所链上储备(BTC、ETH等) |
Sub-scenario G: Liquidation Heatmap
子场景G:清算热力图
| Step | MCP Tool | Parameters | Retrieved Data |
|---|---|---|---|
| 1 | | | Liquidation density by price range |
| 步骤 | MCP工具 | 参数 | 获取的数据 |
|---|---|---|---|
| 1 | | | 按价格区间划分的清算密度 |
Step 3: LLM Aggregation
步骤3:LLM聚合
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)
步骤4:渐进式加载(跨链桥与稳定币)
For Bridges and Stablecoins, use a list-first, detail-on-demand pattern:
- First call (no / narrow
bridge_name): ranking list — summary without full chain breakdown.symbol - Second call (user follow-up): specific or
bridge_name— full chain-level details.symbol
针对跨链桥和稳定币场景,采用“先列表、按需提供详情”的模式:
- 首次调用(无/ 未指定具体
bridge_name):返回排名列表 — 仅提供摘要,不包含完整链上细分数据。symbol - 二次调用(用户跟进询问):指定具体或
bridge_name— 返回完整链级详情。symbol
Report Template
报告模板
Legacy path only — this section applies when Step 0 emitted .
__FALLBACK__仅适用于旧版路径 — 当步骤0输出时,本部分内容生效。
__FALLBACK__Template A: DeFi Overview
模板A:DeFi概览
markdown
undefinedmarkdown
undefinedDeFi Ecosystem Overview
DeFi生态系统概览
Generated: {timestamp}
生成时间:{timestamp}
Market Summary
市场摘要
| Metric | Value | 24h Change |
|---|---|---|
| Total DeFi TVL | ${total_tvl} | {change}% |
| DEX 24h Volume | ${dex_volume} | {change}% |
| Total Fees (24h) | ${total_fees} | {change}% |
| Stablecoin Market Cap | ${stablecoin_mcap} | {change}% |
| 指标 | 数值 | 24小时变化 |
|---|---|---|
| DeFi总TVL | ${total_tvl} | {change}% |
| DEX24小时交易量 | ${dex_volume} | {change}% |
| 总手续费(24小时) | ${total_fees} | {change}% |
| 稳定币市值 | ${stablecoin_mcap} | {change}% |
Top 10 Protocols by TVL
TVL排名前10的协议
| Rank | Protocol | Category | TVL | 24h Change | Chain |
|---|---|---|---|---|---|
| 1 | {name} | {category} | ${tvl} | {change}% | {chains} |
| 排名 | 协议 | 分类 | TVL | 24小时变化 | 支持链 |
|---|---|---|---|---|---|
| 1 | {name} | {category} | ${tvl} | {change}% | {chains} |
Analysis
分析
{LLM assessment: DeFi market trend, capital flows, notable shifts}
Data sourced from Gate Info MCP. Does not constitute investment advice.
undefined{LLM评估内容:DeFi市场趋势、资金流向、显著变化}
数据来源:Gate Info MCP。不构成投资建议。
undefinedTemplate B: Platform Detail
模板B:平台详情
markdown
undefinedmarkdown
undefined{platform_name} Deep Dive
{platform_name}深度分析
Generated: {timestamp}
生成时间:{timestamp}
Key Metrics
核心指标
| Metric | Value | Rank |
|---|---|---|
| TVL | ${tvl} | #{rank} |
| 24h Volume | ${volume} | — |
| 24h Fees | ${fees} | — |
| 指标 | 数值 | 排名 |
|---|---|---|
| TVL | ${tvl} | #{rank} |
| 24小时交易量 | ${volume} | — |
| 24小时手续费 | ${fees} | — |
TVL Trend
TVL趋势
{Describe trend from historical data}
{根据历史数据描述趋势}
Token Info ({symbol})
代币信息({symbol})
| Metric | Value |
|---|---|
| Price | ${price} |
| Market Cap | ${market_cap} |
| FDV | ${fdv} |
| 指标 | 数值 |
|---|---|
| 价格 | ${price} |
| 市值 | ${market_cap} |
| 完全稀释估值(FDV) | ${fdv} |
Analysis
分析
{LLM competitive analysis}
Data sourced from Gate Info MCP. Does not constitute investment advice.
undefined{LLM竞争分析内容}
数据来源:Gate Info MCP。不构成投资建议。
undefinedTemplates C–G (Yield / Stablecoin / Bridge / Reserve / Liquidation)
模板C–G(收益率/稳定币/跨链桥/储备/清算)
- Summary metrics at top
- Ranked table of data
- 2–3 sentence LLM analysis
- Standard disclaimer
- 顶部显示摘要指标
- 数据排名表格
- 2–3句LLM分析内容
- 标准免责声明
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 |
| 条件 | 评估/下一步操作 |
|---|---|
| 通用DeFi市场、TVL排行榜或“顶级协议”相关内容 | 子场景A(概览) |
| 用户提及具体协议(Uniswap、Aave等) | 子场景B(平台详情) |
| 收益率、APY、借贷、“何处获利”相关内容 | 子场景C(收益池) |
| 稳定币、锚定、流通量、排名相关内容 | 子场景D;遵循步骤4的渐进式加载模式 |
| 跨链桥、跨链TVL、桥接交易量相关内容 | 子场景E;先返回列表,跟进询问时提供详情 |
| 交易所储备、储备证明(PoR)、“交易所BTC持有量”相关内容 | 子场景F |
| 清算、热力图、按价格划分的密度相关内容 | 子场景G |
| 意图模糊 | 提出一个澄清问题或默认使用子场景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 |
| 错误类型 | 处理方式 |
|---|---|
| 平台名称未找到 | 建议相似平台名称;请用户确认 |
| 单个工具调用失败 | 跳过该部分内容;标注“数据暂时不可用” |
| 所有工具调用失败 | 返回错误信息;建议用户稍后重试 |
| 无匹配条件的收益池 | 放宽搜索条件(移除链/符号筛选);告知用户 |
| 交易所不支持 | 列出支持的交易所;请用户选择其他交易所 |
| 符号无法识别 | 尝试通过 |
Cross-Skill Routing
跨Skill路由
| User Follow-up Intent | Route To |
|---|---|
| "Analyze the token" | |
| "Technical analysis of the token" | |
| "Is this protocol safe?" | |
| "On-chain data for the token" | |
| "Any news about this protocol?" | |
| "How does macro affect DeFi?" | |
| "How's the market overall?" | |
| 用户跟进意图 | 路由至 |
|---|---|
| "分析该代币" | |
| "该代币的技术分析" | |
| "这个协议安全吗?" | |
| "该代币的链上数据" | |
| "这个协议有什么新闻吗?" | |
| "宏观因素如何影响DeFi?" | |
| "整体市场情况如何?" | |
Safety Rules
安全规则
- 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 ), this skill does not invoke additional third-party data services.
info-news-runtime-rules.md
- 无收益率保证:APY/收益率数据为历史数据,可能发生变化;需明确说明过往收益率不代表未来收益。
- 智能合约风险:展示收益池或协议时,需标注DeFi存在智能合约风险。
- 无背书:列出协议不构成背书;保持中立性。
- 储备免责声明:交易所储备数据为链上可观测数据,但可能无法反映总资产情况。
- 清算数据:清算热力图显示的是预估水平,不代表必然触发清算。
- 数据透明度:标注数据来源、更新频率及已知限制。
- 年龄与资格:仅面向18周岁及以上且在所在司法辖区具备完全民事行为能力的用户。
- 数据流:主机Agent处理用户提示;本技能仅调用上述列出的只读 Gate-Info MCP工具。LLM根据工具返回结果格式化答案。除上述MCP调用及文档化的技能更新流程(通用规则和中的GitHub链接)外,本技能不会调用其他第三方数据服务。
info-news-runtime-rules.md