Sports Visualizationのロゴ

Sports Visualization

コミュニティ
WalrusQuant
sports-visualization

ユーザー自身のデータを使って、分布、率、評価値の推移、キャリブレーションプロット、ウォークフォワード方式での指標比較など、誠実なスポーツ分析用の図を作成します。データの探索や結果の伝達に使用します。

Add to TypingMind

概要

公開者WalrusQuant
リポジトリsports-analytic-skills
スキル名sports-visualization
スター
53
フォーク
4
同梱ファイル
5
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    WalrusQuantがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Sports Visualization」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-visualization
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをその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-visualization .claude/skills/sports-visualization
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSports Visualizationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にSports Visualizationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Sports Visualizationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Sports Visualization

Outcome

Create the smallest reproducible figure that answers a defined question without exaggerating the evidence. Every important figure states its period, sample size, metric definition, grain, and relevant baseline. Add uncertainty when the claim depends on noisy differences.

This skill constructs figures. Use anti-slop-analytics for an independent keep/fix/kill review and results-reporting for the surrounding narrative.

When to use this skill

Use for exploratory distributions, coverage plots, model diagnostics, calibration, ratings and form trajectories, team or player comparisons, walk-forward results, and publication figures. Do not start with chart type: start with the question and the unit represented by each mark.

Required inputs

  • question and intended audience;
  • user-owned data or metrics artifact;
  • sport, competition, grain, natural key, and period;
  • relevant denominator, filters, and missing-data rules;
  • metric definition and direction;
  • comparison baseline and uncertainty artifact when applicable;
  • desired output path and reproduction context.

If the source is a screenshot or rounded report table, do not reconstruct precise data unless explicitly labeled approximate. Prefer the underlying table.

Workflow

  1. State the single claim or diagnostic question.
  2. Validate input grain, keys, columns, types, and duplicated events.
  3. Define what one mark, line, bar, or interval represents.
  4. Choose the smallest chart that makes the comparison direct.
  5. Add sport, population, period, denominator, units, and baseline.
  6. Check axes, transforms, aggregation, bins, smoothing, missingness, and ordering.
  7. Add uncertainty or fold spread if the claim compares noisy quantities.
  8. Export the image and preserve the plotting command or code.
  9. Write a one-sentence factual interpretation and one limitation.
  10. Run an anti-slop pass before using the figure in a public claim.

Plot selection catalog

QuestionPreferred figureEssential checks
What periods are covered?season/week coverage timelinemissing periods and schedule type
What is the outcome distribution?histogram, ECDF, or quantile plotbin sensitivity, units, ties/outliers
How does a rate change over time?line or dot plot with denominatorsvarying n, rule eras, full scale
Is there home advantage?home-row rate by season with intervalcorrect grain; do not use full doubled panel
How does form evolve?as-of line or small multiplesshifted window, gaps, unequal schedules
Is a probability reliable?reliability curve plus countsbins, reference diagonal, sample size
Where does a margin model miss?residual versus prediction/contextheteroskedasticity and outliers
How does rating evolve?as-of trajectory with selected labelsupdate timing, regression, inactive teams
Does a candidate beat a baseline?paired fold dots/bars or compact tablesame events/folds, metric direction
How stable is a ranking?ordered dots with intervals/rank distributionopportunity and schedule strength

Read references/plot_catalog.md when routing a question to a chart. Read references/honest_labels.md before finalizing titles, captions, annotations, and uncertainty language.

Encoding defaults

ComparisonPreferAvoid
Rates over seasonsline/dots or bars with ncropped “dramatic” axis
Candidate versus baselinepaired dots, common-scale bars, or tableseparate charts with different scales
Distributionhistogram/ECDF plus median or quantilesmean-only summary
Probabilitiesreliability curve and count panelpie chart or “lock” language
Rankingsordered dots or small multiplesrainbow spaghetti
Many teams over timeselected labeled series or faceted small multiplesunreadable 30-line legend
Two time seriesaligned panels or indexed comparisondual axes tuned for correlation
Effectspoint estimate and intervalstars without magnitude

For rates, the axis must show changes without manufacturing drama. Zero is not mandatory for every line plot, but any restricted range must be justified and clearly labeled. Bar length encodes magnitude and normally needs a meaningful zero.

Sports-specific caveats

  • Team-game panels often contain complementary home and away rows. A home-win figure should filter is_home == 1; state unique-game n.
  • Rolling features and ratings must be plotted as of the prediction timestamp, not after the event update.
  • Unequal games played, minutes, plate appearances, or attempts can make player and team rates incomparable. Show opportunity thresholds or uncertainty.
  • Schedule strength, postseason selection, neutral venues, overtime, ties, and rule changes can alter apparent trends.
  • Season facets may have different lengths and missing weeks. Do not connect discontinuous observations as though spacing were equal.
  • Calibration bins need event counts. A smooth-looking curve from small bins is not strong evidence.
  • Fold-level model charts must retain losing folds and compare the same held-out rows.

Honest title and caption template

