شعار Simulation Sports

Simulation Sports

المجتمع
WalrusQuant
simulation-sports

Simulate game and season outcomes from user-supplied probabilities or ratings, summarize uncertainty, and test sensitivity to assumptions. Use for standings, win totals, matchup distributions, and scenario analysis.

نظرة عامة

الناشرWalrusQuant
المستودعsports-analytic-skills
اسم المهارةsimulation-sports
النجوم
53
التفريعات
4
الملفات المرفقة
3
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 3

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها WalrusQuant على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Simulation Sports في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/simulation-sports
  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/simulation-sports .claude/skills/simulation-sports
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Simulation Sports في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Simulation Sports تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Simulation Sports بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Simulation (Sports)

Overview

Turn game-level probabilities or ratings into distributions:

  • win counts across a declared full-season or remaining-schedule input
  • make-playoff-style tallies
  • matchup series outcomes
  • uncertainty around a point forecast

Simulation does not create accuracy the base model lacks — it propagates uncertainty from a base model under stated assumptions.

Work from user-supplied pre-event probabilities or ratings and a documented schedule.


When to Use This Skill

Use when:

  • Season win-total distributions
  • Playoff-path / remaining-schedule projections from a model
  • Matchup simulations from ratings or predictive probabilities
  • Stress-testing uncertainty around a point forecast
  • User says “project the standings” or “simulate the season”

Do not use when:

NeedGo instead
No underlying probability/rating model yetbuild one first (ratings-strength-models, predictive-modeling)
Single-point prediction is enoughmodeling skills only
Discrete-event engineering sims unrelated to sports outcomesout of scope
Calibration of the base probscalibration-check first

Installation

The bundled simulator requires pandas and NumPy:

bash
python -m pip install pandas numpy

Parquet input also needs pyarrow or fastparquet.


Required Inputs

  • Base model: pre-game win probs or as-of rating differentials
  • Schedule / remaining games (one row per game, not doubled panel)
  • n_sims and seed
  • Dependence assumption (independent games vs path-dependent updates)
  • Sport + season window

Workflow

  1. Define the object being simulated (game, series, rest-of-season, full season).
  2. Choose the base model (logistic probs, Elo expected score, etc.).
  3. Confirm base probs are at least usable (calibration-check if quoting percents).
  4. State dependence assumptions (independent games? injury freeze? home effects?).
  5. Fix seeds and n_sims for reproducibility.
  6. Build as-of inputs (Elo table or probability table).
  7. Run Monte Carlo on home rows once per game.
  8. Summarize distributions (mean, median, p05/p95, histogram) — not only means.
  9. Sensitivity-check K, home advantage, independence assumptions.
  10. Report seeds, n_sims, assumptions, limits, repro commands.

Base Model Inputs

InputSource
Pre-game win probspredictive-modeling, statistical-modeling, baseline-models
Elo / rating diffsratings-strength-models or a documented rating artifact
Scheduleuser-owned event table with stable IDs and roles

Convert rating diff to probability if needed:

text
P = 1 / (1 + 10 ** (-elo_diff / 400))

If a rating artifact must be converted, document the scale and whether home advantage is already included. Prefer a probability column whose calibration has been evaluated on forward holdouts.

Runnable Schedule-Win Simulator

The helper expects one row per simulated event after filtering, with a pre-event win probability for the focal team:

text
season,game_id,is_home,team,opponent,win_probability
bash
python /path/to/simulation-sports/scripts/season_win_sim.py \
  --input schedule_probabilities.parquet \
  --season 2024 --n-sims 5000 --seed 7 --threshold 10 \
  --out season_win_sim_2024.json

It filters to is_home == 1, requires unique game_id, simulates binary outcomes from the supplied probabilities, aggregates participant wins across those rows, and writes mean and central quantiles plus optional threshold probabilities. It does not add wins from completed games omitted from the input. Therefore its output is a full-season total only when the supplied rows cover every game in that season. For a remaining-schedule projection, add each team's known completed wins outside this helper and label that external step. The JSON makes this scope explicit in win_count_scope and in canonical fields such as mean_wins_in_supplied_games; ambiguous legacy aliases remain only for backward compatibility.

