tennis-data by machina-sports/sports-skills
npx skills add https://github.com/machina-sports/sports-skills --skill tennis-data在编写查询之前,请查阅 references/api-reference.md 了解端点、ID 约定和数据格式。
推荐使用 CLI — 它可以避免 Python 导入路径问题:
sports-skills tennis get_scoreboard --tour=atp
sports-skills tennis get_rankings --tour=wta
sports-skills tennis get_calendar --tour=atp --year=2026
重要提示:在调用任何数据端点之前,请验证:
tour 参数 (atp 或 wta) — 没有默认值。currentDate 派生的 — 切勿硬编码。tour 参数广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
大多数命令需要 --tour=atp 或 --tour=wta:
如果用户未指定,请询问是哪个巡回赛,或者通过调用两次命令来显示两者。
| 命令 | 描述 |
|---|---|
get_scoreboard | 某个巡回赛的实时/近期比赛比分 |
get_rankings | ATP 或 WTA 球员排名 |
get_calendar | 完整赛季的比赛日历 |
get_player_info | 单个网球运动员资料 |
完整参数列表和返回格式请参见 references/api-reference.md。
get_scoreboard --tour=<atp|wta>get_player_info --player_id=<id>。get_rankings --tour=<atp|wta> --limit=20get_calendar --tour=<atp|wta> --year=<year>示例 1:实时比赛 用户说:"现在有哪些 ATP 比赛在进行?" 操作:
get_scoreboard(tour="atp")
结果:按轮次组织的当前赛事比赛,包含比分和状态示例 2:女子排名 用户说:"给我看看 WTA 排名" 操作:
get_rankings(tour="wta", limit=20)
结果:前 20 名 WTA 球员,包含排名、姓名、积分和趋势示例 3:即将到来的大满贯日期 用户说:"今年的法网是什么时候?" 操作:
currentDate 派生出年份get_calendar(tour="atp", year=<derived_year>)get_matchesget_scoreboard 获取当前比赛比分。get_drawget_head_to_headget_standingsget_rankings,而非 standings。如果某个命令未在上方的命令表中列出,则它不存在。
错误:get_scoreboard 返回无比赛
原因:网球赛事在特定周进行;本周可能没有安排赛事
解决方案:调用 get_calendar(tour=...) 查找下一个赛事何时安排
错误:排名为空 原因:排名每周一更新;可能存在短暂的更新窗口 解决方案:该命令会自动重试前几周的数据。如果仍然为空,请几分钟后重试
错误:球员资料获取失败
原因:球员 ID 不正确
解决方案:使用 get_rankings 从当前排名列表中查找球员 ID,或通过 ESPN 网球 URL 验证
错误:比分似乎延迟或未实时更新
原因:比分在每盘/每场比赛结束后更新,而非逐分更新
解决方案:这是预期行为。定期刷新 get_scoreboard 以获取更新的盘分
每周安装量
92
仓库
GitHub 星标数
55
首次出现
2026 年 2 月 20 日
安全审计
安装于
opencode91
codex91
gemini-cli90
github-copilot89
cursor89
amp88
Before writing queries, consult references/api-reference.md for endpoints, ID conventions, and data shapes.
Prefer the CLI — it avoids Python import path issues:
sports-skills tennis get_scoreboard --tour=atp
sports-skills tennis get_rankings --tour=wta
sports-skills tennis get_calendar --tour=atp --year=2026
CRITICAL: Before calling any data endpoint, verify:
tour parameter is specified (atp or wta) — there is no default.currentDate — never hardcoded.tour ParameterMost commands require --tour=atp or --tour=wta:
If the user doesn't specify, ask which tour or show both by calling the command twice.
| Command | Description |
|---|---|
get_scoreboard | Live/recent tournament scores for a tour |
get_rankings | ATP or WTA player rankings |
get_calendar | Full season tournament calendar |
get_player_info | Individual tennis player profile |
See references/api-reference.md for full parameter lists and return shapes.
get_scoreboard --tour=<atp|wta>get_player_info --player_id=<id>.get_rankings --tour=<atp|wta> --limit=20get_calendar --tour=<atp|wta> --year=<year>Example 1: Live matches User says: "What ATP matches are happening right now?" Actions:
get_scoreboard(tour="atp") Result: Current tournament matches organized by round with scores and statusExample 2: Women's rankings User says: "Show me the WTA rankings" Actions:
get_rankings(tour="wta", limit=20) Result: Top 20 WTA players with rank, name, points, and trendExample 3: Upcoming Grand Slam date User says: "When is the French Open this year?" Actions:
currentDateget_calendar(tour="atp", year=<derived_year>)get_matchesget_scoreboard for current match scores.get_drawget_head_to_headget_standingsget_rankings, not standings.If a command is not listed in the Commands table above, it does not exist.
Error: get_scoreboard returns no matches Cause: Tennis tournaments run specific weeks; no tournament may be scheduled this week Solution: Call get_calendar(tour=...) to find when the next event is scheduled
Error: Rankings are empty Cause: Rankings update weekly on Mondays; there may be a brief update window Solution: The command auto-retries previous weeks. If still empty, retry in a few minutes
Error: Player profile fails Cause: Player ID is incorrect Solution: Use get_rankings to find player IDs from the current rankings list, or verify via ESPN tennis URLs
Error: Scores seem delayed or don't update live Cause: Scores update after each set/match is completed, not point-by-point Solution: This is expected behavior. Refresh get_scoreboard periodically for updated set scores
Weekly Installs
92
Repository
GitHub Stars
55
First Seen
Feb 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode91
codex91
gemini-cli90
github-copilot89
cursor89
amp88
Lark CLI IM 即时消息管理工具:机器人/用户身份操作聊天、消息、文件下载
32,700 周安装