model-building

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

A guide for building sports models that predict event outcomes and produce probability estimates. It covers choosing algorithms, selecting features, tuning settings, and combining models, then evaluates them on later games rather than on the training data.

In plain words
What is it for?
It helps choose and train classifiers, compare algorithms such as logistic regression and random forests, inspect useful features, and blend multiple models.
Why use it?
Training accuracy can look good even when a model fails on new games. Testing on later, unseen games gives a more honest measure of how the model may perform in practice.

Skill for Claude Code

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

Part of the sports-analytics-core plugin — 13 skills shipped together

Good fit It helps choose and train classifiers, compare algorithms such as logistic regression and random forests, inspect useful features, and blend multiple models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/puckapi/mcp/model-building
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 model-building
Clone the repo
git clone --depth 1 https://github.com/PuckAPI/mcp

Made for: Claude Code.

Or install sports-analytics-core, the plugin that ships this one along with the rest of its 13 skills.

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 model-building

README.md
[![agentmods](https://agentmods.dev/badge/skills/puckapi/mcp/model-building/github.svg)](https://agentmods.dev/skills/puckapi/mcp/model-building)
Your own site
<a href="https://agentmods.dev/skills/puckapi/mcp/model-building"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/model-building/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 model-building

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/mcp/model-building"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/model-building.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 187 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,222 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.00187 $0.03222
Opus 5.5 $0.00075 $0.01289
Sonnet 5.5 $0.00037 $0.00644
Haiku 4.5 $0.00019 $0.00322

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

Security

Grade A, and why

model-building 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/sports-analytics-core/skills/model-building/SKILL.md · 258 lines

How it starts

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

Model Building

You are an expert in building sports prediction models. The goal is a classifier that gives honest accuracy and probability estimates on held-out walk-forward test folds. Training accuracy is never reported. Walk-forward test performance is the only number that matters.

Data

Call your sport's SportsDataHQ MCP tools for historical results and inputs (hockey get_games and get_shot_map, football get_games and get_plays, basketball list_games and get_shot_chart, baseball get_games and get_pitches, soccer list_games and get_events, tennis get_matches and get_match, golf get_leaderboard, UFC get_fight, cricket get_deliveries). Features should already be built and audited upstream (feature-engineering). Training itself is local and calls no tools.

Own data (feature matrix CSV): columns game_id, game_date, season, all feature columns, and the target (for example home_win). Sorted ascending by game_date, no NaN in feature columns.

Rules for numbers

  • Call the tools for any data figure; never answer from memory.
  • Cite which tool call supplied the training data (tool plus arguments).
  • State sample size per fold (training and test games) and the season convention.
  • Report intervals with every accuracy or log loss figure. If there are too few test games, say "not enough data" instead of ranking models on noise.

When to Use

  • Build a model that predicts outcomes
  • Choose between logistic regression, random forest and XGBoost
  • Tune hyperparameters
  • Combine models into an ensemble
  • Find which features matter

When NOT to Use

  • Feature construction: use feature-engineering
  • Checking the fold design: use walk-forward-validation
  • Checking probabilities are calibrated: use probability-calibration
  • Expected goals models: use nhl-xg-model
  • How our probability differs from the market's: use market-vs-model

Initial Assessment

Before training, establish:

  1. Are features built and audited for leakage? If not, start with feature-engineering.
  2. How many seasons of historical data are available? (determines fold count)
  3. Is the prediction target binary win/loss, or probability, or goal differential?

Read the full file on GitHub · 258 lines

Files

What ships with it

1 file 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 · 258 lines · 187 tokens per session scan A cbdca75ca7b8

Subscribe to this mod's changes

model-building is a skill published in the GitHub repository PuckAPI/mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 187 tokens to every session and 3,222 once invoked, about $0.0007 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

model-building compared with skills from other repositories

model-building next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
model-buildingPuckAPI/mcpSkill03d agoMITA187Claude Code
claude-apiasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A317Claude Code, Codex
nemo-curatorNousResearch/hermes-agentSkill267ktodayMITA22Claude Code, Codex
simpoNousResearch/hermes-agentSkill267ktodayMITA13Claude Code, Codex
cli-evaldiegosouzapw/OmniRouteSkill91kyesterdayMITA34Claude Code, Codex
llm-app-patternsdavila7/claude-code-templatesSkill35ktodayMITA54Claude Code, Codex
emerging-techniques-long-contextdavila7/claude-code-templatesSkill35ktodayMITA78Claude Code, Codex