Execute Swap
Execute a Uniswap token swap. Use when user wants to swap, trade, buy, or sell tokens. Handles quotes, safety checks, simulation, and execution autonomously. Supports V2, V3, V4, UniswapX, and cross-chain routing on all supported chains.
Why use this skill?
Automate your Uniswap token swaps on any chain with OpenClaw. Execute trades, handle slippage, and ensure transaction safety with autonomous routing.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/execute-swapWhat This Skill Does
The Execute Swap skill empowers your OpenClaw agent to perform seamless token trades across the Uniswap ecosystem. By integrating directly with Uniswap V2, V3, V4, and UniswapX, this skill acts as an autonomous DeFi trader. It handles the complexities of routing, liquidity aggregation, and chain-specific protocol requirements. When triggered, the skill executes a multi-step workflow involving token resolution, rigorous pre-flight safety checks—such as spending limits and circuit breakers—and atomic transaction simulation before the actual swap is broadcast to the blockchain.
Installation
To install this skill, run the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/execute-swap
Ensure your Agentic Uniswap MCP server is active, as this skill relies on the @agentic-uniswap/mcp-server package to facilitate communication with on-chain protocols.
Use Cases
This skill is ideal for users who manage decentralized portfolios and require fast, reliable trade execution without manual interaction with web interfaces. It is perfect for rebalancing assets across chains, converting stablecoins to volatile assets, or liquidating token positions. Because it handles the trade-executor subagent delegation, it is highly effective for complex, automated strategies where slippage tolerance and routing efficiency are paramount.
Example Prompts
- "Swap 500 USDC for WETH on base chain with 0.1% slippage."
- "Buy 2000 USDT worth of UNI tokens on Ethereum."
- "Convert my tokens to ETH using the best available routing."
Tips & Limitations
Always ensure your wallet is sufficiently funded for gas fees on the target chain. While the skill includes a circuit breaker, users should maintain clear spending limits within their configuration to prevent accidental large trades. If a swap fails due to INSUFFICIENT_LIQUIDITY, consider splitting the trade or widening your slippage tolerance. Note that cross-chain swaps may take longer to confirm than native chain trades. Always review the simulation output provided by the agent before final confirmation.
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-execute-swap": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
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.