/sports-analytics-core:visualizationfrom SportsDataHQ: analytics core
Creates shareable chart cards from sports data using matplotlib or terminal charts. Produces one-clean-chart-per-card with headline, accent color, direct labels, and source line.
Ships in SportsDataHQ: analytics core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn numbers from a tool call or another skill into one chart that makes one point and can be posted as is. Visualization costs no credits on its own: it renders data already pulled. If the data is not in the conversation yet, pull it first with your sport's SportsDataHQ MCP tools (hockey get_shot_map, basketball get_shot_chart, football get_plays, baseball get_pitches, soccer get_events, tennis get_match, golf get_leaderboard, UFC get_fight, cricket get_deliveries, any sport get_team_stats or get_leaders).
| The point | Chart |
|---|---|
| Something changed over seasons or games | Line, the series that matters in the accent colour and the rest in grey |
| Ranking (leaders, teams, books) | Horizontal bars, sorted, value printed at the bar end |
| Two numbers, before and after | Hero number card: the old number in grey, the new one big in the accent |
| Where on the ice, court, pitch or field | Shot map or heatmap on the surface outline |
| Model against the market | Dots per game, model on one axis and the no-margin market on the other, with the diagonal |
| Calibration | Predicted bucket against actual rate, with the diagonal and bucket counts |
One chart, one point. If the user wants several points, make several cards.
#F7F5F0, ink #141414, muted text #6B6860, gridlines #E2DED5, secondary series #C9C4B9.#E39A12, football #F07A2C, hockey #1FA9D6), otherwise any single strong colour. Text in the accent uses a darker shade for contrast.Source: <tool>, <seasons>, n = <count> on the left. The user may add their own handle or site on the right; ask instead of adding one.import matplotlib.pyplot as plt
BG, INK, MUTED, GRID, LO = "#F7F5F0", "#141414", "#6B6860", "#E2DED5", "#C9C4B9"
ACCENT = "#E39A12" # the sport's accent
HEAD = {"family": "sans-serif", "weight": "black", "stretch": "condensed"}
def card(x, series, focus, headline, subtitle, source, fmt="{:.0f}%", out="card.png"):
"""series: {label: [y values]} ; focus: the label drawn in the accent colour."""
fig = plt.figure(figsize=(6, 6), dpi=180, facecolor=BG)
fig.add_artist(plt.Rectangle((0, 0.99), 1, 0.01, transform=fig.transFigure, color=ACCENT, lw=0))
fig.text(0.07, 0.93, headline.upper(), color=INK, fontsize=26, va="top", **HEAD)
fig.text(0.07, 0.84, subtitle, color=MUTED, fontsize=11, va="top")
ax = fig.add_axes([0.07, 0.16, 0.74, 0.62], facecolor=BG)
for label, ys in series.items():
main = label == focus
ax.plot(x, ys, color=ACCENT if main else LO, lw=3.2 if main else 2, zorder=3 if main else 2)
ax.text(x[-1], ys[-1], f" {label} {fmt.format(ys[-1])}" if main else f" {label}",
color=ACCENT if main else MUTED, fontsize=11, weight="bold" if main else "normal", va="center")
ax.grid(axis="y", color=GRID, lw=0.8); ax.set_axisbelow(True)
for s in ax.spines.values(): s.set_visible(False)
ax.tick_params(colors=MUTED, labelsize=10, length=0)
fig.add_artist(plt.Line2D([0.07, 0.93], [0.09, 0.09], color=GRID, lw=1, transform=fig.transFigure))
fig.text(0.07, 0.05, source, color=MUTED, fontsize=9, va="center")
fig.savefig(out, facecolor=BG)
Call it with the pulled values, for example card(seasons, {"Long twos": long2, "Threes": threes}, "Long twos", "The long two is almost dead", "Share of NBA shots by zone, regular season", "Source: get_shot_chart, 2005-2026, n = 4,470,166 shots"). Adapt the same frame for bars, hero numbers or a surface map; keep the background, headline, accent and footer.
If the user has the fonts installed, a condensed display face for the headline and a plain grotesque for the rest look better than the default; say which line to change.
When the user wants it in the terminal, or cannot run Python:
LONG TWOS, SHARE OF NBA SHOTS
2004-05 ██████████████████████████████ 30.1%
2014-15 ████████████████████ 20.4%
2025-26 ████████ 7.9%
Source: get_shot_chart, regular season
Scale bars to the terminal width and print the value at each bar end.
| Rationalization | Why it is wrong | Do this instead |
|---|---|---|
| "Visualize first, get the data later" | Charts without the numbers are decoration | Pull or run the source skill first |
| "A legend is fine" | Readers on a phone will not match colours to a key | Label each series at its end |
| "Every series in its own colour" | Nothing stands out, so there is no point | One accent, the rest grey |
| "Title it by topic" | "Shot zones by season" says nothing | State the finding |
| "Compute the metric inside the plotting script" | Creates a second source of truth | Pass computed values in from the analysis |
| "Show everything on one dashboard" | A chart that shows everything says nothing | One card per point |
| Finding | Next skill |
|---|---|
| Need the analysis before the chart | the sport's preview or research skill, backtesting, prediction-tracker |
| Calibration chart looks off | probability-calibration |
| Model against the market chart wanted | market-vs-model for the numbers first |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
9 plugins ship this exact skill · first indexed Dec 3, 2026
Showing 6 of 9 plugins, one per repository first
10 skills in this plugin
/backtestingUse when the user asks whether a sports model or system would have worked in the past, for any sport, in plain wording: 'does my model actually work', 'test it on the last three seasons', 'did it beat the closing line', 'is it still as accurate as it used to be', 'what is the confidence interval on my hit rate', 'how would this have done in 2023', 'run it against past odds', 'is this edge real or luck', 'how should I split seasons to test it'. Use this whenever historical performance, fold design, sample size or an interval is the question. Load this skill first, before calling any data tool; it says which tools to call. Walk-forward only; refuses k-fold and in-sample testing; reports sample size, an interval and a per-season breakdown. Not for logging live predictions as games finish (see prediction-tracker), tonight's gap to the market (see market-vs-model) or training (see model-building)./data-pipelineUse when the user wants anything sports-related to run on its own or keeps getting numbers that do not line up: 'run my model every morning', 'schedule a script to grab results daily', 'GitHub Action to refresh my ratings', 'automate the whole thing', 'email me when the model gets worse', 'where do I store predictions', 'I joined two tables and lost rows', 'duplicate rows in my data', 'does this date belong to last season'. Load this skill first, before calling any data tool; it says which tools to call. Covers cron jobs and GitHub Actions, storage, model versioning, retraining and drift alerts, plus the data checks other skills point to (ids, season convention per sport, one league, duplicates, sample-size floors). Not for one-off lookups (call your sport's tools directly), building the model (use model-building), historical testing (use backtesting) or grading logged predictions (use prediction-tracker)./elo-engineeringUse when the user asks to build Elo ratings, rate teams or players, tune K-factor or home advantage, carry ratings across seasons, add margin-of-victory, or mentions Fading, Form or Component Elo. Works for team sports and for tennis, golf, UFC and cricket player or fighter ratings. Load this skill first, before calling any data tool, for short fragments and follow-ups too; it says which tools to call. Not for general feature construction (use feature-engineering), not for a full model (use model-building), not for plain team stats (call get_standings or get_team_stats for hockey, or your sport's stats tools), not for season simulation (use nhl-playoff-simulation)./feature-engineeringUse when the user asks to prepare data for a model, build rolling averages or recent-form features, add rest days or back-to-back flags, adjust for strength of schedule, build starter or goalkeeper quality features, use Elo as an input, or check features for leakage. Enforces shift(1) before any rolling calculation. Load this skill first, before calling any data tool, for short fragments and follow-ups too; it says which tools to call. Not for looking up raw stats (call get_games, get_standings or get_team_stats), not for explaining hockey metrics (use nhl-advanced-stats), not for expected goals features (use nhl-xg-model), not for training (use model-building)./market-vs-modelUse when the user puts a model's or their own number next to the betting market, or asks what a price means as a probability, for any sport, in plain wording: 'our number vs the market tonight', 'is the market higher on them than my numbers', 'fair price vs our price', 'do my ratings beat the close', 'are we off the market on favorites', 'what does +250 mean as a chance', 'take the juice out of -300/+250', 'how big a gap is real'. Use this whenever a model probability meets a market probability, or odds need converting or the margin removed. Load this skill first, before calling any data tool; it says which tools to call. Covers odds conversion, margin removal, the model vs no-margin gap and the sample needed before a gap means anything. Odds are information only: no stakes, no picks. Not for today's prices alone (see your sport's odds skill), testing on past seasons (see backtesting) or logging live predictions (see prediction-tracker)./model-buildingUse when the user wants to build or choose a model that predicts sports outcomes, for any sport, in plain wording: 'predict who wins', 'which algorithm should I use', 'logistic regression or XGBoost', 'tune my model', 'train a classifier on fights', 'which features matter', 'can I blend two models', 'random forest for the NHL', 'my model is stuck at 55 percent'. Use this whenever a game or match prediction model is being built, picked or improved. Load this skill first, before calling any data tool, for short fragments and follow-ups too; it says which tools to call. Always walk-forward; refuses k-fold. Not for building input features (see feature-engineering), checking probabilities (see probability-calibration), hockey shot models (see nhl-xg-model) or market comparison (see market-vs-model).npx claudepluginhub sports-data-hq/strikerapi-mcp --plugin sports-analytics-core