cross-chain-swap
Execute a cross-chain token swap via Uniswap's bridge infrastructure. Handles quoting, safety validation, bridge monitoring, and destination confirmation. Use when the user wants to swap tokens across different chains.
Why use this skill?
Learn how to use the OpenClaw cross-chain-swap skill to bridge and exchange assets across different blockchains securely and efficiently using Uniswap infrastructure.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/cross-chain-swapWhat This Skill Does
The cross-chain-swap skill is a specialized agent capability designed to facilitate seamless asset transfers between disparate blockchain networks. By leveraging Uniswap's robust bridge infrastructure, this skill abstracts the complex technical requirements of bridging assets, managing cross-chain liquidity, and navigating diverse gas fee structures. The agent handles the end-to-end lifecycle of a swap, including sourcing quotes, performing safety and risk assessments, executing the transaction, and providing real-time monitoring of bridge status until settlement is confirmed on the destination chain. It effectively acts as a orchestrator for the cross-chain-executor subagent, ensuring that users can move liquidity across networks like Ethereum, Arbitrum, Base, and Optimism without needing to interact with multiple protocol interfaces or manual bridge bridges.
Installation
To integrate this skill into your OpenClaw agent instance, execute the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/cross-chain-swap
This installs the necessary dependencies and registers the skill within your agent's active execution context.
Use Cases
This skill is ideal for DeFi power users, liquidity providers, and anyone needing to rebalance their portfolio across multiple Layer-2 solutions. Primary use cases include:
- Optimizing yield by moving assets to chains with higher farming returns.
- Converting assets across ecosystems (e.g., swapping native ETH on Ethereum for USDC on Base).
- Consolidating multi-chain assets into a single chain for simplified management.
- Executing arbitrage opportunities where price discrepancies exist between networks.
Example Prompts
- "Swap 2 ETH on Ethereum for USDC on Arbitrum with minimal slippage."
- "I need to move 500 USDC from Base to Optimism and convert it to WETH. Please handle the bridge."
- "Exchange my mainnet ETH for USDC on Base and make sure the transaction is secure."
Tips & Limitations
- Chain Validation: Always verify that your source and destination chains are enabled via
mcp__uniswap__getSupportedChainsbefore attempting a swap. - Slippage: For high-volatility tokens, consider setting a custom slippage parameter rather than using the default 'auto' mode to ensure execution success.
- Same-Chain Swaps: If the source and destination are the same, the system will automatically reroute to the standard
execute-swapskill, which is more cost-efficient. - Safety: The agent includes built-in risk assessment. If a bridge route is deemed high-risk, the agent will prompt for manual confirmation or abort the transaction. Always review the 'Risk' and 'Safety' output fields carefully.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-wpank-cross-chain-swap": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
mermaid-diagrams
Create software diagrams using Mermaid syntax. Use when users need to create, visualize, or document software through diagrams including class diagrams, sequence diagrams, flowcharts, ERDs, C4 architecture diagrams, state diagrams, git graphs, and other diagram types. Triggers include requests to diagram, visualize, model, map out, or show the flow of a system.
api-design-principles
Skill by wpank
auto-context
Automatically read relevant context before major actions. Loads TODO.md, roadmap.md, handoffs, task plans, and other project context files so the AI operates with full situational awareness. Use when starting a task, implementing a feature, refactoring, debugging, planning, or resuming a session.
clear-writing
Write clear, concise prose for humans — documentation, READMEs, API docs, commit messages, error messages, UI text, reports, and explanations. Combines Strunk's rules for clearer prose with technical documentation patterns, structure templates, and review checklists.
track-performance
Track the performance of Uniswap LP positions over time — check which positions need attention, are out of range, or have uncollected fees. Use when the user asks how their positions are doing.