Sports Ds Bridge logo

Sports Ds Bridge

Community
WalrusQuant
sports-ds-bridge

Connect the optional sports_ds Python toolkit to the standalone sports analytics skills. Use when the user explicitly mentions sports_ds, wants its NFL/NBA/MLB public-data loaders or CLI, needs toolkit setup/troubleshooting, or wants to convert toolkit output into a skill's documented input artifact.

Overview

PublisherWalrusQuant
Repositorysports-analytic-skills
Skill namesports-ds-bridge
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 Sports Ds Bridge 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/sports-ds-bridge
  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/sports-ds-bridge .claude/skills/sports-ds-bridge
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Sports Ds Bridge 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 Sports Ds Bridge 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 Sports Ds Bridge 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.

Sports DS Bridge

Overview

sports_ds is an optional data and workflow accelerator that lives in the same repository as this skill pack. It is not required by the other skills.

This bridge is the only skill allowed to talk about sports_ds setup, imports, CLI commands, caches, and pipeline outputs. Its job is narrow:

  1. decide whether the toolkit is actually needed;
  2. set it up only with authorization;
  3. use the narrowest toolkit surface that satisfies the request;
  4. materialize a portable CSV / Parquet / JSON artifact;
  5. validate that artifact against the downstream skill's own contract;
  6. hand off to a standalone skill and stop.

The bridge is an integration boundary, not a second modeling stack. After the handoff, generic skills must not call back into sports_ds.

Read references/toolkit-map.md for concrete imports and CLI routes. Read references/handoff-contracts.md before writing an artifact for another skill.


When to Use This Skill

Use this skill when:

  • the user explicitly names sports_ds, sports-ds, or this repository's toolkit;
  • the user wants the optional public-data loaders / normalized panels for NFL, NBA, or MLB;
  • the user wants toolkit CLI reference pipelines or feature-registry output;
  • the user needs setup, install, import, cache, or CLI troubleshooting for the toolkit;
  • the user already has toolkit output and needs it translated into a portable artifact another skill can consume.

Do not use this skill when:

  • the user already has usable CSV / Parquet / JSON and just wants EDA, features, models, validation, calibration, or reporting;
  • a public loader skill (nflreadpy, sportsdataverse-py, pybaseball, data-sources) is enough and the user did not ask for the toolkit;
  • you are tempted to make a generic skill "easier" by smuggling in a sports_ds dependency;
  • the request is custom betting-market construction, pick selling, or claimed edge.
NeedPrefer instead
Ordinary EDA on user dataeda-sports
Feature legality / leakagefeature-rules, leakage-audit
Baselines / predictive modelsbaseline-models, predictive-modeling
Public NFL load without toolkitnflreadpy
Public MLB load without toolkitpybaseball
Multi-sport source choicedata-sources / sportsdataverse-py
Environment onlyenvironment-setup

Installation

The toolkit is optional. Confirm it is missing before suggesting install, and get authorization before cloning or installing.

Check first

bash
python -c "import sports_ds; print(sports_ds.__version__)"
sports-ds --help

If import works, do not reinstall. Record the version and continue.

Authorized install from the public repo

bash
git clone https://github.com/WalrusQuant/sports-analytic-skills.git
cd sports-analytic-skills
python3 -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\Activate.ps1
python -m pip install -U pip
python -m pip install -e .

Optional multi-sport loaders (NBA/MLB via sportsdataverse / pybaseball):

bash
python -m pip install -e ".[multi]"

Optional developer/test extras:

bash
python -m pip install -e ".[dev]"

Compatibility notes:

  • Python 3.10+ required.
  • Base install covers NFL (nflreadpy) and the scientific stack.
  • NBA/MLB team and player loaders need .[multi].
  • On macOS only, XGBoost pulled by sportsdataverse may need OpenMP: brew install libomp. Not required for skill-only installs and usually unnecessary on Linux.
  • Keep installs inside a project venv. Do not modify system Python.
  • Large public-data pulls and caches need explicit user authorization.

Decision workflow

Every bridge task follows this arc. Do not skip.

  1. Name the downstream skill and its contract.

    • What skill will consume the artifact?
    • What grain, keys, and required fields does that skill document?
    • If the contract is unknown, stop and open that skill first.
  2. Decide whether sports_ds is necessary.

    • User already has the table → skip the toolkit; hand the path to the skill.
    • User wants public data only → prefer loader skills unless they asked for the toolkit.
    • User asked for sports_ds / reference pipelines / normalized panels → continue.
  3. Check importability before setup.

    • Import + sports-ds --help first.
    • Install only with authorization when missing.
  4. Choose the narrowest surface.

    • Loader/core API for data or one transform.
    • CLI pipeline only when the user wants an end-to-end reference benchmark.
    • Never default to the heaviest pipeline "to be helpful."
  5. Materialize a portable artifact in the user's project.

    • CSV / Parquet / JSON owned by the user.
    • Stable path under their workspace (data/, artifacts/, etc.).
    • No reliance on repo-relative paths or pipeline provenance.
  6. Validate before handoff.

    • Required columns present.
    • Grain correct (team-game doubled? one row per decision? unique game ids?).
    • Time fields usable for walk-forward.
    • Missingness and row counts sane for the claimed window.
  7. Hand off and stop.

    • Tell the agent which standalone skill to run next.
    • Do not keep modeling inside the bridge.
    • Do not tell the next skill to import sports_ds.

