rebalance-position
Rebalance an out-of-range Uniswap V3/V4 LP position by closing the old position and opening a new one centered on the current price. Handles fee collection, removal, range calculation, and re-entry in a single workflow. Use when a position is out of range and needs adjustment.
Why use this skill?
Optimize your Uniswap V3 and V4 liquidity positions with OpenClaw. Automatically rebalance out-of-range LP positions to maximize fee earnings and capital efficiency.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/rebalance-positionWhat This Skill Does
The rebalance-position skill is a sophisticated automation tool designed for liquidity providers on Uniswap V3 and V4. When a concentrated liquidity position drifts outside of its established tick range, it effectively stops generating protocol fees, turning your investment into dead capital. This skill automates the entire corrective lifecycle: it identifies out-of-range positions, calculates the optimal new price range based on current market dynamics, harvests accumulated rewards, closes the stale position, and opens a new, optimized one centered around the current spot price. By streamlining these complex steps, it minimizes manual management and maximizes fee-earning potential.
Installation
To integrate this skill into your environment, run the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/rebalance-position
Use Cases
- Proactive Management: Automatically detect when market volatility pushes your liquidity out of bounds.
- Fee Optimization: Ensures your capital is consistently deployed in the most active price ranges where volume (and thus fee revenue) is highest.
- Strategic Rebalancing: Transition from a static range to a more volatile-appropriate width (narrow, medium, or wide) based on real-time pool activity data.
- Portfolio Maintenance: Ideal for users managing multiple liquidity pairs across different assets who need a unified, automated interface to handle upkeep without manually tracking every pool price.
Example Prompts
- "My WBTC/USDC position has stopped earning fees; can you rebalance it?"
- "I have an out-of-range LP position on Ethereum, please move the range to be centered on the current price."
- "Search for all my out-of-range positions and let me know if it's worth the gas fees to rebalance them."
Tips & Limitations
- Gas Awareness: Rebalancing involves multiple transactions (collecting fees, burning/minting positions). The skill includes a cost-benefit calculation to prevent users from spending more on gas than the projected fee revenue over a 30-day window.
- Range Selection: While the skill defaults to 'Auto-optimal', users can manually specify range widths. Narrow ranges yield higher potential APY but increase the likelihood of going out of range again quickly.
- Safety: Always review the suggested gas costs before authorizing the transaction in your wallet interface. Ensure you have sufficient network tokens for transaction fees.
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-rebalance-position": {
"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.