Index of every page on this site: llms.txt
All skills
Run it yourself

Manage Solana concentrated-liquidity (CLMM/DLMM) LP positions across Orca Whirlpools, Raydium CLMM, and Meteora DLMM, plus the constant-product baselines (Raydium CPMM, Meteora DAMM v2). Track impermanent loss, detect out-of-range positions, and decide + execute rebalances. Use when the user asks about liquidity providing, LP positions, concentrated liquidity, impermanent loss, range management, or rebalancing on Solana.

  • 14 files
  • 74.1 KB
  • MIT
  • Updated 5 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/yusizer/solana-position-manager-skill/skill

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

raydium-cpmm.md

≈776 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Raydium CPMM — scope note (constant-product, not concentrated)

Raydium CPMM is a separate program from CLMM. It is a constant-product AMM (x·y = k) with fungible LP tokens — there is no price range, no tick/bin concentration, and no per-position NFT. Verified against @raydium-io/raydium-sdk-v2 and docs.raydium.io.

Program ID (verified)

Network Program ID
Mainnet-beta CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C

Do not confuse with CLMM (CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK), AMM v4 (675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8), or LaunchLab — all separate programs.

Why this skill does not actively manage CPMM positions

Concentrated-liquidity mechanics — range selection, out-of-range drift, amplified IL — do not apply to a constant-product pool. A CPMM LP position is the degenerate full-range case of every formula in impermanent-loss.md:

  • Capital efficiency λ = 1 (full-range) → IL is the v2 curve IL_v2(r) = 2·√r/(1+r) − 1, not the amplified λ · IL_v2.
  • No "out of range" state — the position always earns fees on every swap, so range-alerts.md has nothing to fire on.
  • No rebalance decision — there is no range to widen, move, or withdraw (rebalance.md heuristics are N/A).

This is the kit-skill's documented "When NOT to use" gate, made concrete: set-and-forget full-range v2 LP adds little; a position manager's value comes from concentration.

If you still need CPMM data

The position is an SPL token balance (an LP token account), not a Position account with a range. To inspect:

// raydium.cpmm facade (constant-product): pool info + your fungible LP balance.
import { Raydium } from "@raydium-io/raydium-sdk-v2";
const raydium = await Raydium.load({ owner, connection, cluster });
const { poolInfo, poolKeys } = await raydium.cpmm.getPoolInfoFromRpc(poolId);
// your liquidity share = yourLpBalance / poolInfo.liquidity (fungible, no tick range).

raydium.cpmm.* mirrors raydium.clmm.* shape but returns fungible-LP state with no tick range. SDK v2 0.2.55-alpha. Unverified: the exact raydium.cpmm method names against the current facade — confirm in @raydium-io/raydium-sdk-v2 before relying on them. The constant-product conclusion above is what matters for this skill's scope; the exact getter is out of the position-management loop.

Where it belongs in the AMM landscape

Orca Whirlpools, Raydium CLMM, and Meteora DLMM are the concentrated programs this skill covers end-to-end (fetch → measure → decide → monitor): Meteora DLMM has an executable atomic rebalance; Orca and Raydium ship SDK-correct rebalance recipes (resetPositionRangeInstructions / close+open). Raydium CPMM and AMM v4 are constant-product baselines (λ = 1) covered by the full-range case in impermanent-loss.md, not active range management. See the coverage table in ../README.md and the routing in SKILL.md.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at b89520b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 5 months ago
compatibility
claude-code, codex
Other metadata
metadata
{
  "orca-whirlpools": "@orca-so/whirlpools 8.x",
  "raydium-clmm": "raydium-sdk-v2 0.2.55",
  "meteora-dlmm": "@meteora-ag/dlmm 1.9.10",
  "meteora-damm-v2": "@meteora-ag/cp-amm-sdk 1.4.4",
  "verified": "2026-06-26"
}

README badge

README badge for yusizer/solana-position-manager-skill