From machina-sports-sports-skills
Read-only access to Polymarket sports prediction markets: live odds, prices, order books, events, and market search. Covers major sports leagues. No auth required.
How this skill is triggered — by the user, by Claude, or both
Slash command
/machina-sports-sports-skills:polymarketThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Before writing queries, consult `references/api-reference.md` for sport codes, command parameters, and price format.
Before writing queries, consult references/api-reference.md for sport codes, command parameters, and price format.
This skill is intentionally read-only. It can fetch market metadata, implied probabilities, order books, and recent price/trade history from public Polymarket endpoints. It must not configure wallets or place/cancel orders.
Prefer the CLI — it avoids Python import path issues:
sports-skills polymarket search_markets --sport=nba --sports_market_types=moneyline
sports-skills polymarket get_todays_events --sport=epl
sports-skills polymarket search_markets --sport=epl --query="Leeds" --sports_market_types=moneyline
sports-skills polymarket get_sports_config
Python SDK (alternative):
from sports_skills import polymarket
polymarket.search_markets(sport='nba', sports_market_types='moneyline')
polymarket.get_todays_events(sport='epl')
polymarket.search_markets(sport='epl', query='Leeds')
polymarket.get_sports_config()
sport parameter is always passed to search_markets and get_todays_events for single-game markets.token_id (CLOB), not market_id (Gamma). Call get_market_details first to get clobTokenIds.Without the sport parameter:
WRONG: search_markets(query="Leeds") → often 0 single-game results
RIGHT: search_markets(sport='epl', query='Leeds') → returns Leeds markets
Core read-only commands have no dependencies and no API keys. They work out of the box.
If the user explicitly asks to place/cancel orders or manage a wallet, stop and load/use the separate polymarket-trading skill. Do not continue from this read-only skill.
search_markets --sport=nba (or epl, nfl, bun, etc.)get_market_prices --token_id=<clob_token_id>.get_todays_events --sport=epl — returns events sorted by start date.clob_token_id from outcomes, then get_market_prices.search_markets --sport=nba --query="Lakers" --sports_market_types=moneylineget_market_prices --token_id=<id> for live CLOB prices.search_markets --sport=nba.clob_token_id from the outcomes.get_price_history --token_id=<id> --interval=1w| Command | Description |
|---|---|
get_sports_config | Available sport codes |
get_todays_events | Today's events for a league |
search_markets | Find markets by sport, keyword, and type |
get_sports_markets | Browse all sports markets |
get_sports_events | Browse sports events |
get_series | List series (leagues) |
get_market_details | Single market details |
get_event_details | Single event details |
get_market_prices | Current CLOB prices |
get_order_book | Full order book |
get_price_history | Historical prices |
get_last_trade_price | Most recent trade |
get_esports_events | Esports prediction markets (CS2/LoL/Dota2/Valorant) — implied probabilities via outcome prices |
See references/api-reference.md for full parameter lists and return shapes.
Example 1: Tonight's NBA favorites User says: "Who's favored in tonight's NBA games?" Actions:
search_markets(sport='nba', sports_market_types='moneyline')
Result: Each matchup with implied win probabilities (price = probability)Example 2: Team-specific odds User says: "Show me Leeds vs Man City odds" Actions:
search_markets(sport='epl', query='Leeds', sports_market_types='moneyline')
Result: Leeds moneyline market with outcome pricesExample 3: Today's EPL events User says: "What EPL matches are on today?" Actions:
get_todays_events(sport='epl')
Result: Today's events with nested markets (moneyline, spreads, totals, props)Example 4: League winner futures User says: "Who will win the Premier League?" Actions:
search_markets(query='Premier League') — returns futurescli_search_marketssearch_markets instead.cli_sports_listget_sports_config instead.get_market_oddsget_oddsget_current_oddsget_market_prices(token_id=...).get_implied_probabilityget_marketsget_sports_markets (browse) or search_markets (search).get_team_schedulecreate_order / market_order / cancel_order / cancel_all_orderspolymarket-trading only after explicit user approval.If a command is not listed in references/api-reference.md, do not use it from this skill.
Error: search_markets returns 0 results
Cause: The sport parameter is missing — without it, search only checks high-volume markets and misses single-game events
Solution: Always pass sport='<code>' to search_markets. Check references/api-reference.md for valid sport codes
Error: get_market_prices fails or returns wrong data
Cause: market_id (Gamma) was used instead of token_id (CLOB)
Solution: Call get_market_details(market_id=<id>) first to get the CLOB clobTokenIds, then use those with get_market_prices
Error: Prices seem stale or unchanged
Cause: Low-liquidity market — may have wide spreads and infrequent trades
Solution: Check get_last_trade_price(token_id=<id>) for the most recent actual trade price and present staleness/liquidity caveats
npx claudepluginhub machina-sports/sports-skillsBridges ESPN live sports schedules with Kalshi and Polymarket prediction markets for unified odds comparison, entity search, and bet evaluation.
Queries Polymarket prediction market odds and events via CLI. Search for markets, get current prices, list events by category. Supports sports betting, politics, crypto, elections. No API key needed.
Interacts with Polymarket prediction markets to search events, check odds, place USDC.e bets on Polygon, and manage positions.