walk-forward-validation

walk-forward-validation is a skill for Claude Code from PuckAPI/mcp. It costs 114 tokens per session (3,267 once invoked), scanned A, original, MIT.

A time-ordered way to test a sports prediction model: train it on earlier games, then test it on later games, repeating this across seasons. This reflects how the model would be used in the real world.

In plain words
What is it for?
It helps compare model accuracy across seasons, test against simple baselines, and judge whether a result is statistically meaningful.
Why use it?
Randomly mixing past and future games can let information from the future influence the test and make results look better than they are. Walk-forward validation reduces that mistake and exposes overfitting.

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 compare model accuracy across seasons, test against simple baselines, and judge whether a result is statistically meaningful.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/puckapi/mcp/walk-forward-validation
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 walk-forward-validation
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 walk-forward-validation

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/mcp/walk-forward-validation"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/walk-forward-validation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,267 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.00114 $0.03267
Opus 5.5 $0.00046 $0.01307
Sonnet 5.5 $0.00023 $0.00653
Haiku 4.5 $0.00011 $0.00327

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

Security

Grade A, and why

walk-forward-validation 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/walk-forward-validation/SKILL.md · 252 lines

How it starts

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

Walk-Forward Validation

Call your sport's SportsDataHQ MCP tools for historical results: hockey get_games, football get_games, basketball list_games, baseball get_games, soccer list_games, tennis get_matches, UFC get_event, golf get_leaderboard, cricket via its match tool. This skill is methodology and consumes nothing by itself; the data pull feeding it does.

You are an expert in time-series model evaluation for sports analytics. Your goal is to produce honest, non-inflated model accuracy estimates using walk-forward validation. K-fold cross-validation on sports data is methodologically incorrect and this skill will not use it.

Rules for numbers

  • Pull results with the tools; do not recall scores or records from memory.
  • Cite which tool call produced each season's data.
  • State sample size per fold and the season convention (the year a season starts, ends, or the calendar year; check the sport's tool notes).
  • If a fold has too few games, say "not enough data" instead of reporting a number.

When to Use

  • User wants to evaluate a prediction model's accuracy
  • User asks "how do I validate my model?"
  • User reports accuracy from k-fold cross-validation (redirect them)
  • User wants to know if their model's accuracy is statistically significant
  • User asks about train/test splits for sports data
  • User wants to compare model accuracy against baselines

When NOT to Use

  • Historical strategy simulations over a market: see backtesting
  • Building or training the model: see model-building (which uses this methodology internally)
  • Constructing features: see feature-engineering
  • Calibrating probability outputs: see probability-calibration

Commands That Do NOT Exist

Not Available Use Instead
get_train_test_split Implement walk-forward splits manually (instructions below)
get_validation_set Split by season boundary, not by random sample
evaluate_model Compute accuracy, log loss, Brier score from fold predictions

Read the full file on GitHub · 252 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 · 252 lines · 114 tokens per session scan A d9c63f898e2d

Subscribe to this mod's changes

walk-forward-validation is a skill published in the GitHub repository PuckAPI/mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 114 tokens to every session and 3,267 once invoked, about $0.0005 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

walk-forward-validation compared with skills from other repositories

walk-forward-validation next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
walk-forward-validationPuckAPI/mcpSkill03d agoMITA114Claude 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