Data Sources logo

Data Sources

Community
WalrusQuant
data-sources

Choose public sports data sources for a modeling question across NFL, NBA, MLB, NHL, college sports, soccer, and more. Use before acquisition code or whenever source coverage, grain, licensing, or historical depth is unclear.

Overview

PublisherWalrusQuant
Repositorysports-analytic-skills
Skill namedata-sources
Stars
53
Forks
4
Bundled files
4
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.

  • 4 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 Data Sources 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/data-sources
  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/data-sources .claude/skills/data-sources
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Data Sources 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 Data Sources 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 Data Sources 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.

Data Sources

When to Use This Skill

Use when:

  • the user needs a public sports data source and is not sure which one;
  • choosing grain (game, team-game, player-game, play/event) before loading;
  • comparing nflverse / sportsdataverse / pybaseball / other public options;
  • writing a source plan with provenance, snapshot, and first-load checks.

Do not use this skill when:

  • the user already has a usable table and wants EDA or modeling;
  • they explicitly want the optional repository toolkit panels/CLI → sports-ds-bridge;
  • they already chose a loader and just need that loader skill.
NeedGo instead
NFL loader detailsnflreadpy
Multi-sport SDV detailssportsdataverse-py
MLB / Statcast detailspybaseball
Optional toolkit bridgesports-ds-bridge
EDA after loadeda-sports

Outcome

Produce a source plan naming the required grain, decision-time fields, primary source, fallback, coverage risks, terms, snapshot rule, and first-load checks. Source choice does not create predictive validity; it determines whether the question can be answered reproducibly and legally.

Use this skill before acquisition code or whenever coverage, field semantics, historical depth, IDs, latency, or licensing are uncertain. If the source is already chosen and a loader fails, use its package skill instead.

Required inputs

  • sport, competition, question, target, and analytical population;
  • analytical grain and natural key: season, game, team-game, player-game, possession, play, pitch, or event;
  • each candidate source's native grain and the aggregation/join contract needed to reach the analytical grain;
  • historical depth, expected volume, refresh cadence, and completion latency;
  • exact prediction decision time T and fields that must be known by then;
  • stable identifiers and cross-source joins required;
  • license, attribution, redistribution, authentication, and rate constraints;
  • required raw and derived artifact formats.

Candidate guide

These are ecosystems to investigate, not durable rankings. Confirm current coverage, access, and terms in upstream documentation at selection time.

NeedCandidate ecosystemVerify before committing
NFL schedules, PBP, rosters, weekly datanflverse / nflreadpytable-specific grain, season coverage, schema drift
Basketball, hockey, college, soccermaintained league/public modules, including SportsDataverse where applicablecompetition/table support and field definitions
MLB Statcast/pitch or season tablespublic MLB data tooling such as pybaseballquery-specific grain, bounded dates, field availability
Detailed event/possession datapublic league-specific event providerevent IDs, ordering, correction policy
Cross-source enrichmentsources with stable IDs and timestampsjoin coverage and as-of legality

Read the source matrix while shortlisting ecosystems, the terms notes before acquisition or redistribution, and the sanity checks before accepting the first pull.

Choose a source whose native records contain the facts required for the analytical grain, and write the aggregation contract when the grains differ. For example, play data may be aggregated to team-game only after event ordering, completion, and key rules are explicit. A season aggregate cannot manufacture play-level detail or historical publication vintages it never contained.

Source comparison rubric

Compare at least two plausible sources on:

DimensionQuestions
CoverageWhich competitions, seasons, phases, and entities exist?
GrainWhat is one native record and its key? If it differs from the analytical grain, is the transformation explicit and valid?
SemanticsAre fields, units, ties, overtime, and completion states defined?
TimeEvent, publication, update, and revision timestamps available?
IdentityStable event/team/player IDs across seasons and sources?
ReliabilityBulk releases, versioning, uptime, schema-change notices?
AccessTerms, license, attribution, auth, rate and redistribution limits?
ReproducibilityCan responses be snapshotted and checksummed?
Cost/volumeCan the bounded request fit time, memory, storage, and quotas?

Do not treat “popular” or “easy to import” as sufficient evidence.

Workflow

  1. Lock question, analytical grain/key, target, population, and T.
  2. List only the minimum required raw fields and stable identifiers.
  3. Shortlist and compare a primary and fallback source with the rubric.
  4. Read upstream documentation and record field/time semantics and terms.
  5. Estimate request count and data volume; bound event-level pulls by dates/IDs.
  6. Pull the smallest representative sample spanning relevant eras/statuses.
  7. Validate keys, row counts, periods, outcomes, entities, timestamps, and nulls.
  8. Test required joins on a small sample and quantify unmatched/many-to-many rows.
  9. Save the untouched raw response or immutable snapshot with retrieval metadata.
  10. Document fallback triggers, known gaps, and the EDA handoff.

