# ML Dataset Auditor & Leakage Checker

> Profiles and audits any dataset for ML: data quality, leakage risks, the right train/test split, and a prioritized, leakage-safe preprocessing plan.

ML Dataset Auditor & Leakage Checker is a free AI agent skill on Agensi by Qasim Khan, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Qasim Khan](https://www.agensi.io/creators/qasim-khan)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.0
- Last updated: 2026-12-05
- Security: scan passed (2026-12-05); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ml-dataset-auditor-leakage-checker
- Tags: coding, data-analysis, machine-learning

## What it does

- Inspects dataset structure, quality, and missingness with evidence, not assumptions
- Investigates target leakage, train/test contamination, and temporal/group leakage
- Recommends the correct split strategy for the data (random, stratified, time-based, group-aware)
- Designs leakage-safe preprocessing (every transform fit on training data only)
- Prioritizes every finding by severity, likely impact, and effort
- Produces a full dataset audit report ready to hand to a modeling team

## Who it's for

- **Data scientists starting on an unfamiliar dataset:** Get a full quality and leakage audit before modeling. Try: "Audit this churn dataset for leakage and recommend a split strategy."
- **ML engineers debugging a model that doesn't generalize:** Get the leakage investigation that usually finds the bug. Try: "My model works in training but fails in production — check for leakage."
- **Students and researchers preparing a dataset for a paper:** Get a reproducible preprocessing plan. Try: "Design a preprocessing pipeline for this tabular dataset."

## About this skill

The problem it solves

Most leakage bugs (future information in features, duplicate entities crossing train/test, transforms fit before the split) are invisible until the model fails silently in production. This skill is built around strict evidence discipline — it won't claim to have inspected data it hasn't seen, and chases leakage systematically instead of assuming a dataset is clean.

How it works

Establishes the task (target, task type, deployment setting), inspects structure, audits quality (missingness, invalid values, cardinality), examines distributions and class imbalance, investigates leakage and validity, recommends a split strategy matched to the data-generating process, designs preprocessing with pipeline-based leakage prevention, prioritizes a fix list, and produces a reproducible audit report.

Frameworks & tools

Prefers pandas, numpy, and scikit-learn (Pipeline, ColumnTransformer) when code execution is available, with leakage prevention enforced by fitting transforms after the split, not before.

Why this beats prompting it yourself

Has explicit decision rules per task type (classification, regression, time series, grouped observations, high-cardinality categoricals) and refuses to default to a random split for temporal or grouped data without justifying why — the single most common ML mistake it's designed to catch.

Use cases

- First-pass audit of a new dataset before building a model
- Diagnosing why a model performs well in training but fails in production
- Choosing a validation split strategy for time series or grouped data
- Designing a leakage-safe preprocessing pipeline

Known limitations

Can only audit data it can actually inspect — if none is supplied, it asks for the dataset rather than guessing, and never fabricates statistics, sources, or model results.

## Requires

Works without code execution (schema-based audit), but a sandbox tool gives deeper, data-verified findings. Code execution / sandbox tool (for running pandas and scikit-learn directly on the dataset).

## Technical details

Pure SKILL.md package. Ships references/analysis-checklist.md, references/split-strategy.md, templates/dataset-audit-report.md (required deliverable), examples/example-request.md (worked churn-prediction example), and tests/quality-tests.md. When Python execution is available, uses pandas/numpy/scikit-learn (df.info(), describe(), missingness summaries, value_counts, Pipeline/ColumnTransformer). For large datasets, uses sampling or chunking and discloses the limitation. No raw sensitive records are printed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ML Dataset Auditor & Leakage Checker skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does ML Dataset Auditor & Leakage Checker do?

Profiles and audits any dataset for ML: data quality, leakage risks, the right train/test split, and a prioritized, leakage-safe preprocessing plan.

### Which AI agents support ML Dataset Auditor & Leakage Checker?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use ML Dataset Auditor & Leakage Checker?

Connect your AI agent to Agensi through MCP, then ask it to use ML Dataset Auditor & Leakage Checker on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
