data-cleaning

data-cleaning is a skill for Claude Code, Codex from magnus919/agent-skills. It costs 109 tokens per session (1,706 once invoked), scanned A, original, MIT.

An evidence-first workflow for cleaning, checking, reshaping, and documenting messy table, text, JSON, or relational data.

In plain words
What is it for?
Use it to prepare data for analysis, reporting, modeling, ingestion, migration, or record matching while preserving the raw input and recording transformation decisions.
Why use it?
It makes data changes reproducible and exposes problems such as missing values, duplicates, invalid types, inconsistent identifiers, and schema drift before the data is reused.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare data for analysis, reporting, modeling, ingestion, migration, or record matching while preserving the raw input and recording transformation decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magnus919/agent-skills/data-cleaning
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add magnus919/agent-skills --skill data-cleaning
Clone the repo
git clone --depth 1 https://github.com/magnus919/agent-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin data-cleaning — /plugin install data-cleaning after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-cleaning

README.md
[![agentmods](https://agentmods.dev/badge/skills/magnus919/agent-skills/data-cleaning/github.svg)](https://agentmods.dev/skills/magnus919/agent-skills/data-cleaning)
Your own site
<a href="https://agentmods.dev/skills/magnus919/agent-skills/data-cleaning"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/data-cleaning/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-cleaning

Your own site · 80×15
<a href="https://agentmods.dev/skills/magnus919/agent-skills/data-cleaning"><img src="https://agentmods.dev/badge/skills/magnus919/agent-skills/data-cleaning.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,706 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.01706
Opus 5.5 $0.00044 $0.00682
Sonnet 5.5 $0.00022 $0.00341
Haiku 4.5 $0.00011 $0.00171

Measured 2mo ago against content hash 2782fc15db1f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-cleaning scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/profile_dataset.py, scripts/reconcile_dataset.py, scripts/test_profile_dataset.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

data-cleaning/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data cleaning

Treat cleaning as a controlled transformation of an observed dataset, not cosmetic editing. Preserve raw input, state the target use and grain, make every lossy decision explicit, and prove that the cleaned output satisfies a contract.

When a model proposes data transformations, load the AI boundary workflow and use the companion record.

Route by task

Need Read next
End-to-end method, scope, and stopping rules references/methodology.md
Choose a library or platform references/tool-selection.md
Missingness, duplicates, types, ranges, categories, dates, joins references/operations.md
Text, identifiers, Unicode, and entity resolution references/text-and-entity.md
Schemas, contracts, validation, drift, scale references/validation-and-scale.md
CLI, OpenRefine, monitoring, and interactive remediation references/cli-and-interactive-tools.md
Source claims and version-sensitive caveats references/sources.md
Plan, logs, exceptions, contracts, or reports templates/cleaning-plan.md, templates/transformation-log.jsonl, templates/exception-register.csv, templates/schema-contract.yml, templates/quality-report.md
Lightweight profile or reconciliation Run python3 scripts/profile_dataset.py --help or python3 scripts/reconcile_dataset.py --help

Available Scripts

Script Purpose Invocation
scripts/profile_dataset.py Dependency-free first-pass profiling of a CSV, TSV, or JSONL input without modifying it: missingness, cardinality, type candidates, duplicates, ranges, and value anomalies. Run it at workflow step 3 (Profile before changing) as the evidence-gathering pass before designing any cleaning decision. python3 scripts/profile_dataset.py data.csv --output profile.json
scripts/reconcile_dataset.py Reconciliation between a before and after delimited dataset: row counts, key uniqueness/overlap, and per-column sums (--sum), keyed by --key, writing a machine-readable report. Run it during Validate twice / Review to prove grain preservation and quantify exactly what a transformation changed. python3 scripts/reconcile_dataset.py raw.csv cleaned.csv --key id --sum amount --output reconciliation.json
scripts/test_profile_dataset.py Pytest suite covering the profiler's behavior on representative inputs. Run it after modifying the profiler or when auditing its output; CI discovers it automatically. python3 -m pytest scripts/test_profile_dataset.py
scripts/test_reconcile_dataset.py Pytest suite covering the reconciler's keying, summing, and reporting behavior. Run it after modifying the reconciler or when auditing its output; CI discovers it automatically. python3 -m pytest scripts/test_reconcile_dataset.py

Read the full file on GitHub · 89 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +4 lines · +21 tokens per session 2782fc15db1f
  2. 3mo ago First seen · 85 lines · 88 tokens per session scan A 23c89b41b25d

Subscribe to this mod's changes

data-cleaning is a skill published in the GitHub repository magnus919/agent-skills (203 stars, last pushed yesterday), licensed MIT. It adds 109 tokens to every session and 1,706 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

data-cleaning compared with skills from other repositories

data-cleaning next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
data-cleaningmagnus919/agent-skillsSkill203yesterdayMITA109Claude Code, Codex
cocoreviewSnowflake-Labs/cocoplusSkill73025d agoMITA57Claude Code
cocoharvestSnowflake-Labs/cocoplusSkill73025d agoMITA68Claude Code
discussSnowflake-Labs/cocoplusSkill73025d agoMITA54Claude Code
cocoscoutSnowflake-Labs/cocoplusSkill73025d agoMITA59Claude Code
cocowatchSnowflake-Labs/cocoplusSkill73025d agoMITA43Claude Code
bloomSnowflake-Labs/cocoplusSkill73025d agoMITA47Claude Code