NHL xG model
Train an expected-goals model on shot locations and events, with walk-forward validation.
What it does
Trains XGBoost or LightGBM on shot events and locations with a time-ordered split, and reports log loss and calibration.
Questions to ask
“Build me an expected goals model from NHL shots”
“How do I flag rebounds and rush shots?”
“Just tell me Toronto's xG for tonight”
Data it uses
PuckAPI, the hockey data API. NHL games, players, standings and play-by-play from 2010-11 to today, odds from 2019-20, and the AHL, PWHL, OHL, WHL, QMJHL, ECHL and USHL on the same key. The skill calls its MCP server, https://mcp.puckapi.com/mcp, so it needs a free key from puckapi.com. One SportsDataHQ key also works: see the docs.
Install
Claude Code:
/plugin marketplace add sports-data-hq/sportsdatahq-skills
/plugin install nhl-data@sportsdatahqOther agents (Cursor, Codex, Gemini CLI and more):
npx skills add sports-data-hq/sportsdatahq-skills --skill nhl-xg-modelSource and the test prompts it is checked against: nhl-xg-model on GitHub.
Related skills
NHL advanced stats · NHL xG report · Model building · NHL goalie GSAX report