Sports Modeling Doctrine 标志

Sports Modeling Doctrine

社区
WalrusQuant
sports-modeling-doctrine

在选择算法之前,先定义体育分析或预测问题、粒度、决策时间、基线、主要指标、验证方式和验收标准。适用于任何体育建模项目的启动阶段。

Add to TypingMind

概览

发布者WalrusQuant
代码仓库sports-analytic-skills
技能名称sports-modeling-doctrine
星标数
53
复刻数
4
附带文件
4
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 4 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 WalrusQuant 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Sports Modeling Doctrine AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
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/sports-modeling-doctrine .claude/skills/sports-modeling-doctrine
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Sports Modeling Doctrine,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Sports Modeling Doctrine。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Sports Modeling Doctrine 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

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

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Sports Modeling Doctrine AI 技能有什么作用?

在选择算法之前,先定义体育分析或预测问题、粒度、决策时间、基线、主要指标、验证方式和验收标准。适用于任何体育建模项目的启动阶段。

为什么在 TypingMind 中使用 Sports Modeling Doctrine?

因为您只需安装一次,就能搭配任何模型使用。Sports Modeling Doctrine 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Sports Modeling Doctrine?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Sports Modeling Doctrine?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Sports Modeling Doctrine 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Sports Modeling Doctrine 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Sports Modeling Doctrine AI 技能免费吗?

是的。WalrusQuant 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