monitor-polymarket
БесплатноБез исполняемых скриптовНе проверенMonitor Polymarket and/or Kalshi prediction markets for 24h price moves, volume changes, fresh comments, and high-conviction alerts
от aeonfun★ 801 звезда на GitHubОб этом скилле
${var} — Platform selector with an optional single-market override:
- empty (
"") — run both platforms from their watchlists.polymarket— run Polymarket's whole watchlist (skills/monitor-polymarket/watchlist-polymarket.md).kalshi— run Kalshi's whole watchlist (skills/monitor-polymarket/watchlist-kalshi.md).polymarket:<event-slug>— one ad-hoc Polymarket event (e.g.polymarket:us-x-iran-ceasefire-by).kalshi:<event-ticker>— one ad-hoc Kalshi event (e.g.kalshi:KXGDP-26Q2).
Read memory/MEMORY.md for context.
Read the last 2 days of memory/logs/ to compare against previous readings and flag new movers (not repeats of yesterday's news).
Why this skill exists
A table of prices isn't useful. An operator reading this notification wants to answer: "is there a market worth forming a view on right now, and why?" Every rule below exists to push output toward that question — suppress noise, rank by decision value, and demand one line of reasoning per alert. This skill covers two venues — Polymarket (crypto-native, CLOB + comments) and Kalshi (regulated, liquidity-weighted signals) — and dispatches to the branch(es) the selector asks for.
Dispatch
Parse ${var} into a platform choice and an optional single-market override, then run the matching branch(es).
Shell shape. Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (SLUGS=$(grep ...), TOKEN_ID=$(...), END_TS=$(date ...)), uses case / if / for or $(( )), or joins commands with ;, && or ||, and each refusal costs a model turn. So parse ${var} in your head (below), get the timestamp with a bare date call and work out the window yourself, and write every slug, ticker, id and timestamp into each curl literally (the <SLUG>, <EVENT_ID> style placeholders in the snippets), one call per event or market.
Work the selector out in your head (PLATFORM is both | polymarket | kalshi; SINGLE is an optional single event slug for Polymarket or ticker for Kalshi, empty by default):
empty ->
PLATFORM=bothpolymarket->PLATFORM=polymarket;kalshi->PLATFORM=kalshipolymarket:<slug>->PLATFORM=polymarket,SINGLE= the text afterpolymarket:kalshi:<ticker>->PLATFORM=kalshi,SINGLE= the text afterkalshi:anything else is an unrecognised prefix: don't guess a venue; fall back to both watchlists (
PLATFORM=both,SINGLEempty) and noteunrecognised selector '<var>' - running both watchlistsin your output.PLATFORM=both→ run the Polymarket branch and the Kalshi branch, each from its own watchlist, then emit a combined notification.PLATFORM=polymarket→ run only the Polymarket branch (whole watchlist, orSINGLEif set).PLATFORM=kalshi→ run only the Kalshi branch (whole watchlist, orSINGLEif set).
Each branch below is independently executable — skip the one(s) the selector didn't ask for.
Polymarket branch
Data source: Polymarket gamma-api (events, comments) + clob (price history). All endpoints are public — no auth.
Watchlist: skills/monitor-polymarket/watchlist-polymarket.md. Each line is an event slug; add or remove slugs to change what's monitored.
P1. Load watchlist
If SINGLE is set, SLUGS is just that slug. Otherwise read the watchlist, one slug per line, skipping comments and blanks; the printed lines are SLUGS:
grep -v '^#' skills/monitor-polymarket/watchlist-polymarket.md | grep -v '^$'
If the watchlist is empty and no single slug was given, there's nothing to do on Polymarket — note it and move on (don't fabricate a report).
P2. For each event, fetch markets and price history
For each event slug in SLUGS (one call each, the slug written in literally):
a) Get the event and its markets:
curl -s "https://gamma-api.polymarket.com/events?slug=<SLUG>&limit=1"
The response contains the event id, title, and a markets array. Each market has:
id,question,slug,closedoutcomePrices— JSON array, index 0 = YES price (0.0–1.0)volume24hr,volumeNum,liquidityNumclobTokenIds— JSON array, index 0 = YES token, index 1 = NO token
Skip closed markets — they've already resolved.
b) Get 24h price history for each open market:
The YES token is index 0 of clobTokenIds (a JSON-encoded string in the event response); read it straight from the P2a output, as TOKEN_ID, and write it in literally, one call per open market:
curl -s "https://clob.polymarket.com/prices-history?market=<TOKEN_ID>&interval=1d&fidelity=60"
Response: { "history": [{ "t": unix_timestamp, "p": "price_string" }, ...] }
c) Calculate 24h stats for each market:
- Open / Close — first and last price in the history
- Change — close minus open, in percentage points (e.g. +4.0pp)
- High / Low — intraday range
- Volume —
volume24hrfrom th
Установить monitor-polymarket в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл monitor-polymarket?
Monitor Polymarket and/or Kalshi prediction markets for 24h price moves, volume changes, fresh comments, and high-conviction alerts
Как установить скилл monitor-polymarket?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл monitor-polymarket запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub