csv-cleaner
Skill2 starsChanged 7 months agoMITView on GitHub
Diagnose and clean messy CSV, TSV, or spreadsheet files. Use whenever the user uploads a CSV or TSV that has data quality issues, asks to "clean", "normalize", "fix", or "deduplicate" tabular data, or hands over a file with encoding problems, broken headers, type inconsistencies, duplicate rows, or missing values. Triggers on "clean this CSV", "fix this data", "this spreadsheet is messy", "deduplicate these rows", or any data-quality request on a tabular file. Always run scripts/diagnose.py before making changes so the cleanup is informed by what is actually broken.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- 0xelitesystem/claude-skills-collectiontheir own version, first seen Jun 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- 0xelitesystem/claude-skills-collection★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository4 other files it gives its agents.
- brand-voiceSkill
- code-reviewerSkill
- decision-docSkill
- one-pagerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Run scripts/diagnose.py on the input file:
- Distinctive: line 30
Read the output carefully before doing anything else.
- Distinctive: line 46
Do not silently change data.
- Distinctive: line 68
If the file appears to be a different format (Excel binary, JSON, fixed-width), do not try to clean it as CSV.
- Distinctive: line 70
If the file has fewer than 5 rows after deduplication, ask the user whether the input is correct before continuing.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CSV Cleaner
Two-phase workflow: diagnose first, clean second. Never start fixing before knowing what is broken.
Phase 1: Diagnose
Run scripts/diagnose.py on the input file:
python scripts/diagnose.py <path-to-file>The script reports:
- Encoding (utf-8, latin-1, utf-16, etc.)
- Delimiter (comma, tab, semicolon)
- Quote character and escape behavior
- Header row detection (present, absent, or duplicate)
- Row count
- Column count consistency across rows
- Type inference per column (integer, float, date, string, mixed)
- Null distribution per column
- Duplicate row count
Read the output carefully before doing anything else. The diagnosis tells you which fixes apply.
Phase 2: Clean
Apply fixes in this order:
- Fix encoding: re-read with detected encoding, write as utf-8.
- Normalize line endings to
\n. - Strip BOM and zero-width characters.
- Fix headers: lowercase, snake_case, replace spaces with underscores, ensure uniqueness.
- Trim whitespace from every cell.
- Coerce types where the column is type-consistent.
- Standardize null representations: empty string, "NA", "null", "n/a" all become empty.
- Deduplicate exact rows.
- Validate column count consistency. Flag rows that do not match the header.
Do not silently change data. If a fix alters values, report the count.
Output
Save the cleaned file as <original-name>-cleaned.csv in the same directory. Always utf-8, always comma-delimited, always with a header row.
Then emit a summary:
## Diagnosis
<key findings from phase 1>
## Fixes applied
- <fix>: <count of rows or cells affected>
- <fix>: <count>
## Manual review needed
- <issue that the script could not fix safely>When to refuse
If the file appears to be a different format (Excel binary, JSON, fixed-width), do not try to clean it as CSV. Tell the user what the file actually is and suggest the right tool.
If the file has fewer than 5 rows after deduplication, ask the user whether the input is correct before continuing.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

