npx claudepluginhub jeremylongshore/claude-code-plugins-plus-skills --plugin liquidity-pool-analyzerWant just this skill?
Then install: npx claudepluginhub u/[userId]/[slug]
Analyze DEX liquidity pools for TVL, volume, fees, impermanent loss, and LP profitability. Use when analyzing liquidity pools, calculating impermanent loss, or comparing DEX pools. Trigger with phrases like "analyze liquidity pool", "calculate impermanent loss", "LP returns", "pool TVL", "DEX pool metrics", or "compare pools".
This skill is limited to using the following tools:
ARD.mdPRD.mdconfig/settings.yamlreferences/errors.mdreferences/examples.mdreferences/implementation.mdscripts/formatters.pyscripts/il_calculator.pyscripts/pool_analyzer.pyscripts/pool_fetcher.pyscripts/pool_metrics.pyAnalyzing Liquidity Pools
Overview
Analyze DEX liquidity pools across Uniswap, Curve, and Balancer to evaluate TVL, trading volume, fee income, and impermanent loss risk. Compare pools across protocols and chains to identify optimal LP opportunities.
Prerequisites
- Python 3.8+ installed
- Internet access for subgraph/API queries
- Understanding of liquidity providing concepts (IL, fee tiers, TVL)
Instructions
-
Analyze a specific pool by address or token pair:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool 0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640 python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pair ETH/USDC --protocol uniswap-v3 -
Calculate impermanent loss for a price change:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --il-calc --entry-price 2000 --current-price 3000 # 2000/3000 = ETH price at entry/now in USDProject IL for various scenarios:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --il-scenarios --token-pair ETH/USDC -
Estimate LP returns with fee APR and position projections:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --detailed python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --position 10000 # 10000 = LP position size in USD -
Compare pools across protocols or fee tiers:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --protocols uniswap-v3,curve,balancer python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --fee-tiers 0.05,0.30,1.00 -
Export results to JSON or CSV:
python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --pool [address] --format json --output pool_analysis.json python ${CLAUDE_SKILL_DIR}/scripts/pool_analyzer.py --compare --pair ETH/USDC --format csv --output pools.csv
Output
Pool analysis reports include chain, TVL, 24h volume, fee tier, fee APR, volume/TVL ratio, and token composition with current price. Impermanent loss reports show IL percentage, dollar impact, HODL vs LP value comparison, and breakeven analysis with days-to-recover based on fee income.
See ${CLAUDE_SKILL_DIR}/references/implementation.md for detailed output format examples.
Error Handling
| Error | Cause | Fix |
|---|---|---|
| Pool not found | Wrong address or chain | Verify address and target chain |
| Subgraph timeout | API latency or downtime | Uses cached data with warning |
| Invalid pair | Unsupported protocol | Check supported protocols list |
Examples
Analyze top ETH/USDC pool - Full TVL, volume, and fee breakdown on Uniswap V3:
python pool_analyzer.py --pair ETH/USDC --protocol uniswap-v3 --chain ethereum
Calculate IL for 2x price increase - See dollar impact vs holding:
python pool_analyzer.py --il-calc --entry-price 100 --current-price 200 # 100/200 = token price at entry/now in USD
Compare Uniswap fee tiers - Find optimal fee tier for ETH/USDC:
python pool_analyzer.py --compare --pair ETH/USDC --fee-tiers 0.05,0.30,1.00
Export all ETH pairs - Dump pool data for further analysis:
python pool_analyzer.py --token ETH --format json --output eth_pools.json
Resources
- The Graph: https://thegraph.com/ - Subgraph queries
- Uniswap Info: https://info.uniswap.org/ - Pool explorer
- DeFiLlama: https://defillama.com/ - TVL data
${CLAUDE_SKILL_DIR}/references/implementation.md- Detailed output formats, configuration, cross-protocol comparison guide
Similar Skills
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.