# CSV Import Preflight: Contracts and Quarantine

> Check a CSV against explicit types, keys and dates; get a reproducible quarantine report without importing or changing source data.

CSV Import Preflight: Contracts and Quarantine is a free AI agent skill on Agensi by Dhanush N, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Dhanush N](https://www.agensi.io/creators/dhanushn)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Uses: 3
- Version: 1.0
- Last updated: 2026-10-07
- Security: scan passed (2026-10-07); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/csv-import-preflight-contracts-and-quarantine
- Tags: database

## About this skill

A reproducible local preflight for developers preparing customer, billing or catalog imports. This is an executable workflow, not just a prompt asking an agent to “clean the CSV.”

What is included:
- Python standard-library validator with strict ordered headers, integer/decimal/date/boolean/email/string checks, nullable and enum rules, exact composite-key duplicate checks and conservative formula-risk quarantine.
- Source and contract SHA-256 in every report; raw source never modified. The default report excludes raw cell values.
- Markdown or JSON output and explicit exit codes for local checks/CI integration. Optional passing-row output refuses to overwrite existing files.
- Synthetic adversarial fixtures, 24 passing unit tests, captured tool-output demos and CLI verification.
- Integration notes for Node/BullMQ and Python/pandas importers, including the distinction between a preflight and actual importer idempotency or tenant controls.

Limits: UTF-8 CSV up to 20 MiB and contract v1 JSON up to 1 MiB; not Excel, a production importer, deliverability validator or universal spreadsheet sanitizer. Formula checks are conservative triage. No locale/money/date guessing. No database writes, network calls or account connections.

Requires Python 3.10+ and an agent with local terminal/file access. Standard library only. Tested locally with the packaged scripts; automatic agent loading across products has not been verified. Demo below is actual deterministic tool output on bundled synthetic data, not a claimed live agent session.

Version 0.1.0. MIT licensed, copyright Dhanush Nehru. Initially distributed through this listing rather than GitHub; MIT permits redistribution with notice retention. Paid packaging does not create legal exclusivity.

## Requires

- Python

## 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 CSV Import Preflight: Contracts and Quarantine 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

### How does this 'Preflight' differ from asking an AI agent to clean my CSV?

Unlike agents that attempt to 'clean' data via LLM reasoning, this skill uses a strict, deterministic Python validator to check CSVs against explicit schemas (types, enums, and keys) before any data touches your database.

### What are the technical requirements for running these validation scripts?

The skill requires Python 3.10+ and an AI agent with local terminal and file system access; it relies solely on the Python standard library to ensure high portability across different developer environments.

### Does this skill modify my original CSV files during the validation process?

The tool generates a reproducible quarantine report in Markdown or JSON, featuring SHA-256 hashes of your source files to ensure auditability without ever modifying your original raw data.

### What specific assets are included in the purchase?

You receive the core Python validator, a suite of 24 unit tests, synthetic adversarial test data, and integration guides for connecting the preflight output to Node/BullMQ or pandas workflows.

### Are there any specific file size or format limitations I should be aware of?

It is optimized for UTF-8 CSV files up to 20 MiB and JSON contracts up to 1 MiB; it is not designed for Excel files, universal spreadsheet sanitization, or live database writes.

### Can I use this skill for automated checks in a Continuous Integration (CI) environment?

Yes, the package includes explicit exit codes and structured JSON output options, making it easy to integrate into local CI/CD pipelines or automated developer workflows.

---

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.
