技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
cricket-data【数据与研究】Cricket 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 d…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: cricket-data description: | Cricket 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.
Before writing queries, consult references/api-reference.md for endpoints, ID conventions, and data shapes. See references/competitions.md for the Cricsheet competition codes.
Prefer the CLI — it avoids Python import path issues. There are two backends: ESPN (live-ish) and Cricsheet (historical).
# ESPN backend (live-ish) — discover series first, then use its numeric ID
sports-skills cricket get_series
sports-skills cricket get_scoreboard --series_id=8048
sports-skills cricket get_standings --series_id=8048
sports-skills cricket get_game_summary --series_id=8048 --event_id=1535465
sports-skills cricket get_news --series_id=8048
# Cricsheet backend (historical, completed matches) — uses letter codes
sports-skills cricket get_competitions
sports-skills cricket get_matches --competition=ipl --season=2026
sports-skills cricket get_match_deliveries --competition=ipl --match_id=1473508
sports-skills cricket get_player_stats --competition=ipl --player="V Kohli"
sports-skills cricket find_player --name=kohli
CRITICAL: Before calling any data endpoint, verify:
get_series first. IDs change every season for recurring tournaments (e.g. each IPL season has a different ID). Never hardcode them — the 8048 in the examples is illustrative, not permanent.get_series returns ESPN IDs (live, numeric, e.g. 8048). get_competitions returns Cricsheet codes (historical, letter codes, e.g. ipl). They are unrelated except at the match level: a Cricsheet match_id equals the ESPNcricinfo match ID, so it bridges the two backends.get_scoreboard, get_series).get_player_stats requires the exact Cricsheet name spelling (e.g. "V Kohli", not "Virat Kohli"). Resolve the spelling with find_player first.get_standings, which is empty for most bilateral tours (only league/group tournaments publish a points table).~/.cache/sports-skills/cricsheet/; later calls in the same day are fast.Agents can run scripts/validate_params.sh to pre-validate --competition, --series_id, and --date before querying.
| Command | Required params | Description |
|---|---|---|
get_series | — | List currently-active cricket series with ESPN series IDs and live events |
get_scoreboard | series_id (opt date) | Matches + scores + status for a series |
get_standings | series_id | Points table for a series (empty for most bilateral tours) |
get_game_summary | event_id, series_id (optional for active series) | Match detail: rosters, leaders, matchcards, every innings' scorecard, venue info |
get_news | series_id | News articles for a series |
| Command | Required params | Description |
|---|---|---|
get_competitions | — | List Cricsheet competition codes |
get_matches | competition (opt season) | Completed matches for a competition, newest first |
get_match_deliveries | competition, match_id (opt innings) | Ball-by-ball deliveries for a completed match |
get_player_stats | competition, player (opt season) | Aggregate batting + bowling stats for a player |
find_player | name | Search Cricsheet player registry; returns ESPNcricinfo ID mappings |
Dates accept YYYYMMDD or YYYY-MM-DD. season is the start year (e.g. 2020 matches Cricsheet's "2020/21"). See references/api-reference.md for full parameter lists and return shapes.
get_series → pick the series and note its series_id.get_scoreboard --series_id=<id> → present matches by status and score.get_game_summary --series_id=<id> --event_id=<id>.get_series → find the tournament's series_id.get_standings --series_id=<id>. If empty, it is a bilateral tour with no published table.find_player --name=<substring> → confirm the exact name spelling.get_player_stats --competition=<code> --player="<exact name>" (optionally --season).get_matches --competition=<code> [--season=<year>] → find the match_id.get_match_deliveries --competition=<code> --match_id=<id> [--innings=N].Cricket news is series-scoped — there is no global feed.
get_series → pick the relevant series and note its series_id.get_news --series_id=<id> → present the articles.get_playerget_player_infofind_player to resolve a name, then get_player_stats for career numbers.get_matchget_matches (historical list) or get_game_summary (one ESPN match's detail).get_rankingsget_teamsget_team_rosterget_game_summary.get_play_by_playget_match_deliveries for ball-by-ball data on completed matches.If a command is not listed in the Commands table above, it does not exist.
Cricsheet data is licensed ODC-BY 1.0. Every Cricsheet response includes an attribution field ("Data from Cricsheet (cricsheet.org), ODC-BY 1.0"). Preserve this attribution string when republishing the data.