agentleFS
shinzoxDshinzoxD/knackbox/skills/data/data-cleaning/SKILL.md

data-cleaning

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Profile and clean messy tabular datasets with reproducible transformations and explicit handling of types, missing values, duplicates, and outliers. Use whenever the user has inconsistent CSV or spreadsheet data, asks to prepare data for analysis, merge records, standardize columns, remove duplicates, or fix data-quality problems.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never overwrite raw data.

    line 68
  2. Distinctive:

    Do not silently impute missing values or remove outliers.

    line 69
  3. Distinctive:

    Use deterministic matching rules and surface ambiguous duplicate groups for review.

    line 73

“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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Data Cleaning

Turn raw data into an analysis-ready dataset without hiding assumptions or destroying information.

Workflow

  1. Preserve the original input and work on a copy.
  2. Profile row count, columns, inferred types, nulls, unique values, ranges, and duplicate candidates.
  3. Define the target schema and record-level identity rules.
  4. Apply transformations in explicit, reproducible steps.
  5. Validate the result against invariants and reconcile row-count changes.
  6. Produce a cleaning report alongside the cleaned output.

Cleaning order

  1. Normalize column names and encoding.
  2. Parse types, dates, units, booleans, and categorical labels.
  3. Trim whitespace and normalize known sentinel values.
  4. Resolve exact and fuzzy duplicates using documented keys.
  5. Handle missing values according to column meaning.
  6. Inspect impossible values and outliers without deleting them automatically.
  7. Validate keys, ranges, cross-field rules, and referential integrity.

Output format

## Data quality report

**Input:** rows, columns, source
**Output:** rows, columns

### Changes
| Step | Rule | Rows affected | Reversible |
|---|---|---:|---|

### Remaining issues
| Column | Issue | Count | Recommended decision |
|---|---|---:|---|

### Validation
- Passed invariants
- Failed or unverified invariants

Provide the exact script, query, or transformation steps when tools are available.

Rules

  1. Never overwrite raw data.
  2. Do not silently impute missing values or remove outliers.
  3. Preserve original values when a normalization may be disputed.
  4. Distinguish an empty value, unknown value, not-applicable value, and zero.
  5. Reconcile every dropped or merged row with counts.
  6. Use deterministic matching rules and surface ambiguous duplicate groups for review.

Edge cases

  • For personally identifiable data, minimize exposure and do not echo sensitive rows into the report.
  • For locale-dependent dates and decimals, require or infer the locale with a stated confidence level.
  • For large files, profile in chunks and verify that chunk processing preserves global duplicate and ordering rules.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.