Skill
Prediction-market quant infra for Solana - normalize Jupiter Prediction, Kalshi-via-DFlow, and Polymarket events/orderbooks; compute de-vig fair value and implied probability; scan cross-venue arb mispricing; enforce binary-outcome risk limits and Solana-native SPL position handling. Use for odds, fair value, mispricing, position sizing, max-loss, and unsigned prediction-market orders.From its SKILL.md
npx -y skills add alexbanda08/solana-prediction-quant --skill skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.5 KB, ~1.1k tokens by cl100k_base, as published. Nobody here has run it
solana-prediction-quant
Prediction-market quant infrastructure for Solana. Normalizes multi-venue events and orderbooks to a common implied-probability + USD frame, removes the bookmaker margin (de-vig) for fair value, scans for cross-venue mispricing, and gates every trade through a binary-outcome risk engine before returning an unsigned transaction.
Prior art (honest): joinQuantish/skills ships cross-venue Polymarket + Kalshi-via-DFlow discovery/trading skills. This skill differs by adding (1) de-vig fair-value math, (2) a binary-outcome / event-cluster RISK engine (full-stake max loss, correlation groups, Kelly capped per market), and (3) Jupiter Prediction venue inclusion + Solana-native SPL position handling that joinQuantish lacks.
Source precedence (read before answering)
- Prefer the routed VENUE leaf over memory for any endpoint, scale, or field name.
- Price scales are venue-specific: Jupiter
1000000 = $1.00, DFlow10000 = $1.00, Polymarket cents (dollars0..1). Convert everything to common0..1implied probability + USD viatoUsd(venue, raw)/ adapters innormalized-market.ts. - NEVER auto-sign or auto-submit. Clients return an UNSIGNED transaction; signing and
submission are delegated. See
references/safety-rails.md. - Delegate tx build / signing / priority fees to
../solana-dev/; delegate token swaps to the jupiter skill. Seereferences/delegation.md. - Venue maturity: Jupiter = BETA (US/KR IP-blocked); DFlow = GA but KYC-gated via Proof; Polymarket = GA but settles on Polygon (reference leg only); Epoch/Arcium = NOT-YET-INTEGRABLE (no public dev API).
Task Routing Guide
Open exactly ONE leaf per task.
| User asks about X | Leaf |
|---|---|
| events / odds / orderbook (Jupiter Prediction) | references/venues/jupiter-prediction.md |
| Kalshi / SPL positions / redeem (DFlow) | references/venues/dflow-kalshi.md |
| Polymarket book / WS / reference leg | references/venues/polymarket-direct.md |
| private / Arcium / Epoch venues | references/venues/epoch-arcium.md |
| fair value / de-vig / implied probability | references/math/implied-probability-devig.md |
| cross-venue arb / mispricing | references/strategy/cross-venue-arb.md |
| position sizing / risk / exposure / max loss | references/risk/binary-outcome-risk.md |
| stream live prices / positions | references/streaming/data-stream.md |
| sign / submit / swap | references/delegation.md |
| package / version pins | references/sdk-versions.md |
| safety / confirm-gate / caps | references/safety-rails.md |
Progressive disclosure
- This SKILL.md is a ROUTER. Do not inline venue content here.
- Load the SKILL body on activation -> open ONE leaf for the task -> follow that leaf's
links only if it points further (e.g. a venue leaf ->
delegation.mdfor submit). - Code templates live beside the leaves and export the symbols in the contract
(
normalized-market.ts,devig.ts,risk-engine.ts,arb-scanner.ts, venue clients,stream.ts,devig.test.ts). Reuse them; do not re-derive.
Agents
| Agent | Use when |
|---|---|
| agents/prediction-quant-architect.md | designing a multi-venue strategy, risk model, or de-vig pipeline (opus) |
| agents/market-data-engineer.md | wiring a venue client, adapter, or stream to the normalized frame (sonnet) |
Commands
| Command | Does |
|---|---|
| commands/scaffold-prediction-bot.md | scaffold a bot wiring clients, de-vig, arb scanner, risk gate, and stream |
| commands/check-risk-limits.md | dry-run OrderIntents through the RiskEngine pre-trade gate |
What ships with it: 21 files
114.4 KB alongside SKILL.md, 8 of them executable
references/
- delegation.md1.8 KB
- math/implied-probability-devig.md6.1 KB
- risk/binary-outcome-risk.md5.2 KB
- safety-rails.md3.3 KB
- sdk-versions.md2.2 KB
- strategy/cross-venue-arb.md6.0 KB
- streaming/data-stream.md6.3 KB
- venues/dflow-kalshi.md2.8 KB
- venues/epoch-arcium.md1.5 KB
- venues/jupiter-prediction.md2.8 KB
- venues/polymarket-direct.md2.7 KB
templates/
- arb-scanner.tsruns7.7 KB
- config/risk-limits.example.json3.4 KB
- devig.test.tsruns3.5 KB
- devig.tsruns6.5 KB
- dflow-prediction-client.tsruns14.5 KB
- jupiter-prediction-client.tsruns10.5 KB
- normalized-market.tsruns6.7 KB
- package.json1.2 KB
- risk-engine.tsruns6.5 KB
- stream.tsruns13.1 KB