К основному содержанию
скилл CX Codex

prediction-market-live-ops — скилл для Claude Code

Скилл prediction-market-live-ops для автоматизированной торговли на prediction markets (Kalshi). Включает бэктест-методику, live-правила безопасности и протоколы проверки гипотез, основанные на реальной кампании с реальными деньгами.

MIT 194 установок ★ 582 обновлён 2026-09-03

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add agiprolabs/claude-trading-skills --skill prediction-market-live-ops -a claude-code
Открыть на GitHub

Что делает prediction-market-live-ops

Скилл упаковывает операционный опыт с Kalshi (август–сентябрь 2026: крипто/коммодити ладдеры, режимные сдвиги, теннис). Каждое решение о стратегии требует доказательств: бэктест → paper-трейдинг → live-микрозонд → масштабирование. На каждом этапе объявляются условия останова ДО поступления данных, с правильной калибровкой вероятности. Если условие оказывается неправильным, его переделывают открыто.

Внутри — бэктест-правила (печать-реплей как верхняя граница, правильный хронопорядок свечей, проверка реальной исполнимости, концентрация PnL, смещение при ранних расчётах), правила live-исполнения (smoke-test каждого пути, различие отменённых и исполненных ордеров, маршрутизация шарда, эмпирические тесты rate-limits, post_only для мейкеров, halt-файл и drawdown-breaker, приоритет очереди, геофенсинг).

Скилл опирается на reference-имплементацию https://github.com/agiprolabs/kalshi-stack и дополняет скилл prediction-market-strategy (выбор edge и сайзинг). Это именно операционная сторона: валидация, исполнение и остановка стратегий на живой бирже так, чтобы убыток не превысил стоимость урока.

Какие задачи решает

  • Настроить бэктест prediction markets так, чтобы он не давал фантомные прибыли
  • Запустить trading-bot на Kalshi с защитой от крушения позиции на rate-limit или race-condition
  • Различить режимный сдвиг (не edge) от истинного паттерна в исторических данных
  • Масштабировать стратегию пошагово, не потеряв корреляцию между размером и PnL
  • Вести audit-лог fill'ов и фальсификаций для post-hoc анализа и доверия к результатам

Примеры запросов агенту

  • Помоги мне спроектировать бэктест для мейкер-стратегии на теннис-дуст рынки, учитывая что печать-реплей даёт завышенные цифры
  • Настрой smoke-test для live-ордеров на Kalshi и убедись, что отмена правильно различает заполненные и отменённые ордера
  • Проверь, является ли паттерн в первой половине дня режимным бетом или настоящим edge, если во второй половине он исчезает

Как установить prediction-market-live-ops

1Через Skills CLI (Vercel)

npx skills add agiprolabs/claude-trading-skills --skill prediction-market-live-ops -a claude-code

2Вручную: положить файлы

~/.claude/skills/prediction-market-live-ops/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/prediction-market-live-ops/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о prediction-market-live-ops

Как установить prediction-market-live-ops в Claude Code?

Выполни npx skills add agiprolabs/claude-trading-skills --skill prediction-market-live-ops -a claude-code, затем открой ~/.claude/skills/prediction-market-live-ops/SKILL.md.

Что делает prediction-market-live-ops?

Это методология и набор правил для построения, бэктестирования и запуска автоматических стратегий на prediction markets вроде Kalshi. Скилл покрывает валидацию на исторических данных, live-исполнение с системой защиты, и процесс масштабирования пошагово.

В чём отличие от prediction-market-strategy?

prediction-market-strategy помогает выбрать edge и рассчитать размер позиции. prediction-market-live-ops — это операционная сторона: как валидировать стратегию честно, запустить её в live без потерь, остановить, если данные не совпадают с ожиданиями.

Исходный текст

SKILL.md · MIT
---
name: prediction-market-live-ops
description: Use when building, backtesting, operating, or scaling automated trading on prediction markets (Kalshi or similar) — evidence-gated methodology, live-execution safety rails, and falsification protocols distilled from a real live-money campaign
---

# Prediction-Market Trading Doctrine

Hard-won operational knowledge from a live Kalshi campaign (Aug–Sep 2026:
crypto/commodity maker ladders, regime tilts, tennis dust vacuum — all
falsified honestly, infrastructure open-sourced). Reference implementation: https://github.com/agiprolabs/kalshi-stack.
Complements `prediction-market-strategy` (edge selection/sizing) — this skill
covers the OPERATIONAL side: validating, executing, and killing strategies
against a live venue without losing more than the lesson costs.

