Liquidity depth analyzer
Skill aiskillstore/marketplace/skills/barissozen/liquidity-depth-analyzer
DEX liquidity analysis and slippage estimation for MEV trading. Use when implementing swaps, route selection, or position sizing. Triggers on: liquidity, slippage, price impact, depth, AMM math, Uniswap, Curve.From its SKILL.md
npx -y skills add aiskillstore/marketplace --skill liquidity-depth-analyzerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.4 KB, 315 tokens by cl100k_base, as published. Nobody here has run it
Liquidity Depth Analyzer
DEX liquidity analysis and slippage estimation for MEV trading.
When to Use
- Implementing swap execution
- Selecting optimal routes
- Sizing positions for trades
- Calculating price impact
- Validating arbitrage profitability
Workflow
Step 1: Check Liquidity Depth
Verify depth >= 3x trade size.
Step 2: Calculate Price Impact
Ensure impact < 0.5% (50 bps).
Step 3: Validate Profit After Slippage
Confirm profit survives slippage tolerance.
Core Rule
Never execute without knowing:
- Available liquidity at current price
- Price impact for your size
- Whether profit survives slippage
Key Formulas
price_impact_bps = |1 - (in/out) / spot| × 10000 minAmountOut = expected × (1 - slippage_bps / 10000)
Config
const config = {
max_price_impact_bps: 50, // 0.5%
max_slippage_bps: 100, // 1%
min_depth_multiplier: 3, // depth >= 3x trade
};
Abort Reasons
| Code | Action |
|---|---|
| NO_POOL | Find alternative route |
| LOW_DEPTH | Reduce size or split |
| HIGH_PRICE_IMPACT | Reduce size |
| LOW_PROFIT | Skip opportunity |
What ships with it: 1 file
9.3 KB alongside SKILL.md
- skill-report.json9.3 KB