First-load diagnostics

  • nonzero rows and requested competitions/seasons are present;
  • natural keys are unique at the claimed grain;
  • scheduled, live, completed, canceled, and postponed records are distinguishable;
  • completed events have plausible outcomes and nonconstant score distributions;
  • team-game overall win rate is near its paired identity and home-only rates are plausible;
  • identifiers remain stable or have a documented crosswalk;
  • timestamps have known timezone and meaning;
  • critical missingness is measured by season/status/source;
  • source/version/query/retrieval time accompany every saved artifact.
python
key = ["game_id", "team"]
assert len(df) > 0
print(df["season"].value_counts().sort_index())
print("duplicate key rows:", df.duplicated(key).sum())
print(df.groupby("status")["game_id"].nunique())
print(df.isna().mean().sort_values(ascending=False).head(20))

Reject corrupt or mis-grained pulls rather than adapting the question silently.

Snapshot and provenance policy

Preserve raw responses before normalization. Record source/project version, endpoint or release, exact parameters, requested/retrieved times in UTC, schema fingerprint, row count, checksum, timezone, license/attribution, and any later correction policy. Derived tables should point to immutable raw snapshots and transformation code/config. Never overwrite data referenced by an experiment.

For predictive work, a current bulk snapshot may contain revisions unavailable historically. State whether the study reconstructs real-time vintages or accepts revised-history data and limit claims accordingly.

Hard constraints and anti-patterns

Do notWhy
scrape when a supported release/API existsfragile and may violate terms
merge display names without a crosswalksilent false matches and duplicates
use current roster/rating as historicalpost-T information leaks backward
run unbounded pitch/play/event pullsrate, memory, and reproducibility risk
switch sources mid-experiment silentlychanges population and semantics
mix grains without an aggregation contractestimand and independence change
infer season coverage from one scoreboard callendpoint purpose is different
model before representative checkscorrupt data becomes plausible output

Respect terms, rate limits, access controls, and attribution. Never evade a provider restriction. Cache only when permitted.

Worked source plans

NFL pre-kickoff win model: team-game grain; nflverse schedules/results via nflreadpy; require stable game/team IDs, scheduled start, home/away, completion state, and scores for labels. Check schema across requested seasons and snapshot the release. Use a documented public fallback only if coverage fails.

MLB pitch analysis: pitch grain; pybaseball Statcast; bound every request by date and test a small window. Verify game_pk, at-bat/pitch order, units, missing tracking fields, doubleheaders, and revision behavior before scaling the pull.

Cross-source injury enrichment: select sources with stable player/team IDs and publication timestamps. Build a reviewed crosswalk, measure unmatched joins, and require an as-of predicate. If historical timestamps are absent, the source cannot support the intended pre-event claim.

Source-plan artifact

text
Question / sport / competition / target:
Analytical grain and natural key / population / decision time T:
Required fields and IDs:
Primary source and rationale:
Primary native grain/key and aggregation contract:
Fallback and trigger:
Fallback native grain/key and compatibility with primary:
Coverage window / status handling:
Event, publication, revision semantics:
License, terms, attribution, access limits:
Estimated request/volume and bounded query:
Representative sample checks:
Join checks and crosswalk:
Raw snapshot location / checksum / retrieved_at:
Known gaps and claim limitations:
EDA handoff:

Create the portable stub with:

bash
python /path/to/data-sources/scripts/print_source_plan.py --out data/source_plan.md

Integrity and resource routing

  1. Never claim coverage until a representative sample is inspected.
  2. Preserve raw snapshots and provenance for every reproducible claim.
  3. Source timestamps and revision policy are part of feature legality.
  4. Read source_matrix.md for ecosystem choice, tos_notes.md for access and redistribution, and sanity_checks.md before accepting data.
  5. Hand off loaded data to eda-sports, then feature-rules and validation.

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 Data Sources AI skill do?

Choose public sports data sources for a modeling question across NFL, NBA, MLB, NHL, college sports, soccer, and more. Use before acquisition code or whenever source coverage, grain, licensing, or historical depth is unclear.

Why use Data Sources on TypingMind?

Because you install it once and use it with any model. Data Sources 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 Data Sources in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/data-sources. 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 Data Sources?

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 Data Sources?

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

Is the Data Sources 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 👇