Pulls live NBA data from ESPN's public endpoints without any API keys or authentication. Covers everything from basic scores and standings to detailed play-by-play, win probability charts, injury reports, transactions, and depth charts. The skill automatically handles season detection based on the current date, which is helpful since the NBA season spans two calendar years. Commands are straightforward CLI calls, and the documentation explicitly lists non-existent commands to prevent hallucination. Best for building NBA dashboards, game recaps, or anything that needs fresh basketball data without dealing with rate limits or credentials. Published by machina-sports, who also maintain WNBA and college basketball versions.

skills.sh installs
1K
GitHub stars
268
last updated
Aug 21, 2026

Install

$ npx -y skills add machina-sports/sports-skills --skill nba-data --agent claude-code

Installs into .claude/skills of the current project.

Files

NBA 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 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.

Quick Start

Prefer the CLI — it avoids Python import path issues:

sports-skills nba get_scoreboard
sports-skills nba get_standings --season=2025
sports-skills nba get_teams

CRITICAL: Before Any Query

CRITICAL: Before calling any data endpoint, verify:

  • For the current season, omit season/season_year on ESPN commands — never hardcode one.
  • If only a team name is provided, call get_teams to resolve the team ID before using team-specific commands.

Choosing the Season

ESPN names an NBA season by the year it ends: 2026-27 is 2027, so in February 2026 the current season is 2026.

Sponsors

Details

Repository
github.com/machina-sports/sports-skills
Categories
Backend & APIs, Data Science & ML, Marketing & SEO, Finance & Trading, Game Development
First seen
Jun 3, 2026

More from machina-sports/sports-skills

All 18
1tencentcloudbase avatardata-model-creationtencentcloudbase/skills[Deprecated] Optional advanced tool for complex data modeling. For simple MySQL table creation, use relational-database-tool directly; for PostgreSQL / CloudBas1Kskills.sh installs
2sundial-org avatarjina-readersundial-org/awesome-openclaw-skillsWeb content extraction via Jina AI Reader API. Three modes: read (URL to markdown), search (web search + full content), ground (fact-checking). Extracts clean c1Kskills.sh installs
3github avataronboard-context-maticgithub/awesome-copilotInteractive onboarding tour for the context-matic MCP server. Walks the user through what the server does, shows all available APIs, lets them pick one to explo1Kskills.sh installs
4orchestra-research avatarchromaorchestra-research/ai-research-skillsOpen-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function AP1Kskills.sh installs
5github avatarphoenix-cligithub/awesome-copilotDebug LLM applications using the Phoenix CLI. Fetch traces, analyze errors, structure trace review with open coding and axial coding, inspect datasets, review e1Kskills.sh installs
6hkuds avatarcli-anything-obsidianhkuds/cli-anythingCommand-line interface for Obsidian — Knowledge management and note-taking via Obsidian Local REST API. Designed for AI agents and power users who need to manag1Kskills.sh installs