Agent skill · Data & Analytics

ml-data-leakage-guard

Detects and prevents data leakage in machine learning and mathematical modeling. Auto-activates after ML tasks involving: data cleaning, feature engineering, data augmentation, algorithm development, normalization, missing value imputation, dimensionality reduction, feature selection, time series modeling. Checks if features/statistics would be available at prediction time.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ml-data-leakage-guard --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 13 KB
Bundled scripts: none
Path: skills/ai-ml/ml-data-leakage-guard/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# ML Data Leakage Guard Skill Automatically detects and prevents data leakage in machine learning workflows by verifying that all preprocessing steps, feature engineering, and statistical computations would be available at prediction time. ## When to Use This Skill **AUTO-ACTIVATES** at the end of responses involving: - Data preprocessing (normalization, standardization, scaling) - Missing value imputation - Feature engineering and feature selection - Dimensionality reduction (PCA, SVD, t-SNE) - Target encoding or label encoding - Time series feature construction - Data augmentation strategies - Algorithm development and optimization - Train-test split procedures - Cross-validation setup ## Not For / Boundaries - Pure theoretical ML discussions without implementation - Model architecture design (without data preprocessing) - Hyperparameter tuning (unless it involves data-dependent operations) ## Core Principle **The Golden Rule**: At the exact moment of prediction in production, can I access this value from the database or compute it using only information available up to that point? If the answer is "no" or "not completely", then data leakage exists. ## Quick Reference ### Critica

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Not For / Boundaries
  3. Core Principle
  4. Quick Reference
  5. Critical Leakage Patterns
  6. Leakage Detection Checklist
  7. The "Prediction Time" Test
  8. Examples
  9. Example 1: Detecting Normalization Leakage
  10. Example 2: Detecting Missing Value Imputation Leakage
  11. Example 3: Detecting Time Series Leakage
  12. Example 4: Detecting Target Encoding Leakage
  13. Example 5: Detecting Post-Event Feature Leakage
  14. Leakage Severity Levels
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the ml-data-leakage-guard skill do?

Detects and prevents data leakage in machine learning and mathematical modeling. Auto-activates after ML tasks involving: data cleaning, feature engineering, data augmentation, algorithm development, normalization, missing value imputation, dimensionality reduction, feature selection, time series modeling. Checks if features/statistics would be available at prediction time.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ml-data-leakage-guard --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going