uniswap-pool-analysis
Analyze Uniswap pool data including liquidity distribution, fee tiers, tick ranges, and TVL. Use when the user asks about pool metrics, liquidity analysis, or wants to query on-chain pool state.
Why use this skill?
Analyze Uniswap v3/v4 liquidity pools, TVL, and price ranges. Retrieve real-time on-chain data for DeFi research and market making with OpenClaw.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/wpank/uniswap-pool-analysisWhat This Skill Does
The uniswap-pool-analysis skill provides OpenClaw agents with the capability to perform deep, on-chain inspections of Uniswap v3 and v4 liquidity pools. By interfacing directly with smart contracts via viem, the agent can retrieve real-time state variables such as the current sqrtPriceX96, tick index, and active liquidity levels. It translates complex blockchain hexadecimal data into human-readable metrics, enabling users to understand price dynamics and fee structures without manually parsing raw contract data. The skill includes built-in conversion utilities for price calculation based on tick index and price square roots, abstracting the underlying math for the user.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/wpank/uniswap-pool-analysis
Ensure that your environment variables, specifically ETHEREUM_RPC_URL or the relevant chain-specific RPC, are configured properly to allow the agent to perform read operations against the blockchain nodes.
Use Cases
This skill is designed for liquidity providers, market makers, and DeFi researchers. Primary use cases include:
- Determining optimal fee tiers for providing liquidity based on pool volatility.
- Auditing liquidity depth at specific price ranges to predict potential slippage.
- Analyzing historical tick data to identify trends in concentrated liquidity.
- Building automated monitoring bots that alert users when price action approaches the edges of their liquidity ranges.
Example Prompts
- "Analyze the liquidity distribution for the WBTC/USDC 0.05% pool on Ethereum. How much liquidity exists between tick 190000 and 195000?"
- "What is the current price of the ETH/DAI pool on Arbitrum, and how does that compare to the current tick's fee tier settings?"
- "Show me the TVL and fee efficiency for the top three liquidity pools on Base for the WETH/USDC pair."
Tips & Limitations
- Rate Limiting: Frequent queries to blockchain nodes may hit RPC rate limits. Consider using high-throughput providers.
- Data Completeness: While slot0 gives the current state, reconstructing full liquidity distributions requires multiple contract calls to
tickBitmapandticksmappings, which can be computationally intensive. - Chain Specifics: Always ensure the
chainIdis provided. If querying a non-mainnet chain, verify that the contract addresses for the factory and quoter are correctly mapped in your environment configuration.
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-uniswap-pool-analysis": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
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.
ui-ux-pro-max
Searchable UI/UX design databases: 50+ styles, 97 palettes, 57 font pairings, 99 UX rules, 25 chart types. CLI generates design systems from natural language. Data-driven complement to ui-design.
web-design
CSS implementation patterns for layout, typography, color, spacing, and responsive design. Complements ui-design (fundamentals) with code-focused examples.
workflow-patterns
Systematic task implementation using TDD, phase checkpoints, and structured commits. Ensures quality through red-green-refactor cycles, 80% coverage gates, and verification protocols before proceeding.
websocket-hub-patterns
Horizontally-scalable WebSocket hub pattern with lazy Redis subscriptions, connection registry, and graceful shutdown. Use when building real-time WebSocket servers that scale across multiple instances. Triggers on WebSocket hub, WebSocket scaling, connection registry, Redis WebSocket, real-time gateway, horizontal scaling.