/sports-skills:golf-datafrom sports-skills
Fetches PGA Tour, LPGA, and DP World Tour golf data from ESPN public endpoints — leaderboards, scorecards, schedules, golfer profiles, and news. No API keys needed.
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; scripts run unread.
Before writing queries, consult references/api-reference.md for endpoints, player IDs, and score formats.
Before first use, check if the CLI is available:
which sports-skills || pip install sports-skills
If pip install fails with a Python version error, the package requires Python 3.10+. Find a compatible Python:
python3 --version # check version
# If < 3.10, try: python3.12 -m pip install sports-skills
# On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills
No API keys required.
Prefer the CLI — it avoids Python import path issues:
sports-skills golf get_leaderboard --tour=pga
sports-skills golf get_schedule --tour=pga --year=2026
sports-skills golf get_news --tour=pga
CRITICAL: Before calling any data endpoint, verify:
tour parameter is specified (pga, lpga, or eur) — there is no default tour.get_leaderboard results or ESPN golf URLs — never guessed.tour ParameterMost commands require --tour=pga, --tour=lpga, or --tour=eur:
If the user doesn't specify, default to pga. If they say "women's golf" or "LPGA", use lpga. If they mention the European Tour or DP World Tour, use eur.
| Command | Description |
|---|---|
get_leaderboard | Tournament leaderboard with all golfer scores (current, or event_id / date) |
get_schedule | Full season tournament schedule |
get_player_info | Individual golfer profile |
get_player_overview | Detailed overview with season stats, rankings, recent results |
get_scorecard | Hole-by-hole scorecard for a golfer (current, or event_id / date) |
get_news | Golf news articles |
get_strokes_gained | PGA Tour strokes-gained leaderboard (total, tee-to-green, off the tee, approach, around the green, putting), current season to date (pgatour.com) |
See references/api-reference.md for full parameter lists and return shapes.
Example 1: Current leaderboard User says: "What's the PGA leaderboard right now?" Actions:
get_leaderboard(tour="pga")
Result: Current tournament leaderboard sorted by position with each golfer's score and round-by-round breakdown. Tied golfers share a position ("T2", is_tie: true); a golfer who is out reads "CUT" or "WD"Example 2: Season schedule User says: "Show me the LPGA schedule for 2026" Actions:
get_schedule(tour="lpga", year=2026)
Result: Full LPGA tournament calendar with names, dates, and venuesExample 3: Golfer profile User says: "Tell me about Scottie Scheffler" Actions:
get_player_info(player_id="9478", tour="pga")
Result: Scheffler's profile with age, nationality, height/weight, turned pro yearExample 4: Upcoming major User says: "When is the Masters this year?" Actions:
currentDateget_schedule(tour="pga", year=<derived_year>)Example 5: Player scorecard User says: "Show me Scottie Scheffler's scorecard" Actions:
get_scorecard(tour="pga", player_id="9478")
Result: Hole-by-hole scores for each completed round with strokes and score-to-parExample 6: Player season form User says: "How has Rory McIlroy been playing this season?" Actions:
get_player_overview(player_id="3470", tour="pga")
Result: Season stats (scoring average, earnings, wins, top-10s), world ranking, and recent resultsget_tournament_resultsget_leaderboard (with event_id from get_schedule for a past tournament).get_rankingsget_player_overview for individual rankings.get_oddsget_betting_oddssearch_playerget_leaderboard to find player IDs from the current field.If a command is not listed in the Commands table above, it does not exist.
When a command fails, do not surface raw errors to the user. Instead:
get_leaderboard to find current player IDsError: sports-skills command not found
Cause: Package not installed
Solution: Run pip install sports-skills
Error: No active tournament on leaderboard
Cause: Golf tournaments run Thursday–Sunday; between events the leaderboard may show no active tournament
Solution: Call get_schedule(tour="pga") to find the next upcoming event
Error: Limited round data — scores are empty
Cause: Before a tournament starts, round scores will be empty. During the tournament, only completed rounds have scores.
Solution: Check get_leaderboard for tournament status and current round; wait for rounds to complete
Error: Player not found by ID
Cause: Player ID is incorrect or the player is not in the current tournament field
Solution: Get player IDs from get_leaderboard results, or look up ESPN golf URLs (espn.com/golf/player/_/id/<id>/player-name)
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
golf-data, pga-tour, lpga, dp-world-tour, sports-data, espn-api
31 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.
/cfb-dataCollege Football (CFB) data via ESPN public endpoints and the NCAA's official endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, rankings, injuries, futures, team/player stats, and news for FBS, plus official FCS scoreboards, NCAA game detail with drive context, and the schools index. Zero config, no API keys.
Use when: user asks about college football scores, standings, rankings, team rosters, schedules, game results, play-by-play, injuries, betting futures, team/player statistics, CFB news, or FCS games.
Don't use when: user asks about NFL (use nfl-data), college basketball (use cbb-data), or non-sports topics.
/cricket-dataCricket data via ESPN public endpoints and Cricsheet open data — live-ish series scoreboards, standings, match summaries and news (ESPN), plus historical ball-by-ball, player stats, and player registry (Cricsheet, ODC-BY 1.0). Zero config, no API keys.
Use when: user asks about cricket scores, IPL/BBL/PSL/international series, points tables, match details, cricket news, ball-by-ball history, or player career stats.
Don't use when: user asks about other sports — use football-data (soccer), nfl-data (NFL), nba-data (NBA), wnba-data (WNBA), nhl-data (NHL), mlb-data (MLB), tennis-data (tennis), golf-data (golf), cfb-data (college football), cbb-data (college basketball), or fastf1 (F1). For betting odds use polymarket or kalshi. For general news use sports-news. Don't use for ICC rankings — no free source exists (v1 limitation).
/espn-apiRaw reference for ESPN's undocumented public JSON endpoints, for a league or operation that no dedicated sports-skills skill covers, or when a developer explicitly asks for raw ESPN endpoints. Prompt-only: endpoint catalog, league slugs, response shapes, pitfalls, fetch helpers. Output is provider-native ESPN JSON, not normalized or canonical.
Use when: no dedicated skill covers the league or operation (e.g. rugby, NCAA volleyball; UFC has mma-data), or the user explicitly asks to write, debug, or inspect ESPN endpoint code.
Don't use when: a dedicated skill covers it — nba-data, wnba-data, nfl-data, nhl-data, mlb-data, cfb-data, cbb-data, football-data (soccer), tennis-data, golf-data, cricket-data, fastf1 (F1); sports-news/sports-reporter for news; betting, markets, kalshi, polymarket for odds. volleyball-data covers Dutch Nevobo volleyball only, not NCAA. A dedicated skill's error, timeout, or empty result is not permission to switch to raw ESPN automatically — report it and ask first.
/esportsEsports data — Dota 2 (OpenDota) and League of Legends esports (Leaguepedia).
Pro matches, tournaments, teams, and structured LoL competitive data.
Use when: user asks about Dota 2 pro matches/teams/leagues, or LoL esports
tournaments/rosters/results.
Don't use when: user asks about esports betting/odds — use the `kalshi`
(get_esports_odds) or `polymarket` (get_esports_events) skills (no keyless
bookmaker-odds source exists). Don't use for non-Dota/LoL titles (only Dota 2
and LoL are covered).
npx claudepluginhub machina-sports/sports-skills --plugin sports-skillsOther plugins' skills for the same job