# Data Medic

> Audit and profile computer vision datasets for leakage, integrity issues, and class imbalance before training.

Data Medic is a free AI agent skill on Agensi by Mohammad Tahmid Zoayed, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Mohammad Tahmid Zoayed](https://www.agensi.io/creators/mohammad-tahmid-zoayed)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-23
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/data-medic
- Tags: llm-ops, computer-vision, data-quality, dataset-audit, machine-learning

## About this skill

Training a computer vision model on corrupted, imbalanced, or leaked data leads to silent failure and poor generalization. DatasetMedic provides a read-only, local-first framework to audit your datasets before you waste compute on a bad training run.

### What it does
- **Format validation** detects and verifies `yolo`, `coco`, `voc`, `csv`, and `folder` structures.
- **Leakage detection** identifies cross-split contamination, metadata group overlaps, and exact or near-duplicates.
- **Integrity auditing** catches corrupted images, missing labels, and invalid bounding box geometries.
- **Health scoring** calculates a 5-dimension dataset grade based on distribution, quality, and annotation coverage.
- **Fingerprinting** generates SHA-256 snapshots to track dataset drift and version changes over time.
- **Reporting** produces offline HTML and JSON audit summaries without modifying your source files.

### How it works
1. **Scan layout** to confirm the dataset format and task type using the `--scan-only` flag.
2. **Run audit** to execute integrity, distribution, and leakage checks across the entire directory.
3. **Profile snapshots** to create deterministic fingerprints for version tracking and drift analysis.
4. **Compare versions** using the profile diff tool to verify changes between dataset iterations.

### Frameworks & tools
Built for Python 3.11+ environments. It operates as a CPU-only local tool with no external API or GPU dependencies.

### Why this beats prompting it yourself
Generic LLM prompts cannot parse binary image headers or calculate bounding box IoU across thousands of files. This skill provides a specialized execution framework that performs deterministic structural analysis that a standard chat interface simply cannot see.

### Use cases
- **Pre-train auditing** to ensure test splits are not contaminated with training data.
- **Data cleaning** to find zero-area bounding boxes and corrupted images in large open-source datasets.
- **Drift tracking** to compare how a dataset evolved after a new labeling batch was merged.
- **Compliance reporting** to generate a static HTML health report for model documentation or audits.

### Known limitations
Does not verify visual semantic label accuracy or missed-object recall. It focuses on structural, integrity, and metadata-aware leakage rather than human-in-the-loop label validation.

## 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 Data Medic 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 specific problems does DatasetMedic solve for ML engineers?

DatasetMedic is a diagnostic tool that scans computer vision datasets for silent killers like cross-split data leakage, corrupted image files, and invalid annotation geometries before you begin training. It ensures your compute budget isn't wasted on models that appear to perform well but fail in production due to data integrity issues.

### What are the technical requirements for running this skill?

This skill is a local-first Python 3.11+ framework that requires no external GPU or API dependencies. It is designed to run in any environment that supports Python, making it compatible with local AI agents, CI/CD pipelines, and automated MLOps workflows.

### Will this skill modify or alter my existing dataset files during the audit?

No, DatasetMedic operates in a strictly read-only mode. It generates independent HTML and JSON audit reports and SHA-256 fingerprints, allowing you to analyze your data without the risk of the tool modifying your source images or original annotation files.

### Which dataset formats and structures are supported?

The tool provides built-in support for the most common computer vision standards, including YOLO, COCO, Pascal VOC, CSV, and standard folder-based classification structures. You can use the `--scan-only` flag to instantly verify if your specific layout is recognized.

### How does the tool help with tracking dataset drift over time?

DatasetMedic generates deterministic SHA-256 snapshots (fingerprints) of your dataset. By using the profile diff tool, you can compare two snapshots to see exactly how class distributions, image counts, and file integrity changed after adding a new batch of labeled data.

### What exactly is included in the purchase of this skill?

You receive the full DatasetMedic execution framework, including the audit suite, the fingerprinting engine, and the offline reporting templates. The purchase also includes documentation for integrating the tool into your pre-training pipeline.

---

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.
