AGENT SKILL

prism-openclaw

Operate Prism, an autonomous Solana DLMM liquidity agent for Meteora pools, through the OpenClaw Gateway. Use when the user asks about "prism", "DLMM", "liquidity agent", "Meteora pools", "rebalance positions", "paper trade Solana", or wants the agent to check/trade/manage Prism positions.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 11
Forks
3

01 前言 Front Matter

name
prism-openclaw
tags
[ "solana", "defi", "liquidity", "meteora", "dlmm", "trading-agent" ]
author
irfndi
license
MIT
version
0.0.31
homepage
https://github.com/irfndi/prism-liquidity-agent
metadata
{ "openclaw": { "os": [ "darwin", "linux" ], "emoji": "🔺", "requires": { "bins": [ "prism" ] }, "capabilities": [ "mcp", "http" ] } }
description
Operate Prism, an autonomous Solana DLMM liquidity agent for Meteora pools, through the OpenClaw Gateway. Use when the user asks about "prism", "DLMM", "liquidity agent", "Meteora pools", "rebalance positions", "paper trade Solana", or wants the agent to check/trade/manage Prism positions.
compatibility
Requires Bun 1.4+, the `prism` CLI, and a Helius RPC key.
user-invocable
true

03 SKILL.md 正文

Prism Liquidity Agent (OpenClaw)

Prism is an autonomous liquidity agent for Solana Meteora DLMM pools. This skill lets OpenClaw query Prism, receive alerts, and remind the user to check positions.

When to use

  • User asks about liquidity pool management on Solana.
  • User wants to start, stop, configure, or monitor the Prism trading agent.
  • User says "check my Prism positions", "any alerts from Prism?", or "should I rebalance?"
  • Prism sent an alert via the OpenClaw Gateway and the user replies for context.

Quick start

# Configure (non-interactive)
prism setup --non-interactive --helius-key=$HELIUS_API_KEY

# Start with OpenClaw overlay enabled
export AGENTIC_MODE=true
export AGENT_RUNTIME=openclaw
export AGENT_GATEWAY_URL=ws://127.0.0.1:18789
prism dev

Regular checks

OpenClaw should remind the user every hour while Prism is running:

# Run from this skill's scripts folder
{baseDir}/scripts/prism-checkin.sh

This fetches a short markdown summary suitable for Telegram/Discord/Slack/WhatsApp.

On-demand queries

Query Command
Full JSON status prism status --json
Messaging summary {baseDir}/scripts/prism-checkin.sh
Open positions curl -s http://127.0.0.1:18790/positions
Recent decisions curl -s http://127.0.0.1:18790/decisions

Decision flow

For each pool on each scan cycle:

  1. Fetch pool state and bin array from Meteora via Helius RPC.
  2. Compute metrics: fee/IL ratio, volume authenticity, bin utilization, TVL velocity.
  3. Apply decision rules: EXIT → REBALANCE → HOLD → ENTER.
  4. Run risk gates: confidence, max positions, allocation cap.
  5. Execute in paper or live mode.

Alert priorities

When Prism sends an alert through the Gateway, surface it according to priority:

  • critical — immediate notification (TVL collapse, trailing stop, stop-loss).
  • warning — batched or quiet notification (volume auth drop, fee/IL drop, large unrealized loss).
  • info — included in the next hourly summary (ENTER, REBALANCE).

Files

04 同仓库更多 Skills