Batch Swap
Execute multiple token swaps in sequence. Use when user wants to rebalance, swap into multiple tokens, or execute a multi-step trading plan. Each swap goes through full safety validation independently.
Why use this skill?
Efficiently execute multiple token swaps with OpenClaw's Batch Swap skill. Perfect for portfolio rebalancing and multi-step trading plans with full safety validation.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/batch-swapWhat This Skill Does
The Batch Swap skill for OpenClaw provides a robust framework for executing multiple token swaps in a single session. Unlike simple single-swap operations, this skill parses complex user requests that involve multiple assets, enabling you to orchestrate multi-step trading plans or portfolio rebalancing strategies efficiently. The skill manages the execution flow by processing each swap sequentially, performing independent safety validations for every transaction to ensure that slippage, gas costs, and liquidity risks are mitigated at every step. By utilizing the trade-executor subagent, the skill maintains a state-aware environment where your account balances are tracked in real-time, preventing potential over-spending or errors during chained transactions. Whether you are executing a rebalancing strategy or purchasing a basket of diverse tokens, Batch Swap provides transparency through detailed post-execution summaries, keeping you informed about transaction success rates, gas consumption, and individual token output.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/batch-swap
Ensure that you have the necessary permissions enabled in your OpenClaw configuration to allow subagent task execution, as this skill relies on the trade-executor subagent to finalize blockchain interactions.
Use Cases
- Portfolio Rebalancing: Easily distribute your assets into a specific percentage split, such as moving from a single stablecoin position into a diversified portfolio of blue-chip tokens.
- Multi-Step DCA Execution: Convert a large amount of a single base token into various secondary tokens in one command rather than manually initiating multiple interactions.
- Optimized Asset Allocation: Quickly move liquidity across different protocols or assets to take advantage of market movements without manual oversight of individual trade confirmations.
Example Prompts
- "Rebalance my portfolio: Sell 2000 USDC into 50% WETH and 50% WBTC."
- "Execute these swaps: Buy 500 UNI, then 300 AAVE, and finally 200 LINK using my USDC balance."
- "Swap my current ETH holdings into USDC, then buy 1000 worth of PEPE and 1000 worth of SHIB."
Tips & Limitations
- Safety First: The skill is configured with
stopOnFailure=trueby default. If one leg of your swap chain encounters an error, the process halts to protect your remaining assets. You can review the provided summary to assess the failure and decide whether to resume the remaining swaps manually. - Budgeting: Always be mindful of the cumulative gas fees associated with batch operations. While the skill optimizes for convenience, executing many small swaps sequentially may result in higher gas costs compared to single-swap operations on certain chains.
- Balance Checks: The pre-flight
check_safety_statusensures that your wallet has sufficient funds, but market volatility between swaps may occasionally cause minor slippage. Ensure you have a small buffer of the native chain token for gas fees to ensure the entire batch completes successfully.
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-batch-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.