{"slug":"data-cleaning","title":"data-cleaning","summary":"Clean, profile, validate, reshape, and document messy tabular, text, JSON, and relational data through an evidence-first, reproducible workflow. Use when preparing data for analysis, reporting, modeling, ingestion, migration, or matching. Do not use for statistical modeling, dash","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-09-08T21:25:01.039002Z","repo":{"url":"https://github.com/magnus919/agent-skills","stars":182,"forks":21,"license":"MIT","updatedAt":"2026-11-20T20:39:36Z"},"bodyHtml":"<h1>data-cleaning</h1>\n<p>A practical, evidence-first workflow for turning messy data into trustworthy, reviewable datasets.</p>\n<h2>Why Install This Skill</h2>\n<p>Messy data is not solved by a handful of <code>dropna()</code> calls. This skill helps an agent discover what is wrong, decide what may safely change, preserve what was observed, and demonstrate that the result still matches the intended grain and meaning.</p>\n<p>It works across CSV, JSON, text, DataFrames, SQL extracts, and pipeline boundaries. It combines a repeatable methodology with tool-selection guidance, reusable plans and reports, and a dependency-free profiling script that produces machine-readable evidence before mutation.</p>\n<h2>What You Get</h2>\n<table>\n<thead>\n<tr>\n<th>Path</th>\n<th>Purpose</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>SKILL.md</code></td>\n<td>Core workflow and completion gate</td>\n</tr>\n<tr>\n<td><code>references/</code></td>\n<td>Methodology, operations, validation, tools, sources</td>\n</tr>\n<tr>\n<td><code>templates/</code></td>\n<td>Cleaning plan, decision log, transformation log, exception register, schema contract, quality report</td>\n</tr>\n<tr>\n<td><code>scripts/profile_dataset.py</code></td>\n<td>Read-only CSV/TSV/JSONL profiler</td>\n</tr>\n<tr>\n<td><code>scripts/reconcile_dataset.py</code></td>\n<td>Read-only key, row-count, and aggregate reconciliation</td>\n</tr>\n<tr>\n<td><code>scripts/test_*</code></td>\n<td>Deterministic tests for bundled scripts</td>\n</tr>\n<tr>\n<td><code>evals/evals.json</code></td>\n<td>Output-quality evaluation cases</td>\n</tr>\n</tbody>\n</table>\n<h2>Quick Start</h2>\n<pre><code>python3 scripts/profile_dataset.py input.csv --output profile.json\npython3 scripts/profile_dataset.py input.csv --max-rows 10000\n</code></pre>\n<p>The profiler does not edit the input. Use its report to fill <code>templates/cleaning-plan.md</code>, then validate the transformed output against <code>templates/schema-contract.yml</code> or a project-specific contract.</p>\n<h2>Triggers</h2>\n<ul>\n<li>Clean or standardize CSV, JSON, text, spreadsheet exports, or DataFrames</li>\n<li>Diagnose missing values, duplicates, malformed types, dates, encodings, or categories</li>\n<li>Design a reusable cleaning pipeline or data-quality contract</li>\n<li>Choose among pandas, Polars, pyjanitor, Pandera, Great Expectations, OpenRefine, Frictionless, dbt tests, or Spark-scale tools</li>\n<li>Review whether cleaning is reproducible, safe, or leakage-free</li>\n</ul>\n<h2>Requirements</h2>\n<ul>\n<li>Python 3.9+ for the bundled script</li>\n<li>No external dependency for first-pass profiling</li>\n<li>Optional ecosystem tools require their own installations</li>\n</ul>\n","files":[{"path":"evals/evals.json","sizeBytes":7532,"isText":true},{"path":"evals/trigger-cases.json","sizeBytes":414,"isText":true},{"path":"README.md","sizeBytes":2434,"isText":true},{"path":"references/ai-repair-review.md","sizeBytes":3110,"isText":true},{"path":"references/cli-and-interactive-tools.md","sizeBytes":1461,"isText":true},{"path":"references/methodology.md","sizeBytes":2030,"isText":true},{"path":"references/operations.md","sizeBytes":2021,"isText":true},{"path":"references/sources.md","sizeBytes":2686,"isText":true},{"path":"references/text-and-entity.md","sizeBytes":1850,"isText":true},{"path":"references/tool-selection.md","sizeBytes":1492,"isText":true},{"path":"references/validation-and-scale.md","sizeBytes":1270,"isText":true},{"path":"scripts/profile_dataset.py","sizeBytes":5351,"isText":true},{"path":"scripts/reconcile_dataset.py","sizeBytes":3690,"isText":true},{"path":"scripts/test_profile_dataset.py","sizeBytes":1608,"isText":true},{"path":"scripts/test_reconcile_dataset.py","sizeBytes":1925,"isText":true},{"path":"SKILL.md","sizeBytes":8292,"isText":true},{"path":"templates/ai-repair-ledger.csv","sizeBytes":222,"isText":false},{"path":"templates/cleaning-plan.md","sizeBytes":1050,"isText":true},{"path":"templates/decision-log.csv","sizeBytes":183,"isText":false},{"path":"templates/exception-register.csv","sizeBytes":148,"isText":false},{"path":"templates/quality-report.md","sizeBytes":783,"isText":true},{"path":"templates/schema-contract.yml","sizeBytes":943,"isText":true},{"path":"templates/transformation-log.jsonl","sizeBytes":237,"isText":false}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-09-17T15:58:53.441451Z","sha256":"96A90689733A8D50DD9B280EEAF54DA27D43B97EA4F0A2C93BE013EF4CB2FAA9","sizeBytes":25371},"review":null,"source":{"repositoryUrl":"https://github.com/magnus919/agent-skills","path":"data-cleaning","license":"MIT","commit":"ade3385468d8211c6263b082acc059a5c84ad55f","subtreeSha":"0EFB55E99D9A78F1ECCA8C424633DA7EC5D55D4D0D767C1239113EDAC10A6572","lastSyncedAt":"2026-11-20T20:45:57.39838Z"},"reviewedAt":"2026-09-17T15:58:55.840856Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/magnus919/agent-skills/tree/main/data-cleaning"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install magnus919-agent-skills@llmmart"},{"target":"git","command":"git clone https://github.com/magnus919/agent-skills.git"}]}