← Back to list
💰

lp-math Checked

AMM liquidity provision mathematics including constant-product, concentrated liquidity, price imp…
💰 Finance & Trading skills By agiprolabs Version v1.0.0 Updated 2026-09-20
8.3Overall rating

Installation

🤖 Install via AI

Copy the prompt below and send it to your AI assistant (e.g. Claude Code) — it will follow the instructions and install automatically.

Install the "lp-math" skill by following the instructions at https://skill123.me/install/lp-math.
⌨️ Command line install

Run in your terminal — downloads and installs to ~/.claude/skills/.

curl -fsSL https://skill123.me/install/lp-math.sh | bash
📦 Download ZIP

Download the zip and extract it into your skills directory (e.g. ~/.claude/skills/), then restart your session.

⬇ Download v1.0.0 · 21 KB

About this skill

Overview

AMM liquidity provision mathematics including constant-product, concentrated liquidity, price impact, and LP share calculations

Source

  • Repo: https://github.com/agiprolabs/claude-trading-skills
  • Path: skills/lp-math

Score breakdown

Trigger
6.0
Description states What (constant product, concentrated liquidity, price impact, LP shares) with good domain keywords; no Use-when, no boundary (related-skill pointers give partial scoping), no trigger variants.
Structure
8.7
363-line SKILL.md with two references (derivations, Solana pool mechanics) and two calculators; clean classification; quick-reference formula table; Files section annotates each.
Workflow
8.0
Formula-driven with worked examples, inverse calculations, and a decision framework (Should You LP / Which Pool Type) plus position-sizing caps (20% max, volatility adjustment); scripts operationalize the math with demo simulation; no failure gates beyond the allocation caps; verification via script worked examples.
Content
9.0
Exceptionally clean mathematical exposition; every formula immediately followed by a worked example; consistent structure across 7 numbered sections.
Engineering
10.0
Frontmatter valid; both scripts pure-stdlib with shebangs and documented usage; all referenced paths exist.
Security
9.5
6.0 manifest: fully offline — no network, no file writes, no credentials, no persistence. Capabilities match declared scope. No injection or keys. Minor: no not-financial-advice disclaimer despite LP allocation percentages.
AMM liquidity-provision mathematics done well: constant-product derivations with worked examples, concentrated-liquidity (CLMM) position math, tick/price conversion, capital-efficiency formulas, and a practical LP decision framework (fee APR minus IL vs holding, allocation caps). Two pure-stdlib calculators with demo modes — fully offline. Deductions: description lacks When/When-Not; predominantly formula-reference orientation rather than workflow; no financial disclaimer for LP allocation guidance.