nhl-xg-model

nhl-xg-model is a skill for Claude Code from PuckAPI/mcp. It costs 200 tokens per session (3,358 once invoked), scanned A, original, MIT.

A guide to building a hockey expected-goals model that estimates the chance each shot becomes a goal. It uses shot locations and game events to model shot quality, including context such as rebounds and rushes.

In plain words
What is it for?
It is for training or improving hockey xG models, scoring individual shots, detecting rebound or rush chances, and calculating expected-goals rates.
Why use it?
Counting shots treats all attempts as equally dangerous even though location and situation matter. A shot-level model measures chance quality and can produce team or player expected-goals measures.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the nhl-data plugin — 16 skills, 1 MCP server shipped together

Good fit It is for training or improving hockey xG models, scoring individual shots, detecting rebound or rush chances, and calculating expected-goals rates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/puckapi/mcp/nhl-xg-model
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PuckAPI/mcp --skill nhl-xg-model
Clone the repo
git clone --depth 1 https://github.com/PuckAPI/mcp

Made for: Claude Code.

Or install nhl-data, the plugin that ships this one along with the rest of its 16 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nhl-xg-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/puckapi/mcp/nhl-xg-model/github.svg)](https://agentmods.dev/skills/puckapi/mcp/nhl-xg-model)
Your own site
<a href="https://agentmods.dev/skills/puckapi/mcp/nhl-xg-model"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/nhl-xg-model/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nhl-xg-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/mcp/nhl-xg-model"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/nhl-xg-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 200 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,358 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00200 $0.03358
Opus 5.5 $0.00080 $0.01343
Sonnet 5.5 $0.00040 $0.00672
Haiku 4.5 $0.00020 $0.00336

Measured 3d ago against content hash 212c26855806, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nhl-xg-model scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/nhl-data/skills/nhl-xg-model/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

xG Model Building

Data: the PuckAPI MCP server (nhl-puckapi-tools) has shot-level data.

  • get_shot_map (10 credits) returns shot locations to plot or model.
  • get_plays (10 credits) returns events for a game, player or season, used for rebound and rush context.
  • get_shifts and get_situation_time (10 credits) cover who was on the ice and strength-state time.
  • get_team_stats and get_goalie_stats (5 credits each) validate your aggregates against the server's own team and goalie numbers.

For the user's own shot data CSV/JSON, work with the file directly.

You are an expert in hockey expected goals modeling. Your goal is to build a shot-level xG model that estimates the probability any given shot results in a goal, controlling for shot quality rather than shot volume.

When to Use

  • User asks "how do I build an xG model"
  • User wants to model shot probability or goal probability from play-by-play data
  • User wants to compute xGF%, xGA, or expected goals for teams or players
  • User asks about rebound detection, rush shot detection, or shot angle features
  • User wants to replicate or improve a public xG methodology
  • User asks about strength-state-specific (5v5, PP, SH, EN) goal models

When NOT to Use

  • Using xG values that already exist: to analyze teams with pre-built xG, see nhl-xg-report or nhl-advanced-stats
  • Predicting game outcomes (win/loss): see model-building
  • Evaluating goalie quality using xGA: see nhl-goalie-gsax-report
  • General feature engineering for non-xG features: see feature-engineering

Data Sources

PuckAPI MCP server

Command What It Does Credits
get_shot_map Shot locations for a game, player or team 10
get_plays Event-level play-by-play (shots, goals, misses, blocks, strength state, time) 10
get_games Game list to get game IDs 5
get_team_stats Team-level shot and goal summaries to validate your xGF% 5
get_goalie_stats Goalie totals to validate xGA 5

Read the full file on GitHub · 247 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 247 lines · 200 tokens per session scan A 212c26855806

Subscribe to this mod's changes

nhl-xg-model is a skill published in the GitHub repository PuckAPI/mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 200 tokens to every session and 3,358 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

nhl-xg-model compared with skills from other repositories

nhl-xg-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nhl-xg-modelPuckAPI/mcpSkill03d agoMITA200Claude Code
subagent-driven-developmentNousResearch/hermes-agentSkill267ktodayMITA17Claude Code, Codex
mcporterNousResearch/hermes-agentSkill267ktodayMITA16Claude Code, Codex
research-engineerdavila7/claude-code-templatesSkill35ktodayMITA43Claude Code, Codex
safe-refactorJuliusBrussee/cavemanSkill124ktodayApache-2.0A29Claude Code, Codex
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A54Claude Code, Codex
telegram-setupvellum-ai/vellum-assistantSkill1.5k5d agoMITA22Claude Code, Codex