Choose the narrowest toolkit surface

NeedPreferAvoid unless requested
NFL schedules / team-game panelsports_ds.data.nflfull win pipeline
NBA / MLB team-game panelsports_ds.data.nba / .mlbunrelated model pipeline
Player-game panelsmatching sports_ds.data.*_playersteam pipeline as substitute
Time-safe form featuressports_ds.featurescopying pipeline internals
Feature legality catalogsports-ds feature-registryinventing column meanings
Elo ratingssports_ds.ratingsend-to-end CLI run
Metrics / splits / leakage helpersmatching core modulepipeline-owned constants
Reproducible reference benchmarksports-ds CLI pipeline + --json-outtreating output as universal schema

Loader-first pattern (preferred)

python
from pathlib import Path
from sports_ds.data.nfl import load_team_game_panel

panel = load_team_game_panel([2022, 2023, 2024])
required = {
    "season", "game_id", "gameday", "team", "opponent", "is_home",
    "points_for", "points_against", "point_diff", "won",
}
missing = sorted(required.difference(panel.columns))
if missing:
    raise ValueError(f"team-game panel missing columns: {missing}")

out = Path("data/nfl_team_games.parquet")
out.parent.mkdir(parents=True, exist_ok=True)
panel.to_parquet(out, index=False)
print(out)

Then:

text
Use eda-sports on data/nfl_team_games.parquet. Confirm grain, coverage,
missingness, target balance, and modeling red flags.

CLI reference pattern (only when asked)

Discover the live surface; do not memorize a stale subset:

bash
sports-ds --help
sports-ds feature-registry

Common reference commands:

bash
# Team EDA
sports-ds nfl-eda --seasons 2023-2024
sports-ds nba-eda --seasons 2023-2024
sports-ds mlb-eda --seasons 2023-2024

# Team walk-forward benchmarks
sports-ds nfl-win-pipeline --seasons 2018-2024 --json-out artifacts/nfl_win.json
sports-ds nfl-margin-pipeline --seasons 2018-2024 --json-out artifacts/nfl_margin.json
sports-ds nfl-elo --seasons 2018-2024 --json-out artifacts/nfl_elo.json
sports-ds nfl-win-rich --seasons 2018-2024 --json-out artifacts/nfl_win_rich.json

sports-ds nba-win-pipeline --seasons 2023-2024 --json-out artifacts/nba_win.json
sports-ds mlb-win-pipeline --seasons 2023-2024 --json-out artifacts/mlb_win.json

# Player paths
sports-ds nfl-player-eda --seasons 2023-2024
sports-ds nfl-player-pipeline --seasons 2022-2024 --target fantasy_points_ppr --json-out artifacts/nfl_player.json
sports-ds nba-player-pipeline --seasons 2023-2024 --json-out artifacts/nba_player.json
sports-ds mlb-player-pipeline --seasons 2023-2024 --max-games 50 --json-out artifacts/mlb_player.json

# Trust checks inside the toolkit (still optional)
sports-ds calibrate --sport nfl --seasons 2018-2024 --json-out artifacts/cal.json
sports-ds leakage-audit --sport nfl --seasons 2023-2024 --json-out artifacts/leak.json

Pipeline JSON is a reference benchmark, not a silent schema for results-reporting or model-card. Translate keys explicitly or keep the benchmark self-contained and summarize it in plain language.

NHL note: historical sportsdataverse dumps have been unreliable. Prefer NFL/NBA/MLB unless the user explicitly accepts NHL limitations.


Handoff contracts

Bridge defaults live in references/handoff-contracts.md. The downstream skill remains the source of truth.

Minimum checks before handoff:

Team-game panel

  • one row per team per game (usually two complementary rows per game_id);
  • required fields present: season, game_id, gameday, team, opponent, is_home, points_for, points_against, point_diff, won;
  • won is binary from the focal team's view;
  • include week or another within-season order field when available.

Prediction table

  • one row per evaluated decision;
  • stable keys + y_true + y_pred or p_pred;
  • time/fold field such as season;
  • no silent renames.

Fold-metrics JSON

  • task, validation design, primary metric, per-fold n and scores;
  • baseline comparison included when the benchmark claims improvement;
  • map toolkit-specific keys before a reporting skill consumes them.

