# Cn CSV Quality Auditor

> Audit Chinese CSV exports for encoding errors, formatting issues, and PII before modeling.

Cn CSV Quality Auditor is a free AI agent skill on Agensi by egg, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [egg](https://www.agensi.io/creators/egg)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/cn-csv-quality-auditor
- Tags: llm-ops, python, data-audit, csv-validation, chinese-encoding

## About this skill

Dirty data ruins models. When you receive a Chinese exported CSV from Excel or WPS, you often face encoding errors, ragged rows, or hidden placeholders that break pandas pipelines. This skill audits the file to identify exactly what is broken before you write a single line of cleaning code.

### What it does
- **Encoding Detection** identifies UTF-8 BOM, GBK families, or corrupted characters that cause UnicodeDecodeErrors.
- **Structural Validation** checks for header reliability, misaligned columns (ragged rows), and constant columns.
- **Data Quality Scanning** finds missing values, Chinese placeholders (e.g., "暂无"), duplicate rows, and full-width character issues.
- **Type Auditing** flags numbers stored as text (with units or thousands separators) and mixed date formats.
- **PII Detection** identifies columns containing potential personal information like phone numbers or IDs.

### How it works
1. **Input Confirmation** verifies the file path, name, and size to ensure the correct version is being audited.
2. **Read-Only Scan** executes a Python audit script to generate a structured report and JSON metadata without touching the source file.
3. **Rule Validation** cross-references findings against a predefined rule set to confirm headers and missing value thresholds.
4. **Report Generation** produces a six-section document including a quality score, issue categorization, and a field-level breakdown.

### Frameworks & tools
This skill utilizes a Python-based scanner `audit_csv.py` and relies on a structured rule set and Markdown templates to ensure consistent reporting.

### Why this beats prompting it yourself
Standard prompts often miss Chinese-specific data issues like full-width characters or specific "empty" placeholders. This skill follows a rigorous, non-destructive workflow that provides reproducible quality scores and evidence-based reports instead of vague descriptions.

### Use cases
- Audit a fresh CSV export to decide if it is ready for machine learning modeling.
- Troubleshoot encoding issues when `pandas.read_csv()` fails with decoding errors.
- Generate a formal data quality description for academic papers or business reports.
- Standardize the intake process for external datasets from Chinese business software.

### Known limitations
Does not support .xlsx files directly. Files over 200MB or 200,000 rows require sampling. Cannot validate business logic or fill missing values.

## 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 Cn CSV Quality Auditor 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 data problems does this skill identify in Chinese CSV exports?

This skill performs a non destructive audit of Chinese CSV files to detect encoding errors like GBK or UTF8 BOM issues, structural flaws like ragged rows, and data quality problems such as Chinese placeholders and full-width characters. It identifies hidden issues that typically break pandas pipelines before you start modeling.

### What do I need to provide to start an audit?

You only need to provide the local file path to your CSV file. While not required, the skill performs better if you also specify which columns are primary keys or define your specific criteria for what counts as a missing value.

### What kind of report or output will I receive?

The skill generates a structured six section report in Markdown and metadata in JSON format. This includes a quality score from 0 to 100, a categorized issue checklist with evidence, and a field level breakdown showing missing rates and potential PII.

### How do I tell my agent to use this skill?

You can simply ask your agent to check if a specific CSV file is clean enough for modeling or ask it to audit a file that is currently causing encoding errors. If you have multiple files, ask the agent to audit them one by one.

### Are there any file types or sizes that this skill cannot handle?

This skill is read only and will not fill missing values, delete rows, or modify your original data. It does not support xlsx files directly and requires sampling for files larger than 200MB or 200,000 rows.

### Why is this better than just asking an AI to look at my data?

It uses a specialized Python scanner and a predefined rule set to catch nuances standard prompts miss, such as specific Chinese empty placeholders like "暂无" and full width character inconsistencies. This ensures a reproducible quality score rather than a vague description.

---

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.
