wnba-data by machina-sports/sports-skills
npx skills add https://github.com/machina-sports/sports-skills --skill wnba-data在编写查询之前,请查阅 references/api-reference.md 以了解端点、ID 约定和数据形状。
首次使用前,检查 CLI 是否可用:
which sports-skills || pip install sports-skills
如果 pip install 因 Python 版本错误而失败,该包需要 Python 3.10+。请找到兼容的 Python 版本:
python3 --version # 检查版本
# 如果版本 < 3.10,尝试:python3.12 -m pip install sports-skills
# 在 macOS 上使用 Homebrew:/opt/homebrew/bin/python3.12 -m pip install sports-skills
无需 API 密钥。
推荐使用 CLI —— 它可以避免 Python 导入路径问题:
sports-skills wnba get_scoreboard
sports-skills wnba get_standings --season=2025
sports-skills wnba get_teams
关键:在调用任何数据端点之前,请验证:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
currentDateget_teams 来解析球队 ID。从系统提示的日期推导当前年份(例如,currentDate: 2026-02-18 → 当前年份是 2026)。
season = current_year。如果是十一月至四月(休赛期),则使用 season = current_year - 1。| 命令 | 描述 |
|---|---|
get_scoreboard | 实时/最近的 WNBA 比分 |
get_standings | 按赛区排列的排名 |
get_teams | 所有 WNBA 球队 |
get_team_roster | 球队的完整阵容名单 |
get_team_schedule | 特定球队的赛程 |
get_game_summary | 详细的比赛统计和得分过程 |
get_leaders | WNBA 数据领先者 |
get_news | WNBA 新闻文章 |
get_play_by_play | 比赛的完整逐场播放 |
get_win_probability | 获胜概率图表数据 |
get_schedule | 特定日期或赛季的赛程 |
get_injuries | 所有球队的伤病报告 |
get_transactions | 最近的交易 |
get_futures | 未来市场/赔率 |
get_team_stats | 球队数据概况 |
get_player_stats | 球员数据概况 |
完整参数列表和返回形状请参见 references/api-reference.md。
示例 1:今日比分 用户说:"What are today's WNBA scores?" 操作:
get_scoreboard()
结果:所有实时和最近的 WNBA 比赛,包含比分和状态示例 2:排名 用户说:"Show me the WNBA standings" 操作:
currentDate 推导赛季年份get_standings(season=<derived_year>)
结果:东部和西部赛区排名,包含胜-负、胜率、胜场差示例 3:球队阵容 用户说:"Who's on the Indiana Fever roster?" 操作:
get_team_roster(team_id="5")
结果:印第安纳狂热队的完整阵容名单,包含姓名、位置、球衣号码示例 4:数据领先者 用户说:"Show me WNBA statistical leaders" 操作:
currentDate 推导赛季年份get_leaders(season=<derived_year>)
结果:按数据类别(得分、篮板、助攻等)排名的领先者示例 5:冠军赔率 用户说:"What are the WNBA championship odds?" 操作:
get_futures(limit=10)
结果:WNBA 冠军热门竞争者及其赔率值示例 6:球员数据 用户说:"Show me A'ja Wilson's stats" 操作:
currentDate 推导赛季年份get_player_stats(player_id="3149391", season_year=<derived_year>)
结果:按类别划分的赛季数据,包含数值、排名和场均平均值get_oddsget_betting_oddssearch_teamsget_teams。get_box_scoreget_game_summary。get_player_ratingsget_player_stats。如果某个命令未在上面的命令表中列出,则它不存在。
当命令失败时,不要向用户显示原始错误信息。而是:
get_teams 查找 ID错误:sports-skills 命令未找到
原因:包未安装
解决方案:运行 pip install sports-skills
错误:按 ID 未找到球队
原因:使用了错误或过时的 ESPN 球队 ID
解决方案:调用 get_teams 获取当前所有 WNBA 球队及其 ID 的列表
错误:未来比赛无数据返回
原因:ESPN 只返回已完成或正在进行的比赛数据
解决方案:使用 get_schedule 查看即将到来的比赛详情;get_scoreboard 仅涵盖活动/最近的比赛
错误:休赛期(十一月至四月)—— 比分板返回 0 个事件
原因:休赛期没有比赛安排
解决方案:改用 get_standings(season=<prior_year>) 或 get_news
每周安装次数
86
仓库
GitHub 星标数
55
首次出现
2026年2月18日
安全审计
安装于
codex82
opencode81
gemini-cli80
cursor80
github-copilot78
amp76
Before writing queries, consult references/api-reference.md for endpoints, ID conventions, and data shapes.
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 wnba get_scoreboard
sports-skills wnba get_standings --season=2025
sports-skills wnba get_teams
CRITICAL: Before calling any data endpoint, verify:
currentDate — never hardcoded.get_teams to resolve the team ID before using team-specific commands.Derive the current year from the system prompt's date (e.g., currentDate: 2026-02-18 → current year is 2026).
season = current_year. If November–April (offseason), use season = current_year - 1.| Command | Description |
|---|---|
get_scoreboard | Live/recent WNBA scores |
get_standings | Standings by conference |
get_teams | All WNBA teams |
get_team_roster | Full roster for a team |
get_team_schedule | Schedule for a specific team |
get_game_summary | Detailed box score and scoring plays |
See references/api-reference.md for full parameter lists and return shapes.
Example 1: Today's scores User says: "What are today's WNBA scores?" Actions:
get_scoreboard() Result: All live and recent WNBA games with scores and statusExample 2: Standings User says: "Show me the WNBA standings" Actions:
currentDateget_standings(season=<derived_year>) Result: Eastern and Western conference standings with W-L, PCT, GBExample 3: Team roster User says: "Who's on the Indiana Fever roster?" Actions:
get_team_roster(team_id="5") Result: Full Indiana Fever roster with name, position, jersey numberExample 4: Statistical leaders User says: "Show me WNBA statistical leaders" Actions:
currentDateget_leaders(season=<derived_year>) Result: Leaders ranked by stat category (points, rebounds, assists, etc.)Example 5: Championship odds User says: "What are the WNBA championship odds?" Actions:
get_futures(limit=10) Result: Top WNBA championship contenders with odds valuesExample 6: Player statistics User says: "Show me A'ja Wilson's stats" Actions:
currentDateget_player_stats(player_id="3149391", season_year=<derived_year>) Result: Season stats by category with value, rank, and per-game averagesget_oddsget_betting_oddssearch_teamsget_teams instead.get_box_scoreget_game_summary instead.get_player_ratingsget_player_stats instead.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_teams to find the ID firstError: sports-skills command not found Cause: Package not installed Solution: Run pip install sports-skills
Error: Team not found by ID Cause: Wrong or outdated ESPN team ID used Solution: Call get_teams to get the current list of all WNBA teams with their IDs
Error: No data returned for a future game Cause: ESPN only returns data for completed or in-progress games Solution: Use get_schedule to see upcoming game details; get_scoreboard only covers active/recent games
Error: Offseason (November–April) — scoreboard returns 0 events Cause: No games scheduled during the offseason Solution: Use get_standings(season=<prior_year>) or get_news instead
Weekly Installs
86
Repository
GitHub Stars
55
First Seen
Feb 18, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex82
opencode81
gemini-cli80
cursor80
github-copilot78
amp76
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
52,800 周安装
Intercom自动化指南:通过Rube MCP与Composio实现客户支持对话管理
69 周安装
二进制初步分析指南:使用ReVa工具快速识别恶意软件与逆向工程
69 周安装
PrivateInvestigator 道德人员查找工具 | 公开数据调查、反向搜索与背景研究
69 周安装
TorchTitan:PyTorch原生分布式大语言模型预训练平台,支持4D并行与H100 GPU加速
69 周安装
screenshot 截图技能:跨平台桌面截图工具,支持macOS/Linux权限管理与多模式捕获
69 周安装
tmux进程管理最佳实践:交互式Shell初始化、会话命名与生命周期管理
69 周安装
get_leaders | WNBA statistical leaders |
get_news | WNBA news articles |
get_play_by_play | Full play-by-play for a game |
get_win_probability | Win probability chart data |
get_schedule | Schedule for a specific date or season |
get_injuries | Injury reports across all teams |
get_transactions | Recent transactions |
get_futures | Futures/odds markets |
get_team_stats | Team statistical profile |
get_player_stats | Player statistical profile |