feature-engineering

feature-engineering is a skill for Claude Code from PuckAPI/mcp. It costs 124 tokens per session (2,763 once invoked), scanned A, original, MIT.

A guide to turning raw sports records into inputs for a prediction model. It covers rolling averages, recent form, rest days, back-to-back games, opponent strength, goalie quality, and Elo features.

In plain words
What is it for?
It is for preparing model datasets, calculating recent-performance measures, adding schedule and starter information, and checking features before training or evaluation.
Why use it?
Features can accidentally use information from after the prediction date, a mistake called data leakage. This guide enforces time-safe calculations and checks source data for missing or invalid rows.

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 preparing model datasets, calculating recent-performance measures, adding schedule and starter information, and checking features before training or evaluation.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/mcp/feature-engineering"><img src="https://agentmods.dev/badge/skills/puckapi/mcp/feature-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,763 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.00124 $0.02763
Opus 5.5 $0.00050 $0.01105
Sonnet 5.5 $0.00025 $0.00553
Haiku 4.5 $0.00012 $0.00276

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

Security

Grade A, and why

feature-engineering 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/feature-engineering/SKILL.md · 206 lines

How it starts

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

Feature Engineering

You are an expert in sports feature engineering. The goal is to build model-ready features from raw data while guaranteeing zero temporal leakage. This is where most first models go wrong.

Data

Call your sport's SportsDataHQ MCP tools. Hockey: get_games, get_team_stats, get_goalie_stats, get_head_to_head. Football: get_games, get_team_stats, get_plays. Basketball: list_games, get_team_stats, get_shot_chart. Baseball: get_games, get_team_stats, get_pitches. Soccer: list_games, get_team_stats, get_events. Tennis: get_matches, get_surface_splits. Golf: get_leaderboard, get_player_results. UFC: get_fighter_fights. Cricket: get_deliveries. Read your server's tool list for exact names.

Derived features have no tool of their own (rolling stats, rest days, strength of schedule, recent starter form): compute them from the game log.

Own data (CSV or JSON): verify game_date, home and away identifiers, result columns and stat columns; ISO 8601 dates; flag missing rows, do not silently drop.

Rules for numbers

  • Call the tools. Never fill a feature value from memory.
  • Cite which tool call supplied each feature's source data (tool plus arguments).
  • State the sample size behind every feature (games in the window, games in the training set) and the season convention the server uses.
  • Where history is too short for a window, mark the feature missing and say "not enough data". Do not guess a value.

When to Use

  • Prepare data for a prediction model
  • Rolling windows, moving averages, recent form
  • Home and away splits, rest days, back-to-backs
  • Strength-of-schedule adjustment
  • Starter quality (goalie, pitcher, goalkeeper, quarterback)
  • Elo ratings as model features
  • Opponent-adjusted metrics

When NOT to Use

  • Raw lookups: call get_games, get_standings or get_team_stats (hockey) or your sport's stats tools
  • What Corsi, Fenwick or PDO mean: use nhl-advanced-stats
  • Expected goals features: use nhl-xg-model
  • Training or evaluating the model: use model-building and walk-forward-validation

Read the full file on GitHub · 206 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 · 206 lines · 124 tokens per session scan A de9e3bf64a98

Subscribe to this mod's changes

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

feature-engineering compared with skills from other repositories

feature-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
feature-engineeringPuckAPI/mcpSkill03d agoMITA124Claude 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