Sportsdataverse Py logo

Sportsdataverse Py

Community
WalrusQuant
sportsdataverse-py

Load public multi-sport data directly with SportsDataverse Python. Use for NBA, MLB, NHL, college sports, soccer, and other supported league sources when a user needs schedules, box scores, rosters, or event data.

Overview

PublisherWalrusQuant
Repositorysports-analytic-skills
Skill namesportsdataverse-py
Stars
53
Forks
4
Bundled files
3
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 3 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by WalrusQuant on GitHub. Read the source before you install it.

Installation

Install the Sportsdataverse Py AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sportsdataverse-py
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/WalrusQuant/sports-analytic-skills.git /tmp/sports-analytic-skills
mkdir -p .claude/skills
cp -r /tmp/sports-analytic-skills/skills/sportsdataverse-py .claude/skills/sportsdataverse-py
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sportsdataverse Py in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Sportsdataverse Py on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Sportsdataverse Py is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

SportsDataverse Python

Outcome

Create a user-owned multi-sport artifact with documented league, upstream source, module, loader function, arguments, package version, retrieval time, grain, schema, coverage, natural key, and validation results.

SportsDataverse modules and upstream endpoints vary. Discover and probe the installed interface before a large pull; never guess that one league's function name or parameters apply to another.

When to use this skill

Use for supported NBA, MLB, NHL, college, soccer, and other multi-sport schedule, scoreboard, roster, box-score, or event sources. Prefer nflreadpy for bulk nflverse releases and pybaseball for Statcast or baseball leaderboard depth.

Read references/when_not_nflreadpy.md when choosing an NFL source. Read references/load_patterns.md when choosing the acquisition depth and snapshot pattern for another module.

Installation

bash
python -m pip install sportsdataverse pandas pyarrow

Network access and upstream availability are external constraints. Record the installed package version and preserve successful source responses used in claims.

Interface discovery

python
import importlib
import importlib.metadata
import inspect
import pkgutil
import sportsdataverse

print(importlib.metadata.version("sportsdataverse"))
print([
    item.name for item in pkgutil.iter_modules(sportsdataverse.__path__)
    if not item.name.startswith("_")
])
league = importlib.import_module("sportsdataverse.nba")
callables = [
    name for name in dir(league)
    if not name.startswith("_") and callable(getattr(league, name))
]
print(callables)
for name in callables:
    print(name, inspect.signature(getattr(league, name)))

Consult the installed package documentation, signature, and return type. A function may accept dates rather than season, return nested mappings rather than a table, or expose different parameters across modules and versions. Do not restrict discovery to load_*: installed releases also expose functions with provider- and league-prefixed names such as espn_*.

Source and loader decision table

NeedStart withEscalate only whenMain risk
Season coverage/resultsschedule or bulk season loadergame fields are insufficientstatus/schema variation
Today's or bounded slatescoreboard/date loaderdetail endpoint is requiredassuming one date equals a season
Team/player box databox-score loaderevent/play grain is essentialpagination and nested schema
Play-by-play/eventsevent loaderquestion truly requires itvolume, truncation, post-event fields
Rostersroster loaderhistorical snapshots are neededcurrent roster used as historical
Multi-league comparisonseparate league artifacts firstidentifiers/grains are normalizedfalse schema equivalence

Prefer bulk schedule/release loaders over date-by-date scraping when the package offers them. Request event-level data only when schedule or box-score grain cannot answer the question.

Acquisition workflow

  1. Lock sport, competition, season/date window, grain, and required fields.
  2. Confirm installed package version and supported league module.
  3. Inspect available functions, signatures, docs, and return types.
  4. Run the smallest representative request.
  5. Inspect nested structure or columns, dtypes, row count, key, and status values.
  6. Save the raw response or minimally converted table before normalization.
  7. Check pagination, request limits, and observed coverage.
  8. Convert to pandas only if the next user-selected tool requires it.
  9. Normalize names and types in a separate derived artifact with a field map.
  10. Validate dates, teams, scores, duplicates, missingness, and schema drift.
  11. Save raw and normalized artifacts plus a manifest and known fallback.

Normalized schedule schema

When preparing game-level analysis, prefer durable fields such as:

text
game_id, season, event_time, home_team, away_team,
home_score, away_score, status, source

Also preserve competition/league, season type, neutral-site flag, venue, timezone, and raw identifiers when available. Keep unmapped source fields in the raw artifact rather than discarding them. Derive team-game rows only after the game-level artifact passes uniqueness and completion checks.

Validation checks

Interface and retrieval

  • package version, module, loader, and exact arguments are recorded;
  • the returned object type and conversion steps are documented;
  • requested competitions, seasons, or dates are present;
  • pagination/request limits did not truncate results;
  • empty responses are distinguished from endpoint errors;
  • raw artifacts can be traced to a retrieval timestamp and source.

