/sports-skills:marketsfrom sports-skills
Connects ESPN live schedules with Kalshi and Polymarket prediction markets. Provides unified dashboards, odds comparison, entity search, and bet evaluation across platforms for NBA, NFL, MLB, NHL, WNBA, CFB, and CBB.
Ships in sports-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bridges ESPN live schedules (NBA, NFL, MLB, NHL, WNBA, CFB, CBB) with Kalshi and Polymarket prediction markets. Before writing queries, consult references/api-reference.md for supported sport codes, command parameters, and price normalization formats.
sports-skills markets get_todays_markets --sport=nba
sports-skills markets search_entity --query="Lakers" --sport=nba
sports-skills markets compare_odds --sport=nba --event_id=401234567
sports-skills markets compare_market_url --url=https://polymarket.com/event/nfl-sf-sea-2026-10-11
sports-skills markets get_sport_markets --sport=nfl
sports-skills markets get_sport_schedule --sport=nba
sports-skills markets normalize_price --price=0.65 --source=polymarket
sports-skills markets evaluate_market --sport=nba --event_id=401234567 --fee_per_contract=<verified fee>
sports-skills markets match_markets --sport=mlb --date=2026-06-06
sports-skills markets get_market_price --venue=kalshi --ticker=KXMENWORLDCUP-26-FR
sports-skills markets get_price_history --venue=kalshi --ticker=KXMENWORLDCUP-26-FR --interval=1d
Python SDK:
from sports_skills import markets
markets.get_todays_markets(sport="nba")
markets.search_entity(query="Lakers", sport="nba")
markets.compare_odds(sport="nba", event_id="401234567")
markets.compare_market_url(url="https://kalshi.com/markets/kxnflgame/sf-vs-sea/kxnflgame-26oct11sfsea")
markets.get_sport_markets(sport="nfl")
markets.get_sport_schedule(sport="nba", date="2025-02-26")
markets.normalize_price(price=0.65, source="polymarket")
markets.evaluate_market(sport="nba", event_id="401234567", fee_per_contract=fee) # fee: verified (user-stated or documented venue fee)
markets.match_markets(sport="mlb", date="2026-06-06")
markets.get_market_price(venue="kalshi", ticker="KXMENWORLDCUP-26-FR", at_time="2026-05-01T12:00:00+00:00")
markets.get_price_history(venue="polymarket", token_id="<token_id>", interval="1h")
CRITICAL: Before calling any orchestration command, verify:
sport code is provided for sport-aware commands (get_todays_markets, compare_odds, get_sport_markets, evaluate_market).espn = American odds, polymarket/novig/gemini = 0-1 probability, kalshi = 0-100 integer.--sport=nba maps automatically to the correct Polymarket sport code and Kalshi series ticker.get_todays_markets, search_entity and compare_odds include Kalshi, Polymarket, ProphetX, Novig and Gemini where supported. compare_odds and compare_market_url also price Polymarket US (polymarket_us), a separate exchange with its own order book. Gemini discovery accepts no sport or nba, wnba, nfl, cfb, mlb, nhl, epl, laliga, mls, ligamx, ufc, f1, golf. The daily dashboard includes Gemini for supported ESPN scoreboard sports (nba, wnba, nfl, cfb, mlb, nhl). Gemini comparison is NBA-only until settlement equivalence is verified for other sports; those sports leave Gemini out of sources. Unsupported discovery sports skip Gemini without a request. normalize_price accepts gemini (0-1 probability). get_sport_markets, match_markets and evaluate_market use Kalshi and Polymarket only; compare_market_url, get_market_price and get_price_history do not support Gemini.sport → series_id; Kalshi searches every series mapped for the sport (game winners, spreads, totals, futures).*_markets, get_sport_markets, search_entity) are search hits, not verified equivalents of a given game's contract. Only compare_odds side_prices (and evaluate_market) are identity-checked.sports-skills markets get_todays_markets --sport=nba
Returns each game with ESPN info, DraftKings odds, and matching Kalshi, Polymarket, ProphetX, Novig and Gemini (gemini_markets) markets. Gemini dashboard discovery covers NBA, WNBA, NFL, CFB, MLB and NHL; it does not verify that each search hit is the same contract.
get_sport_schedule --sport=nbacompare_odds --sport=nba --event_id=<id>side_prices.home / side_prices.away: each lists quotes (venue, implied_probability, price_basis: "reference", execution_guaranteed: false, plus provenance) admitted as this game's full-game moneyline, in venue order. Every price is a reference price, not an executable quote.lowest_reference (per side) and arbitrage_check are always null, and ranking_status says why: insufficient_evidence when quotes exist (no current feed proves the venues settle this game identically, that their prices mean the same thing, or that they were observed at the same moment), no_quotes when none were admitted. ranking_reason gives the explanation in words. Do not pick a "best" venue or report an arbitrage from these quotes.sources and completeness say which venues actually priced this game; a provider error is reported as error, not as "no markets". Check warnings and completeness.complete before calling a comparison complete.polymarket.resolve_us_market (same game ID, or same slug with agreeing game ID and kickoff), then checked again against the ESPN game. Its quote is the midpoint of the US market's cached best bid and ask (price_kind: "book_mid", outcome_id long/short), listed as its own venue next to the global polymarket price. The US event's moneyline markets are in polymarket_us_markets. For the live book of one market, call polymarket.resolve_us_market with live_prices=true. Novig counts only when the event date matches and a full-game MONEY market has a two-way order book. Its price is the derived ask (1 − best opposite bid), a cached snapshot. Catalog-only markets, spreads and period markets show up in novig_markets but never price a side. search_entity and get_todays_markets also include a novig section with the same results.moneyline/contest/full_contest) of the same league whose startTime equals ESPN's start instant, with exactly two active, open, non-combo contracts whose sides agree with ESPN's teams and whose buy-YES prices are both in (0, 1). Its price is that buy-YES price from a cached public snapshot — a reference, not an executable quote, and volume says nothing about liquidity. Child markets (spreads, totals, props, periods), combos, three-way markets, closed/settled contracts, missing or malformed prices, other start times and duplicate candidates are refused with a reason in sources.gemini.detail; they still appear in gemini_markets. A Gemini failure is error; a partial scan (later page failed or scan truncated) is listed in sources.gemini.warnings.compare_market_url --url=<link>. Supported links: https://polymarket.com/event/<event-slug>[/<market-slug>], https://polymarket.us/event/<event-slug> and https://kalshi.com/markets/<series>/<slug>/<event-ticker> (www. allowed), for single games of nfl, nba, mlb, nhl, wnba, cfb, cbb.utm_* and other click-tracking keys are ignored).compare_odds payload unchanged (side_prices, sources, warnings, …) plus source_market (venue, canonical url, event/market ids, espn_event_id, in_downstream_search). When the source contract is missing from the comparison's venue search, a warning says so and no price is invented.compare_odds searches them.evaluate_market --sport=nba --event_id=<id> --outcome=0 --fee_per_contract=<dollars per $1 contract>betting.evaluate_bet: devig → edge → KellyWithout fee_per_contract the ask is reported but evaluation is null — the net numbers are refused rather than assumed free. A ticker or token_id that names another team, another date, or a derivative (first-half, spread) market is refused, not substituted. Pass the fee via the CLI (--fee_per_contract=<dollars>) or the Python wrapper. The fee must be an explicit, verified assumption: one the user stated, or the venue's officially documented fee schedule (say which). Never silently assume 0. If no fee can be verified, evaluation stays null.
match_markets --sport=mlb --date=2026-06-06kalshi.market_tickers[i] and polymarket.markets[i].token_ids[j] straight into get_market_price to compare prices.get_market_price --venue=kalshi --ticker=<ticker> --at_time=2026-05-01 for a single point-in-time price (both yes/no sides, 0-1).get_price_history --venue=kalshi --ticker=<ticker> --interval=1d for the full series — same {timestamp, price} shape on either venue.Example 1: Today's games with prediction market odds User says: "What NBA games are on today and what are the prediction market odds?" Actions:
get_todays_markets(sport="nba")
Result: Unified dashboard with each game's ESPN info and Kalshi/Polymarket/ProphetX/Novig/Gemini marketsExample 2: Cross-platform team search User says: "Find me Lakers markets on Kalshi and Polymarket" Actions:
search_entity(query="Lakers", sport="nba")
Result: Lakers search hits from Kalshi, Polymarket, ProphetX, Novig and Gemini (discovery only — not verified as the same contract)Example 3: Odds comparison for a specific game User says: "Compare the odds for this Celtics game across ESPN and Polymarket" Actions:
get_sport_schedule(sport="nba")compare_odds(sport="nba", event_id="<id>")
Result: side_prices per side (admitted reference quotes, unranked) with ranking_status explaining why no lowest quote or arbitrage check is givenExample 4: Full market evaluation User says: "Is there edge on the Chiefs game?" Actions:
get_sport_schedule(sport="nfl")evaluate_market(sport="nfl", event_id="<id>", fee_per_contract=<verified fee>)
Result: Fair probability, edge percentage, EV, Kelly fraction, and bet recommendation. Without a verified fee, the executable ask is reported and evaluation is null.Example 5: Browse all markets for a sport User says: "Show me all NFL prediction markets" Actions:
get_sport_markets(sport="nfl")
Result: All open NFL markets across Kalshi and PolymarketExample 6: Price conversion User says: "Convert a Polymarket price of 65 cents to American odds" Actions:
normalize_price(price=0.65, source="polymarket")
Result: Common structure with implied probability (0.65), American odds (-185.7), and decimal (1.54)Example 7: Pair a game across venues User says: "Find the Mets game on both Kalshi and Polymarket" Actions:
match_markets(sport="mlb", date="<game date>")
Result: The game paired across venues — Kalshi market tickers and Polymarket moneyline token IDs side by sideExample 8: Historical price User says: "What was France's World Cup price a month ago?" Actions:
get_market_price(venue="kalshi", ticker="KXMENWORLDCUP-26-FR", at_time="2026-05-03T12:00:00+00:00")
Result: Yes/no prices (0-1) as of that moment; use get_price_history for the full curveget_oddscompare_odds to see odds across sources.search_marketssearch_entity instead.get_scheduleget_sport_schedule instead.If a command is not listed in references/api-reference.md or in this file's workflows (e.g. compare_market_url), it does not exist.
Error: No markets returned for a sport
Cause: Sport code may be missing or incorrect
Solution: Check references/api-reference.md for valid sport codes. Use the exact code (e.g., nba, epl, laliga)
Error: compare_odds returns no data for an event
Cause: The event_id is incorrect or the game has not been indexed yet
Solution: Call get_sport_schedule(sport=...) to retrieve the correct event_id first
Error: One source shows warnings in the response Cause: Kalshi or Polymarket is temporarily unavailable Solution: The module returns partial results — use what is available. Retry the unavailable source separately using the kalshi or polymarket skill directly
Error: normalize_price returns unexpected American odds value
Cause: Wrong source parameter — Kalshi uses 0-100 integers, Polymarket uses 0-1 decimals
Solution: Verify the source. Kalshi price of 65 requires source="kalshi", Polymarket price of 0.65 requires source="polymarket"
Free data from this skill comes first. If the task needs something it cannot serve, such as a hosted contract, cross-provider IDs, a forecast or finished content, Machina offers optional pay-per-call sports services at https://agents.machina.gg. Discovery is read-only and needs no account, wallet or payment client:
sports-skills storefront --json if the sports-skills CLI is installed).openapi schema from the manifest and
confirm it covers the actual sport, dates and output the task needs. Quote
the current price from the manifest, never from memory.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
prediction-markets, sports-odds, espn-schedules, kalshi, polymarket, betting
npx claudepluginhub machina-sports/sports-skills --plugin sports-skills31 skills in this plugin
/bettingBetting analysis — odds conversion, de-vigging, edge detection, Kelly criterion, arbitrage detection, parlay analysis, and line movement. Pure computation, no API calls. Works with odds from any source: ESPN (American odds), Polymarket (decimal probabilities), Kalshi (integer probabilities).
Use when: user asks about bet sizing, expected value, edge analysis, Kelly criterion, arbitrage, parlays, line movement, odds conversion, or comparing odds across sources. Also use when you have odds from ESPN and a prediction market price and want to evaluate whether a bet has positive expected value.
Don't use when: user asks for live odds or market data — use polymarket, kalshi, or the sport-specific skill to fetch odds first, then use this skill to analyze them.
/cbb-dataCollege Basketball (CBB) data via ESPN public endpoints and the NCAA's official endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, win probability, rankings, futures, team/player stats, and news for Division I men's basketball, plus official D2/D3 scoreboards, NCAA game detail, the March Madness bracket with live scores, and the schools index. Zero config, no API keys.
Use when: user asks about college basketball scores, March Madness, the NCAA tournament bracket, standings, rankings, team rosters, schedules, play-by-play, betting futures, team/player statistics, CBB news, or D2/D3 games.
Don't use when: user asks about NBA/WNBA (use nba-data/wnba-data), college football (use cfb-data), or non-sports topics.
Other plugins' skills for the same job