$npx -y skills add machina-sports/sports-skills --skill wnba-dataWNBA data via ESPN public endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, win probability, injuries, transactions, futures, team/player stats, leaders, and news. Zero config, no API keys. Use when: user asks about WNBA scores, standings, team rost
| 1 | # WNBA Data |
| 2 | |
| 3 | Before writing queries, consult `references/api-reference.md` for endpoints, ID conventions, and data shapes. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | Before first use, check if the CLI is available: |
| 8 | ```bash |
| 9 | which sports-skills || pip install sports-skills |
| 10 | ``` |
| 11 | If `pip install` fails with a Python version error, the package requires Python 3.10+. Find a compatible Python: |
| 12 | ```bash |
| 13 | python3 --version # check version |
| 14 | # If < 3.10, try: python3.12 -m pip install sports-skills |
| 15 | # On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills |
| 16 | ``` |
| 17 | No API keys required. |
| 18 | |
| 19 | ## Quick Start |
| 20 | |
| 21 | Prefer the CLI — it avoids Python import path issues: |
| 22 | ```bash |
| 23 | sports-skills wnba get_scoreboard |
| 24 | sports-skills wnba get_standings --season=2025 |
| 25 | sports-skills wnba get_teams |
| 26 | ``` |
| 27 | |
| 28 | ## CRITICAL: Before Any Query |
| 29 | |
| 30 | CRITICAL: Before calling any data endpoint, verify: |
| 31 | - Season year is derived from the system prompt's `currentDate` — never hardcoded. |
| 32 | - If only a team name is provided, call `get_teams` to resolve the team ID before using team-specific commands. |
| 33 | |
| 34 | ## Choosing the Season |
| 35 | |
| 36 | Derive the current year from the system prompt's date (e.g., `currentDate: 2026-02-18` → current year is 2026). |
| 37 | |
| 38 | - **If the user specifies a season**, use it as-is. |
| 39 | - **If the user says "current", "this season", or doesn't specify**: The WNBA season runs May–October. If the current month is May–October, use `season = current_year`. If November–April (offseason), use `season = current_year - 1`. |
| 40 | |
| 41 | ## Commands |
| 42 | |
| 43 | | Command | Description | |
| 44 | |---|---| |
| 45 | | `get_scoreboard` | Live/recent WNBA scores | |
| 46 | | `get_standings` | Standings by conference | |
| 47 | | `get_teams` | All WNBA teams | |
| 48 | | `get_team_roster` | Full roster for a team | |
| 49 | | `get_team_schedule` | Schedule for a specific team | |
| 50 | | `get_game_summary` | Detailed box score and scoring plays | |
| 51 | | `get_leaders` | WNBA statistical leaders | |
| 52 | | `get_news` | WNBA news articles | |
| 53 | | `get_play_by_play` | Full play-by-play for a game | |
| 54 | | `get_win_probability` | Win probability chart data | |
| 55 | | `get_schedule` | Schedule for a specific date or season | |
| 56 | | `get_injuries` | Injury reports across all teams | |
| 57 | | `get_transactions` | Recent transactions | |
| 58 | | `get_futures` | Futures/odds markets | |
| 59 | | `get_team_stats` | Team statistical profile | |
| 60 | | `get_player_stats` | Player statistical profile | |
| 61 | |
| 62 | See `references/api-reference.md` for full parameter lists and return shapes. |
| 63 | |
| 64 | ## Examples |
| 65 | |
| 66 | Example 1: Today's scores |
| 67 | User says: "What are today's WNBA scores?" |
| 68 | Actions: |
| 69 | 1. Call `get_scoreboard()` |
| 70 | Result: All live and recent WNBA games with scores and status |
| 71 | |
| 72 | Example 2: Standings |
| 73 | User says: "Show me the WNBA standings" |
| 74 | Actions: |
| 75 | 1. Derive season year from `currentDate` |
| 76 | 2. Call `get_standings(season=<derived_year>)` |
| 77 | Result: Eastern and Western conference standings with W-L, PCT, GB |
| 78 | |
| 79 | Example 3: Team roster |
| 80 | User says: "Who's on the Indiana Fever roster?" |
| 81 | Actions: |
| 82 | 1. Call `get_team_roster(team_id="5")` |
| 83 | Result: Full Indiana Fever roster with name, position, jersey number |
| 84 | |
| 85 | Example 4: Statistical leaders |
| 86 | User says: "Show me WNBA statistical leaders" |
| 87 | Actions: |
| 88 | 1. Derive season year from `currentDate` |
| 89 | 2. Call `get_leaders(season=<derived_year>)` |
| 90 | Result: Leaders ranked by stat category (points, rebounds, assists, etc.) |
| 91 | |
| 92 | Example 5: Championship odds |
| 93 | User says: "What are the WNBA championship odds?" |
| 94 | Actions: |
| 95 | 1. Call `get_futures(limit=10)` |
| 96 | Result: Top WNBA championship contenders with odds values |
| 97 | |
| 98 | Example 6: Player statistics |
| 99 | User says: "Show me A'ja Wilson's stats" |
| 100 | Actions: |
| 101 | 1. Derive season year from `currentDate` |
| 102 | 2. Call `get_player_stats(player_id="3149391", season_year=<derived_year>)` |
| 103 | Result: Season stats by category with value, rank, and per-game averages |
| 104 | |
| 105 | ## Commands that DO NOT exist — never call these |
| 106 | |
| 107 | - ~~`get_odds`~~ / ~~`get_betting_odds`~~ — not available. For prediction market odds, use the polymarket or kalshi skill. |
| 108 | - ~~`search_teams`~~ — does not exist. Use `get_teams` instead. |
| 109 | - ~~`get_box_score`~~ — does not exist. Use `get_game_summary` instead. |
| 110 | - ~~`get_player_ratings`~~ — does not exist. Use `get_player_stats` instead. |
| 111 | |
| 112 | If a command is not listed in the Commands table above, it does not exist. |
| 113 | |
| 114 | ## Error Handling |
| 115 | |
| 116 | When a command fails, **do not surface raw errors to the user**. Instead: |
| 117 | 1. Catch silently and try alternatives |
| 118 | 2. If team name given instead of ID, use `get_teams` to find the ID first |
| 119 | 3. Only report failure with a clean |