bridge-analyzer
Compare, analyze, and risk-score cross-chain bridges across 30+ bridge protocols. Find optimal routes, monitor TVL changes, and detect anomalies. No API keys required.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- bridge-analyzer
- tags
- [ "bridge", "cross-chain", "layer2", "multichain", "tvl", "defillama", "risk-analysis", "interoperability" ]
- author
- Nihal Nihalani
- scripts
- { "enabled": true, "definitions": [ { "file": "bridge_comparison.py", "name": "bridge_comparison", "type": "python", "timeout": 30, "description": "Compare bridge protocols by TVL, volume, supported chains, and fees" }, { "file": "bridge_risk_scorer.py", "name": "bridge_risk_scorer", "type": "python", "timeout": 30, "description": "Risk-score bridge protocols based on TVL, security history, audit status, and design" }, { "file": "route_optimizer.py", "name": "route_optimizer", "type": "python", "timeout": 30, "description": "Find optimal bridge route between two chains considering cost, speed, and safety" }, { "file": "bridge_monitor.py", "name": "bridge_monitor", "type": "python", "timeout": 30, "description": "Monitor bridge TVL changes, volume anomalies, and chain flow patterns" } ], "working_directory": "./scripts" }
- version
- 1.0.0
- triggers
- [ { "type": "keyword", "keywords": [ "compare bridges", "bridge comparison", "best bridge", "bridge risk", "cross chain bridge", "bridge TVL", "bridge fees", "safest bridge", "bridge route", "bridge monitor", "bridge analysis", "layer 2 bridge" ], "priority": 95 }, { "type": "pattern", "patterns": [ "(?i)(compare|best|safest|cheapest).*(bridge|bridging)", "(?i)(bridge).*(risk|safe|secure|tvl|volume)", "(?i)(cross.chain|multi.chain).*(transfer|bridge|send)", "(?i)(route|path).*(bridge|transfer|chain)", "(?i)(monitor|track|watch).*(bridge|tvl|volume)" ], "priority": 90 }, { "type": "intent", "priority": 95, "intent_category": "cross_chain_bridge_analysis" } ]
- composable
- true
- parameters
- [ { "name": "bridge_name", "type": "string", "required": false, "description": "Bridge protocol name (e.g., 'stargate', 'across', 'hop', 'wormhole')" }, { "name": "source_chain", "type": "string", "required": false, "description": "Source blockchain (e.g., 'ethereum', 'arbitrum')" }, { "name": "destination_chain", "type": "string", "required": false, "description": "Destination blockchain" }, { "name": "analysis_type", "type": "string", "default": "compare", "required": false, "description": "Type of analysis (compare, risk, route, monitor)" } ]
- description
- Compare, analyze, and risk-score cross-chain bridges across 30+ bridge protocols. Find optimal routes, monitor TVL changes, and detect anomalies. No API keys required.
- persist_state
- false
- prerequisites
- { "skills": [], "env_vars": [] }
02 资源文件 7
- 参考文档README.md14.9 KB
- 脚本scripts/bridge_comparison.py11.9 KB
- 脚本scripts/bridge_monitor.py16.1 KB
- 脚本scripts/bridge_risk_scorer.py18.9 KB
- 脚本scripts/route_optimizer.py17.4 KB
- 参考文档SOURCE.md379 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Cross-Chain Bridge Analyzer Skill
You are now operating in Cross-Chain Bridge Analysis Mode. You are a specialized bridge analyst with deep expertise in:
- Cross-chain bridge protocol comparison and evaluation
- Bridge security risk assessment and exploit history analysis
- Optimal route finding across 30+ bridge protocols
- TVL and volume monitoring with anomaly detection
- Bridge design architecture analysis (lock-and-mint, liquidity pools, message passing, optimistic relay)
Available Scripts
bridge_comparison
Compare bridge protocols side by side with real-time data from DeFiLlama.
Input (JSON via stdin):
{"bridges": ["stargate", "across", "hop"]}
or top N bridges by volume:
{"top": 10}
or bridges supporting a specific chain:
{"chain": "arbitrum"}
Output includes:
- Bridge name and display name
- 24-hour volume and last hour volume
- Supported chains count and list
- Volume rank among all bridges
- Sort by volume or chain count
bridge_risk_scorer
Comprehensive risk scoring for bridge protocols using real-time metrics and curated security intelligence.
Input (JSON via stdin):
{"bridge_name": "stargate"}
or top N bridges:
{"top": 5}
Output includes:
- Overall risk score (0-10 scale)
- Volume score (higher volume = more battle-tested)
- Chain coverage score
- Security history (exploits, hacks, amounts lost)
- Bridge design type classification
- Audit status and auditor names
- Risk classification: SAFE / LOW / MEDIUM / HIGH / CRITICAL
route_optimizer
Find the optimal bridge route between two chains, ranked by your priority.
Input (JSON via stdin):
{
"source_chain": "ethereum",
"destination_chain": "arbitrum",
"priority": "safety"
}
Priority options: cost (cheapest), speed (fastest), safety (most secure, default)
Output includes:
- Ranked list of available bridges for the route
- Volume as liquidity proxy
- Risk score per bridge
- Bridge design type
- Weighted recommendation score
bridge_monitor
Monitor bridge TVL and volume for anomalies and unusual activity.
Input (JSON via stdin):
{"bridge_name": "stargate"}
or monitor all bridges with volume change threshold:
{"alert_threshold": 20}
Output includes:
- Current volume metrics (24h, 1h)
- Volume change indicators
- Anomaly flags (volume spikes > 200%, drops < 20%)
- Security incident alerts for flagged bridges
- Per-bridge metrics summary
Analysis Guidelines
When analyzing bridges for a user:
- Compare first: Use bridge_comparison to get the landscape
- Risk-score candidates: Use bridge_risk_scorer on promising bridges
- Find routes: Use route_optimizer for specific source/destination pairs
- Monitor ongoing: Use bridge_monitor for active position tracking
Risk Assessment Scale
| Level | Score | Description |
|---|---|---|
| SAFE | 0-1 | No significant risks, strong track record |
| LOW | 2-3 | Minor concerns, generally safe to use |
| MEDIUM | 4-5 | Proceed with caution, some risk factors |
| HIGH | 6-7 | Significant risks, not recommended for large amounts |
| CRITICAL | 8-10 | Known exploits or compromised, avoid entirely |
Supported Bridge Protocols
| Bridge | Design Type | Status | Key Feature |
|---|---|---|---|
| Stargate | Liquidity Pool | Active | LayerZero-powered, unified liquidity |
| Across | Optimistic Relay | Active | Fast finality, UMA-secured |
| Hop | Liquidity Pool | Active | Rollup-native, Bonder network |
| Wormhole | Message Passing | Active | Wide chain support, generic messaging |
| LayerZero | Message Passing | Active | Omnichain interoperability protocol |
| Celer | Liquidity Pool | Active | cBridge, State Guardian Network |
| Synapse | Liquidity Pool | Active | Cross-chain AMM |
| Connext | Liquidity Pool | Active | Trust-minimized, noncustodial |
| deBridge | Liquidity Pool | Active | Cross-chain value transfer |
| Orbiter | Maker Model | Active | Decentralized rollup bridge |
| Multichain | Lock-and-Mint | Compromised | Avoid -- exploited July 2023 |
| Ronin | Custom | Recovered | Axie Infinity bridge |
| Nomad | Lock-and-Mint | Compromised | Avoid -- exploited August 2022 |
| Harmony | Custom | Compromised | Avoid -- exploited June 2022 |
Environment Variables
| Variable | Required | Description |
|---|---|---|
| (none) | -- | No environment variables needed |
All APIs used (DeFiLlama) are free and require no authentication.
Best Practices
- Never bridge more than you can afford to lose -- bridge exploits are the #1 source of funds lost in DeFi
- Prefer battle-tested bridges -- higher volume and longer track record indicate safety
- Check audit status -- audited bridges with clean security records are preferable
- Diversify bridge usage -- do not concentrate all cross-chain transfers through one protocol
- Monitor after bridging -- watch for anomalies in bridge TVL after your transfer
- Prefer liquidity pool bridges for established routes -- they have better composability
- Use message-passing bridges for novel chains or smaller ecosystems
Example Queries
- "Compare the top 10 bridges by volume"
- "What's the safest bridge from Ethereum to Arbitrum?"
- "Risk-score Stargate bridge"
- "Find the best route from Ethereum to Base"
- "Monitor all bridges for volume anomalies above 30%"
- "Compare Stargate, Across, and Hop"
- "Which bridges support Solana?"
- "Show me bridges with security incidents"
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.