Logo van Sports Modeling Doctrine

Sports Modeling Doctrine

Community
WalrusQuant
sports-modeling-doctrine

Bepaal de vraag voor sportanalyse of -voorspelling, de granulariteit, het beslismoment, de basismodellen, de belangrijkste meetwaarden, de validatie en de acceptatiecriteria voordat je algoritmen kiest. Gebruik dit aan het begin van elk sportmodelproject.

Add to TypingMind

Overzicht

UitgeverWalrusQuant
Repositorysports-analytic-skills
Skillnaamsports-modeling-doctrine
Sterren
53
Forks
4
Meegeleverde bestanden
4
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 4

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door WalrusQuant op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Sports Modeling Doctrine in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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-modeling-doctrine .claude/skills/sports-modeling-doctrine
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Sports Modeling Doctrine in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Sports Modeling Doctrine automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Sports Modeling Doctrine niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Sports Modeling Doctrine

Outcome

Write a modeling charter before acquiring data or fitting models. The charter is a user-owned source of truth for the question, target, timing, evaluation, and shape of done.

Before code, lock the scientific contract:

  • what question is being answered;
  • what one row represents;
  • what is knowable at decision time;
  • what baseline counts as evidence of value;
  • how success will be measured out of time;
  • what result causes acceptance, revision, or stopping.

If these fields are not named, do not fit a model.

When to use this skill

Use it when starting or reframing a sports analysis, deciding what “good” means, reviewing whether a result is evaluable, or preventing exploratory work from quietly becoming a predictive claim.

After the charter, use only the relevant specialist skills: a public-source loader for acquisition, eda-sports for data understanding, feature-rules for time-safe predictors, baseline-models for reference models, and the relevant statistical, predictive, rating, simulation, or validation skill.

Question types

TypeCore questionRequired evidenceCommon overreach
DescriptiveWhat happened?coverage, denominators, uncertaintytreating the sample as every era/population
ExplanatoryWhat is associated?design, effects, uncertainty, confounding limitscausal language
PredictiveWhat will happen after time T?time-safe inputs and ordered holdoutexplaining coefficients as causes
CausalWhat changes under an intervention?identification strategy and assumptionsusing prediction alone
RankingWho is strongest as of T?future utility, schedule context, rank stabilitytreating point ranks as certain
SimulationWhat distribution follows assumptions?calibrated inputs and sensitivityreporting simulated precision as observed fact

Do not mix explanatory and predictive success. A stable association need not improve forecasts, and a useful predictor need not identify a causal mechanism.

Charter workflow

  1. Write the question in one sentence.
  2. Name sport, competition, population, era, and exclusions.
  3. Define grain: game, team-game, player-game, possession, play, pitch, or other.
  4. Classify the analysis type using the table above.
  5. For predictive, ranking, or prospective simulation work, define decision time T and forecast horizon precisely.
  6. Define target or estimand, units, label rules, and treatment of ties or missing outcomes.
  7. Record base rate, null expectation, or incumbent process.
  8. Name at least one naive and one strong simple baseline.
  9. Lock the primary metric and its direction before fitting.
  10. Choose validation that respects event, season, and availability order.
  11. Define data requirements, minimum coverage, and provenance standards.
  12. Write acceptance, failure, revision, and stop conditions.
  13. Record out-of-scope decisions and unsupported uses.

Grain and decision-time contract

For each proposed field, be able to answer:

text
row grain: <what one row represents>
entity/event key: <natural key>
decision time T: <timestamp or event boundary>
forecast horizon: <what future interval is predicted>
feature available by T: <yes/no and source timestamp>
target observed after T: <yes/no>
paired/dependent rows: <shared games, players, series, seasons>

Sports data routinely contain doubled team-game rows, postgame summaries, revised injury reports, end-of-season aggregates, and ratings updated after the event. Column names do not prove availability. Define an as-of rule.

Baseline ladder

LevelExamplePurpose
Nullconstant training prevalence or historical meanproves value beyond no differentiation
Structuralvenue indicator, prior rank, or league average by contextcaptures obvious domain structure
Strong simpleshifted form, simple rating, or regularized linear/logistic modeltests whether complexity earns its cost
Incumbentcurrent operational forecast or public referencemeasures practical replacement value

Lock baseline definitions, training windows, and missing-data behavior before candidate tuning. All models must be scored on identical held-out rows.

Metric defaults

TargetPrimary candidatesBaselineImportant secondary evidence
Binary outcomelog-loss, Brierprevalence, venue/simple ratingcalibration and fold spread
Margin/continuousMAE, RMSEhistorical mean or simple ratingresidual distribution and interval coverage
CountPoisson deviance, MAEhistorical mean countdispersion and zero behavior
Time to eventproper survival score/concordancesimple survival estimatecalibration by horizon
Rankingfuture-result correlation or utilityprior rank/ratingrank stability and uncertainty
Simulationdistributional score or coveragesimple empirical distributionsensitivity to assumptions

Accuracy is rarely sufficient for probability work. Match the metric to the decision, define its direction, and compute it only on genuinely held-out data.

Validation defaults

