football-data-m4dj
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "football-data-m4dj":https://skillpi.com/zh/skills/deepskill-ec2410e72686705c48a5598ec2b746567db2c4d5db5821f13188365dcb1fc3cb。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/football-data-m4dj。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
Football 数据专用技能,帮助 AI Agent 高效完成与足球数据相关的任务。
介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 撰写询问前请咨询 `references/api-reference.md` 用于端点、ID常规和数据形状。
- 软件、账号及付费要求
- 在首次使用前, 请检查是否有 CLI 可用: 如果 `pip install` 失败( 找不到软件包或 Python 版本错误), 从 GitHub 安装 : 软件包需要 Python 3.10 +. 如果默认的 Python 年龄较大,请使用特定版本:QQbash python3 -- version # 检查版本
- 实测状态
- 未测试
文件浏览
Frontmatter
name: Football数据
slug: football-data
version: 1.0.0
displayName: Football数据
description: >
Football数据专用技能,帮助AI Agent高效完成相关任务。
summary: "Football数据专用技能,帮助AI Agent高效完成相关任务。"
license: MIT
category: 开发者工具
framework:
- Claude Code
- Codex
- Hermes Agent
- OpenClaw
- QClaw
- WorkBuddy
platform: multi-platform
homepage: "https://github.com/1991513ccie-png"
repository: "https://github.com/1991513ccie-png"Football Data
Before writing queries, consult references/api-reference.md for endpoints, ID conventions, and data shapes.
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()
CRITICAL: Before Any Query
CRITICAL: Before calling any data endpoint, verify:
- Season ID is derived from
get_current_season(competition_id="...")— never hardcoded. - Team ID is resolved via
search_team(query="...")and passed as the numericteam_id. Forget_head_to_head,get_team_strength, andget_match_forecast, always pass IDs — ambiguous names (e.g. two "Paris" clubs) can resolve to the wrong team. - The endpoint actually covers the league in question — see the Coverage & Source Map below. Coverage is uneven across sources; an uncovered call returns an empty payload with a
message, not data. get_event_xgandget_event_players_statistics(with xG) are only called for top-5 leagues (EPL, La Liga, Bundesliga, Serie A, Ligue 1).get_season_leadersandget_missing_playersare only called for Premier League seasons (season_id must start withpremier-league-).
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
get_current_season(competition_id="...")to get the active season_id. Do NOT guess or hardcode the year. - Season format: Always
{league-slug}-{year}(e.g.,"premier-league-2025"for the 2025-26 season). The year is the start year of the season, not the end year. - MLS exception: MLS runs spring-fall within a single calendar year. Use
get_current_season(competition_id="mls").
Coverage & Source Map
This skill stitches several free sources together. Coverage is not uniform — each endpoint works only where its underlying source has data. Check this before promising an answer; when an endpoint isn't covered, it returns an empty payload with an explanatory message (never an error) — read that message and fall back.
| Endpoint(s) | Source | Coverage |
|---|---|---|
| standings, schedules, teams, event summary/lineups/stats/timeline | ESPN | All leagues (broadest — the backbone) |
get_event_xg, get_event_players_statistics (xG fields) |
Understat | Top 5 only (EPL, La Liga, Bundesliga, Serie A, Ligue 1). Not RFPL — Understat dropped it. |
get_season_leaders, get_missing_players |
FPL | Premier League only |
get_player_profile, get_season_transfers (market value) |
Transfermarkt | Any player with a tm_player_id |
get_head_to_head |
football-data.co.uk | 11 European domestic leagues (EPL, Championship, La Liga, Serie A, Bundesliga, Ligue 1, Eredivisie, Primeira Liga, Scottish, Belgian, Turkish). Same-division meetings only. |
get_team_strength, get_match_forecast |
ClubElo | European clubs (incl. Russia). |
Rule of thumb: ESPN answers "what happened" everywhere; the enrichment sources ( Understat/FPL/ClubElo/football-data.co.uk ) add depth only in their coverage zone. ESPN is always the fixture/score authority — never let an enrichment source override an ESPN score.
Gotchas (from live testing)
- Pass IDs, not ambiguous names. For H2H/strength/forecast, resolve teams with
search_teamfirst and pass the numericteam_id. Names like "Paris Saint-Germain" can collapse onto the wrong club (Paris FC) during name resolution. - ClubElo off-season gaps: current-date
get_team_strengthcan miss clubs in the summer break (a club's weekly Elo period may not span today). If a well-known club returns unresolved, pass an in-seasondate(e.g.date="2026-03-01"). get_match_forecastis short-horizon: ClubElo only forecasts ~a week ahead — empty between matchdays / off-season. That's expected, not a failure.- H2H is same-division only: two clubs that met in a cup or across tiers won't show; it counts league meetings in the resolved division.
Combining Endpoints (mix-and-match)
Compose sources for richer answers. Run independent calls in parallel.
- Match preview (
X vs Y):search_team×2 →get_head_to_head(recent record) +get_team_strength(team_id, team_id_2)(Elo gap / favorite) +get_match_forecast(if within ~a week: W/D/L + scoreline). For a top-5 fixture add historicalget_event_xgcontext from recent meetings. - Match report (post-game):
get_event_summary+get_event_statistics+get_event_timeline, and for top-5 leaguesget_event_xg+get_event_players_statistics. - Team form + context:
get_team_schedule(recent results) +get_team_strength(current Elo & rank) +get_missing_players(PL only) + per-matchget_event_xg(top-5). - Rivalry / derby deep dive:
get_head_to_head(all-time-ish record + goals) +get_team_strengthcomparison for the current power balance. - Odds sanity-check:
get_match_forecastgives a free model baseline (W/D/L) to compare against thekalshi/polymarketbetting skills.
When a piece of the composition isn't covered (e.g. xG outside the top 5, H2H for MLS), skip it silently and deliver the parts that are covered — don't block the whole answer on one missing source.
Commands
| Command | Description |
|---|---|
get_current_season |
Detect current season for a competition |
get_competitions |
List available competitions with current season info |
get_competition_seasons |
Available seasons for a competition |
get_season_schedule |
Full season match schedule |
get_season_standings |
League table for a season |
get_season_leaders |
Top scorers/leaders (Premier League only) |
get_season_teams |
Teams in a season |
search_team |
Search for a team by name |
search_player |
Search for a player by name |
get_team_profile |
Basic team info (no squad/roster) |
get_daily_schedule |
All matches for a date across all leagues |
get_event_summary |
Match summary with scores |
get_event_lineups |
Match lineups |
get_event_statistics |
Match team statistics |
get_event_timeline |
Match timeline (goals, cards, subs) |
get_team_schedule |
Schedule for a specific team |
get_head_to_head |
Historical H2H results + stats (European domestic leagues) |
get_team_strength |
ClubElo Elo rating / two-team comparison (European clubs) |
get_match_forecast |
ClubElo win/draw/loss + scoreline forecast (~week ahead) |
get_event_xg |
xG data (top 5 leagues only) |
get_event_players_statistics |
Player-level match stats with optional xG |
get_missing_players |
Injured/doubtful players (Premier League only) |
get_season_transfers |
Transfer history via Transfermarkt |
get_player_season_stats |
Player season stats via ESPN |
get_player_profile |
Player profile (FPL and/or Transfermarkt) |
See references/api-reference.md for full parameter lists, return shapes, and data coverage table.
Examples
Example 1: Premier League table User says: "Show me the Premier League table" Actions:
- Call
get_current_season(competition_id="premier-league")to get the current season_id - Call
get_season_standings(season_id=<season_id from step 1>)Result: Standings table with position, team, played, won, drawn, lost, GD, points
Example 2: Match report User says: "How did Arsenal vs Liverpool go?" Actions:
- Call
get_daily_schedule()orget_team_schedule(team_id="359")to find the event_id - Call
get_event_summary(event_id="...")for the score - Call
get_event_statistics(event_id="...")for possession, shots, etc. - Call
get_event_xg(event_id="...")for xG comparison (EPL — top 5 only) Result: Match report with scores, key stats, and xG
Example 3: Team deep dive User says: "Deep dive on Chelsea's recent form" Actions:
- Call
search_team(query="Chelsea")→ team_id=363, competition=premier-league - Call
get_team_schedule(team_id="363", competition_id="premier-league")→ find recent closed events - For each recent match, call in parallel:
get_event_xg,get_event_statistics,get_event_players_statistics - Call
get_missing_players(season_id=<season_id>)→ filter Chelsea's injured/doubtful players Result: xG trend across matches, key player stats, and injury report
Example 4: Player market value User says: "What's Saka's market value?" Actions:
- Call
get_player_profile(tm_player_id="433177")for Transfermarkt data - Optionally add
fpl_idfor FPL stats Result: Market value, value history, and transfer history
Example 5: Non-PL club User says: "Tell me about Corinthians" Actions:
- Call
search_team(query="Corinthians")→ team_id=874, competition=serie-a-brazil - Call
get_team_schedule(team_id="874", competition_id="serie-a-brazil")for fixtures - Pick a recent match and call
get_event_timeline(event_id="...")for goals, cards, subs Result: Fixtures, timeline events (note: xG, FPL stats, and season leaders NOT available for Brazilian Serie A)
Example 6: Match preview (mix-and-match) User says: "Preview Arsenal vs Man City this weekend" Actions:
- Call
search_team(query="Arsenal")andsearch_team(query="Manchester City")→ team_ids 359, 382 - In parallel:
get_head_to_head(team_id="359", team_id_2="382")(recent record + goals),get_team_strength(team_id="359", team_id_2="382")(Elo gap + favorite),get_match_forecast(team_id="359", team_id_2="382")(W/D/L + likely scoreline, if within ~a week) - Synthesize: form/record + power balance + model odds. Skip any piece that returns empty (e.g. forecast if the match is >1 week out). Result: A preview blending head-to-head history, current strength, and a free model forecast
Commands that DO NOT exist — never call these
— the correct command isget_standingsget_season_standings(requiresseason_id).— not available. Useget_live_scoresget_daily_schedule()for today's matches./get_team_squad—get_team_rosterget_team_profiledoes NOT return players. Useget_season_leadersfor PL player IDs, thenget_player_profile.— the correct command isget_transfersget_season_transfers(requiresseason_id+tm_player_ids)./get_match_results— useget_matchget_event_summarywith anevent_id.— useget_player_statsget_event_players_statisticsfor match-level stats, orget_player_profilefor career data./get_scores— useget_resultsget_event_summarywith anevent_id.— useget_fixturesget_daily_schedulefor today's matches orget_season_schedulefor a full season.— useget_league_tableget_season_standingswith aseason_id.
If a command is not in the Commands table above, it does not exist. Do not try commands not listed.
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.
- Try alternatives — if an event_id returns no data, call
get_daily_schedule()orget_team_schedule()to discover the correct ID. - Only report failure after exhausting alternatives — use a clean message (e.g., "I couldn't find that match — can you confirm the teams or date?").
Troubleshooting
Error: sports-skills command not found
Cause: Package not installed
Solution: Run pip install sports-skills. If not on PyPI, install from GitHub: pip install git+https://github.com/machina-sports/sports-skills.git
Error: ModuleNotFoundError: No module named 'sports_skills'
Cause: Package not installed or path issue
Solution: Install the package. Prefer the CLI over Python imports to avoid path issues
Error: get_season_leaders or get_missing_players returns empty for a non-PL league
Cause: These commands only work for Premier League; they silently return empty for other leagues
Solution: Check the Data Coverage table in references/api-reference.md. For other leagues, use get_event_players_statistics for player data
Error: get_team_profile returns no players
Cause: This command does not return squad rosters — this is expected behavior
Solution: For PL teams, use get_season_leaders to find player FPL IDs, then get_player_profile(fpl_id="...")
Error: Wrong season_id format
Cause: Season ID must follow the {league-slug}-{year} format
Solution: Use get_current_season(competition_id="...") to discover the correct format. Example: "premier-league-2025", not "2025-2026" or "EPL-2025"
Error: No xG data for a recent match
Cause: Understat data may lag 24-48 hours after a match ends
Solution: If get_event_xg returns empty for a recent top-5 match, retry later. Only available for EPL, La Liga, Bundesliga, Serie A, Ligue 1
Error: Team or event ID unknown
Cause: ID was guessed instead of looked up
Solution: Use search_team(query="team name") to find team IDs, or get_daily_schedule / get_season_schedule to find event IDs. Never guess IDs.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供丰富的足球数据查询功能,包括赛程、积分榜、球员统计、xG 数据等,实用性强
- 适用于广泛的足球爱好者、分析师、媒体等用户群体,场景明确
- 支持多数据源组合使用,提升数据分析深度和广度
亮点
- 触发描述清晰完整,覆盖多种使用场景
- 边界清晰,用户能明确知道何时使用该技能
亮点
- 文档结构清晰,包含多个详细章节,步骤划分明确
- 提供详细的端到端示例和错误处理指南
- frontmatter 完整,逻辑性强,易于理解和执行
亮点
- 工具来源明确,参数说明清晰
- 覆盖主要异常情况,提供详细的故障排除指南
- 强调通过 search_team 查找 ID 而非硬编码,确保执行可靠性
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 32, 34, 36, 41, 42 行
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- github.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
在首次使用前, 请检查是否有 CLI 可用: 如果 `pip install` 失败( 找不到软件包或 Python 版本错误), 从 GitHub 安装 : 软件包需要 Python 3.10 +. 如果默认的 Python 年龄较大,请使用特定版本:QQbash python3 -- version # 检查版本
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。