OmniRoute Model Catalog
diegosouzapw/OmniRoute
Looks up which AI models an OmniRoute gateway can reach, creates or updates model aliases and tests whether individual models respond.
Impermanent loss calculation, modeling, and breakeven analysis for AMM liquidity provision across pool types
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install agiprolabs/claude-trading-skills impermanent-loss --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/impermanent-loss .claude/skills/impermanent-loss && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .claude/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-lossType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install agiprolabs/claude-trading-skills impermanent-loss --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/impermanent-loss .agents/skills/impermanent-loss && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .agents/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install agiprolabs/claude-trading-skills impermanent-loss --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/impermanent-loss .cursor/skills/impermanent-loss && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .cursor/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/agiprolabs/claude-trading-skills.git --path skills/impermanent-loss--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install agiprolabs/claude-trading-skills impermanent-loss --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/impermanent-loss .gemini/skills/impermanent-loss && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .gemini/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install agiprolabs/claude-trading-skills impermanent-lossInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/impermanent-loss .github/skills/impermanent-loss && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .github/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install agiprolabs/claude-trading-skills impermanent-loss --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/impermanent-loss .opencode/skills/impermanent-loss && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "impermanent-loss" agent skill from https://github.com/agiprolabs/claude-trading-skills/tree/main/skills/impermanent-loss into .opencode/skills/impermanent-loss/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "impermanent-loss", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
impermanent-lossImpermanent loss calculation, modeling, and breakeven analysis for AMM liquidity provision across pool types
Impermanent Loss is an agent skill from agiprolabs/claude-trading-skills. Impermanent loss calculation, modeling, and breakeven analysis for AMM liquidity provision across pool types
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including scripts and reference files (for example `references/breakeven_analysis.md`, `references/il_formulas.md` and `scripts/il_calculator.py`).
The repository describes itself as: 68 trading, DeFi, and quantitative finance Agent Skills. Works with Claude Code, Cursor, Codex, Gemini CLI, and 30+ other tools. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 981e1d7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Impermanent Loss loads about 1.9k tokens when it runs, and up to ~5.4k if it reads all its reference files. Until then it costs about 31 tokens; SKILL.md has 852 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from agiprolabs/claude-trading-skills at commit 981e1d7, republished under its MIT licence (© agiprolabs). 852 words, ~1,914 tokens.
.claude/skills/impermanent-loss/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Impermanent loss (IL) is the cost of providing liquidity to an automated market maker (AMM) relative to simply holding the tokens. When you deposit tokens into a liquidity pool, the AMM continuously rebalances your position as prices move. This rebalancing always works against you — selling winners and buying losers — resulting in less value than if you had just held the original tokens.
IL is called "impermanent" because it only crystallizes when you withdraw. If prices return to their original ratio, IL reverts to zero. However, in practice, prices rarely return exactly, so IL is usually quite real.
IL is a function of the price ratio change, not the absolute price. A token moving from $1 to $2 produces the same IL as a token moving from $100 to $200 — both are a 2x ratio change. Direction does not matter either: a 2x increase and a 0.5x decrease produce the same IL magnitude.
For a standard x * y = k AMM (Raydium standard, Orca legacy):
IL = 2 * sqrt(r) / (1 + r) - 1Where r = P_new / P_initial (the price ratio).
| Price Change | Ratio (r) | IL |
|---|---|---|
| -75% | 0.25 | -5.72% |
| -50% | 0.50 | -5.72% |
| -25% | 0.75 | -0.60% |
| 0% | 1.00 | 0.00% |
| +25% | 1.25 | -0.60% |
| +50% | 1.50 | -2.02% |
| +100% (2x) | 2.00 | -5.72% |
| +200% (3x) | 3.00 | -13.40% |
| +400% (5x) | 5.00 | -25.46% |
| +900% (10x) | 10.00 | -42.54% |
Note the symmetry: a 2x increase (r=2.0) and a 2x decrease (r=0.5) both produce -5.72% IL.
Concentrated liquidity market makers (Orca Whirlpools, Raydium CLMM, Meteora DLMM) allow LPs to concentrate liquidity within a price range [P_lower, P_upper]. This amplifies both fee income and IL.
concentration_factor = 1 / (1 - sqrt(P_lower / P_upper))For a ±10% range around current price: concentration_factor ≈ 10x.
IL_clmm ≈ IL_constant_product * concentration_factorThis approximation holds for small moves. For large moves or prices near range boundaries, use the full CLMM formula (see references/il_formulas.md).
SOL at $150, LP with ±20% range ($120–$180):
| Scenario | Constant-Product IL | CLMM IL (±20%) |
|---|---|---|
| SOL → $180 | -0.62% | ~-3.1% |
| SOL → $200 | -1.03% | 100% SOL (exit) |
| SOL → $120 | -1.80% | ~-9.0% |
| SOL → $100 | -3.42% | 100% USDC (exit) |
The core question for any LP is: Do fees earned exceed IL incurred?
Net Position = LP_value + accrued_fees - hold_valueProfitable when accrued_fees > IL.
For constant-product pools, the expected IL per period is approximately:
expected_IL ≈ σ² / 8Where σ is the standard deviation of log returns for that period. This means:
| Daily Volatility (σ) | Expected Daily IL | Min Daily Fee Rate to Break Even |
|---|---|---|
| 1% | 0.001% | 0.001% |
| 3% | 0.011% | 0.011% |
| 5% | 0.031% | 0.031% |
| 10% | 0.125% | 0.125% |
| 20% | 0.500% | 0.500% |
Daily fee income for an LP:
daily_fee_income = (deposit / TVL) * daily_volume * fee_rateFor a full breakeven framework, see references/breakeven_analysis.md.
Simulate many random price paths using geometric Brownian motion (GBM):
import numpy as np
def simulate_price_path(
initial_price: float,
daily_vol: float,
days: int,
drift: float = 0.0,
) -> np.ndarray:
"""Simulate a price path using geometric Brownian motion."""
dt = 1.0 # daily steps
log_returns = np.random.normal(
(drift - 0.5 * daily_vol**2) * dt,
daily_vol * np.sqrt(dt),
days,
)
prices = initial_price * np.exp(np.cumsum(log_returns))
return np.insert(prices, 0, initial_price)For each path, compute the IL at each timestep and the cumulative fees earned. After N simulations, analyze the distribution of outcomes.
See scripts/il_scenario_modeler.py for a complete Monte Carlo simulation.
Use actual OHLCV price data to compute what IL would have been for a historical period. This gives a more realistic (but backward-looking) estimate.
Pairs like USDC/USDT have near-zero IL because the price ratio barely moves. Fee income is almost pure profit.
Pairs like SOL/mSOL or ETH/stETH move together, so the price ratio stays close to 1.0. IL is minimal.
A wider range reduces concentration factor, reducing IL at the cost of less fee income per unit of capital.
Monitor price and rebalance your CLMM range when price approaches boundaries. This reduces the risk of price exiting your range entirely.
Higher fee tiers (e.g., 1% vs 0.3%) compensate for higher IL in volatile pairs. Match fee tier to expected volatility.
references/il_formulas.md — Full IL derivations for constant-product, CLMM, and multi-asset poolsreferences/breakeven_analysis.md — Fee vs IL breakeven framework with practical toolsscripts/il_calculator.py — Calculate IL for any price change across pool types, with tables and comparisonsscripts/il_scenario_modeler.py — Monte Carlo simulation of LP positions over time with fee and IL modeling© agiprolabs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts, references) in skills/impermanent-loss of agiprolabs/claude-trading-skills.
Open the folder on GitHubat commit 981e1d7
Impermanent Loss next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Impermanent Loss this skillagiprolabs/claude-trading-skills | 410 | — | ~1.9k | Automated safety check: Pass | MIT | |
| OmniRoute Model Catalogdiegosouzapw/OmniRoute | 75k | — | ~589 | Automated safety check: Pass | MIT | |
| Model Bank Metadatalobehub/lobehub | 83k | — | ~2k | Automated safety check: Pass | Custom licence | |
| Harness Threat Modelruvnet/ruflo | 74k | — | ~363 | Automated safety check: Notes | MIT | |
| OmniRoute Model Catalog CLIdiegosouzapw/OmniRoute | 75k | — | ~554 | Automated safety check: Pass | MIT | |
| Defi Amm Securityaffaan-m/ECC | 276k | 1 repos | ~1.3k | Automated safety check: Pass | MIT |
diegosouzapw/OmniRoute
Looks up which AI models an OmniRoute gateway can reach, creates or updates model aliases and tests whether individual models respond.
lobehub/lobehub
Fills and maintains the knowledgeCutoff, family and generation fields on model cards in LobeHub's model bank, from a single new model up to repo-wide backfills.
ruvnet/ruflo
Enterprise-review-grade threat model from harness threat-model {path}.
diegosouzapw/OmniRoute
Lists and manages AI models from the OmniRoute command line: browse a provider's catalog, search it, and add, edit, remove or test-add models.
affaan-m/ECC
Security checklist for Solidity AMM contracts, liquidity pools, and swap flows.
openclaw/openclaw
Summarize CodexBar local cost logs by model for Codex or Claude, including current or full breakdowns.
agiprolabs/claude-trading-skills
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
agiprolabs/claude-trading-skills
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
agiprolabs/claude-trading-skills
Broad crypto market data from CoinGecko covering 13,000+ tokens.
agiprolabs/claude-trading-skills
Cointegration testing for pairs trading using Engle-Granger, Johansen, and rolling stability analysis
agiprolabs/claude-trading-skills
Wallet evaluation, monitoring, and copy-trade strategy design for Solana DEX trading
agiprolabs/claude-trading-skills
Cross-asset correlation analysis including rolling correlation, hierarchical clustering, tail dependence, and regime-dependent correlation
Impermanent loss calculation, modeling, and breakeven analysis for AMM liquidity provision across pool types. Impermanent Loss is an agent skill from agiprolabs/claude-trading-skills.
Run `npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a claude-code`. Or copy the skill folder (skills/impermanent-loss in agiprolabs/claude-trading-skills) into .claude/skills/impermanent-loss in your project. Claude Code loads it when a task matches its description.
Run `npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a codex`. Or copy the skill folder (skills/impermanent-loss in agiprolabs/claude-trading-skills) into .agents/skills/impermanent-loss in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add agiprolabs/claude-trading-skills --skill impermanent-loss -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/impermanent-loss, .gemini/skills/impermanent-loss, .github/skills/impermanent-loss and .opencode/skills/impermanent-loss in your project.
Going by SKILL.md and its folder, Impermanent Loss needs Python for the scripts in its folder. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Impermanent Loss is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Impermanent Loss: OmniRoute Model Catalog (diegosouzapw/OmniRoute, 75k stars), Model Bank Metadata (lobehub/lobehub, 83k stars), Harness Threat Model (ruvnet/ruflo, 74k stars) and OmniRoute Model Catalog CLI (diegosouzapw/OmniRoute, 75k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
agiprolabs (a GitHub user) maintains it in agiprolabs/claude-trading-skills, which has 410 GitHub stars. The repository holds 68 skills in this directory. The repository was last updated on September 3, 2026.
Source: agiprolabs/claude-trading-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.