feature-engineering

Transforms raw hockey data into leak-free model features for predictive modeling.

1|Updated May 5, 2026
One-click install
npx skills add https://github.com/sports-data-hq/hockey-skills --skill feature-engineering-sports-data-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: feature-engineering
Source: https://github.com/sports-data-hq/hockey-skills/tree/main/skills/feature-engineering
Command: npx skills add https://github.com/sports-data-hq/hockey-skills --skill feature-engineering-sports-data-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill turns raw hockey game, player, and goalie data into model-ready features without temporal leakage, so predictions are based only on information available before the game being forecast.

Core Features & Use Cases

  • Leakage-safe rolling features: Enforces shift-first rolling calculations for recent form, scoring, shot attempts, and other time-based signals.
  • Matchup-ready feature construction: Builds home-versus-away differences, rest-day splits, opponent adjustments, and strength-of-schedule features for predictive models.
  • Goalie and Elo inputs: Adds starter save percentage, GSAA, confirmed starter flags, and pre-game Elo ratings to improve hockey game prediction.
  • Use case: A bettor or analyst can convert season game logs into a clean feature matrix for win-probability or totals modeling, then hand it off to temporal validation or training workflows.

Quick Start

Use the feature-engineering skill to build leak-free home-minus-away hockey features from my game logs and prepare them for model training.

Frequently Asked Questions about feature-engineering

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent data leakage when building hockey predictive model features?

Build leak-free hockey model features by enforcing strict temporal ordering and shift-before-roll validation for rolling windows, ensuring predictions use only past game data available before the forecast.

What is the best way to calculate rolling form metrics for hockey without lookahead bias?

Calculate rolling hockey form metrics by shifting data before rolling to avoid lookahead bias, ensuring recent scoring and shot attempt averages exclude the current game being predicted.

How do I create home-minus-away feature differences for hockey game prediction?

Create home-minus-away hockey game prediction features by subtracting away team stats from home team stats, incorporating rest-day splits and opponent adjustments for predictive modeling.

Can I use Elo ratings and goalie stats as inputs for hockey win probability models?

Yes, use Elo ratings and goalie stats as hockey model inputs by adding pre-game Elo ratings, starter save percentage, GSAA, and confirmed starter flags to improve win probability and totals modeling.

Does strength of schedule adjustment work with hockey game logs for predictive modeling?

Strength of schedule adjustment works with hockey game logs by applying opponent adjustments to raw game data, creating matchup-ready features that account for opponent quality in predictive models.

Why does my hockey model overfit when using rolling windows for recent form?

Hockey models overfit with rolling windows when shift-before-roll validation is skipped, causing data leakage; enforce strict temporal ordering so rolling form metrics exclude future game outcomes.