Game or schedule grain

  • event IDs are unique or duplicate causes are resolved;
  • home and away identifiers are present and distinct;
  • completed status agrees with non-null plausible outcomes;
  • scheduled/postponed/canceled events remain distinguishable;
  • timestamps and timezones are understood;
  • regular season, postseason, neutral sites, ties, and overtime are treated explicitly.

Cross-season or cross-league data

  • schema drift is reported before concatenation;
  • team/player IDs and name changes are mapped explicitly;
  • units, score conventions, period structures, and grains are not assumed equal;
  • each source remains attributable after normalization;
  • row counts and missingness are broken out by league and season.

Multi-sport caveats

  • A similarly named column can have different semantics across modules.
  • Season labels may refer to start year, end year, or competition-specific codes.
  • Scoreboard helpers often accept dates and return only a bounded slate; they are not necessarily season loaders.
  • Historical dumps or upstream feeds can contain constant scores, duplicates, missing periods, or incomplete seasons. Sanity-check distributions.
  • Current rosters and post-event box scores are not automatically legal pre-event predictors.
  • Ties, overtime, shootouts, doubleheaders, aggregate legs, neutral venues, and postseason formats differ by sport.
  • A shared normalized schema aids storage but does not erase sport-specific logic.

Team-game derivation

If a downstream analysis requires team-game grain:

  1. validate one unique completed source row per contest;
  2. preserve the raw game row and status;
  3. emit two complementary rows with shared game_id;
  4. reverse team/opponent, home flag, scores, and margin correctly;
  5. preserve tie/overtime/neutral-site semantics;
  6. report both team-row and unique-game counts;
  7. verify the full-panel win rate is understood as a construction property.

Do not normalize directly from an unchecked, possibly truncated scoreboard response.

Snapshot manifest

text
package_and_version
league_module
upstream_source_if_known
loader_and_exact_arguments
retrieval_timestamp_utc
requested_and_observed_coverage
raw_artifact_path_and_checksum
normalized_artifact_path_and_checksum
grain_and_natural_key
rows_events_teams_and_seasons
status_filter_and_timezone
field_mapping_and_transformations
pagination_or_request_limit_check
schema_drift_known_gaps_and_fallback

Hard constraints and integrity rules

  1. Never assume league modules expose the same API.
  2. Never guess loader arguments without inspecting the installed signature.
  3. Never swallow endpoint or schema errors and return empty data as success.
  4. Never merge leagues before normalizing identifiers, units, and grain.
  5. Never treat post-event fields as pre-event predictors.
  6. Never perform an unbounded event-level pull.
  7. Preserve source attribution, package version, and retrieval time.
  8. Filter completed games under a documented status rule for outcome analysis.
  9. Validate pagination, uniqueness, scores, and schema before modeling.
  10. Preserve raw source data separately from normalized derivatives.

Anti-patterns

  • passing a season argument to a date-only scoreboard helper;
  • believing one scoreboard response contains an entire season;
  • modeling rows with incomplete or ambiguous status;
  • ignoring constant-score or duplicate-event corruption;
  • normalizing disparate leagues by column name alone;
  • silent schema drift across seasons;
  • loading play-by-play when schedules answer the question;
  • claiming success from a zero-row table after an upstream failure;
  • converting/discarding nested fields before saving the raw response.

Worked examples

Bounded module probe

Discover functions for the installed NBA module, inspect the candidate schedule loader signature, request one small season/date slice, record return type and schema, and expand only after checking event IDs and coverage.

Multi-league schedule comparison

Acquire and validate each league separately. Save league-specific raw snapshots, normalize only common game-level fields with a source column, retain sport- specific fields separately, and compare rates only after aligning competition, season type, status, and denominator definitions.

Helper

bash
python <path-to-sportsdataverse-py>/scripts/smoke_load.py \
  --modules nba,mlb,nhl --list-modules

The helper parses arguments before importing the optional public package and uses installed distribution metadata for the version. It discovers real public namespaces, imports every requested module, and exits nonzero if any requested module fails; a partial probe is not reported as success. It does not call an endpoint or prove that a particular loader/source is healthy.

Output contract

Return raw and normalized artifact paths, package version, league module, upstream source if known, loader and arguments, retrieval time, grain, natural key, rows/events, schema, filters, coverage, mapping, pagination check, known gaps, fallback, and validation results.

Resources

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Sportsdataverse Py AI skill do?

Load public multi-sport data directly with SportsDataverse Python. Use for NBA, MLB, NHL, college sports, soccer, and other supported league sources when a user needs schedules, box scores, rosters, or event data.

Why use Sportsdataverse Py on TypingMind?

Because you install it once and use it with any model. Sportsdataverse Py is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Sportsdataverse Py in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sportsdataverse-py. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Sportsdataverse Py?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Sportsdataverse Py?

As many as you like. As long as a model supports skills, you can use Sportsdataverse Py with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Sportsdataverse Py AI skill free?

Yes. It is published on GitHub by WalrusQuant under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