# Broken CSV Reader by Dio

> Reads broken CSV files without throwing — clean rows plus a structured error report for every problem, each with its line and row.

Broken CSV Reader by Dio is a paid AI agent skill on Agensi by dio, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9.99 (one-time purchase)
- Creator: [dio](https://www.agensi.io/creators/dio)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-26
- Security: scan passed (2026-11-23); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/broken-csv-reader-by-dio
- Tags: csv-parser, data-cleaning, csv, broken-csv, data-processing, etl, spreadsheet, file-parsing

## About this skill

Real-world CSV files are broken: rows with missing or extra fields, quotes that never close, junk after a closing quote, stray carriage returns, mixed line endings. Most parsers either throw on the first problem or silently guess. This reader never throws and never guesses silently — it reads the whole file under one documented set of rules and returns three things: the columns, every row (padded or cut to the first record's width), and an error report listing every problem in the order it was met, each with its physical line and row.

The five error kinds. short_row (missing fields, padded), long_row (extra fields, cut — the extras are kept in the report), stray_cr (a lone carriage return, dropped), quote_junk (characters after a closing quote, appended and flagged), unterminated_quote (a quote that never closes, re-read literally). Quoted fields, doubled quotes, embedded line breaks, CRLF/LF mixes and a leading BOM are all handled by the same rules, which are written down in full in the included spec.

Fast. The reader is a single-pass scanner that cuts fields out of the text with slice() instead of building them character by character. It reads 200,000 rows / 9.5 MB in about 0.23 seconds, and in its original benchmark it matched a reference reader's answers exactly on 4,688 differential tests while running about 6.8× faster.

What you get. One SKILL.md, a standalone Node script (standard library only, no network calls, no API keys) with a small CLI, a sample broken CSV that contains one of each error kind for an offline demo, and the complete reading spec.

Honest limits. Comma delimiter only — no semicolon or tab mode, and the skill says so rather than returning one wide column as if it were a parse. The whole file is read into memory (fine to a few hundred MB; not a streaming reader). Every value stays a string — no type guessing. The dialect is deliberate repair, not strict RFC 4180 validation; the error report is the point.

## Requires

- Node.js 18+ (for the bundled script)

Tip: run the bundled script on the included sample-broken.csv first — it contains one of each error kind, so you can see the full report format before feeding it your own files.

## Known limitations

Comma delimiter only. Loads whole file into memory. UTF-8 encoding required. No automatic type inference for numbers or dates.

## 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 Broken CSV Reader by Dio skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this reader differ from standard CSV libraries found in Python or Node.js?

Standard parsers fail on unclosed quotes or uneven row lengths. This skill is designed to never crash, instead extracting all possible data while documenting every structural error with exact line and row numbers.

### Which AI agents or frameworks can I use this skill with?

This is a Node.js utility that can be integrated into any AI agent or workflow capable of executing shell commands or script files. It operates as a standalone CLI tool, making it compatible with local development environments and containerized agents.

### Can this skill automatically fix rows with a different number of columns?

Yes, the skill automatically repairs "ragged" rows by padding short records with empty strings or truncating rows that exceed the initial column count, ensuring your data is perfectly rectangular for database insertion.

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

The current version uses a high-speed, single-pass scanner that requires the CSV file to fit into memory. It is optimized for files up to a few hundred megabytes, which typically covers hundreds of thousands of rows.

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

Your purchase includes the `csv-reader.mjs` script, documentation on error types, and example malformed files for testing. You receive full access to the deterministic engine for use in your own data pipelines.

### Does the reader support other delimiters like tabs (TSV) or semicolons?

The skill currently supports comma-separated values only. It is specifically optimized for standard comma delimiters to maintain its high-speed, single-pass processing performance.

---

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.
