skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
gate/gate-skills108 installs

gate-info-defianalysis

DeFi ecosystem analysis via Gate-Info MCP. Use this skill whenever the user wants TVL rankings, protocol metrics, yield/APY, stablecoins, bridges, exchange reserves, or liquidation heatmaps. Trigger phrases include Uniswap TVL, DeFi ranking, USDC yield, bridge volume, exchange BTC reserves, liquidation density. Route coin-only fundamentals to gate-info-coinanalysis. Sub-scenario tools: info_platformmetrics_* family and info_coin_get_coin_info (exact tool names per scenario in SKILL.md).

How do I install this agent skill?

npx skills add https://github.com/gate/gate-skills --skill gate-info-defianalysis
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill provides DeFi ecosystem analysis through a trusted MCP server. It includes a documented self-update mechanism that fetches content from the official repository of the vendor ('gate'). All analyzed behaviors, including update scripts and routing probes, are consistent with the skill's stated purpose and use trusted sources.

  • Socketwarn

    2 alerts: gptAnomaly

  • Snykpass

    Risk: LOW · No issues

  • ZeroLeakspass

    Score: 93/100 · 2 sections analyzed

What does this agent skill do?

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 scripts/ is present, and legacy wrapper routing).

  • 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 __FALLBACK__, use only the MCP tools listed in this file. When Step 0 emits __ROUTE_CLI__, do not call those MCP tools; delegate to the mapped primary skill per Step 0.

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 scripts/update-skill.sh and may include scripts/update-skill.ps1. ClawHub packages uploaded to the marketplace often omit update-skill.ps1 (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.

Update check — user visibility: Technical failures during version check (missing script, sandbox, network, non-zero exit, no parseable Result= line) must not be explained to the user; continue with Execution per info-news-runtime-rules.md. Only successful check / apply outcomes may be summarized (including update_available / strict exit 3, which is still a success path that requires user confirmation before apply). Do not auto-download update-skill.* from the network. Static reference if .ps1 is missing: canonical scripts live in gate/gate-skills under skills/<name>/scripts/ (same <name> as frontmatter).


Step 0 — Wrapper routing probe

This legacy skill is a compatibility alias for the primary CLI skill gate-info-web3.

Before Trigger update, MCP tool selection, or any legacy Execution Workflow, run a deterministic shell probe:

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

Interpretation:

  • __ROUTE_CLI__ → stop here. Do not run Trigger update or the legacy MCP sections below. Follow https://github.com/gate/gate-skills/blob/master/skills/gate-info-web3/SKILL.md and its playbook contract. Carry over the minimum context: protocol/platform intent plus any available platform, token, asset, exchange, or symbol hints from the user.
  • __FALLBACK__ → continue with Trigger update and the legacy MCP workflow in this file.

Trigger update (with Execution)

Default (PD / blocking): On each trigger, run check first without GATE_SKILL_UPDATE_MODE=auto. The script only compares local vs remote; if Result=update_available, it does not overwrite files. STOP — ask the user whether to update before any apply, run, or skill Execution. In sandboxes (e.g. Cursor), use full / all permissions when later running apply. 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).

Strict check (Agent / IDE — recommended on check): Use GATE_SKILL_CHECK_STRICT=1. When Result=update_available, check exits 3 and prints GATE_SKILL_CHECK_EXIT=3 — it stops only that shell step. Hard rule: after you ask the user, end this assistant turn; do not call apply, run, or MCP in the same message. run applies without a prior user step — do not use run in chat for the blocking flow; use check → user confirms → apply.

Step 1 — Check

Install root: check / apply read $DEST/SKILL.md. Typical $SKILL_ROOT: $HOME/.cursor/skills/<name>/, $HOME/.codex/skills/<name>/, $HOME/.openclaw/skills/<name>/, $HOME/.agents/skills/<name>/, $HOME/.gemini/antigravity/skills/<name>/. Single-arg: the script resolves DEST in that order when SKILL.md exists; otherwise DEST is scripts/../. Workspace-only trees need two-arg check / apply with explicit DEST.

Agent 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 update-skill.sh exists → use only the Bash example.
  • Windows (native PowerShell): If update-skill.ps1 exists → use only the PowerShell example.
  • Windows without .ps1 (typical ClawHub install): If only update-skill.sh exists → try WSL or Git Bash (bash) 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.
  • Neither script exists: Skip Step 1 silently; proceed to Execution. Do not invent GATE_SKILL_CONFIRM_TOKEN or run apply / revoke-pending.

Bash (blocking — no auto; example Cursor):

