position-manager

position-manager is a skill for Claude Code, Codex from solanabr/position-manager-skill. It costs 100 tokens per session (1,137 once invoked), scanned A, original, MIT.

A command center for managing Solana concentrated-liquidity positions, where funds earn fees only inside a selected price range, across several trading venues and vaults.

In plain words
What is it for?
Use it to detect positions leaving their range, compare venues, estimate fees and impermanent loss, plan rebalances, and track lots using FIFO, HIFO, or SPEC-ID methods.
Why use it?
It brings monitoring, historical testing, yield comparison, rebalancing, and tax-lot records into one workflow while requiring human confirmation before fund-moving transactions.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/solanabr/position-manager-skill/skill
Any agent
npx skills add solanabr/position-manager-skill --skill skill
Clone the repo
git clone --depth 1 https://github.com/solanabr/position-manager-skill

Made for: Claude Code, Codex.

Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00100 $0.01137
Opus 5 $0.00050 $0.00568
Sonnet 5 $0.00020 $0.00227
Haiku 4.5 $0.00010 $0.00114

Measured 3d ago against content hash 92db0bf00b28, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

position-manager 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 3d ago.

The scan reads SKILL.md. This mod also ships 18 executable files (templates/adapters/kamino.ts, templates/adapters/meteora-damm.ts, templates/adapters/meteora.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skill/SKILL.md · 68 lines

How it starts

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

Position Manager (CLMM Command Center)

Full concentrated-liquidity LP lifecycle across Orca Whirlpools / Raydium CLMM / Meteora DLMM + DAMM v2 / Kamino vaults: realtime out-of-range alerting, IL-vs-HODL + fee-APR backtesting, cross-DEX yield routing, simulate-first rebalancing, and a tax-lot ledger.

Prior art (honest): single-venue liquidity skills/SDKs and hosted rebalancing bots already exist. This builds out the official solanabr/position-manager-skill seed (a level-up of that pattern). The edge is the combination: realtime gRPC/websocket alerts (not polling), backtesting with break-even width, cross-DEX routing, and a confirm-gated rebalance - in one router that delegates Anchor work to ../solana-dev. This is scaffolding + knowledge, never a hosted/auto-running bot.

Source precedence (apply in order)

  1. On-chain account state (whirlpool/pool/position accounts) is ground truth.
  2. SDK quote / simulation is next - use for pricing and rebalance sizing.
  3. Cached values are last resort and must be labeled stale.
  4. Never auto-execute a fund-moving or signing transaction without an explicit typed human confirmation.
  5. Always rpc.simulateTransaction before submit (you pay the CU limit either way).
  6. Enforce caps: slippage, max-notional, max-position, daily-loss, kill-switch; default DRY_RUN=true, REQUIRE_CONFIRM=true. No bypass flag.
  7. Delegate all Anchor / program / IDL / tx-signing / priority-fee plumbing to ../solana-dev via references/delegation.md. Delegate swaps to the jupiter skill where relevant.

Task Routing Guide

Open exactly ONE leaf per task.

User asks about... Leaf
list / track / show positions, unclaimed fees, in-range references/positions.md
realtime / out-of-range / websocket / gRPC alerts references/streaming.md
IL vs HODL / fee APR / backtest / range width references/backtesting.md
best yield / compare APR / where to LP references/yield-routing.md
Kamino vault / auto-compound references/kamino-vaults.md
rebalance / recenter / close+reopen / execute references/rebalancing.md
taxes / cost basis / FIFO / HIFO / lots references/tax-lots.md
Anchor / program / IDL / sign tx / priority fee references/delegation.md
package / version / which SDK references/sdk-versions.md
safety / caps / confirm gate / kill-switch references/safety-rails.md

Read the full file on GitHub · 68 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. 3d ago First seen · 68 lines · 100 tokens per session scan A 92db0bf00b28

Subscribe to this mod's changes

position-manager is a skill published in the GitHub repository solanabr/position-manager-skill (2 stars, last pushed 1mo ago), licensed MIT. It adds 100 tokens to every session and 1,137 once invoked, about $0.0005 per session on Opus 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.