Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

monitor-polymarket

БесплатноБез исполняемых скриптовНе проверен

Monitor Polymarket and/or Kalshi prediction markets for 24h price moves, volume changes, fresh comments, and high-conviction alerts

aeonfunот 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=both

  • polymarket -> PLATFORM=polymarket; kalshi -> PLATFORM=kalshi

  • polymarket:<slug> -> PLATFORM=polymarket, SINGLE = the text after polymarket:

  • kalshi:<ticker> -> PLATFORM=kalshi, SINGLE = the text after kalshi:

  • anything else is an unrecognised prefix: don't guess a venue; fall back to both watchlists (PLATFORM=both, SINGLE empty) and note unrecognised selector '<var>' - running both watchlists in 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, or SINGLE if set).

  • PLATFORM=kalshi → run only the Kalshi branch (whole watchlist, or SINGLE if 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, closed
  • outcomePrices — JSON array, index 0 = YES price (0.0–1.0)
  • volume24hr, volumeNum, liquidityNum
  • clobTokenIds — 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 — volume24hr from th
Полный SKILL.md на GitHub

Установить monitor-polymarket в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

watchlist-kalshi.mdwatchlist-polymarket.md

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), без исполняемых скриптов.

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

Сравнить monitor-polymarket с