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
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.