## The prime directive

Every strategy decision is evidence-gated: backtest → paper → live micro-probe
→ ratchet. Each stage has a PRE-DECLARED kill condition with correctly
calibrated probability math, written down BEFORE the data arrives. When a
threshold turns out miscalibrated, correct it openly and re-declare — never
silently move a goalpost in either direction.

## Backtest hygiene (each rule was violated once, expensively)

- **Print-replay EV of passive-fill strategies is an UPPER BOUND, never an
  estimate.** The prints a resting order actually captures are an
  adversely-selected sample of the tape (sweeps deep enough to reach your
  queue skew toward true collapses). A tennis dust book that measured +125%/$
  on prints went 0-for-78 live (P<2%). Only fill-conditioned live outcomes
  validate a maker strategy.
- **Time-series joins use the last bar ending ≤ the decision instant.**
  A candle containing the instant is look-ahead and will fabricate
  covariates that vanish out-of-sample.
- **Taker backtests need print-confirmed executability**, not quoted-ask
  edges — stale quotes create phantom fills.
- **Any bucketed-PnL review includes a top-N-share column.** Lottery-payoff
  books concentrate EV; a "pattern" that is two elephant rounds is noise.
  Same rule when a holdout "wins": check concentration before believing it.
- **Early settlements are selection-biased toward losers** (collapses end
  fast; comebacks are long matches/rounds). Never read a verdict off the
  fast-settling prefix.
- **Static tilts that flip sign between tape halves are regime bets, not
  edges.** A conditioning scheme must beat baseline on BOTH halves and on
  each individual day; pre-register the rules, no per-day fitting.
- Mirror/complement markets are the SAME bet — deduplicate before computing
  independence-based probabilities.

## Live execution rules (the incident ledger)

- **Smoke-test every live order path with a real 1-lot round trip** (place,
  verify resting, cancel, verify gone) before any strategy trades through
  it. Paper cannot exercise venue routing parameters. Cost: $0.01.
- **Cancels must be truthful**: distinguish cancelled / already-gone
  (filled!) / failed. A 404 is not a cancel — it means wrong routing shard
  or a fill-race. Swallowed cancel failures + re-anchor loops = runaway
  position stacking (cost us $84 in one evening).
- **Route the exchange shard (`exchange_index`) consistently on EVERY call**
  — placement, reads, cancels, collateral. Collateral must be pre-positioned
  on the shard before orders.
- **Measure rate limits empirically with dust orders** (burst ladder +
  sustained test). Advertised budgets can be 10× off effective per-order
  cost. Pace bursts to the measured rate with retry-requeue on 429.
- **post_only for any maker strategy** — an "aggressive maker" price on a
  market trading inside your band silently becomes a taker fill of a
  different (unvalidated) trade. Tag and cohort maker vs taker fills
  separately in all realized-EV accounting.
- **Rails, always**: halt-file checked before every order batch (cancel-all
  on appearance), independent scheduler-driven drawdown breaker with
  deposit-jump detection, per-order and per-market size caps with anomaly
  ledger events, equity floor stand-down. The breaker baseline is set at
  session start per the operator's stated loss tolerance.
- **Queue priority is the product** in penny/maker books. Synchronized-open
  venues: NTP + fire at boundary+0 with a retry probe (measure the venue's
  open-transition latency). Event-driven venues: push-based discovery
  (lifecycle WebSocket channels) beats polling; a fresh market's book is
  empty, so first-to-rest owns the level for its lifetime.
- **Restart daemons at activity boundaries**; mid-round restarts orphan
  in-memory state (untracked orders, missed settlements).
- **Geofencing is real**: order-origin IP matters, categories differ
  (sports/elections vs financials), and enforcement can change overnight.
  Datacenter location is part of your compliance posture.

## Scaling doctrine

- **House-money ratchet**: double size only when realized profit at the
  current step covers the next step's incremental risk AND round-count and
  EV-continuity gates pass. Drop back a step on trailing degradation.
- **Measure the capacity curve** (EV/$ by per-print cap) before believing
  any scale projection; then the binding constraint is capture rate ×
  measured pool, and capture rate is only measurable live.
- **Fill quality is the untested link at every new size** — the paper/live
  EV-per-$ ratio at each step gates the next.

## Experiment operations

- Cohort every fill (maker/taker, band, source) at write time — post-hoc
  attribution is what lets a bug contaminate a verdict.
- Ship one variable at a time; changing size and placement logic in the same
  window destroys attribution.
