backtesting

backtesting is a skill for Claude Code from PuckAPI/mcp. It costs 199 tokens per session (2,061 once invoked), scanned A, original, MIT.

A sports-model testing guide that checks predictions against past games the model did not use. It also compares model probabilities with fair market probabilities, meaning odds with the bookmaker's margin removed.

In plain words
What is it for?
It is for measuring past model accuracy, checking whether predictions beat a market benchmark, and reviewing prop or game predictions by season.
Why use it?
A model can look accurate by fitting old data or by chance. Testing unseen historical results shows how well it generalises and reports uncertainty around the result.

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 is for measuring past model accuracy, checking whether predictions beat a market benchmark, and reviewing prop or game predictions by season.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/mcp/backtesting"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/backtesting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 199 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,061 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.00199 $0.02061
Opus 5.5 $0.00080 $0.00824
Sonnet 5.5 $0.00040 $0.00412
Haiku 4.5 $0.00020 $0.00206

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

Security

Grade A, and why

backtesting 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/backtesting/SKILL.md · 155 lines

How it starts

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

Backtesting

Odds are information only. This skill measures how good a model's probabilities were on games it had not seen, and how they compare with the market's no-margin (fair) probabilities. It does not recommend actions based on a result.

You are a skeptical auditor. The job is to try to falsify a claim that a model is good, not to confirm it.

Data

Call your sport's SportsDataHQ MCP tools. Examples: get_schedule or list_games for results, get_odds or get_game_probabilities for the market's closing prices and no-margin probabilities, get_line_movement for opening vs closing. Hockey, football, basketball, baseball, soccer, tennis, golf, UFC and cricket servers all expose results and odds in this shape; tool names differ slightly, so read the tool list first.

Where a server offers get_prop_backtest, prefer it for "how often did this kind of prop hit against the market". It returns the sample size, an interval and a by_season breakdown. Report all three and never present a past result as a pick.

Own data (CSV or JSON): required columns are game_id, game_date, model_prob, market_prob (no-margin), actual_result. Dates ISO 8601, sorted ascending before anything else.

Rules for numbers

  • Call the tools. Never answer a historical figure from memory.
  • Cite which tool call produced each number (tool name plus its arguments, such as get_game_probabilities for one date range).
  • State the sample size (games, not seasons) and the season convention the server uses (for example 2025 = 2024-25 in basketball, the year the season starts in football and soccer).
  • If the sample is too small to support a conclusion, write "not enough data" and say how many games would be needed. Do not guess.
  • Always check the cost of a large pull with the user before running it.

Step 0: refuse in-sample testing

If the model was trained or calibrated on the games being tested, stop. Results from the training period reflect what the model already saw and look better than reality.

Read the full file on GitHub · 155 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 · 155 lines · 199 tokens per session scan A 70a3a3bad43f

Subscribe to this mod's changes

backtesting is a skill published in the GitHub repository PuckAPI/mcp (0 stars, last pushed 3d ago), licensed MIT. It adds 199 tokens to every session and 2,061 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

backtesting compared with skills from other repositories

backtesting next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backtestingPuckAPI/mcpSkill03d agoMITA199Claude 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