Logo Sports Modeling Doctrine

Sports Modeling Doctrine

Cộng đồng
WalrusQuant
sports-modeling-doctrine

Trước khi chọn thuật toán, hãy xác định câu hỏi phân tích hoặc dự đoán thể thao, mức độ chi tiết, thời điểm ra quyết định, các phương pháp đối chiếu cơ sở, chỉ số chính, cách kiểm định và tiêu chí chấp nhận. Dùng ở đầu mỗi dự án mô hình hóa thể thao.

Add to TypingMind

Tổng quan

Nhà phát hànhWalrusQuant
Kho mãsports-analytic-skills
Tên kỹ năngsports-modeling-doctrine
Sao
53
Bản fork
4
Tệp đi kèm
4
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 4 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được WalrusQuant công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Sports Modeling Doctrine trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Sports Modeling Doctrine trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Sports Modeling Doctrine ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Sports Modeling Doctrine với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Sports Modeling Doctrine làm được gì?

Trước khi chọn thuật toán, hãy xác định câu hỏi phân tích hoặc dự đoán thể thao, mức độ chi tiết, thời điểm ra quyết định, các phương pháp đối chiếu cơ sở, chỉ số chính, cách kiểm định và tiêu chí chấp nhận. Dùng ở đầu mỗi dự án mô hình hóa thể thao.

Vì sao nên dùng Sports Modeling Doctrine trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Sports Modeling Doctrine là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Sports Modeling Doctrine trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-modeling-doctrine. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Sports Modeling Doctrine?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Sports Modeling Doctrine với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Sports Modeling Doctrine với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Sports Modeling Doctrine có miễn phí không?

Có. Kỹ năng này được WalrusQuant phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