GATE_SKILL_CHECK_STRICT=1 bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" check "gate-info-defianalysis"

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: skipped = no action. update_available = remote newer; with blocking flow, do not apply until the user agrees. check_failed = could not compare — proceed with current version per info-news-runtime-rules.md; do not surface technical check failure details to the user.

Agent parse (stdout): GATE_SKILL_UPDATE_AGENT_ACTION=…. BLOCK_UNTIL_USER_CONFIRMS_UPDATE → Step 2 before Execution. CONTINUE_SKILL_EXECUTION → no block from the check script.

Step 2 — Confirm or Reject (blocking)

Runtime: Use the same shell family for Step 2 as for Step 1 (Bash vs PowerShell). If Step 1 was skipped, do not run apply or revoke-pending.

If update_available:

  1. STOP — do NOT proceed to Execution yet.

  2. Inform the user (e.g. newer version available; summarize if helpful).

  3. Wait for the user’s reply — blocking step.

    Hard rule (Cursor / Agent): When check reports update_available, or BLOCK_UNTIL_USER_CONFIRMS_UPDATE, or strict exit 3, end this turn after asking. Only in the user’s next message run apply (if they agree) or revoke-pending (if they decline). Do not chain apply in the same turn as check for this flow.

    • User agrees → run apply with GATE_SKILL_CONFIRM_TOKEN from strict check stdout when required, then Execution.
    • User declines → revoke-pending, then Execution on the current install.

Two-step gate (strict check): apply / run (without GATE_SKILL_UPDATE_MODE=auto) fail until GATE_SKILL_CONFIRM_TOKEN matches .gate-skill-apply-token. User decline → revoke-pending.

GATE_SKILL_CONFIRM_TOKEN="<paste from check stdout>" bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" apply "gate-info-defianalysis"
bash "$HOME/.cursor/skills/gate-info-defianalysis/scripts/update-skill.sh" revoke-pending "gate-info-defianalysis"
$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 -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): apply without GATE_SKILL_CONFIRM_TOKEN is allowed.

If skipped or check_failed: no update step; proceed to Execution.

Optional — GATE_SKILL_UPDATE_MODE=auto

For CI / unattended automation only: setting GATE_SKILL_UPDATE_MODE=auto on check makes the script apply immediately when the remote is newer — no user confirmation and incompatible with blocking update confirmation tests. Do not use auto on check when reproducing the blocking PD flow.

Parameters

  • name: Frontmatter name above; must match skills/<name>/ on gate-skills.
  • Invoke: Use $SKILL_ROOT/scripts/update-skill.sh (or .ps1) where $SKILL_ROOT/SKILL.md is this skill — e.g. ~/.cursor/skills/<name>, ~/.codex/skills/<name>, ~/.openclaw/skills/<name>, ~/.agents/skills/<name>, ~/.gemini/antigravity/skills/<name>; do not treat ~/.cursor (or any host root without skills/<name>/SKILL.md) as the install. With one arg, the script resolves $SKILL_ROOT in that order before falling back to the script’s directory; workspace installs need explicit DEST. Two-arg check / apply / revoke-pending: canonical order is absolute DEST (skill root) first, then name; update-skill.sh / update-skill.ps1 auto-swap when only one normalized path contains SKILL.md (e.g. agent passes name then path).
  • ClawHub vs full tree: Installs without update-skill.ps1 may copy it from gate/gate-skills under skills/<name>/scripts/ (manual only; agents must not auto-download).

Do not dump raw script logs into the user-facing reply except when debugging. On check exit 3 (strict), do not run Execution until Step 2 is resolved. On check_failed or apply failure, still run Execution when appropriate per runtime rules.


MCP Dependencies

Legacy path only — this section applies when Step 0 emitted __FALLBACK__.

Required MCP Servers

MCP ServerStatus
Gate-Info✅ Required

MCP Tools Used

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

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

Legacy path only — when Step 0 emitted __ROUTE_CLI__, routing is delegated to gate-info-web3.

User IntentKeywordsAction
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

Legacy path only — this section applies when Step 0 emitted __FALLBACK__.

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)
  • symbol (optional): Token/stablecoin symbol (e.g., USDC, USDT, ETH)
  • chain (optional): Blockchain filter (e.g., Ethereum, Arbitrum)
  • exchange (optional): Exchange name (e.g., Binance, OKX)

Step 2: Call MCP Tools by Sub-scenario

Sub-scenario A: DeFi Overview

