data-cleaner
Skill78 starsChanged 23 days agoMITView on GitHub
Turn profile.json into a deterministic cleaning plan, execute only the planned operations, and prove byte-for-byte reproducibility. Additive-only.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- Elong-svg/business-plan-factorytheir own version, first seen Nov 8, 2026
- BryceYuuu/open-workflow-skillstheir own version, first seen Sep 5, 2026
- yuchi423/MCM-ICM_Agent_Skillstheir own version, first seen Aug 23, 2026
- nawazxz/20-claude-skills-for-businesstheir own version, first seen Aug 12, 2026
- tezansahu/ai-garagetheir own version, first seen Aug 2, 2026
- YouGram-001/legal-empirical-research-skillstheir own version, first seen Jul 5, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- YouGram-001/legal-empirical-research-skills★ 17same name
- tezansahu/ai-garage★ 16same name
- xcrrr/claude-skills★ 6same name
- alectimison-maker/MCM-ICM_Agent_Skills★ 3same name
- Elong-svg/business-plan-factory★ 2same name
- BryceYuuu/open-workflow-skills★ 1same name
- mnbresearch/mnb-claude-skills★ 1same name
- yuchi423/MCM-ICM_Agent_Skills★ 1same name
- nawazxz/20-claude-skills-for-business★ 0same name
- TheWatcher01/skills★ 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 repository10 other files it gives its agents.
- data-masterSkill
- data-explorerSkill
- data-profilerSkill
- data-routerSkill
- data-transformerSkill
- data-validatorSkill
- deep-analyzerSkill
- report-generatorSkill
- statistical-analyzerSkill
- visualizerSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
4
Distinctive
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 46
All five must hold, or the run freezes to audit/:
- Distinctive: line 49
no conversion ran unless every non-null value parsed (no parse-rate threshold).
- Very specific: line 50
every never-automatic item is recorded in withheld with its evidence.
- Distinctive: line 65
do not modify, move, or delete the raw file.
- Distinctive: line 66
do not impute, deduplicate, or merge datasets automatically.
- Distinctive: line 67
do not add a parse-rate threshold -- the only safe threshold is 100%%.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
data-cleaner
Stage 1c of the data-master pipeline. The router in ../../SKILL.md owns the
end-to-end run; this skill owns one stage and one gate. Read the parent contract before
changing anything here: the invariants in ../../SKILL.md (additive-only, types decided
once, default-FAIL gates, three-part provenance) are not restated, they are inherited.
When to invoke
Whenever profile.json exists. Cleaning is never ad hoc: the plan is the gate,
and only plan["auto_actions"] may execute.
Inputs
analysis/profile.jsonreferences/cleaning-rule-catalog.mdreferences/never-automatic-list.md
Outputs
cleaning_plan.json--auto_actions,never_automatic_flags,principlecleaned/cleaned.csvcleaned/clean_<slug>.py-- standalone, re-runnablecleaned/cleaning_run.json--applied_ops, withheld, failed, dtype_manifest, columns_touched_by_ops, untouched_column_audit, reproducibility_check, case_variant_merge_mapcleaned/cleaning_report.md
Commands
python scripts/cleaning_plan.py --profile outputs/analysis/profile.json --out outputs/cleaning_plan.json
python scripts/execute_cleaning.py --in <raw.csv> --plan outputs/cleaning_plan.json --out outputs/cleaned
python scripts/validate_clean.py --raw <raw.csv> --clean outputs/cleaned/cleaned.csv --profile outputs/analysis/profile.json --out outputs/cleaned/validation.jsonGate (default FAIL)
All five must hold, or the run freezes to audit/:
reproducibility_check.passed-- the generated script reproduces the cleaned hash;untouched_column_audit.passed-- no unnamed column changed;- no conversion ran unless every non-null value parsed (no parse-rate threshold);
- every never-automatic item is recorded in
withheldwith its evidence; dtype_manifestexists and is replayed by the analysis stage.
Failure modes seen in real runs
- A 96%% parse rate looks like a green light. Converting the remaining 4%% turns
recorded sentinels (
--,unknown) into missing values, which are then indistinguishable from values that were never collected. Hold the whole conversion. - Case variants split a group.
Setosa/setosahalves both n and narrows every interval without losing information; merge with an explicitcase_variant_merge_map. - A rule rewrites a column it did not name. The untouched-column audit compares raw and cleaned in text space, so this is caught rather than shipped.
Do not
- do not modify, move, or delete the raw file;
- do not impute, deduplicate, or merge datasets automatically;
- do not add a parse-rate threshold -- the only safe threshold is 100%%.
Upstream / downstream
- previous:
../data-profiler/SKILL.md - next:
../data-explorer/SKILL.md,../statistical-analyzer/SKILL.md - rules:
../../references/cleaning-rule-catalog.md
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.

