lp-monitor

Installation
SKILL.md

LP monitor

Reconstruct the position from chain state, measure it against HOLD, and decide whether action clears its cost and risk hurdle.

Workflow

  1. Bind chain ID, wallet, protocol version, pool identity, token order, position ID or LP balance, gauge or staking state, and observation block.
  2. Read authoritative state. Use protocol state to distinguish reserves, liquidity, owed fees, rewards, and range status.
  3. Reconstruct the original quantities and cash flows from receipts or a trusted ledger. Follow position accounting. If the baseline is unknown, label it unknown; never overwrite it with the current state.
  4. Include every attributable asset once: active position inventory, unclaimed fees, unclaimed rewards, claimed proceeds, unstaked LP or NFT state, and loose wallet residue.
  5. Measure current value, inventory change versus HOLD, realized fees, incentives, all costs, and net result over stated windows. Separate measured values from projections.
  6. Evaluate pool, token, hook, gauge, admin, and exit changes since the last good observation. A delisted pool must remain manageable.
  7. Quote each candidate action and apply action policy. Do not rebalance because a threshold fired without an economic case.
  8. Emit monitor output.

Use node scripts/position.mjs --help for range state and balance-sheet arithmetic. It does not fetch chain data and does not choose an action.

Hard rules

Installs
3
First Seen
Sep 4, 2026