position-manager
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)
- On-chain account state (whirlpool/pool/position accounts) is ground truth.
- SDK quote / simulation is next - use for pricing and rebalance sizing.
- Cached values are last resort and must be labeled stale.
- Never auto-execute a fund-moving or signing transaction without an explicit typed human confirmation.
- Always
rpc.simulateTransactionbefore submit (you pay the CU limit either way). - Enforce caps: slippage, max-notional, max-position, daily-loss, kill-switch; default
DRY_RUN=true,REQUIRE_CONFIRM=true. No bypass flag. - Delegate all Anchor / program / IDL / tx-signing / priority-fee plumbing to
../solana-devviareferences/delegation.md. Delegate swaps to the jupiter skill where relevant.
Task Routing Guide
Open exactly ONE leaf per task.