Engineer features for a model without leakage and reproducibly
Scanned 9/3/2026
Install to Claude Code
npx -y skills add black141312/ada --skill feature-engineering --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Feature Engineering?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/black141312-feature-engineering)More formats (shields.io, HTML) on the badges page.
---
name: feature-engineering
description: Engineer features for a model without leakage and reproducibly
category: data-ml
---
# Feature Engineering
Use when deriving model inputs from raw data — encodings, aggregates, time-window features — and you need them correct, leakage-free, and consistent between training and serving.
1. Start from the prediction point: for each row, only use information available before the label is known (the "as-of" time).
2. Derive features explicitly — encodings, ratios, datetime parts, rolling/window aggregates, and target-relative stats — one transform at a time.
3. Fit any feature that learns from data (scalers, target/mean encoders, imputers) on the training split only, then apply to val/test.
4. For time-windowed and aggregate features, compute them strictly from past rows to avoid look-ahead leakage.
5. Encapsulate the transformations so the exact same code runs at training and at serving (avoid train/serve skew).
6. Check feature distributions, null rates, and correlation with the target; drop constant, duplicate, or leaky features.
## Rules
- Leakage is the cardinal sin: never use future information or the target (directly or via fitted stats) for a row's features.
- Fit data-dependent transforms on train only; refit per fold under cross-validation.
- Use the same transformation code path in training and production to prevent train/serve skew.
- Respect the as-of time for every time-based feature — joins and rolling windows must not peek ahead.
- A feature that's suspiciously predictive is usually leakage; investigate before trusting it.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!