$npx -y skills add machina-sports/sports-skills --skill nhl-dataNHL data via ESPN public endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, injuries, transactions, futures, team/player stats, leaders, and news. Zero config, no API keys. Use when: user asks about NHL scores, standings, team rosters, schedules, gam
| 1 | # NHL 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 nhl get_scoreboard |
| 24 | sports-skills nhl get_standings --season=2025 |
| 25 | sports-skills nhl 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 NHL season runs October–June. If the current month is October–December, the active season year matches the current year. If January–June, the active season started the previous calendar year (use that year as the season). |
| 40 | - **Example:** Current date is February 2026 → active season started October 2025 → use season `2025`. |
| 41 | |
| 42 | ## Commands |
| 43 | |
| 44 | | Command | Description | |
| 45 | |---|---| |
| 46 | | `get_scoreboard` | Live/recent NHL scores | |
| 47 | | `get_standings` | Standings by conference and division | |
| 48 | | `get_teams` | All NHL teams | |
| 49 | | `get_team_roster` | Full roster for a team | |
| 50 | | `get_team_schedule` | Schedule for a specific team | |
| 51 | | `get_game_summary` | Detailed box score and scoring plays | |
| 52 | | `get_leaders` | NHL statistical leaders | |
| 53 | | `get_news` | NHL news articles | |
| 54 | | `get_play_by_play` | Full play-by-play for a game | |
| 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 NHL scores?" |
| 68 | Actions: |
| 69 | 1. Call `get_scoreboard()` |
| 70 | Result: All live and recent NHL games with scores and status |
| 71 | |
| 72 | Example 2: Conference standings |
| 73 | User says: "Show me the Eastern Conference standings" |
| 74 | Actions: |
| 75 | 1. Derive season year from `currentDate` |
| 76 | 2. Call `get_standings(season=<derived_year>)` |
| 77 | 3. Filter results for Eastern Conference |
| 78 | Result: Eastern Conference standings with W-L-OTL, points, regulation wins |
| 79 | |
| 80 | Example 3: Team roster |
| 81 | User says: "Who's on the Maple Leafs roster?" |
| 82 | Actions: |
| 83 | 1. Call `get_team_roster(team_id="21")` |
| 84 | Result: Full Maple Leafs roster with name, position, jersey number, shoots/catches |
| 85 | |
| 86 | Example 4: Game box score |
| 87 | User says: "Show me the full box score for last night's Bruins game" |
| 88 | Actions: |
| 89 | 1. Call `get_scoreboard(date="<yesterday>")` to find the event_id |
| 90 | 2. Call `get_game_summary(event_id=<id>)` for full box score |
| 91 | Result: Complete box score with per-player stats and scoring plays |
| 92 | |
| 93 | Example 5: Stanley Cup odds |
| 94 | User says: "What are the Stanley Cup odds?" |
| 95 | Actions: |
| 96 | 1. Call `get_futures(limit=10)` |
| 97 | Result: Top Stanley Cup contenders with odds values |
| 98 | |
| 99 | Example 6: Player statistics |
| 100 | User says: "Show me Connor McDavid's stats" |
| 101 | Actions: |
| 102 | 1. Derive season year from `currentDate` |
| 103 | 2. Call `get_player_stats(player_id="3895074", season_year=<derived_year>)` |
| 104 | Result: Season stats by category with value, rank, and per-game averages |
| 105 | |
| 106 | ## Commands that DO NOT exist — never call these |
| 107 | |
| 108 | - ~~`get_odds`~~ / ~~`get_betting_odds`~~ — not available. For prediction market odds, use the polymarket or kalshi skill. |
| 109 | - ~~`search_team |