Csv Cleaner
Skill0 starsChanged 29 days agoApache-2.0View on GitHub
Clean a messy CSV — trim whitespace, drop blank rows, dedupe exact duplicates, normalize dates to ISO and decimal commas to dots — writing <name>.clean.csv plus a count of every change.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- Contact DeduperSkill
- Expense CategorizerSkill
- Invoice ProcessorSkill
- Json WranglerSkill
- Log AnalyzerSkill
- Pdf ExtractorSkill
- Report Chart BuilderSkill
- Spreadsheet AnalyzerSkill
- Survey SummarizerSkill
- delegate-agentSkill
- Approval Request TriageSkill
- Backup RunnerSkill
- Channel BroadcastSkill
- Dependency AuditorSkill
- Memory KeeperSkill
- Repo OnboarderSkill
- Scheduled Job DoctorSkill
- Web Form FillerSkill
- Web ScraperSkill
- Website MonitorSkill
- Brain Dump To TasksSkill
- Calendar Day PlannerSkill
- Daily BriefingSkill
- Email TriageSkill
- Follow Up TrackerSkill
- Meeting MinutesSkill
- Recurring Digest SetupSkill
- Standup ReporterSkill
- Task Board GroomerSkill
- Weekly ReviewSkill
- Arxiv Paper ScannerSkill
- Comparison MatrixSkill
- Competitor WatchSkill
- Deep Research BriefSkill
- Fact CheckerSkill
- News DigestSkill
- People Company BriefSkill
- Product Price ScoutSkill
- Stock Price CheckerSkill
- Trending Topic DigestSkill
- Senior Software EngineerSkill
- Skill CreatorSkill
- Social CommentsSkill
- Social CoreSkill
- Social DMSkill
- Social EngageSkill
- Social HealthSkill
- Social InsightSkill
- Social ProspectSkill
- Social WatchSkill
- Blog Post WriterSkill
- Documentation WriterSkill
- Email DrafterSkill
- Executive SummarySkill
- Press Release WriterSkill
- Proposal WriterSkill
- Release Notes WriterSkill
- Social Media RepurposerSkill
- Tone RewriterSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Run it: shell("python3 clean_csv.py <file.csv>").
- Very specific: line 55
If shell is not available, do not hand-simulate the cleaner on a big file: tell the user shell is disabled and offer to clean a small file …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
You clean one messy CSV with the bundled scripts/clean_csv.py and report
exactly what changed — nothing is altered silently.
Inputs
- Path to one
.csvin the working folder (if unnamed,globfor*.csvand confirm). Output is always written next to it as<name>.clean.csv. - The fixes are fixed-scope: trim cell whitespace, remove fully blank rows,
remove exact duplicate rows, normalize
DD/MM/YYYY-style dates to ISOYYYY-MM-DD, convert decimal commas (1.234,56→1234.56). Anything beyond that (renaming columns, fuzzy dedupe, refills) is out of scope — say so and point to Contact Deduper for fuzzy contact dedupe.
Steps
- Peek at the file first with
document_read(path)(orread_filefor small files) to confirm it is a delimited CSV and note anything unusual (semicolon delimiters, multiple header rows) to warn about. - Fetch the cleaner:
load_skill_resource({"slug": "csv-cleaner", "path": "scripts/clean_csv.py"}). - Save it into the working folder with
write_fileasclean_csv.py. - Run it:
shell("python3 clean_csv.py <file.csv>"). It writes<name>.clean.csvand prints the change report (trimmed cells, blank rows removed, duplicates removed, dates normalized, decimal commas fixed, rows kept). - Spot-check the output with
read_fileon the first ~20 lines of the.clean.csv— confirm the header survived and dates/numbers look right. - Relay the change report to the user, plus your spot-check verdict and any warnings from step 1.
Output format
Cleaned <file.csv> → <file>.clean.csv
- trimmed cells: N
- blank rows removed: N
- exact duplicates removed: N
- dates normalized to ISO: N
- decimal commas fixed: N
Rows kept: N (of M)
Spot-check: <ok / what looks off>Rules
- The original file is never modified — the script only writes
.clean.csv. - If
shellis not available, do not hand-simulate the cleaner on a big file: tell the user shell is disabled and offer to clean a small file (< ~200 rows) manually viaread_file+write_file, reporting the same change counts. - Date normalization assumes day-first for
31/12/2024-style dates; if the file looks US-formatted (month-first), warn the user before running and let them decide — do not run and shrug afterwards. - Semicolon-delimited or multi-header files: warn that the script expects comma-delimited, single header; offer to convert the delimiter first.
- Ambiguous rows are never dropped beyond exact duplicates; if the user wants fuzzy dedupe, that is a different job (Contact Deduper for contacts).
- Local-first: no network; input and output stay in the working folder.
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.

