Sponsor Suno AI Music arrow_forward
Slash Command

Analyze Pool

Analyze liquidity pools for APY, impermanent loss, and optimization

Type
Slash Command
GitHub stars
2.8k
License
MIT
Repo last updated
Sep 27, 2026

What Analyze Pool is

Analyze Pool is a slash command published in the jeremylongshore/tons-of-skills-marketplace repository on GitHub, which has about 2.8k stars. The repository describes itself as: “Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.”

A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.

Analyze Pool gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.

How to install Analyze Pool

Claude Code

  1. Download analyze-pool.md from the repository.
  2. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. Run it from any task with / and the skill name.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/crypto/liquidity-pool-analyzer/commands/analyze-pool.md, shared under the repository's MIT license. Read the full file on GitHub.

Comprehensive analysis of DeFi liquidity pools with impermanent loss calculations, APY projections, risk assessment, and optimization strategies across multiple DEX protocols and chains.

Overview

The liquidity pool analyzer provides institutional-grade analysis for liquidity providers across Uniswap V2/V3, Curve, Balancer, and other major DEX protocols. This tool helps LPs maximize returns while understanding and managing risks like impermanent loss, volatility exposure, and protocol-specific vulnerabilities.

Features

Core Analysis Capabilities

  • Real-Time Pool Metrics: TVL, volume, fee generation, utilization rates
  • Impermanent Loss Tracking: Continuous IL monitoring with historical analysis
  • APY Decomposition: Breakdown of trading fees, farming rewards, and token incentives
  • Liquidity Concentration: Uniswap V3 position analysis with range efficiency
  • Slippage Modeling: Price impact calculations for various trade sizes
  • Risk Scoring: Comprehensive safety assessment including rug pull detection
  • Multi-Chain Support: Ethereum, BSC, Polygon, Arbitrum, Optimism, Base

Advanced Features

  • Historical Performance: Backtesting LP positions over any time period
  • Optimal Range Calculation: For concentrated liquidity positions (V3)
  • Rebalancing Signals: Automated alerts when positions drift out of range
  • Yield Optimization: Comparison across similar pools for best opportunities
  • Gas Cost Analysis: ROI calculations including transaction costs
  • Protocol Risk Assessment: Smart contract audits, TVL trends, team transparency

Supported DEX Protocols

Uniswap V2/V3

  • Constant product (x*y=k) AMM analysis
  • V3 concentrated liquidity position evaluation
  • Tick spacing and fee tier optimization
  • Historical fee accumulation tracking

Curve Finance

  • StableSwap invariant calculations
  • Base APY vs CRV/CVX boosted yields
  • Gauge weight analysis
  • Pool imbalance detection

Balancer V2

  • Multi-asset weighted pools
  • Custom bonding curves
  • Composable stable pools
  • Protocol fee analysis

Other Protocols

  • SushiSwap (fork analysis)
  • PancakeSwap (BSC/Ethereum)
  • TraderJoe (Avalanche)
  • QuickSwap (Polygon)

Implementation

Python Pool Analyzer with Uniswap V3 Integration

"""
Comprehensive Liquidity Pool Analyzer
Supports Uniswap V2/V3, Curve, Balancer with impermanent loss tracking,
yield optimization, and risk assessment across multiple chains.
"""

import math
import requests
import json
from typing import Dict, List, Optional, Tuple
from datetime import datetime, timedelta
from dataclasses import dataclass
from enum import Enum
from web3 import Web3
from decimal import Decimal

class PoolType(Enum):
    """Supported pool types"""
…

Risk Scoring Methodology

Overall Risk Score Calculation (0-100)

The risk score is computed using weighted factors:

Overall Score = (
    Liquidity Score (25%) +
    Volume Score (15%) +
    IL Risk Score (20%) +
    Protocol Score (20%) +
    Rug Pull Score (15%) +
    Smart Contract Score (5%)
) / 6

Individual Risk Components

  1. Liquidity Risk (0-100)
  • Score = min(100, TVL / $1M * 100)
  • <$100k TVL = HIGH risk
  • $100k-$1M = MEDIUM risk
  • >$1M = LOW risk
  1. Volume Risk (0-100)
  • Score = min(100, Daily Volume / $100k * 100)
  • Healthy ratio: Daily Volume > 10% of TVL
  1. Impermanent Loss Risk
  • Based on asset correlation and volatility
  • Stablecoin pairs: LOW (90-100 score)
  • Correlated assets: MEDIUM (60-80 score)
  • Uncorrelated: HIGH (0-50 score)
  1. Protocol Risk
  • Audited major protocols: 85-95 score
  • Unaudited but established: 60-75 score
  • New/unknown: 30-50 score
  1. Rug Pull Risk
  • Liquidity locked: +30 points
  • Team doxxed: +20 points
  • Audited contracts: +25 points
  • Established community: +15 points
  • Time-tested (>6 months): +10 points

Automated Alerts

Alert Triggers

The analyzer generates alerts based on these conditions:

  1. Price Range Deviation (Uniswap V3)
  • Alert when current price moves >90% of your range width
  • Recommendation: Rebalance position
  1. TVL Drop
  • Alert when TVL drops >20% in 24 hours

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Analyze Pool?

Analyze Pool is a slash command for Claude Code and Claude Cowork from the jeremylongshore/tons-of-skills-marketplace repository on GitHub. Analyze liquidity pools for APY, impermanent loss, and optimization

How do I install Analyze Pool in Claude Code?

Download analyze-pool.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.

Can I use Analyze Pool in Claude Cowork?

Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.

Is Analyze Pool safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.