data-cleanup
Skill2 starsChanged 7 months agoMITView on GitHub
Clean, normalize, and restructure raw or messy tabular data. Use when the user provides CSV, TSV, JSON arrays, or pasted table data that contains issues like inconsistent formatting, duplicate rows, missing values, mixed data types, or malformed headers. Also use when asked to standardize date formats, normalize casing, strip whitespace, or coerce columns to consistent types. Do NOT use for database query writing, statistical analysis, chart generation, or cleaning unstructured prose or log files.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- apeabody007/Digitstheir own version, first seen Sep 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- apeabody007/Digits★ 1same 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 repository20 other files it gives its agents.
- api-design-standardizerSkill
- api-documentation-generatorSkill
- cloud-infrastructure-architectSkill
- cobol-to-javaSkill
- code-reviewSkill
- compliance-policy-auditorSkill
- database-performance-auditorSkill
- incident-post-mortem-generatorSkill
- kaggle-notebook-generatorSkill
- meeting-transcriberSkill
- pdf-extractSkill
- python-structure-generatorSkill
- python-type-hinterSkill
- refactor-simplifySkill
- github-repo-structure-builderSkill
- security-vulnerability-scannerSkill
- sql-query-optimizerSkill
- unit-test-generatorSkill
- user-story-generatorSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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
- Distinctive: line 31
Do NOT use: when the user wants statistical summaries, SQL queries, charts, or analysis of clean data — refer them to an appropriate …
- Very specific: line 66
If a date is ambiguous (e.g., 04/05/06), flag it and preserve the original in a companion _raw column rather than guessing.
- Distinctive: line 74
After cleaning, re-profile the data and check that:
- Distinctive: line 75
All column types are now consistent
- Distinctive: line 76
No headers are duplicated
- Distinctive: line 122
If the input cannot be parsed as tabular data, respond with:
- Distinctive: line 132
If the user's cleaning goal is ambiguous (e.g., "fix the dates" when multiple date formats are present), ask one targeted clarifying …
- Distinctive: line 134
Never silently choose an interpretation that could result in data loss.
≈ “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
Data Cleanup
This skill guides structured cleaning and normalization of raw tabular data. The user provides messy data (CSV, TSV, JSON array, or a pasted table) and optionally describes the target schema or cleaning goals. Apply the workflow below, then return the cleaned data alongside a change log.
🎯 When to Use
- User pastes or uploads CSV, TSV, JSON arrays, or markdown tables containing visible data quality issues
- User asks to "clean", "fix", "normalize", "deduplicate", or "standardize" data
- Data contains mixed formats:
2024/01/15alongsideJan 15, 2024, orTRUEalongside1alongsideyes - Column headers are missing, duplicated, or inconsistently named
- Do NOT use when the user wants statistical summaries, SQL queries, charts, or analysis of clean data — refer them to an appropriate analysis workflow
- Do NOT use for unstructured text (logs, paragraphs, prose) — this skill targets tabular, row-column structured data only
🧠 Core Workflow
Step 1 — Ingest & Identify Parse the input and detect its format (CSV, TSV, JSON, markdown table). Identify the delimiter, quoting character, and encoding issues. Report the detected shape: row count, column count, header row presence.
Step 2 — Profile Each Column For every column, determine:
- Inferred data type (string, integer, float, boolean, date, mixed)
- Null / empty rate (count and percentage)
- Unique value count
- Presence of leading/trailing whitespace, inconsistent casing, or special characters
Step 3 — Apply Cleaning Rules Execute the following in order. Log every change made.
- Headers — Normalize to
snake_case. Remove special characters. Deduplicate by appending_2,_3, etc. If no headers exist, generatecol_1,col_2, … - Whitespace — Strip leading/trailing whitespace from all string values. Collapse internal multi-space sequences to a single space.
- Casing — Apply consistent casing per column type:
UPPERfor country/state codes,Title Casefor proper names,lowerfor categorical flags unless the user specifies otherwise. - Duplicates — Remove exact duplicate rows. Flag near-duplicates (rows
identical except for casing or whitespace) with a
⚠️ near-duplicatewarning rather than silently deleting them. - Booleans — Normalize
yes/no,true/false,1/0,Y/Ntotrue/falsewithin columns where all non-null values resolve to a boolean. - Dates — Detect and normalize date strings to ISO 8601 (
YYYY-MM-DD). If a date is ambiguous (e.g.,04/05/06), flag it and preserve the original in a companion_rawcolumn rather than guessing. - Nulls — Standardize
N/A,n/a,NULL,none,-,""to a true empty cell. Do not impute missing values unless the user explicitly requests it. - Type Coercion — For columns where ≥95% of non-null values parse cleanly as a numeric type, coerce the column and flag the outlier rows.
Step 4 — Validate After cleaning, re-profile the data and check that:
- All column types are now consistent
- No headers are duplicated
- Row count delta (removed duplicates) is accounted for in the change log
Step 5 — Return Output Provide the cleaned data in the same format as the input (CSV → CSV, JSON → JSON, etc.) unless the user requests a different format. Always include the change log.
📋 Output Format
Return two sections:
Section 1 — Cleaned Data The cleaned dataset in the original format, enclosed in a fenced code block.
Section 2 — Change Log
{
"status": "success | partial | error",
"summary": {
"rows_input": 0,
"rows_output": 0,
"duplicates_removed": 0,
"near_duplicates_flagged": 0,
"columns_renamed": [],
"columns_type_coerced": []
},
"changes": [
{
"column": "column_name | __row__ | __global__",
"rule": "whitespace | casing | boolean | date | null | duplicate | header | coercion",
"detail": "Human-readable description of what changed and why"
}
],
"warnings": [
{
"column": "column_name",
"issue": "Description of ambiguity or data quality concern requiring human review",
"rows_affected": []
}
]
}⚠️ Fallback Behavior
If the input cannot be parsed as tabular data, respond with:
{
"status": "error",
"message": "Input does not appear to be tabular data. Expected CSV, TSV, JSON array, or markdown table.",
"suggestion": "Please paste your data directly or describe its format."
}If the user's cleaning goal is ambiguous (e.g., "fix the dates" when multiple date formats are present), ask one targeted clarifying question before proceeding. Never silently choose an interpretation that could result in data loss.
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.