Game-level only

Always simulate one declared perspective per event. Never treat home and away rows from a symmetric panel as independent games.


Design Choices

Independence

Default script treats games as conditionally independent given pre-game probs. That understates variance if injuries/momentum couple games. State the shortcut.

Updating ratings inside the season sim

  • Simple mode: freeze pre-game probs from historical as-of table (reproducible evaluation)
  • Advanced mode: update Elo inside each simulated world (path-dependent)

Start simple.

Schedule constraints

Season sims must use the real schedule graph. One game once.

Calibration prerequisite

If base probs are miscalibrated, fix/note calibration first (calibration-check).

Read simulation_assumptions.md before fixing event dependence, schedule, tie, update, or missing-event rules. Read sensitivity.md when choosing perturbations and deciding whether conclusions are robust.


Hard Constraints

  1. Simulation cannot invent accuracy the base model lacks.
  2. Report seeds, n_sims, and assumptions every time.
  3. Do not present simulated means as guarantees.
  4. Respect schedule constraints.
  5. If base probs are miscalibrated, say so.
  6. Never double-count home and away panel rows as two games.
  7. Sensitivity is required before strong distribution claims.

Anti-Patterns

  • Simulating with an unvalidated coin-flip model dressed as analysis
  • Huge n_sims hiding bad assumptions
  • Showing only expected wins with no spread
  • Using both home and away panel rows as two independent games
  • Silent dependence assumptions
  • Quoting playoff odds from uncalibrated 0.55-ish probs

Reporting Template

text
Simulation: wins across supplied full-season / remaining-schedule rows
Base model: Elo→prob (K=…, home_adv=…)
Season:
n_sims: … seed: …
Dependence: independent games | path-dependent rating updates
Outputs: mean and p05/p50/p95 wins in supplied games by team
Sensitivity:
Limits:
Reproduce:

Output Contract

Done means:

  • Base model named and sourced
  • n_sims + seed reported
  • Dependence assumption stated
  • Distribution summaries (not only means)
  • Sensitivity note present
  • Repro commands present

Worked Example

bash
python /path/to/simulation-sports/scripts/season_win_sim.py \
  --input schedule_probabilities.parquet \
  --season 2024 --n-sims 5000 --seed 7 --threshold 10 \
  --out season_win_sim_2024.json

Report: “Independent-game Monte Carlo from held-out-calibrated pre-event probabilities; mean and central quantiles by participant; simulation uncertainty does not include all roster, injury, schedule, or model uncertainty.”


Bundled Resources

references/

FileContents
simulation_assumptions.mdassumption checklist
sensitivity.mdwhat to stress-test

scripts/

FileContents
season_win_sim.pyMonte Carlo participant win counts across supplied pre-event probability rows

Related Skills

NeedSkill
Ratingsratings-strength-models
Predictive probspredictive-modeling
Calibrationcalibration-check
Reportingresults-reporting
Rating constructionratings-strength-models

Quick Command Card

bash
python /path/to/simulation-sports/scripts/season_win_sim.py \
  --input schedule_probabilities.parquet \
  --season 2024 --n-sims 5000 --seed 7 --threshold 10 \
  --out season_win_sim_2024.json

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Simulation Sports؟

Simulate game and season outcomes from user-supplied probabilities or ratings, summarize uncertainty, and test sensitivity to assumptions. Use for standings, win totals, matchup distributions, and scenario analysis.

لماذا تستخدم Simulation Sports على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Simulation Sports عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Simulation Sports في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/simulation-sports. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Simulation Sports؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Simulation Sports؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Simulation Sports معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Simulation Sports مجانية؟

نعم. نشرها WalrusQuant على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