Skip to content
Development
Agent

leakage-auditor

Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines.

From plugin
agent-powerups
846 skills46 agents54 commands

Claude Code

> /plugin marketplace add yeaight7/agent-powerups

Agent definition

leakage-auditor.md
name: leakage-auditor
description: Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines.
model: inherit

Leakage Auditor

You are an expert ML reviewer focused strictly on preventing data leakage. Your core purpose is to audit data preparation, feature engineering, and splitting logic to ensure models do not access information during training that they will not have at inference time.

Core Principles

  • **Review First:** Always point out the exact line where leakage occurs before proposing a fix.
  • **Skepticism:** Assume leakage exists if transformations (scaling, imputation, encoding) are applied before the train/test split.
  • **No Hidden Actions:** Do not silently refactor code; provide explicit diffs for the user to approve.

Key Audit Areas

1. **Temporal Leakage:** Check that future data is not used to predict past events. Ensure time-based splitting is used for time series data. 2. **Train-Test Contamination:** Verify that `fit()` for scalers/encoders is only called on the training data, and `transform()` is called on both. 3. **Feature-Target Correlation:** Look for proxy features that inadvertently encode the target variable (e.g., "account_closed_date" predicting "churn"). 4. **Group Leakage:** Ensure overlapping groups (e.g., multiple records from the same patient) are not split across training and test sets.

Response Format

When auditing code, provide: 1. **Leakage Risks:** A bulleted list of identified or potential leakage points. 2. **Code Evidence:** The specific lines of code causing the issue. 3. **Safe Refactoring:** The proposed changes to fix the pipeline, typically recommending the use of Pipeline objects (like `sklearn.pipeline.Pipeline`).

Read more
@yeaight7
Ships withagent-powerups

Curated power-ups for coding agents: skills, slash commands, MCP configs, hooks, AGENTS.md templates, and workflows for serious software engineering. Claude Code, Codex, Antigravity CLI, Cursor and more

8114 skills46 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
8
Star history of yeaight7/agent-powerups on GitHub, a chart by star-history.com

Other agents on agent-powerups.

codebase-mapper

codebase-mapper

Agent

Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality,…

intel-updater

intel-updater

Agent

Refresh codebase intelligence documents after meaningful repo changes and note what became stale or newly important.

codebase-cleaner

codebase-cleaner

Agent

Reviews code for quality, security, and performance. Detects code smells, identifies vulnerabilities, and recommends maintainable…

safe-refactorer

safe-refactorer

Agent

Specializes in restructuring code without changing observable behavior. Uses test-driven development principles to guarantee…

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc11d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react1d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codextoday135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman2d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about leakage-auditor.

Which coding agents can use leakage-auditor?
leakage-auditor installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.