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.

monitoring.md

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

Monitoring & Alerts

How to keep the "measure" step running on a schedule so out-of-range drift and threshold breaches surface without a human watching. Pair with range-alerts.md (the signals) and the protocol files (the fetch).

1. What a monitor does

On a fixed interval (default: every 5 min for volatile pairs, 15 min for stable/stable):

  1. Fetch the wallet's CLMM/DLMM positions (protocol file).
  2. Fetch the current tick / active bin + accrued fees — fresh, per ../rules/position-data-freshness.md.
  3. Evaluate signals from range-alerts.md (drift, feeRatio, IL).
  4. Emit an alert only on a state change or threshold breach (not every run — avoid alert fatigue).
  5. Persist last-seen state so "state change" is meaningful across runs.

2. Data path

  • RPC: Helius (recommended — generous free tier, DAS + parsed history) or any Solana RPC. URL + key in env. Read-only is sufficient.
  • Price (for USD fee/principal): Jupiter Price API v3, Birdeye, or GeckoTerminal. Cache 60s max.
  • No key custody. The monitor reads on-chain state for a public wallet pubkey. It never needs a private key.

3. Alert targets

Pick one (ask the user in /monitor-setup):

  • Webhook (Slack/Discord/Telegram bot) — POST a one-line JSON per alert.
  • Log file — append ts | position | signal | drift | feeRatio | IL% for local review.
  • stdout — for a cron job piped to mail or a notifier.

Alert format contract (one line, machine-parseable):

<iso8601> | <protocol> | <position_id> | <GREEN|YELLOW|RED> | drift=<f> | feeRatio=<f> | IL=<f>% | tickAge=<s>s | next=<cmd>

4. Schedule

  • cron (system): */5 * * * * cd /path && ./.env/bin/python monitor.py >> monitor.log 2>&1
  • GitHub Actions (free, no server): a 5-min schedule with the wallet + RPC key in repo secrets; commit alerts to a log branch or POST to a webhook. Good for "no infra" setups.
  • In-process (long-running): a single Node/Python process with setInterval/asyncio — simplest if already running a bot.

Prefer cron/Actions for a set-and-forget monitor; in-process only if something else is already running.

5. Env shape (.env.example)

# RPC
SOLANA_RPC_URL=https://mainnet.helius-rpc.com/?api-key=YOUR_KEY
# Wallet to watch (public key only — no secret)
WATCH_WALLET=
# Price source (optional, for USD figures)
PRICE_PROVIDER=jupiter   # jupiter | birdeye | geckoterminal
# Alert target
ALERT_WEBHOOK=           # https://hooks.slack.com/... or Discord/Telegram
ALERT_LOG=monitor.log    # if no webhook
# Tunables
INTERVAL_SECONDS=300
STALE_TICK_MAX_SECONDS=60
REBALANCE_COOLDOWN_MIN=240
MIN_REBALANCE_USD=250

6. Failure handling

  • RPC down / 5xx: retry with backoff (3 tries), then emit a MONITOR_RPC_DOWN alert once (not every run) and skip the tick.
  • Stale tick: do not emit a Yellow/Red from stale data — emit DATA_STALE per ../rules/position-data-freshness.md.
  • Position closed between runs: emit a POSITION_CLOSED info line (don't alert as an error).
  • Crash: the runner (cron/Actions) should not suppress stderr — surface it so a silent failure isn't mistaken for "all green".

7. Keep it safe

  • Read-only RPC, public wallet watch, no private keys, no auto-execution. The monitor observes; any rebalance still goes through /rebalance-suggest + rebalance-engineer + explicit user sign-off.

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