Skills football-data
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/antonelli182/football-data" ~/.claude/skills/openclaw-skills-football-data && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/antonelli182/football-data" ~/.openclaw/skills/openclaw-skills-football-data && rm -rf "$T"
skills/antonelli182/football-data/SKILL.mdFootball Data
Setup
Before first use, check if the CLI is available:
which sports-skills || pip install sports-skills
If
pip install fails (package not found or Python version error), install from GitHub:
pip install git+https://github.com/machina-sports/sports-skills.git
The package requires Python 3.10+. If your default Python is older, use a specific version:
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.
Quick Start
Prefer the CLI — it avoids Python import path issues:
sports-skills football get_daily_schedule sports-skills football get_season_standings --season_id=premier-league-2025
Python SDK (alternative):
from sports_skills import football standings = football.get_season_standings(season_id="premier-league-2025") schedule = football.get_daily_schedule()
Choosing the Season
Derive the current year from the system prompt's date (e.g.,
currentDate: 2026-02-16 → current year is 2026).
- If the user specifies a season, use it as-is.
- If the user says "current", "latest", or doesn't specify: Call
to get the active season_id. Do NOT guess or hardcode the year.get_current_season(competition_id="...") - Season format: Always
(e.g.,{league-slug}-{year}
for the 2025-26 season). The year is the start year of the season, not the end year."premier-league-2025" - MLS exception: MLS runs spring-fall within a single calendar year. Use
— don't assume MLS follows European calendar.get_current_season(competition_id="mls") - Never hardcode a season_id. Always derive it via
or from the system date.get_current_season()
Data Coverage by League
Not all data is available for every league. Use the right command for the right league.
| Command | All 13 leagues | Top 5 only | PL only |
|---|---|---|---|
| get_season_standings | x | ||
| get_daily_schedule | x | ||
| get_season_schedule | x | ||
| get_season_teams | x | ||
| search_team | x | ||
| get_team_schedule | x | ||
| get_team_profile | x | ||
| get_event_summary | x | ||
| get_event_lineups | x | ||
| get_event_statistics | x | ||
| get_event_timeline | x | ||
| get_current_season | x | ||
| get_competitions | x | ||
| get_event_xg | x | ||
| get_event_players_statistics (with xG) | x | ||
| get_season_leaders | x | ||
| get_missing_players | x |
Top 5 leagues (Understat): EPL, La Liga, Bundesliga, Serie A, Ligue 1. PL only (FPL): Premier League — injury news, player stats, ownership, ICT index. All leagues: via ESPN — scores, standings, schedules, match summaries, lineups, team stats. Transfermarkt: Works for any player with a
tm_player_id — market values and transfer history.
Note: MLS uses a different season structure (spring-fall calendar). Use
get_current_season(competition_id="mls") to detect the right season_id.
ID Conventions
- season_id:
e.g.{league-slug}-{year}
,"premier-league-2025""la-liga-2025" - competition_id: league slug e.g.
,"premier-league"
,"serie-a""champions-league" - team_id: ESPN team ID (numeric string) e.g.
(Arsenal),"359"
(Real Madrid)"86" - event_id: ESPN event ID (numeric string) e.g.
"740847" - fpl_id: FPL element ID or code (PL players only)
- tm_player_id: Transfermarkt player ID e.g.
(Saka),"433177"
(Mbappe)"342229"
Commands
get_current_season
Detect current season for a competition. Works for all leagues.
(str, required): Competition slugcompetition_id
Returns
data.competition and data.season:
{"competition": {"id": "premier-league", "name": "Premier League"}, "season": {"id": "premier-league-2025", "name": "2025-26 English Premier League", "year": "2025"}}
get_competitions
List available competitions with current season info. No params. Works for all leagues.
Returns
data.competitions[] with id, name, code, current_season.
get_competition_seasons
Get available seasons for a competition. Works for all leagues.
(str, required): Competition slugcompetition_id
get_season_schedule
Get full season match schedule. Works for all leagues.
(str, required): Season slug (e.g., "premier-league-2025")season_id
Returns
data.schedules[] — same shape as events below.
get_season_standings
Get league table for a season. Works for all leagues.
(str, required): Season slugseason_id
Returns
data.standings[].entries[]:
{ "position": 1, "team": {"id": "359", "name": "Arsenal", "short_name": "Arsenal", "abbreviation": "ARS", "crest": "https://..."}, "played": 26, "won": 17, "drawn": 6, "lost": 3, "goals_for": 50, "goals_against": 18, "goal_difference": 32, "points": 57 }
get_season_leaders
Get top scorers/leaders for a season. Premier League only (via FPL).
(str, required): Season slug (must beseason_id
)premier-league-*
Returns
data.leaders[] — note: player name is nested under .player.name:
{ "player": {"id": "223094", "name": "Erling Haaland", "first_name": "Erling", "last_name": "Haaland", "position": "Forward"}, "team": {"id": "43", "name": "Man City"}, "goals": 22, "assists": 6, "penalties": 0, "played_matches": 25 }
Returns empty for non-PL leagues.
get_season_teams
Get teams in a season. Works for all leagues.
(str, required): Season slugseason_id
search_team
Search for a team by name across all leagues (or a specific one). Uses fuzzy matching.
(str, required): Team name to search (e.g., "Corinthians", "Barcelona", "Man Utd")query
(str, optional): Limit search to one league (e.g., "serie-a-brazil", "premier-league")competition_id
Returns
data.results[] with team, competition, and season for each match:
{"team": {"id": "874", "name": "Corinthians"}, "competition": {"id": "serie-a-brazil", "name": "Serie A Brazil"}, "season": {"id": "serie-a-brazil-2025", "year": "2025"}}
get_team_profile
Get basic team info (name, crest, venue). Does not return squad/roster — use
get_season_leaders to find PL player IDs, then get_player_profile for individual player data.
(str, required): ESPN team IDteam_id
(str, optional): League hint (faster resolution)league_slug
Returns
data.team and data.venue. data.players[] is empty — see "Deep dive on a PL team" example below for the recommended workflow.
get_daily_schedule
Get all matches for a specific date across all leagues.
(str, optional): Date in YYYY-MM-DD format. Defaults to today.date
Returns
data.date and data.events[]:
{ "id": "748381", "status": "not_started", "start_time": "2026-02-16T20:00Z", "competition": {"id": "la-liga", "name": "La Liga"}, "season": {"id": "la-liga-2025", "year": "2025"}, "venue": {"name": "Estadi Montilivi", "city": "Girona"}, "competitors": [ {"team": {"id": "9812", "name": "Girona", "abbreviation": "GIR"}, "qualifier": "home", "score": 0}, {"team": {"id": "83", "name": "Barcelona", "abbreviation": "BAR"}, "qualifier": "away", "score": 0} ], "scores": {"home": 0, "away": 0} }
Status values:
"not_started", "live", "halftime", "closed", "postponed".
get_event_summary
Get match summary with scores. Works for all leagues.
(str, required): Match/event IDevent_id
Returns
data.event (same shape as daily schedule events).
get_event_lineups
Get match lineups. Works for all leagues (when available from ESPN).
(str, required): Match/event IDevent_id
Returns
data.lineups[]:
{ "team": {"id": "364", "name": "Liverpool", "abbreviation": "LIV"}, "qualifier": "home", "formation": "4-3-3", "starting": [{"id": "275599", "name": "Caoimhín Kelleher", "position": "Goalkeeper", "shirt_number": 1}], "bench": [{"id": "...", "name": "...", "position": "...", "shirt_number": 62}] }
get_event_statistics
Get match team statistics. Works for all leagues.
(str, required): Match/event IDevent_id
Returns
data.teams[]:
{ "team": {"id": "244", "name": "Brentford"}, "qualifier": "home", "statistics": {"ball_possession": "40.8", "shots_total": "10", "shots_on_target": "3", "fouls": "12", "corners": "4"} }
get_event_timeline
Get match timeline/key events (goals, cards, substitutions). Works for all leagues.
(str, required): Match/event IDevent_id
Returns
data.timeline[] with goal, card, and substitution events.
get_team_schedule
Get schedule for a specific team — includes both past results and upcoming fixtures. Works for all leagues.
(str, required): ESPN team IDteam_id
(str, optional): League hint (faster resolution)league_slug
(str, optional): Season year filterseason_year
(str, optional): Filter results to a single competition (e.g., "serie-a-brazil", "premier-league")competition_id
get_head_to_head
UNAVAILABLE — requires licensed data. Do not call this command; it will return empty results. Instead, use
get_team_schedule for both teams and filter overlapping matches manually.
(str, required): First team IDteam_id
(str, required): Second team IDteam_id_2
get_event_xg
Get expected goals (xG) data from Understat. Top 5 leagues only: EPL, La Liga, Bundesliga, Serie A, Ligue 1. Returns empty for other leagues.
(str, required): Match/event IDevent_id
Returns
data.teams[] and data.shots[]:
{"team": {"id": "244", "name": "Brentford"}, "qualifier": "home", "xg": 1.812}
data.shots[] contains individual shot data with xG per shot. Note: very recent matches (last 24-48h) may not be indexed on Understat yet.
get_event_players_statistics
Get player-level match statistics with xG enrichment. Works for all leagues (basic stats from ESPN). xG/xA enrichment only for top 5 leagues (Understat).
(str, required): Match/event IDevent_id
Returns
data.teams[].players[]:
{ "id": "...", "name": "Bukayo Saka", "position": "Midfielder", "shirt_number": 7, "starter": true, "statistics": {"appearances": "1", "shotsTotal": "3", "shotsOnTarget": "1", "foulsCommitted": "1", "xg": "0.45", "xa": "0.12"} }
xg and xa fields only present for top 5 leagues.
get_missing_players
Get injured/missing/doubtful players. Premier League only (via FPL). Returns empty for other leagues.
(str, required): Season slug (must beseason_id
)premier-league-*
Returns
data.teams[].players[]:
{ "id": "463748", "name": "Mikel Merino Zazón", "web_name": "Merino", "position": "Midfielder", "status": "injured", "news": "Foot injury - Unknown return date", "chance_of_playing_this_round": 0, "chance_of_playing_next_round": 0 }
Status values:
"injured", "unavailable", "doubtful", "suspended".
get_season_transfers
Get transfer history for specific players via Transfermarkt. Works for any league.
(str, required): Season slug (used to filter transfers by year)season_id
(list, required): Transfermarkt player IDstm_player_ids
Returns
data.transfers[]:
{ "player_tm_id": "433177", "date": "2019-07-01", "season": "19/20", "from_team": {"name": "Arsenal U23", "image": "https://..."}, "to_team": {"name": "Arsenal", "image": "https://..."}, "fee": "-", "market_value": "-" }
get_player_season_stats
Get player season stats via ESPN overview endpoint. Works for any league with ESPN athlete IDs.
(str, required): ESPN athlete IDplayer_id
(str, optional): League slug hint (e.g., "eng.1", "esp.1"). Defaults to auto-detect.league_slug
Returns season stats (goals, assists, appearances, etc.) and game log when available.
get_player_profile
Get player profile. Works for any player if you have their Transfermarkt or FPL ID. At least one ID required.
(str, optional): FPL player ID (PL players only)fpl_id
(str, optional): Transfermarkt player ID (any league)tm_player_id
With
tm_player_id, returns data.player with:
{ "market_value": {"value": 130000000, "currency": "EUR", "formatted": "€130.00m", "date": "09/12/2025", "age": "24", "club": "Arsenal FC"}, "market_value_history": [{"value": 7000000, "formatted": "€7.00m", "date": "23/09/2019", "club": "Arsenal FC"}], "transfer_history": [ {"player_tm_id": "433177", "date": "2019-07-01", "season": "19/20", "from_team": {"name": "Arsenal U23"}, "to_team": {"name": "Arsenal"}, "fee": "-"} ] }
With
fpl_id, also includes data.player.fpl_data with FPL stats (points, form, ICT index, ownership, etc.).
Supported Leagues
Premier League, La Liga, Bundesliga, Serie A, Ligue 1, MLS, Championship, Eredivisie, Primeira Liga, Serie A Brazil, Champions League, European Championship, World Cup.
Data Sources
| Source | What it provides | League coverage |
|---|---|---|
| ESPN | Scores, standings, schedules, lineups, match stats, timelines | All 13 leagues |
| openfootball | Schedules, standings, team lists (fallback when ESPN is down) | 10 leagues (all except CL, Euros, World Cup) |
| Understat | xG per match, xG per shot, player xG/xA | Top 5 (EPL, La Liga, Bundesliga, Serie A, Ligue 1) |
| FPL | Top scorers, injuries, player stats, ownership | Premier League only |
| Transfermarkt | Market values, transfer history | Any player (requires tm_player_id) |
For licensed data with full coverage across all sports (Sportradar, Opta, Genius Sports), see Machina Sports.
Examples
User: "Show me the Premier League table"
- Call
to get the current season_idget_current_season(competition_id="premier-league") - Call
get_season_standings(season_id=<season_id from step 1>) - Present standings table with position, team, played, won, drawn, lost, GD, points
User: "How did Arsenal vs Liverpool go?"
- Call
orget_daily_schedule()
to find the event_idget_team_schedule(team_id="359") - Call
for the scoreget_event_summary(event_id="...") - Call
for possession, shots, etc.get_event_statistics(event_id="...") - Call
for xG comparison (EPL — top 5 only)get_event_xg(event_id="...") - Present match report with scores, key stats, and xG
User: "Deep dive on Chelsea's recent form"
- Call
→ team_id=363, competition=premier-leaguesearch_team(query="Chelsea") - Call
→ find recent closed eventsget_team_schedule(team_id="363", competition_id="premier-league") - For each recent match, call in parallel:
for xG comparison and shot mapget_event_xg(event_id="...")
for possession, shots, passesget_event_statistics(event_id="...")
for individual player xG/xAget_event_players_statistics(event_id="...")
- Call
→ filter Chelsea's injured/doubtful playersget_missing_players(season_id=<season_id>) - Call
→ filter Chelsea players, get their FPL IDsget_season_leaders(season_id=<season_id>) - Call
for key players — combine FPL stats (form, ownership, ICT) with Transfermarkt data (market value, transfer history)get_player_profile(fpl_id="...", tm_player_id="...") - Present: xG trend across matches, key player stats, injury report, market values
User: "What's Saka's market value?"
- Call
for Transfermarkt dataget_player_profile(tm_player_id="433177") - Optionally add
for FPL stats if Premier League playerfpl_id - Present market value, value history, and transfer history
User: "Tell me about Corinthians"
- Call
→ team_id=874, competition=serie-a-brazilsearch_team(query="Corinthians") - Call
for fixturesget_team_schedule(team_id="874", competition_id="serie-a-brazil") - Pick a recent match and call
for goals, cards, subsget_event_timeline(event_id="...") - Note: xG, FPL stats, and season leaders are NOT available for Brazilian Serie A
Error Handling
When a command fails (wrong event_id, missing data, network error, etc.), do not surface the raw error to the user. Instead:
- Catch it silently — treat the failure as an exploratory miss, not a fatal error.
- Try alternatives — e.g., if an event_id returns no data, call
orget_daily_schedule()
to discover the correct ID. If ESPN is down, openfootball data may still be available viaget_team_schedule()
orget_season_standings
.get_season_schedule - Only report failure after exhausting alternatives — and when you do, give a clean human-readable message (e.g., "I couldn't find that match — can you confirm the teams or date?"), not a traceback or raw CLI output.
This is especially important when the agent is responding through messaging platforms (Telegram, Slack, etc.) where raw exec failures look broken.
Common Mistakes
These are the ONLY valid commands. Do not invent or guess command names:
get_current_seasonget_competitionsget_competition_seasonsget_season_scheduleget_season_standingsget_season_leadersget_season_teamssearch_teamget_team_profileget_daily_scheduleget_event_summaryget_event_lineupsget_event_statisticsget_event_timelineget_team_scheduleget_head_to_headget_event_xgget_event_players_statisticsget_missing_playersget_season_transfersget_player_profileget_player_season_stats
Commands that DO NOT exist (commonly hallucinated):
— the correct command isget_standings
(requiresget_season_standings
).season_id— not available. Useget_live_scores
for today's matches; status field shows "live" for in-progress games.get_daily_schedule()/get_team_squad—get_team_roster
does NOT return players. Useget_team_profile
for PL player IDs, thenget_season_leaders
for individual data.get_player_profile— the correct command isget_transfers
(requiresget_season_transfers
+season_id
).tm_player_ids/get_match_results— useget_match
with anget_event_summary
.event_id— useget_player_stats
for match-level stats, orget_event_players_statistics
for career data.get_player_profile
Other common mistakes:
- Using
orget_season_leaders
on non-PL leagues — they return empty. Check the Data Coverage table.get_missing_players - Using
on leagues outside the top 5 — returns empty. Only works for EPL, La Liga, Bundesliga, Serie A, Ligue 1.get_event_xg - Guessing
orteam_id
instead of discovering them viaevent_id
,search_team
, orget_daily_schedule
.get_season_schedule
If you're unsure whether a command exists, check this list. Do not try commands that aren't listed above.
Troubleshooting
command not found: Package not installed. Runsports-skills
. If the package is not found on PyPI, install from GitHub:pip install sports-skills
. Requires Python 3.10+ — see Setup section.pip install git+https://github.com/machina-sports/sports-skills.git
: Same as above — install the package. Prefer the CLI over Python imports to avoid path issues.ModuleNotFoundError: No module named 'sports_skills'- Empty results for PL-only commands on other leagues:
andget_season_leaders
only return data for Premier League. They silently return empty for other leagues — check the Data Coverage table.get_missing_players
returns empty players: This is expected — squad rosters are not available. To get player data for a PL team, useget_team_profile
to find players and their FPL IDs, thenget_season_leaders
for detailed stats. For Transfermarkt data, you need the player'sget_player_profile(fpl_id="...")
.tm_player_id- Finding FPL IDs and Transfermarkt IDs: Use
to discover FPL IDs for PL players. Transfermarkt IDs must be looked up on transfermarkt.com — the ID is the number at the end of the player's URL. Well-known examples: Cole Palmer =get_season_leaders(season_id="premier-league-2025")
, Bukayo Saka =568177
, Mbappe =433177
.342229 - No xG for recent matches: Understat data may lag 24-48 hours after a match ends. If
returns empty for a recent top-5 match, try again later.get_event_xg - Wrong season_id format: Must be
e.g.{league-slug}-{year}
. Not"premier-league-2025"
, not"2025-2026"
. Use"EPL-2025"
to discover the correct format.get_current_season() - Team/event IDs unknown: Use
to find team IDs by name, orsearch_team(query="team name")
to list all teams in a season. Useget_season_teams
orget_daily_schedule
to find event IDs. IDs are ESPN numeric strings.get_season_schedule