text
Title: <quantity> by <comparison> — <sport/competition>, <period>
Subtitle/caption: n=<games/events/rows>; grain=<grain>; <metric definition>;
baseline=<reference>; uncertainty=<method or unknown>; exclusions=<important filters>.
Source: <artifact>; reproduce: <script/command>.

Use descriptive titles such as “Held-out log-loss by season” rather than conclusion titles such as “Model Dominates.” Put interpretation in the caption, bounded by the observed population.

Uncertainty and aggregation

  • Use intervals appropriate to the sampling/design assumptions; name the method.
  • When repeated teams, players, or games induce dependence, avoid pretending rows are independent. Consider grouped resampling or fold variation.
  • Distinguish an unweighted season mean, an event-weighted mean, and a pooled metric. Label whichever is plotted.
  • Do not invent error bars when only aggregate numbers exist. State uncertainty as unavailable and show the raw fold or season values.
  • Show both numerator and denominator for important rates when feasible.

Hard constraints and integrity rules

  1. Period and denominator appear on every key figure.
  2. Metric, units, sport, population, and grain are explicit when not obvious.
  3. A comparative claim includes its relevant baseline.
  4. Axes and transforms do not manufacture the effect.
  5. Dual-axis correlation theater is prohibited.
  6. Probabilities are displayed as uncertain quantities, not destiny.
  7. Training metrics are never labeled held-out or walk-forward.
  8. Losing folds, missing periods, and excluded groups are not silently removed.
  9. Every claim-bearing figure has a reproduction path.
  10. Unknown uncertainty is disclosed, not fabricated.

Anti-patterns

  • rainbow spaghetti with every team unlabeled;
  • decorative 3-D, pie, gradients, or gauges;
  • one hot streak presented as season truth;
  • a correlation heatmap without a question;
  • missing baseline in a model-comparison chart;
  • smoothed lines with no method or window;
  • in-sample fit presented as validation;
  • cropped axes used to magnify small home-field changes;
  • image exports with no source data or command.

Standalone helpers

Install pandas and matplotlib; Parquet also needs pyarrow or fastparquet. The table helpers accept user-owned CSV, Parquet, JSON, JSONL, or NDJSON.

For a team-game panel with is_home and point_diff:

bash
python <path-to-sports-visualization>/scripts/plot_home_margin_hist.py \
  --input games.csv --out home_margin.png

For a panel with season, is_home, and binary won:

bash
python <path-to-sports-visualization>/scripts/plot_home_win_rate.py \
  --input games.parquet --out home_rate.png

Column flags map alternate schemas. The home-win helper drops rows without an observed season/outcome, labels each season's eligible home-row denominator, uses a 0-to-1 rate scale, and displays 95% Wilson intervals. Those intervals treat eligible games as Bernoulli observations and do not account for broader season/team dependence.

For a JSON report containing a folds array, each row needs an explicit fold label, held-out denominator (n_test by default), and candidate and baseline metric fields:

bash
python <path-to-sports-visualization>/scripts/plot_walkforward_metrics.py \
  --json metrics.json \
  --fold-col fold \
  --metric logistic_log_loss \
  --baseline constant_log_loss \
  --out comparison.png

The helper rejects duplicate fold labels and missing/nonpositive denominators, but cannot verify that the two metric columns came from identical rows or derive sampling uncertainty from aggregate scores. Perform the row-identity check before plotting; its default title labels uncertainty unavailable.

Worked examples

Home win rate

Validate the panel is team-game grain, filter home rows, count unique contests, and show per-season rate with denominator. Caption the figure as “home rows only” and disclose ties or excluded games.

Walk-forward model comparison

Plot candidate and baseline on the same y-axis for every eligible fold. State that lower log-loss is better, retain folds where the candidate loses, and use a table instead if small differences are difficult to read honestly.

Team rating trajectories

Plot ratings recorded before each event update. Label a small number of relevant teams directly, mark long inactivity gaps, and avoid interpreting a rating line as causal player or coaching impact.

Output contract

Return the figure path, source artifact, plotting command/code, purpose, population and grain, period and denominator, metric/baseline, uncertainty method, important exclusions, one bounded interpretation, and remaining limits.

Resources

  • references/plot_catalog.md — read when choosing the visual form for a sports question.
  • references/honest_labels.md — read when writing titles, captions, denominators, and uncertainty notes.
  • scripts/plot_home_margin_hist.py — standalone home-margin distribution plot.
  • scripts/plot_home_win_rate.py — standalone home-win-rate plot.
  • scripts/plot_walkforward_metrics.py — standalone fold comparison plot.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Sports Visualization」では何ができますか?

ユーザー自身のデータを使って、分布、率、評価値の推移、キャリブレーションプロット、ウォークフォワード方式での指標比較など、誠実なスポーツ分析用の図を作成します。データの探索や結果の伝達に使用します。

TypingMindでSports Visualizationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Sports Visualizationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSports Visualizationをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/WalrusQuant/sports-analytic-skills/tree/main/skills/sports-visualizationを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Sports Visualizationを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Sports Visualizationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSports Visualizationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Sports Visualization」は無料ですか?

はい。WalrusQuantがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