skill-06-cross-chain-bridge
Skill2 starsChanged 6 months agoMITView on GitHub
Handles cross-chain operations including token bridging, cross-chain messaging, and intent-based routing. Use when moving assets or data between blockchains.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/00-web3-agent-core.mdcCursor rule
- .cursor/rules/10-guardrails-first.mdcCursor rule
- .cursor/rules/20-chain-preset-selector.mdcCursor rule
- .cursor/rules/30-simulate-before-send.mdcCursor rule
- skill-01-wallet-managementSkill
- skill-02-smart-contract-interactionSkill
- skill-03-defi-operationsSkill
- skill-04-nft-managementSkill
- skill-05-dao-governanceSkill
- skill-07-token-analyticsSkill
- skill-08-security-auditSkill
- skill-09-compliance-amlSkill
- skill-10-identity-didSkill
- skill-11-oracle-data-feedsSkill
- skill-12-gas-optimizationSkill
- skill-13-rwa-tokenizationSkill
- skill-14-social-reputationSkill
- skill-15-mev-protectionSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Call bridge deposit/send function
- Distinctive: line 52
Verify received amount matches expected (minus fees)
- Distinctive: line 72
Always test with small amount first on new routes
- Distinctive: line 73
Never bridge to unverified recipient contracts
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cross-Chain Bridge
When to Use
- Bridging tokens between L1 and L2 or across L2s
- Sending cross-chain messages (LayerZero, Wormhole, CCIP)
- Intent-based cross-chain swaps (Across, Stargate)
- Validating bridge security before large transfers
Prerequisites
- MCP:
blockchain-rpc-server,price-feed-server,compliance-screening-server - Skills: skill-08 (bridge contract verification), skill-09 (screen recipient)
Workflow
1. Bridge Selection
| Bridge | Type | Security Model |
| Native (Arbitrum, Optimism) | Canonical | L1 contract + fraud/validity proof |
| Stargate (LayerZero) | Liquidity | Oracle + relayer (configurable) |
| Across | Intent | Optimistic with bonded relayers |
| Wormhole | Messaging | Guardian multisig |
| CCIP (Chainlink) | Messaging | DON + Risk Management Network |
For transfers > $10,000: prefer canonical bridges or CCIP over pure liquidity bridges.
2. Bridge Security Checklist
- Bridge TVL and audit history reviewed
- Contract verified on both source and destination chains
- No active exploit warnings (check Rekt, bridge status pages)
- Estimated time and fees acceptable
- Destination address correct for target chain format
3. Execution
- Approve token on source chain (exact amount)
- Call bridge deposit/send function
- Monitor source tx confirmation
- Track message delivery (LayerZero scan, Wormhole explorer)
- Claim on destination if manual claim required
- Verify received amount matches expected (minus fees)
4. Cross-Chain Messaging
For dApp cross-chain calls:
- Encode payload with target function selector
- Set gas limit on destination via quote
- Pay messaging fee in native token or LINK
- Handle
lzReceive/ccipReceiveon destination
5. Intent-Based Routing
Across and similar protocols:
- User expresses intent (source token → destination token)
- Relayers compete to fill at best rate
- Refund on source if not filled within deadline
Risk Warnings
- Bridge hacks historically largest DeFi losses — verify before large transfers
- Always test with small amount first on new routes
- Never bridge to unverified recipient contracts
References
knowledge-base/chains/— per-chain bridge addressesreferences/bridge-security-matrix.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

