- Home
- Skills
- Data & Databases
- Rinse & Repeat: Clean a CSV Once, Replay It on Every Export
More screenshots
Works with the AI Agents you already use
Rinse & Repeat: Clean a CSV Once, Replay It on Every Export
Most CSV cleaners fix one file and forget what they did.
$5
What it does
- Profiles a messy CSV: types, missing values, duplicates, broken rows and spelling variants
- Fixes whitespace, null tokens, dates, numbers, currencies, yes/no values, emails and duplicates
- Saves your cleaning steps as a recipe and replays them on next week's export in one command
- Warns you before writing when an export drifts: new or missing columns, values that stop parsing
- Logs every changed cell (old value, new value, rule) and every removed row with its reason
- Undoes the whole clean in one command and proves every value is back
Who it's for
Ops and sales people with weekly CRM or shop exports
The same cleanup in one command every week.
Try asking: “Clean this week's customer export the same way as last week.”
Analysts handed someone else's spreadsheet
A profile of what is wrong before they trust the data.
Try asking: “Profile this CSV and tell me what's wrong with it.”
Anyone who must explain changes to a boss or auditor
A cell-by-cell change log and a provable undo.
Try asking: “Clean this file and show me every change you made.”
Small teams without a data engineer
A repeatable cleanup pipeline without code or cloud tools.
Try asking: “Remove duplicate customers by email and standardize the dates.”
Rinse & Repeat: Clean a CSV Once, Replay It on Every Export
Example session with this skill installed
Clean customers_march.csv, remove duplicate customers by email, and save the steps so I can do April's export the same way.
- Read your context and instructions
- Compiled the rinse & repeat
- Generated the data export
Cleaned customers_march.csv with your recipe (saved as customers.recipe.json).
| Count | |
|---|---|
| Rows in | 16 |
| Rows out | 13 |
| Rows removed | 3 (2 duplicates, 1 broken row) |
| Cells changed | 39 |
| Headers renamed | 8 |
| Left as they were (issues) | 3 |
Changes by rule: 10 dates to ISO, 10 yes/no to true/false, 5 numbers ($1,200.00 to 1200.00, (15.00) to -15.00, 1.250,00 to 1250.00), 4 placeholders like N/A and - blanked, 4 country spellings mapped to US / GB, 3 values with extra spaces, 2 plan names in title case, 1 email lower-cased.
Removed: row 7 (LEO.PARK@EXAMPLE.COM, duplicate of row 2), row 12 (exact copy of row 3), row 13 (7 fields instead of 8). All three are in removed.csv with their original values.
To look at: row 9 email raj.patel@example has no domain ending, row 9 newsletter says maybe, row 11 signup date says soon. I left them unchanged.
Undo check: CHECK OK: identical to customers_march.csv (16 rows, every value).
April's export: the replay stopped with a drift alert, new column not in recipe: Referral Code. Shall I add it to the recipe and clean April?
customers_march.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
Most CSV cleaners fix one file and forget what they did. Real exports come back every week with the same mess. Rinse & Repeat profiles your file, proposes a recipe (a small JSON file of fixes you approve), cleans it, and keeps the recipe so next week's export is cleaned the same way in one command.
If the export changes shape, for example someone adds a column or a date column fills with text, the replay stops before writing anything and tells you what changed. Nothing is ever lost: removed rows go to their own file with the reason and the original values, values it cannot fix are left alone and listed, and every changed cell is logged with its old and new value. One command rebuilds the original and checks it value by value.
It runs on your machine with Python's standard library. No API key, no upload, no packages.
Undo restores values, not bytes: quoting, line endings and encoding become standard UTF-8. Dates with times and percent values are reported as issues, not converted. The whole file is read into memory: fine for hundreds of thousands of rows, not for many GB. Excel files must be saved as CSV first. Not financial, legal or medical advice.
Three standalone Python 3.8+ scripts, standard library only: - `profile_csv.py`: detects encoding (UTF-8, Windows-1252, Latin-1) and delimiter, infers column types (text, number, date, yes/no, email), counts missing values per spelling (`N/A`, `-`, `null`, blank), finds exact and near duplicates, broken rows and spelling variants, and writes `profile.md`, `profile.json` and a suggested `recipe.json`. - `clean.py`: applies a recipe: trim, null tokens, rename to snake_case, numbers (currency signs, thousands separators, `(15.00)` negatives, European `1.234,50`), dates to ISO (day-first or month-first), yes/no to true/false, email lower-case and validation, value maps, case, required columns, exact or normalized dedupe by key. Writes `cleaned.csv`, `changes.csv`, `removed.csv`, `issues.csv`, `report.md`. Drift check against the recipe; `--strict` exits with code 2 and writes nothing. - `undo.py`: rebuilds the original from the logs; `--check` compares it value by value with the original. Columns are matched by name, so reordered or re-cased headers still work. Undo restores values, not bytes (output is UTF-8).
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
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 2 days ago
- Software
- Terminal
Python 3.8+
Works on Windows, macOS and Linux. No packages and no API keys.
Permissions
File Scopes
No network access, no API keys, no environment variables. The original file is never edited.
What's inside
Frequently Asked Questions
New in Data & Databases
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Data & Databases.