Логотип Sportsdataverse Py

Sportsdataverse Py

Сообщество
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.

Обзор

ИздательWalrusQuant
Репозиторийsports-analytic-skills
Название навыкаsportsdataverse-py
Звёзды
53
Форки
4
Файлы в комплекте
3
ЛицензияMIT
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 3

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — WalrusQuant. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Sportsdataverse Py в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sportsdataverse-py
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Sportsdataverse Py в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Sportsdataverse Py, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Sportsdataverse Py не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Sportsdataverse Py в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Sportsdataverse Py — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Sportsdataverse Py в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sportsdataverse-py. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Sportsdataverse Py?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Sportsdataverse Py?

С любым количеством. В TypingMind вы можете использовать Sportsdataverse Py с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Sportsdataverse Py?

Да. Навык опубликован на GitHub по лицензии MIT. Издатель — WalrusQuant. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