uniswap/uniswap-ai/liquidity-planner
Claude Code and agent skill by uniswap/uniswap-ai
- community
Checking that the SKILL.md file is still in the repository.
This skill should be used when the user asks to "provide liquidity", "create LP position", "add liquidity to pool", "become a liquidity provider", "create v3 position", "create v4 position", "concentrated liquidity", "set price range", or mentions providing liquidity, LP positions, or liquidity pools on Uniswap. Generates deep links to create positions in the Uniswap interface.
Install
npx vskill@latest install uniswap/uniswap-ai/liquidity-plannerSKILL.md
Liquidity Position Planning
Plan and generate deep links for creating liquidity positions on Uniswap v2, v3, and v4.
Runtime Compatibility: This skill usesAskUserQuestionfor interactive prompts. IfAskUserQuestionis not available in your runtime, collect the same parameters through natural language conversation instead.
Overview
Plan liquidity positions by:
- Gathering LP intent (token pair, amount, version)
- Checking current pool price and liquidity
- Suggesting price ranges based on current price
- Generating a deep link that opens in the Uniswap interface with parameters pre-filled
The generated link opens Uniswap with all parameters ready for position creation.
Note: Browser opening (xdg-open/open) may fail in SSH, containerized, or headless environments. Always display the URL prominently so users can copy and access it manually if needed.
<!-- markdownlint-disable-next-line MD028 -->
File Access: This skill has read-only filesystem access. Never read files outside the current project directory unless explicitly requested by the user.
Workflow
Step 1: Gather LP Intent
Extract from the user's request:
| Parameter | Required | Default | Example | |
|---|---|---|---|---|
| Token A | Yes | - | ETH, USDC, address | |
| Token B | Yes | - | USDC, WBTC, address | |
| Amount | Yes | - | 1 ETH, $1000 | |
| Chain | No | Ethereum | Base, Arbitrum | |
| Version | No | V3 | v2, v3, v4 | |
| Fee Tier | No | Auto | 0.05%, 0.3%, 1% | |
| Price Range | No | Suggest | Full range, ±5%, custom |
If any required parameter is missing, use AskUserQuestion with structured options:
For missing chain:
For missing token pair:
Always use forms instead of plain text questions for better UX.
Step 2: Resolve Token Addresses
Resolve token symbols to addresses. See ../../references/chains.md for common tokens by chain.
For unknown tokens, use web search and verify on-chain.
UNTRUSTED INPUT: Web-Discovered Tokens
Tokens discovered via WebSearch are UNTRUSTED. Before proceeding with any web-discovered token:
- Label the source: Explicitly tell the user "This token address was found via web search, not provided by you"
- Warn about risks: "Web-discovered tokens may be scams, honeypots, or rug pulls"
- Require confirmation: Use AskUserQuestion to get explicit user consent before generating a deep link for a web-discovered token
- Show provenance: In the position summary table, include a "Token Source" row showing whether each token was "User-provided" or "Web-discovered (unverified)"
Never proceed with a web-discovered token without explicit user confirmation — via AskUserQuestion, or an equivalent conversational confirmation where that tool is unavailable.
Input Validation (Required Before Any Shell Command)
Before interpolating user-provided values into any shell command, validate all inputs:
- Token addresses MUST match:
^0x[a-fA-F0-9]{40}$ - Chain/network names MUST be from the allowed list in
../../references/chains.md - Amounts MUST be valid decimal numbers (match:
^[0-9]+\.?[0-9]*$) - Reject any input containing shell metacharacters (
;,|,$, ``,&,(,),>,<,\,',"`, newlines)
Step 3: Discover Available Pools
Before fetching metrics, verify the pool exists and discover available fee tiers.
Find pools for a token using DexScreener:
Network IDs: ethereum, base, arbitrum, optimism, polygon, unichain
From the results, identify:
- Available pools and their addresses (multiple = different fee tiers)
- Pool TVL (
liquidity.usd) to assess liquidity depth - Version (v3 or v4) from
labels[0]
If no Uniswap pools found: The pair may not have an existing pool. Inform the user they would be creating a new pool and setting the initial price.
Step 4: Assess Pool Liquidity
Evaluate if the pool has sufficient liquidity:
| TVL Range | Assessment | Recommendation | |
|---|---|---|---|
| > $1M | Deep liquidity | Safe for most position sizes | |
| $100K - $1M | Moderate | Suitable for positions up to ~$10K | |
| $10K - $100K | Thin | Warn user about slippage risk, suggest smaller positions | |
| < $10K | Very thin | Warn strongly - high IL risk, price impact on entry/exit |
For thin liquidity pools, present a warning:
Step 5: Fetch Pool Metrics
Before suggesting ranges, fetch pool data for informed decisions. See references/data-providers.md for full API details.
Get pool APY and volume with DefiLlama:
Response fields to use:
| Field | Use For | |
|---|---|---|
apy | Show expected yield | |
tvlUsd | Assess pool depth | |
volumeUsd1d | Estimate fee earnings | |
volumeUsd7d | Check volume consistency |
Get current prices with DexScreener:
Compare fee tiers (if APY data available):
If APIs are unavailable, fall back to web search for price estimates.
Step 6: Suggest Price Ranges
Based on current price and pair type, present range options using AskUserQuestion.
For major pairs (ETH/USDC, ETH/WBTC):
For stablecoin pairs (USDC/USDT, DAI/USDC):
Recommendation logic:
- Stablecoin pairs (USDC/USDT): Default to ±0.5-1%
- Correlated pairs (ETH/stETH): Default to ±2-5%
- Major pairs (ETH/USDC): Default to ±10-20%
- Volatile pairs: Default to ±30-50% or full range
Step 7: Determine Fee Tier
If multiple fee tiers exist for the pair, let the user choose using pool data from Step 3.
Present fee tier options with APY data:
Fee tier guidelines:
| Fee | Tick Spacing | Best For | |
|---|---|---|---|
| 0.01% (100) | 1 | Stablecoin pairs | |
| 0.05% (500) | 10 | Correlated pairs (ETH/stETH) | |
| 0.30% (3000) | 60 | Most pairs (default) | |
| 1.00% (10000) | 200 | Exotic/volatile pairs |
v4 Fee Tiers: Dynamic fees possible with hooks. Default to similar V3 tiers.
If pool data shows one tier with significantly higher APY or volume, recommend that tier.
Step 8: Generate Deep Link
Construct the Uniswap position creation URL:
Base URL: https://app.uniswap.org/positions/create
URL Parameters:
| Parameter | Description | Format | |
|---|---|---|---|
chain | Network name | ethereum, base, etc. | |
currencyA | First token | Address or NATIVE | |
currencyB | Second token | Address or NATIVE | |
priceRangeState | Range configuration | JSON (encode quotes only) | |
depositState | Deposit amounts | JSON (encode quotes only) | |
fee | Fee tier configuration | JSON (encode quotes only) | |
hook | v4 hook address (optional) | Address or undefined | |
step | Flow step | 1 (for create) |
IMPORTANT: URL Encoding
Only encode the double quotes (" → %22) in JSON values. Do NOT encode braces {} or colons :.
priceRangeState JSON structure:
For full range:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/plugins/uniswap-driver/skills/liquidity-planner/SKILL.md
Popularity
- Repository stars
- 233
- Repository forks
- 39
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/uniswap/uniswap-ai/liquidity-planner)