Skip to content

Structured NBA data skill spanning ESPN, NBA CDN, and NBA Stats endpoints, with no API keys required.

CCM score
57 of 100
skills.sh installs
1.1K
GitHub stars
274
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers scores, standings, rosters, schedules, box scores, play-by-play, injuries, futures, depth charts, and news across live and historical seasons
  • Includes get_nbastats_* commands for advanced ratings, per-shot court coordinates, career splits, and league history back to 1946
  • Resolves team abbreviations and player ids across ESPN and NBA Stats, and trims long results with sort_by, limit, and fields
  • Designed for NBA-only queries; WNBA and college basketball requests belong to other skills

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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.

Details

Repository
github.com/machina-sports/sports-skills
Categories
Data Science & Analytics, Research & Academic
First seen
Jun 3, 2026

More from machina-sports/sports-skills

All 18