← All skills
Tencent SkillHub Β· Finance & Trading

Uniswap Manage Liquidity

Add liquidity, remove liquidity, or collect fees on Uniswap V2/V3/V4 pools. Handles the full flow including pool selection, range optimization, approvals, safety checks, and transaction execution. Use when the user wants to LP, provide liquidity, remove a position, or collect accumulated fees.

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Add liquidity, remove liquidity, or collect fees on Uniswap V2/V3/V4 pools. Handles the full flow including pool selection, range optimization, approvals, safety checks, and transaction execution. Use when the user wants to LP, provide liquidity, remove a position, or collect accumulated fees.

⬇ 0 downloads β˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
README.md, SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 12 sections Open source page

Overview

This is the primary skill for all liquidity operations on Uniswap. It handles three distinct actions: Add liquidity β€” Find the best pool, recommend a range, handle approvals, deposit tokens Remove liquidity β€” Withdraw tokens from an existing position (partial or full) Collect fees β€” Claim accumulated trading fees from a position Each action delegates to the liquidity-manager agent for execution, with optional pool-researcher delegation for intelligent pool selection. This skill extracts the user's intent, validates parameters, and orchestrates the right agent workflow.

When to Use

Activate when the user says anything related to providing, removing, or managing Uniswap liquidity: Adding liquidity: "Add liquidity to ETH/USDC" "Provide LP for WETH/USDC on Base" "LP into the best pool for ETH/USDC" "Open a position in UNI/WETH" "I want to LP $5000 into ETH/USDC" "Deposit liquidity into the 0.05% pool" "Add $10K to my WETH/USDC position" Removing liquidity: "Remove my liquidity" "Close my ETH/USDC position" "Withdraw 50% from position #12345" "Exit my LP position" Collecting fees: "Collect my fees" "Claim accumulated fees from position #12345" "How much in fees have I earned?" (check first, then offer to collect)

For Adding Liquidity

ParameterRequiredDefaultHow to ExtractactionYesβ€”Always "add" for this sub-flowtoken0Yesβ€”First token: "ETH", "WETH", "USDC", or 0x addresstoken1Yesβ€”Second tokenamountYesβ€”Dollar amount ("$5000"), token amount ("2.5 ETH"), or bothchainNoethereum"ethereum", "base", "arbitrum", "optimism", "polygon"versionNov3"v2" (passive), "v3" (concentrated), "v4" (hooks)rangeNomedium"narrow" (Β±5%), "medium" (Β±15%), "wide" (Β±50%), "full" (±∞)feeTierNoAuto-detect"0.01%", "0.05%", "0.3%", "1%" or bps: 100, 500, 3000, 10000

For Removing Liquidity / Collecting Fees

ParameterRequiredDefaultHow to ExtractactionYesβ€”"remove" or "collect"positionIdYes*β€”NFT token ID ("position #12345") or found via searchchainNoethereumChain where the position existspercentageNo100"50%", "all", "half" β€” only for removecollectFeesNotrueWhether to also collect fees when removing *If the user doesn't provide a position ID (e.g., "remove my ETH/USDC position"), search for it using get_positions_by_owner and confirm with the user before proceeding.

Add Liquidity Flow

Step 1: PARSE INTENT β”œβ”€β”€ Extract: tokens, amount, chain, version, range, fee tier β”œβ”€β”€ Normalize: "ETH" β†’ "WETH", "$5K" β†’ "$5000" └── If any required params missing β†’ ASK the user (don't guess) Step 2: POOL SELECTION (if user didn't specify exact pool) β”œβ”€β”€ If "best pool" or no fee tier specified: β”‚ └── Delegate to pool-researcher: "Find the best pool for {token0}/{token1} on {chain}" β”‚ Pool researcher returns ranked pools with APY, TVL, depth β”‚ Pick the recommended pool (or present top 3 if user wants to choose) └── If specific pool given: use directly Step 3: PRE-FLIGHT CHECKS β”œβ”€β”€ Check safety status via check_safety_status β”œβ”€β”€ Verify wallet has sufficient token balances └── If checks fail β†’ STOP and tell user what's wrong Step 4: DELEGATE TO LIQUIDITY-MANAGER β”œβ”€β”€ Pass: token0, token1, amount, chain, version, range, feeTier, pool address β”œβ”€β”€ The liquidity-manager agent handles: β”‚ a. Check and execute token approvals (Permit2) β”‚ b. Calculate optimal tick range based on range strategy β”‚ c. Simulate the add-liquidity transaction β”‚ d. Route through safety-guardian for validation β”‚ e. Execute the transaction β”‚ f. Wait for confirmation └── Returns: positionId, amounts deposited, tick range, tx hash Step 5: PRESENT RESULT β”œβ”€β”€ Position ID (NFT token ID) β”œβ”€β”€ Tokens deposited with USD values β”œβ”€β”€ Price range (lower price, upper price, current price) β”œβ”€β”€ Estimated fee APY (from pool-researcher data) β”œβ”€β”€ Explorer link to the transaction └── Tip: "Monitor with /track-performance"

