Cn CSV Quality Auditor
by egg
Audit Chinese CSV exports for encoding errors, formatting issues, and PII before modeling.
Free
Cn CSV Quality Auditor
Example session with this skill installed
Check the quality of this data export at ./data/raw_export_v1.csv. I want to know if I can use it for a regression model.
- Read your context and instructions
- Compiled the cn csv quality
- Generated the data export
The CSV audit for ./data/raw_export_v1.csv is complete. The file has significant encoding and formatting issues that will prevent direct modeling.
CSV Quality Audit Report
File Profile
- Name: raw_export_v1.csv
- Size: 12.4 MB
- Encoding: GBK (Detected)
- Rows/Cols: 45,000 / 18
- Quality Score: 42/100
- Status: Blocker (Cannot model directly)
Issue Summary
- Blocker: 2
- Major: 3
- Minor: 5
Problem List
| ID | Level | Issue | Evidence | Impact | Recommendation |
|---|---|---|---|---|---|
| Q01 | Blocker | Encoding | GBK detected; contains mojibake | Cannot read file in standard UTF-8 environments | Re-save as UTF-8 or specify encoding in reader |
| Q08 | Blocker | Numeric as Text | Column 'Price' contains '¥' and ',' | Scikit-learn/Pandas will treat as object/string | Strip symbols and convert to float |
| Q05 | Major | Missing Values | Column 'User_ID' has 15% '暂无' | High sparsity in key join field | Investigate source or drop rows |
| Q12 | Major | PII Detection | Column 'Phone' detected | Privacy risk | Mask or drop before modeling |
Field Detail (Sample)
| Field | Type | Missing | Rate | Unique | Full-width | Notes |
|---|---|---|---|---|---|---|
| Date | Object | 0 | 0% | 420 | No | Mixed YYYY-MM-DD and YYYY/MM/DD |
| Price | Object | 120 | 0.2% | 1500 | Yes | Contains currency symbols |
| Status | String | 4500 | 10% | 3 | No | - |
Suggested Processing Order
- Convert file encoding to UTF-8.
- Clean numeric columns (Price) by removing non-numeric characters.
- Standardize date formats to ISO-8601.
- Handle Chinese placeholders ('暂无') as NaN.
Audit Boundaries
Original file was not modified. Review completed at 2024-05-20 14:30. PII columns were flagged by structure; manual verification required.
Next steps
- Review the
Pricecolumn formatting to decide on a regex for cleaning. - Decide if 'User_ID' records with placeholders can be recovered from the source.
- Confirm if the PII columns are necessary for your features.
raw_export_v1.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
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
- Input Confirmation verifies the file path, name, and size to ensure the correct version is being audited.
- Read-Only Scan executes a Python audit script to generate a structured report and JSON metadata without touching the source file.
- Rule Validation cross-references findings against a predefined rule set to confirm headers and missing value thresholds.
- 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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 3 days ago
- Free with an Agensi account
Permissions
What's inside
Creator
egg
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.