# CSV Schema Validator & Auto-Fixer

> Validates CSV files against JSON Schema definitions using AJV and csv-parse. Automatically detects and repairs type mismatches, missing required columns, and encoding issues with configurable strictness levels.

- Skill: `agentskillexchange/csv-schema-validator-auto-fixer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/csv-schema-validator-auto-fixer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/csv-schema-validator-auto-fixer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/csv-schema-validator-auto-fixer

---


# CSV Schema Validator & Auto-Fixer

Validates CSV files against JSON Schema definitions using AJV and csv-parse. Automatically detects and repairs type mismatches, missing required columns, and encoding issues with configurable strictness levels.

## Prerequisites

Node.js

## Installation

Use the upstream install or setup path that matches your environment:
- npm install ajv

Requirements and caveats from upstream:
- The fastest JSON validator for Node.js and browser.
- Supports JSON Schema draft-04/06/07/2019-09/2020-12 ([draft-04 support](https://ajv.js.org/json-schema.html#draft-04) requires ajv-draft-04 package) and JSON Type Definition [RFC8927](https://datatracker.ietf.org/doc/...
- supports [browsers](https://ajv.js.org/guide/environments.html#browsers) and Node.js 18.x - current

Basic usage or getting-started notes:
- [Getting started](https://ajv.js.org/guide/getting-started.html)
- To install version 8:
- ## <a name="usage"></a>Getting started

- Source: https://github.com/ajv-validator/ajv
- Extracted from upstream docs: https://raw.githubusercontent.com/ajv-validator/ajv/HEAD/README.md

## Documentation

- https://ajv.js.org/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/csv-schema-validator-auto-fixer/)

