Identify and prevent target leakage in ML preprocessing pipelines.
Scanned 5/29/2026
Install to Claude Code
npx -y skills add yeaight7/agent-powerups --skill ml-leakage-check --agent claude-codeInstalls 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 automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/yeaight7-ml-leakage-check)More formats (shields.io, HTML) on the badges page.
---
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.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!
Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.