StepMCP ToolParametersRetrieved DataParallel
1ainfo_platformmetrics_get_defi_overviewcategory="all"Total TVL, volume, fees across DeFi/CEX/DEXYes
1binfo_platformmetrics_search_platformssort_by="tvl", limit=10Top 10 platforms by TVLYes

Sub-scenario B: Platform Detail

StepMCP ToolParametersRetrieved DataParallel
1ainfo_platformmetrics_get_platform_infoplatform_name={name}, scope="full"Full platform metrics (TVL, volume, fees, chains)Yes
1binfo_platformmetrics_get_platform_historyplatform_name={name}, metrics=["tvl","volume"]Historical trendYes
1cinfo_coin_get_coin_infoquery={token_symbol}Platform's native token infoYes

Sub-scenario C: Yield Pools

StepMCP ToolParametersRetrieved Data
1info_platformmetrics_get_yield_poolsproject={name}, chain={chain}, symbol={symbol}, sort_by="apy", limit=20Yield pool rankings with APY, TVL

Sub-scenario D: Stablecoins

StepMCP ToolParametersRetrieved Data
1info_platformmetrics_get_stablecoin_infosymbol={symbol}, chain={chain}, limit=10Stablecoin ranking or single coin detail with chain distribution

Sub-scenario E: Bridges

StepMCP ToolParametersRetrieved Data
1info_platformmetrics_get_bridge_metricsbridge_name={name}, chain={chain}Bridge ranking or single bridge chain breakdown

Sub-scenario F: Exchange Reserves

StepMCP ToolParametersRetrieved Data
1info_platformmetrics_get_exchange_reservesexchange={exchange}, asset={asset}Exchange on-chain reserves (BTC, ETH, etc.)

Sub-scenario G: Liquidation Heatmap

StepMCP ToolParametersRetrieved Data
1info_platformmetrics_get_liquidation_heatmapsymbol={symbol}, exchange={exchange}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.
  2. Second call (user follow-up): specific bridge_name or symbol — full chain-level details.

Report Template

Legacy path only — this section applies when Step 0 emitted __FALLBACK__.

Template A: DeFi Overview

## DeFi Ecosystem Overview

> Generated: {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}% |

### Top 10 Protocols by TVL

| Rank | Protocol | Category | TVL | 24h Change | Chain |
|------|----------|----------|-----|------------|-------|
| 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.

Template B: Platform Detail

## {platform_name} Deep Dive

> Generated: {timestamp}

### Key Metrics

| Metric | Value | Rank |
|--------|-------|------|
| TVL | ${tvl} | #{rank} |
| 24h Volume | ${volume} | — |
| 24h Fees | ${fees} | — |

### TVL Trend

{Describe trend from historical data}

### Token Info ({symbol})

| Metric | Value |
|--------|-------|
| Price | ${price} |
| Market Cap | ${market_cap} |
| FDV | ${fdv} |

### Analysis

{LLM competitive analysis}

> Data sourced from Gate Info MCP. Does not constitute investment advice.

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

ConditionAssessment / 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, rankingSub-scenario D; use progressive loading per Step 4
Bridges, cross-chain TVL, bridge volumeSub-scenario E; list-first, detail on follow-up
Exchange reserves, PoR, “exchange BTC holdings”Sub-scenario F
Liquidations, heatmap, density by priceSub-scenario G
Ambiguous intentAsk one clarifying question or default to A

Error Handling

Error TypeHandling
Platform name not foundSuggest similar platform names; ask user to verify
Single Tool failsSkip that section; note "Data temporarily unavailable"
All Tools failReturn error; suggest user try again later
No yield pools match criteriaBroaden search (remove chain/symbol filter); inform user
Exchange not supportedList supported exchanges; ask user to choose another
Symbol not recognizedTry matching via info_coin_get_coin_info; ask user if unclear

Cross-Skill Routing

User Follow-up IntentRoute To
"Analyze the token"gate-info-coinanalysis
"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.
  2. Smart contract risk: When showing yield pools or protocols, note that DeFi carries smart contract risk.
  3. No endorsement: Listing a protocol does not constitute an endorsement; maintain neutrality.
  4. Reserve disclaimers: Exchange reserve data is on-chain observable but may not reflect total assets.
  5. Liquidation data: Liquidation heatmaps show estimated levels, not guaranteed triggers.
  6. Data transparency: Label data source, update frequency, and known limitations.
  7. Age & eligibility: Intended for users aged 18 or above with full civil capacity in their jurisdiction.
  8. 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.

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/gate/gate-skills/gate-info-defianalysis">View gate-info-defianalysis on skillZs</a>