Defi Sniper
by @h4gen
Orchestrates early token launch detection, on-chain risk analysis, social signal verification, and guarded swap execution on Solana and Base chains.
clawhub install defi-sniperπ About This Skill
name: defi-sniper description: Meta-skill for early token-launch intelligence and execution orchestration across Solana and Base using minara, torchmarket, and torchliquidationbot. Use when users need fast launch detection, on-chain risk triage, social-signal confirmation, and rule-based swap execution with strict guardrails. homepage: https://clawhub.ai user-invocable: true disable-model-invocation: false metadata: {"openclaw":{"emoji":"crossed_swords","requires":{"bins":["node","npx"],"env":["MINARA_API_KEY","SOLANA_RPC_URL"],"config":["skills.entries.minara.enabled"]},"note":"Requires local installation of minara, torchmarket, and torchliquidationbot. Solana trading path uses Torch stack; Base path is Minara-first."}}
Purpose
Run a high-speed token opportunity workflow:
1. detect very early pool/token activity, 2. triage contract/market risk, 3. verify social signal quality, 4. execute small, bounded entries when rules pass.
This is an orchestration skill. It coordinates upstream skills and explicit risk policy. It does not guarantee profit.
Required Installed Skills
minara (inspected latest: 1.1.9)torchmarket (inspected latest: 4.2.7)torchliquidationbot (inspected latest: 3.0.2)Install/update:
npx -y clawhub@latest install minara
npx -y clawhub@latest install torchmarket
npx -y clawhub@latest install torchliquidationbot
npx -y clawhub@latest update --all
Required Configuration and Credentials
Minimum:
MINARA_API_KEYSOLANA_RPC_URLDepending on execution route:
VAULT_CREATOR and linked agent wallet for vault-routed operations.Preflight checks before any live execution:
solana or base) explicitly selectedChain-Aware Architecture
Solana path (full stack)
Use:
Base path (constrained path)
Use:
Important boundary:
Inputs the LM Must Collect First
target_chain: solana or basetoken_symbol_or_mintmax_entry_size (example: 1 SOL or base-chain equivalent)max_slippage_bps (example: 300)risk_mode: observe, paper, livesentiment_min_accounts (minimum credible, non-bot mentions)execution_policy: manual-confirm or auto-with-guardrailsIf missing, do not run live execution.
Tool Responsibilities
Minara (minara)
Primary detection/intelligence and swap-intent layer:
Use Minara when rapid parsing and transaction assembly are required.
Torch Market (torchmarket)
Solana-native deep state layer:
getTokens) and token details (getToken),getBuyQuote, getSellQuote),getLendingInfo, getLoanPosition),Use Torch Market for on-chain structural checks and quote sanity before Solana entries.
Torch Liquidation Bot (torchliquidationbot)
Execution engine specialized for liquidation keepers:
Important boundary:
buildLiquidateTransaction path), not a generic buy/sell sniper by default.Canonical Signal Chain
Use this chain for launch-sniping decisions.
Stage 1: Early launch detection
Use Minara intelligence to detect candidate opportunities and parse swap intent context.
Required output:
Stage 2: On-chain risk triage
For Solana candidates, use Torch Market state:
Risk interpretation policy:
Stage 3: Social signal confirmation
Use external web search tools (not bundled in these three skills) to validate whether real accounts are discussing the token.
Minimum checks:
Stage 4: Decision matrix
Compute two gates:
SecurityGate: pass/failSentimentGate: pass/failExecution rule:
passno_tradeStage 5: Execution
If execution allowed:
Scenario Mapping (PEPE2.0 on Solana)
For the scenario in this skill request:
1. Minara flags a new Solana token/pool event with initial liquidity context.
2. Torch Market fetches token-level state and quote/treasury context.
3. Social verification runs in parallel via external web search (X/Twitter signal quality).
4. If SecurityGate=pass and SentimentGate=pass, execute bounded entry (example 1 SOL) with fixed slippage tolerance.
5. Log full decision trail: signals, checks, final action.
Output Contract
Always return:
DetectionOnChainRiskSocialSignalExecutionDecisiontrade or no_trade
- size, slippage, routeAuditTrailRisk Guardrails
no_trade on ambiguous or conflicting evidence.auto-with-guardrails mode, require preconfigured hard limits and fail-closed defaults.Operational Modes
observe
Detection and scoring only. No trade.
paper
Simulated entries/exits with recorded hypothetical PnL.
live
Real execution only after preflight and guardrail checks pass.
Failure Handling
observe.no_trade.Known Limits from Inspected Upstream Skills
SKILL.md.Treat these limits as mandatory disclosures in final operator output.