Skip to content
Back to skills

Ml Leakage Check

ASecurity

Identify and prevent target leakage in ML preprocessing pipelines.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 29, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned May 29, 2026

npx -y skills add yeaight7/agent-powerups --skill ml-leakage-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ml Leakage Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ml Leakage Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeaight7-ml-leakage-check/badge)](https://www.skillsdirectory.com/skills/yeaight7-ml-leakage-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ml-leakage-check
description: "Identify and prevent target leakage in ML preprocessing pipelines."
---

# ML Leakage Check

Target leakage is the most common and dangerous error in applied ML. It creates models that look perfect in validation but fail instantly in production.

## Leakage Vectors to Check

1. **Global Scaling/Imputation**: Did the author calculate the mean of the *entire* dataset to impute missing values before splitting? This leaks the test set distribution into the training set.
2. **Future Features**: Is there a feature available in the training data that would absolutely not be available at the moment of prediction in real life? (e.g., using "surgery_outcome" to predict "hospital_admission_length").
3. **ID Proxies**: Are database IDs or row numbers accidentally included as features? They often correlate with time or order of entry.
4. **Action**: Enforce the rule: Split FIRST, then fit transformers on Train ONLY, then transform Train/Val/Test.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…