Elo / simulation schedule

  • one row per remaining matchup (not a doubled team panel);
  • unique game_id;
  • team, opponent, is_home, and either win_probability or documented ratings sufficient to compute it.

If validation fails, fix or rebuild the artifact. Do not hand garbage downstream and hope the next skill invents columns.


Troubleshooting

SymptomLikely causeFix
ModuleNotFoundError: sports_dstoolkit not installed in active envauthorized editable install in project venv
sports-ds: command not foundscripts path / env not activeactivate venv; reinstall editable; use python -m sports_ds.cli if needed
NBA/MLB import or loader failsmissing .[multi]pip install -e ".[multi]" after approval
macOS native/OpenMP errorXGBoost/runtime prerequisitebrew install libomp or avoid multi path
Empty / tiny panelseason string, filters, or provider coverageprint seasons requested, row counts, date min/max
Pipeline JSON confuses reporting skillschema mismatchtranslate to portable fold-metrics object
Generic skill starts importing sports_dsboundary violationstop; export artifact; resume with standalone skill
User wanted "just EDA"wrong skillleave bridge; use eda-sports on their file
Cache / re-download surprisesprovider cache behaviordisclose cache location and freshness; get approval for large pulls

Capture command, environment, package versions, and the exact error before changing dependencies.


Anti-patterns

Anti-patternWhy it failsCorrect behavior
Install toolkit for every sports questionturns optional accel into hidden dependencyinstall only when needed and authorized
Tell eda-sports to import sports_dsbreaks skill-only installsexport portable file, then hand off
Treat pipeline JSON as universal schemareporting lies about design/metricsexplicit mapping or self-contained summary
Run richest pipeline by defaultslow, opaque, over-scopedloader/core first; pipeline on request
Skip column validationdownstream skill fails mysteriouslyvalidate required fields before handoff
Use doubled team panel as simulation scheduledouble-counts gamesone row per matchup
Claim toolkit output has betting edgefalse product claimreport methodology and limits only
Quietly broaden seasons/network pullscost, policy, and reproducibility issuesbounded request + authorization

Hard constraints

  1. Never imply sports_ds is installed merely because this skill exists.
  2. Never tell a generic skill to import sports_ds or call sports-ds.
  3. Never present pipeline-specific field names as a universal schema.
  4. Do not install packages, download large datasets, or overwrite artifacts without authorization.
  5. Preserve decision-time integrity on pre-game features: every value must be knowable at or before the declared prediction time.
  6. Prefer user-owned artifact paths over repository-internal paths.
  7. NHL remains second-class until data quality is explicitly accepted.
  8. No odds/EV/arbitrage product claims. This bridge does not sell picks.

Worked paths

A. User wants NFL team-game data, then EDA

  1. Confirm they asked for toolkit or accept it as the data path.
  2. Check import; install only if missing and approved.
  3. Load panel for a bounded season window.
  4. Validate team-game required columns and 2 rows per game.
  5. Write data/nfl_team_games.parquet.
  6. Hand off to eda-sports.

B. User wants a reference NFL win benchmark

  1. Confirm they want the reference pipeline, not just data.
  2. Run sports-ds nfl-win-pipeline --seasons ... --json-out artifacts/nfl_win.json.
  3. Summarize fold metrics, baseline comparison, n, and limits in plain language.
  4. If they want deeper interpretation, translate metrics into a portable JSON and open results-reporting / model-card with explicit schema notes.
  5. Do not pretend the benchmark is a production betting model.

C. User already has toolkit output and wants calibration help

  1. Inspect the artifact columns.
  2. Map to y_true, p_pred, and a fold/time column.
  3. Write a clean predictions table.
  4. Hand off to calibration-check.
  5. Keep all sports_ds talk inside this bridge.

Output contract

Finish every bridge task with:

  • whether sports_ds was needed and why;
  • toolkit version / env notes when used;
  • the exact surface used (module import vs CLI command);
  • artifact path, format, grain, and time window;
  • required-column validation result (pass/fail + missing fields);
  • row counts and any provenance/cache limitations;
  • the standalone skill that should run next;
  • what was not done (no silent modeling, no edge claim).

If the toolkit was not used, say so explicitly and point to the correct skill.

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 Sports Ds Bridge AI skill do?

Connect the optional sports_ds Python toolkit to the standalone sports analytics skills. Use when the user explicitly mentions sports_ds, wants its NFL/NBA/MLB public-data loaders or CLI, needs toolkit setup/troubleshooting, or wants to convert toolkit output into a skill's documented input artifact.

Why use Sports Ds Bridge on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-ds-bridge. 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 Sports Ds Bridge?

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 Sports Ds Bridge?

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

Is the Sports Ds Bridge 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 👇