Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add nirholas/three.ws --skill impermanent-loss-calculatorgit clone --depth 1 https://github.com/nirholas/three.wsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nirholas/three.ws/impermanent-loss-calculator)<a href="https://agentmods.dev/skills/nirholas/three.ws/impermanent-loss-calculator"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/impermanent-loss-calculator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nirholas/three.ws/impermanent-loss-calculator"><img src="https://agentmods.dev/badge/skills/nirholas/three.ws/impermanent-loss-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.00901 |
| Opus 5.5 | $0.00012 | $0.00360 |
| Sonnet 5.5 | $0.00006 | $0.00180 |
| Haiku 4.5 | $0.00003 | $0.00090 |
Grade A, and why
impermanent-loss-calculator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Impermanent Loss Calculator
When to use this skill
Use when the user asks about:
- Calculating impermanent loss for a liquidity position
- Understanding how IL works mechanically
- Comparing LP returns vs holding
- Estimating IL for various price scenarios
- Deciding whether to provide liquidity based on IL risk
Explanation Framework
1. Gather Position Details
Collect from the user:
- Token pair: The two assets in the pool (e.g., ETH/USDC)
- Entry prices: Price of each token when liquidity was provided
- Current prices: Price of each token now (or target scenario prices)
- Pool type: Constant product (50/50), concentrated liquidity, or weighted
- Position value: Total USD value deposited
2. Impermanent Loss Formula
For a standard constant product AMM (50/50 pool):
IL = 2 * sqrt(r) / (1 + r) - 1
Where r = (new price / entry price) of one token relative to the other.
Present IL as both:
- A percentage loss relative to holding
- An absolute dollar amount based on position size
3. Scenario Table
Generate a table showing IL at various price divergence levels:
| Price Change | Price Ratio (r) | IL % | IL on $10K Position |
|---|---|---|---|
| 0% | 1.00 | 0.00% | $0 |
| +/- 10% | 1.10 or 0.91 | -0.11% | -$11 |
| +/- 25% | 1.25 or 0.80 | -0.60% | -$60 |
| +/- 50% | 1.50 or 0.67 | -2.02% | -$202 |
| +/- 75% | 1.75 or 0.57 | -3.77% | -$377 |
| +/- 100% | 2.00 or 0.50 | -5.72% | -$572 |
| +/- 200% | 3.00 or 0.33 | -13.40% | -$1,340 |
| +/- 400% | 5.00 or 0.20 | -25.46% | -$2,546 |
Customize the table with the user's actual position size.
4. Break-Even Analysis
Calculate how much fee income is needed to offset IL:
- Required daily fee income = IL amount / days in position
- Compare against actual or estimated pool fee APR
- Determine the break-even time horizon
- State clearly whether the current fee rate covers the IL
5. Concentrated Liquidity Adjustments
For concentrated liquidity positions (Uniswap V3, etc.):
- IL is amplified inversely proportional to the range width
- A position concentrated in a ±10% range has roughly 10x the IL of a full-range position at the same price move
- If price exits the range, the position becomes 100% one token (maximum IL for that range)
- Factor in capital efficiency gains — narrower ranges earn proportionally more fees
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 96 lines · 31 tokens per session scan A b349079ba20f
impermanent-loss-calculator is a skill published in the GitHub repository nirholas/three.ws (287 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 901 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
impermanent-loss-calculator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| impermanent-loss-calculatornirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 31 | Claude Code, Codex |
| pay-x402-servicenirholas/x402-payments-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 51 | Claude Code |
| x402-proxycascade-protocol/x402-proxy | Skill | 10 | 4d ago | Apache-2.0 | A | 98 | Claude Code, Codex |
| birdeyesendaifun/skills | Skill | 128 | 4mo ago | Apache-2.0 | A | 64 | Claude Code, Codex |
| granite-pay-per-callnirholas/ibm-x402-mcp | Skill | 9 | 19d ago | Apache-2.0 | A | 49 | Claude Code |
| gblin-agent-treasurygblinproject/gblin-treasury-risk-regime | Skill | 1 | 11d ago | MIT | A | 133 | Claude Code |
| pump-fee-systemnirholas/pump-fun-sdk | Skill | 152 | 3d ago | none | A | 39 | Claude Code, Codex |