Ordered sports events usually require expanding-window or rolling-origin validation. A default season walk-forward design trains on seasons before s and evaluates on season s. When a sport lacks clean seasons, split by event time with explicit gaps or embargoes where labels/features overlap.

Random row shuffles are not the default because they can mix future roster, team-strength, schedule, and feature information into training. Group shared contests together, and account for repeated teams or players when estimating uncertainty.

Acceptance and stopping rules

A predictive candidate is normally worth keeping only if it:

  • beats locked baselines on the mean primary metric;
  • improves in a meaningful majority of eligible folds or has a justified pooled result;
  • passes time-safety and leakage checks;
  • avoids catastrophic calibration if probabilities are quoted;
  • remains useful under relevant era, team, player, or event slices;
  • justifies its complexity and maintenance burden.

For explanatory work, require stable effect direction, honest uncertainty, and bounded claims. For simulation, require input calibration and sensitivity.

Read references/good_enough.md when setting the acceptance rule. Stop when the rule is met, when a failure condition invalidates the work, or when further complexity does not earn material held-out value.

Charter schema

text
question
sport_and_competition
population_and_exclusions
grain_and_natural_key
analysis_type
decision_time_and_horizon
target_or_estimand
base_rate_or_null
naive_and_strong_baselines
primary_metric_and_direction
secondary_metrics
validation_design
data_requirements_and_provenance
uncertainty_plan
acceptance_rule
failure_and_stop_conditions
out_of_scope_and_prohibited_uses
required_artifacts

Worked charters

Pre-game team-win probability

text
Question: Do venue and shifted form improve P(team wins)?
Sport/population: NFL completed regular-season games, 2018-2024
Grain: team-game; two paired rows per contest
Decision time: scheduled kickoff
Target: won; ties reported separately
Baselines: constant training prevalence; venue-only logistic
Primary metric: held-out log-loss, lower is better
Validation: season walk-forward; contest rows remain together
Acceptance: beat both baselines in mean and at least five of seven folds
Failure: any feature not provably available before kickoff
Out of scope: causal claims and wagering profitability

Player next-game count

text
Question: Predict a starter's strikeouts in the next start.
Grain: player-game
Decision time: first pitch
Target: strikeouts in that start
Baselines: trailing shifted mean; opponent strikeout-allowed mean
Primary metric: MAE
Validation: date walk-forward with player histories truncated at T
Cold start: separate rule and reporting slice

Read references/charter_examples.md for additional compact NFL, NBA, and MLB patterns.

Non-negotiables and integrity rules

  1. Time order matters; random event shuffles need explicit justification.
  2. Features must be legal at T for prospective claims.
  3. Baselines are defined before candidate models.
  4. The primary metric is locked before inspecting test folds.
  5. Grain changes require explicit aggregation and key validation.
  6. Candidate and baseline use identical held-out populations.
  7. Failures and non-improvement are recorded as valid results.
  8. Strong claims require a leakage audit and honest uncertainty.
  9. Public data does not eliminate provenance, licensing, or snapshot duties.
  10. Scope does not expand silently after favorable results appear.
  11. Use the simplest model that meets the charter.
  12. Record decisions and artifacts outside ephemeral chat.

Anti-patterns

  • choosing an algorithm before defining the decision;
  • feature soup without an availability timestamp;
  • calling one hot season “generalization”;
  • changing the primary metric after seeing held-out results;
  • treating each team-game row as an independent game;
  • copying the same assumptions across sports with different schedules or rules;
  • continuing to tune after the test window becomes familiar;
  • declaring victory because a complex model beats the null but not a strong simple baseline;
  • producing probabilities without a calibration plan.

Helper

bash
python <path-to-sports-modeling-doctrine>/scripts/print_charter_template.py \
  --out data/modeling_charter.md

Fill the user-owned template before data acquisition or fitting. The helper does not choose the question, baseline, or acceptance rule.

Operating and handoff rules

  • Use only the skills relevant to the charter; every skill must stand alone.
  • Pass explicit user-owned artifacts between acquisition, analysis, and reporting steps.
  • Keep the charter current when a justified scope decision changes.
  • Re-charter rather than quietly changing target, grain, or decision time.
  • Report a blocker when timing, grain, provenance, or evaluation cannot be established.

For optional downstream routing, read references/skill_path.md. It is a decision aid, not a requirement to invoke every listed skill.

Output contract

Return or save the completed charter with question, type, sport/population, grain/key, decision time, target, baselines, primary metric, validation, uncertainty, acceptance/failure rules, out-of-scope uses, and required artifacts. Do not return an algorithm recommendation without this contract.

Resources

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Sports Modeling Doctrine?

Bepaal de vraag voor sportanalyse of -voorspelling, de granulariteit, het beslismoment, de basismodellen, de belangrijkste meetwaarden, de validatie en de acceptatiecriteria voordat je algoritmen kiest. Gebruik dit aan het begin van elk sportmodelproject.

Waarom Sports Modeling Doctrine gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Sports Modeling Doctrine bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Sports Modeling Doctrine in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Sports Modeling Doctrine gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Sports Modeling Doctrine gebruiken?

Zoveel als je wilt. Je kunt Sports Modeling Doctrine gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Sports Modeling Doctrine gratis?

Ja. Deze skill is door WalrusQuant op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