Data cleaner
Profiles a messy dataset and proposes fixes before changing anything.
Works with: Claude Code, Any agent
Checks a file's types, duplicates, missingness and encoding, reports what is actually wrong, and proposes a cleaning plan for approval rather than silently normalising. Silent cleaning is how information gets destroyed between a source file and an analysis.
Files in this package
--- name: data-cleaner description: Profile and clean a messy dataset (CSV, spreadsheet, export). Always profile and propose before modifying. --- # Data cleaner ## Order of operations **Profile first. Never clean before reporting.** A cleaning step that silently drops rows is indistinguishable from a bug, and by the time anyone notices, the original is gone. ## 1. Profile Report, per column: type as declared versus as observed, count and share missing, distinct values (list them if few), min/max/outliers for numerics, and format inconsistencies for dates and identifiers. Then, for the file: row count, exact duplicates, near-duplicates on any key, encoding problems, and trailing whitespace. ## 2. Propose For each problem: what it is, how many rows, the proposed fix, and **what that fix would destroy**. Then stop and wait for approval. ## 3. Clean Only after approval. Write to a new file. Never modify the source. Log every change with a row count. ## Never - Never drop rows without saying how many and which. - Never fill missing values with a mean or a zero unless explicitly asked. Missing is data; zero is a claim. - Never "correct" a spelling in a categorical column without listing the merges — that is how two real categories become one. - Never reformat identifiers. A leading zero in a postcode or product code is meaningful, and spreadsheets eat it. ## Report End with: rows in, rows out, and every column whose values changed.
How to install
Unzip into .claude/skills/ in your project, or ~/.claude/skills/ to make it available everywhere. The agent picks it up from the folder name and the description in the front matter. There is no registration step.
Related skills
Data table analyst
Reads a table and reports what changed, with the caveats left in.
Migration safety checker
Finds the database migrations that will lock a table or break running code.