Remove Liquidity Flow

Step 1: IDENTIFY POSITION β”œβ”€β”€ If position ID given β†’ use directly β”œβ”€β”€ If "my ETH/USDC position" β†’ call get_positions_by_owner β”‚ β”œβ”€β”€ Filter by token pair and chain β”‚ β”œβ”€β”€ If multiple matches β†’ LIST them and ask user to choose β”‚ └── If no matches β†’ tell user "No positions found for {pair}" └── Confirm: "I found position #{id} β€” {pair} {feeTier} with {value}. Remove?" Step 2: DELEGATE TO LIQUIDITY-MANAGER β”œβ”€β”€ Pass: positionId, chain, percentage (default 100%), collectFees β”œβ”€β”€ Agent handles: fee collection β†’ partial/full removal β†’ safety validation β†’ execution └── Returns: tokens received, fees collected, tx hash Step 3: PRESENT RESULT β”œβ”€β”€ Tokens received with USD values β”œβ”€β”€ Fees collected (if any) β”œβ”€β”€ Total value received β”œβ”€β”€ Explorer link └── If partial removal: remaining position details

Collect Fees Flow

Step 1: IDENTIFY POSITION (same as remove) Step 2: CHECK UNCOLLECTED FEES β”œβ”€β”€ Call get_position to see tokensOwed0 and tokensOwed1 β”œβ”€β”€ If fees are zero β†’ "No fees to collect on this position" └── Show fee amounts and ask to proceed Step 3: DELEGATE TO LIQUIDITY-MANAGER β”œβ”€β”€ Pass: positionId, chain, action: "collect" └── Returns: fees collected, tx hash Step 4: PRESENT RESULT β”œβ”€β”€ Fees collected (token amounts + USD values) β”œβ”€β”€ Explorer link └── Tip: "Your position is still active and earning more fees"

Critical Decision Points

These are the moments where the skill must stop and ask rather than assume: SituationActionMultiple positions matchList all matches, ask user to pick oneAmount exceeds wallet balanceShow balance, ask if they want a smaller amountPool TVL < $10,000Warn about low liquidity risk, ask to confirmRange strategy not specifiedDefault to "medium" but mention the tradeoffsFirst time LPingBriefly explain IL risk before proceedingRemove > 50% of pool liquidityWarn about price impact on exit

Successful Add

Liquidity Added Successfully Position: #456789 Pool: WETH/USDC 0.05% (V3, Ethereum) Deposited: 0.5 WETH ($980) 980 USDC ($980) Total: $1,960 Range: Lower: $1,700 (tick -204714) Upper: $2,300 (tick -199514) Current: $1,963 β€” IN RANGE βœ“ Width: Β±15% (medium) Expected Fee APY: ~15-21% (based on 7d pool data) Tx: https://etherscan.io/tx/0x... Next steps: - Monitor with: "How are my positions doing?" - Rebalance if out of range: "Rebalance position #456789" - Collect fees anytime: "Collect fees from position #456789"

Successful Remove

Liquidity Removed Position: #456789 (CLOSED) Received: 0.52 WETH ($1,020) 950 USDC ($950) Total: $1,970 Fees Collected: 0.01 WETH ($19.60) 15.20 USDC ($15.20) Total fees: $34.80 Net Result: +$44.80 (+2.3%) including fees Tx: https://etherscan.io/tx/0x...

Important Notes

IL risk: Always mention impermanent loss risk when adding liquidity to volatile pairs. Don't bury it. Gas costs: On Ethereum mainnet, LP operations cost $15-50 in gas. Mention this for small positions. Range tradeoffs: Narrow = higher fees but more rebalancing. Wide = lower fees but less maintenance. Always explain. V2 vs V3: V2 is "set and forget" with lower returns. V3 requires active management but earns more. Help the user choose. Never auto-execute: For remove and rebalance, always confirm with the user before executing.

Error Handling

ErrorUser-Facing MessageSuggested ActionWallet not configured"No wallet configured for transactions."Set WALLET_TYPE + PRIVATE_KEY in .envInsufficient balance"You have X but need Y to add liquidity."Reduce amount or swap for needed tokensPool not found"No pool found for X/Y at this fee tier."Try different fee tier or check token namesPosition not found"Position #ID not found on this chain."Check chain and position IDSafety check failed"Transaction blocked by safety: {reason}"Adjust parameters or check safety configTransaction reverted"Transaction failed: {reason}"Check slippage, amounts, or try againliquidity-manager unavailable"Liquidity agent is not available."Check agent configuration

Category context

Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs
  • SKILL.md Primary doc
  • README.md Docs