codebase-mapper
AgentExplores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality,…
Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines.
Claude Code
> /plugin marketplace add yeaight7/agent-powerups
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: leakage-auditor description: Specialized agent for detecting data leakage, train-test contamination, and temporal leakage in ML pipelines. model: inherit
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.
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.
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`).
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
Explores codebase and writes structured analysis documents. Spawned by map-codebase with a focus area (tech, arch, quality,…
Refresh codebase intelligence documents after meaningful repo changes and note what became stale or newly important.
Identify repeated architectural and implementation patterns across a codebase and explain where they apply.
Reviews code for quality, security, and performance. Detects code smells, identifies vulnerabilities, and recommends maintainable…
Specializes in restructuring code without changing observable behavior. Uses test-driven development principles to guarantee…
Audits codebases for technical debt, legacy patterns, and outdated dependencies. Proposes structured remediation roadmaps. Use…
Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…