- Run A/B variants in paper against a frozen baseline (small-footprint
  variant, shared rounds, EV/premium-$ as the scale-free judge).
- Log everything to append-only ledgers; reconcile realized PnL to the
  venue's own fills/settlements, never to internal marks.
- Post results (wins AND falsifications) to the operator's channel; write a
  decision record with evidence and reversal conditions for every ship,
  retire, and kill.

© agiprolabs · MIT · agiprolabs/claude-trading-skills

Похожие скиллы

Все скиллы по теме «ИИ и ML» →
Prediction Markets — Polymarket & Kalshi Live Odds axel-belfort MCP-сервер Prediction Markets — Polymarket & Kalshi Live Odds для Claude Code подключает ИИ-агентов к котировкам Polymarket и Kalshi для оценки вероятностей событий и анализа рисков. CX Codex +1 4 215установок Rekko AI — Prediction Market Intelligence rekko-ai MCP-сервер Rekko AI — Prediction Market Intelligence для Claude Code связывает модели с рынками прогнозов Kalshi, Polymarket, Robinhood и Coinbase. Он находит арбитражные окна и рассчитывает размер ставок. CX Codex +1 573установок predexon-prediction-market-trading-1-5-teneo TeneoProtocolAI Скилл predexon-prediction-market-trading-1-5-teneo для Claude Code подключает агента Predexon через Teneo CLI. Он получает актуальные команды, аргументы и цены перед выполнением торговой задачи. CX Codex +1 490установок Oracle3 prediction-market arbitrage checks YichengYang-Ethan MCP-сервер Oracle3 prediction-market arbitrage checks подключает агента к Kalshi и Polymarket: поиск контрактов, котировки, проверки связей между исходами и расчёт комиссий. Полезен, когда нужно сравнить рынки и посчитать чистую маржу. CX Codex +1 ★ 570звёзд репо matchwire.win — Mapped Prediction Markets (Kalshi, Polymarket, Predict.fun) MatchWire-Win matchwire.win — Mapped Prediction Markets (Kalshi, Polymarket, Predict.fun) — MCP-сервер Claude Code. Сводит матч с Kalshi, Polymarket US/International и Predict.fun в строку с id. CX Codex +1 prediction-markets-analysis OctagonAI Скилл prediction-markets-analysis разбирает рынки Kalshi: сопоставляет рыночную цену с оценкой модели и показывает факторы, способные изменить исход. Для исследования перед сделкой или проверки гипотезы. CX Codex +1 255установок

Из того же набора68

Весь набор →
cost-basis-engine Скилл cost-basis-engine считает себестоимость криптосделок методами FIFO, LIFO, HIFO, specific ID и средней стоимости, чтобы сравнить налоговую нагрузку по каждому. CX Codex +1 471установок regulatory-reporting Скилл regulatory-reporting превращает историю сделок с криптовалютой в строки для форм IRS 8949 и Schedule D. Пригодится трейдерам при подготовке годовой отчётности. CX Codex +1 470установок raptor-dex Скилл raptor-dex для Claude Code настраивает и вызывает селф-хостед агрегатор DEX на Solana без лимитов API. Ищет маршруты обмена по 25+ биржам и отправляет транзакции через TPU. CX Codex +1 463установок prediction-market-strategy Скилл prediction-market-strategy для Claude Code: слой стратегии, расчёта ставки и бэктеста для бинарных prediction-рынков Kalshi, Polymarket, ForecastEx. Отбирает сделки по net edge, а не по проценту угаданных исходов. CX Codex +1 366установок kalshi-api Скилл kalshi-api для Claude Code описывает подпись RSA-PSS, схему ордеров и стакан YES/NO в API биржи Kalshi. Даёт справочную основу для написания торгового кода под этот API. CX Codex +1 355установок kalshi-weather-markets Скилл kalshi-weather-markets разбирает дневные температурные контракты Kalshi: структуру тикеров, расчёт вероятностей из прогноза, правила расчёта и подводные камни. CX Codex +1 352установок polymarket-api Скилл polymarket-api для работы с API Polymarket — децентрализованной биржи прогнозов на блокчейне Polygon. Даёт доступ к данным рынков, книге заказов и механике расчётов через Gamma, CLOB и Data API. CX Codex +1 351установок kalshi-crypto-index-markets Скилл kalshi-crypto-index-markets для Claude Code разбирает дневные и часовые диапазонные рынки Kalshi для BTC, ETH, S&P 500 и Nasdaq-100. Оценивает вероятности и время решения. CX Codex +1 346установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой