clmm-compare

clmm-compare is a command for Claude Code from solanabr/position-manager-skill. It costs 22 tokens per session (882 once invoked), scanned A, original, MIT.

A comparison command for Solana concentrated-liquidity pools across Orca, Raydium, Meteora, and Kamino, using token mint addresses to identify the pair.

In plain words
What is it for?
Use it to rank supported venues by recent fee APR, compare total value locked and range characteristics, and identify the highest-yield option.
Why use it?
It removes the need to gather fee, pool-size, and range information separately when deciding where a token pair may offer better yield.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: positional $N argument.

Good fit Use it to rank supported venues by recent fee APR, compare total value locked and range characteristics, and identify the highest-yield option.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/solanabr/position-manager-skill/clmm-compare
Install

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.

Clone the repo
git clone --depth 1 https://github.com/solanabr/position-manager-skill

Made for: Claude Code.

Wrote 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.

agentmods badge for clmm-compare

README.md
[![agentmods](https://agentmods.dev/badge/commands/solanabr/position-manager-skill/clmm-compare/github.svg)](https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-compare)
Your own site
<a href="https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-compare"><img src="https://agentmods.dev/badge/commands/solanabr/position-manager-skill/clmm-compare/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.

agentmods 80×15 button for clmm-compare

Your own site · 80×15
<a href="https://agentmods.dev/commands/solanabr/position-manager-skill/clmm-compare"><img src="https://agentmods.dev/badge/commands/solanabr/position-manager-skill/clmm-compare.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 882 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00882
Opus 5.5 $0.00009 $0.00353
Sonnet 5.5 $0.00004 $0.00176
Haiku 4.5 $0.00002 $0.00088

Measured 3mo ago against content hash 9ff592d1e471, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

clmm-compare 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 3mo 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.

commands/clmm-compare.md · 72 lines

How it starts

The opening of the file, as written. The whole thing — 72 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/clmm-compare

Fetches and compares fee APR, TVL, and tick-range characteristics for a token pair across all supported venues, then recommends the highest-yield option.

Steps

  1. Set environment (compareYields uses venue REST APIs, so no RPC is required for the comparison itself; RPC is only needed if you then read your own positions):

    export SOLANA_RPC_URL="https://your-rpc-endpoint"  # optional (position reads only)
    export OWNER_ADDRESS="YourWallet111..."            # optional (current-position context)
    
  2. Run comparison (pass token MINT addresses, not symbols):

    npx tsx -e "
    import { compareYields } from './skill/templates/yield-compare';
    
    // mintA / mintB are base58 token mints (not symbols).
    const rows = await compareYields({
      mintA: 'So11111111111111111111111111111111111111112', // wSOL
      mintB: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // USDC
      topN: 5,
    });
    
    // rows are ranked by feeApr24h descending (rank 1 = best).
    for (const r of rows) {
      const apr7 = r.feeApr7d != null ? r.feeApr7d.toFixed(1) + '%' : '--';
      console.log(\`#\${r.rank} \${r.venue} \${r.feeBps}bps | 24h APR \${r.feeApr24h.toFixed(1)}% | 7d \${apr7} | TVL \$\${r.tvlUsd.toLocaleString()}\`);
    }
    "
    
  3. Example output:

    #1 meteora 5bps  | 24h APR 51.7% | 7d --    | TVL $4,200,000
    #2 orca    4bps  | 24h APR 42.3% | 7d 40.0% | TVL $18,240,000
    #3 kamino  0bps  | 24h APR 39.8% | 7d 41.0% | TVL $22,000,000
    #4 raydium 5bps  | 24h APR 38.1% | 7d 36.0% | TVL $9,100,000
    
  4. Interpret results:

    • TVL < $500k -> flag ILLIQUID_RISK; spread may be unreliable
    • APR spread > 200 bps between venues with similar IL profile -> migrate
    • Meteora DLMM dynamic-fee pools can show elevated short-window APR during high volatility; verify with 30d APR if available
    • Kamino APR includes auto-compounding; add ~10-15% effective boost vs manual
  5. Act on results:

    • To rebalance into the winning venue: /clmm-rebalance
    • To assess IL risk first: /agent lp-risk-analyst
    • To see current positions: /clmm-watch or query fetchPositions directly

Read the full file on GitHub · 72 lines

Changes

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.

  1. 3mo ago First seen · 72 lines · 22 tokens per session scan A 9ff592d1e471

Subscribe to this mod's changes

clmm-compare is a command published in the GitHub repository solanabr/position-manager-skill (2 stars, last pushed 4mo ago), licensed MIT. It adds 22 tokens to every session and 882 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-08-31.

Related

clmm-compare compared with commands from other repositories

clmm-compare next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
clmm-comparesolanabr/position-manager-skillCommand24mo agoMITA22Claude Code
hyperliquid-riskaegntic/cldcdeCommand123d agoMITA32Claude Code
global-flagshiromaily/go-crypto-walletCommand1297mo agoMITA0Claude Code
checklistgithub/spec-kitCommand153k3d agoMITA13Claude Code
clarifygithub/spec-kitCommand153k3d agoMITA27Claude Code
analyzegithub/spec-kitCommand153k3d agoMITA26Claude Code
specifygithub/spec-kitCommand153k3d agoMITA13Claude Code