ferroxlabs/wayland/data-cleaning-protocol

Claude Code and agent skill by ferroxlabs/wayland

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generates a priority-ordered data cleaning protocol for a specific dataset. Identifies quality issues (duplicates, nulls, type mismatches, outliers) and produces the exact cleaning operations with formulas and documentation. Use when the user has a dataset with quality problems and needs a systematic plan to clean it before analysis. Do NOT use for initial data exploration (use eda-framework), statistical testing (use hypothesis-testing), or writing SQL/Python cleaning scripts (software-development scope).

Install

npx vskill@latest install ferroxlabs/wayland/data-cleaning-protocol

SKILL.md

The same SKILL.md was published earlier as ferroxlabs/wayland/data-cleaning-protocol.

Data Cleaning Protocol

When to Use

Use this skill when:

  • A user provides a dataset description (column names, row counts, source system) and asks for a cleaning plan before running analysis, modeling, or reporting
  • A user describes specific data quality symptoms: "some rows are duplicated," "this column has a lot of blanks," "dates are coming through as text," "my revenue totals don't match the source system"
  • A user needs a documented, reproducible cleaning protocol they can hand off to a colleague or apply again when new data arrives
  • A user has already performed exploratory analysis (using eda-framework) and now has a concrete list of quality problems to fix
  • A user is preparing data for a downstream consumer -- a dashboard, a model training pipeline, a regulatory submission -- and needs to demonstrate data lineage and cleaning decisions
  • A user reports that summary statistics look wrong: totals that don't add up, averages that seem too high or low, category counts that don't match known business reality
  • A user is merging two datasets and needs to reconcile inconsistent keys, overlapping records, or conflicting values before joining

Do NOT use when:

  • The user has not yet looked at the data and wants to understand its structure and distribution first -- use eda-framework to profile the dataset before identifying cleaning targets
  • The user wants to write Python (pandas, pyarrow), R (tidyr, dplyr), or SQL scripts to implement the cleaning -- that is software-development scope; this skill produces the specification, not the code
  • The user wants to build a reusable validation pipeline or schema enforcement layer to prevent future quality problems -- use data-validation-setup
  • The user is auditing an Excel model with formula errors -- use spreadsheet-model-audit
  • The user wants to perform statistical analysis, hypothesis testing, or regression on already-clean data -- use hypothesis-testing or statistical-modeling
  • The dataset is a time series with missing intervals that require interpolation methods beyond basic imputation -- that requires specialized forecasting treatment
  • The user is working with unstructured text data (free-form notes, emails, documents) that requires NLP preprocessing -- cleaning structured tabular data is this skill's scope

Process

Step 1: Intake -- Characterize the Dataset and Cleaning Goals

Before identifying any issues, establish the full context. A cleaning decision that is correct for one use case may be wrong for another.

  • Ask for the dataset dimensions: exact row count, column count, and a list of all column names with their expected data types (integer, float, string, boolean, date, categorical)
  • Ask about the data source and how it was generated: exported from a CRM, pulled from a database, entered manually in a spreadsheet, merged from multiple files -- each source has characteristic failure modes
  • Ask which columns are analytically critical (must be clean and complete for the analysis to be valid) versus contextual (useful but not required)
  • Ask what the final analytical use case is: revenue reporting, customer segmentation, machine learning feature engineering, regulatory audit -- this determines severity ratings and acceptable data loss thresholds
  • Ask whether cleaning must be non-destructive (original values preserved, cleaned values in new columns) or destructive (modify in place) -- this affects the entire protocol structure
  • Ask if the user already knows of any specific issues, and note these as "confirmed" in the inventory -- they get higher priority than suspected issues
  • Ask whether there is a reference dataset or business rule document the data should conform to (e.g., "all product codes should match codes in our master product table")

Step 2: Construct the Issue Inventory

Systematically scan every column against a standard checklist. Do not rely on what the user self-reports -- unknown issues are as dangerous as known ones.

Exact Duplicate Detection:

  • Check for fully identical rows (all columns match): count duplicate row groups
  • Check for duplicate keys (primary identifier column matches, but other columns may differ): this is a "conflicting duplicate" -- more dangerous than an exact duplicate because auto-removal destroys information
  • A dataset with 3% duplicate rows in a 100,000-row file contains 3,000 phantom records that inflate every aggregation

Missing Value Audit (per column):

  • Count explicit nulls/blanks
  • Count implicit nulls: placeholder values that represent missing data but are not technically null -- common patterns include: -1, -999, 0 in columns that should never be zero, "N/A", "n/a", "NA", "null", "NULL", "None", "unknown", "?", "#N/A", single space characters, and "00/00/0000" in date fields
  • Calculate missing percentage: below 1% is typically ignorable with removal; 1--5% requires documented strategy; 5--15% requires careful imputation; above 15% requires column-level decision; above 50% in a critical column -- escalate to "column reliability" question
  • Note the missingness pattern: is it random (MCAR -- Missing Completely At Random), correlated with another column value (MAR -- Missing At Random), or systematically tied to the value itself (MNAR -- Missing Not At Random)? MNAR missingness is the most dangerous -- removing these rows introduces bias

Type Mismatch Detection:

  • Text in numeric columns: look for currency symbols ($, £, €), thousand separators (commas in numbers), percentage signs, text annotations embedded in number cells ("1,200 units"), mixed types in the same column
  • Dates stored as text: "January 5, 2023" vs "2023-01-05" vs "01/05/23" vs "1/5/2023" -- all represent the same day but none will parse as dates without cleaning; also check for ambiguous formats (01/02/03 could be Jan 2 or Feb 1 depending on locale)
  • Booleans with non-standard encoding: "Yes"/"No", "Y"/"N", "1"/"0", "TRUE"/"FALSE", "true"/"false", "T"/"F" all in the same column
  • IDs with leading zeros stripped: ZIP code "01234" becoming 1234 after Excel auto-format conversion -- this is a silent corruption

Format Inconsistency Detection:

  • Case variation: "New York" vs "new york" vs "NEW YORK" vs "New york" -- will appear as four distinct categories in a GROUP BY
  • Whitespace contamination: leading spaces, trailing spaces, double internal spaces -- these create invisible duplicates in joins and group aggregations
  • Category label drift: "Full-Time" vs "Full Time" vs "FT" vs "full-time" -- multiple representations of the same category
  • Unit inconsistencies: revenue in some rows as dollars, others as thousands; weight in kg vs lbs in the same column with no indicator

Outlier and Range Violation Detection:

  • Hard violations (physically impossible): negative ages, quantities of -500, dates in year 1900 (Excel's default null date), percentages above 100% or below 0%, future dates in historical datasets
  • Soft violations (statistically suspicious): use the IQR method (values below Q1 -- 1.5IQR or above Q3 + 1.5IQR) for a first-pass flag; use 3-sigma (mean ± 3 standard deviations) for normally distributed data; use domain-specific thresholds where known (e.g., "no single order should exceed $1M for this business")
  • For each outlier, classify as: data entry error (likely remove or correct), legitimate extreme value (keep, optionally flag), or measurement error (keep with flag, exclude from certain analyses)

Structural Issue Detection:

  • Multi-value cells: "Product A; Product B" in a single cell, comma-separated lists, pipe-delimited values
  • Merged cells in spreadsheets that span multiple rows
  • Headers duplicated partway through the data (common in Excel exports where filters were reset)
  • Row-level metadata mixed into data rows (subtotals, grand totals, section dividers)
  • Inconsistent column counts across rows (a sign of delimiter problems in CSV files)

Step 3: Classify Severity and Assign Priority

Assign every identified issue a severity level using consistent criteria, not intuition.

CRITICAL -- Must fix before any analysis can produce valid results:

  • Duplicate primary keys that inflate counts or joins
  • Type errors that prevent a column from being used at all (dates stored as text in the analysis key column)
  • Missing values above 15% in a column that is analytically critical
  • Structural corruption (multi-value cells in join keys, embedded totals in data rows)

HIGH -- Fix before final analysis; proceeding without fixing produces misleading results:

  • Missing values 5--15% in critical columns
  • Implicit nulls (-999, "unknown") in numeric or categorical columns used in aggregations
  • Date format ambiguity in time-based analysis columns
  • Unit inconsistencies in any numeric column used for calculations

MEDIUM -- Fix before reporting; may not affect aggregate results significantly but affects detail-level accuracy:

  • Case inconsistencies in categorical grouping columns
  • Whitespace contamination in key or join columns
  • Missing values below 5% with straightforward imputation available
  • Outliers that are statistically suspicious but not logically impossible

LOW -- Address if time permits; document if not fixed:

  • Format inconsistencies in non-analytical columns (address formatting, name casing in a name column not used for joins)
  • Missing values below 1% in non-critical columns
  • Outliers in columns not central to the analysis

Step 4: Specify the Exact Cleaning Operation for Each Issue

For every issue in the inventory, specify the operation at a level precise enough that someone else can execute it without asking questions.

Deduplication -- exact approach by duplicate type:

  • Exact row duplicates: sort by all columns, identify rows where every field matches the prior row, remove all but the first occurrence, count removals
  • Key duplicates (same ID, different values): do not auto-remove -- list the conflicting rows side by side and require a resolution rule from the user; common rules: keep the record with the most recent timestamp, keep the record with the fewest null values, keep the record from the authoritative source system
  • Near-duplicates (same entity, slightly different spellings): "John Smith" vs "John Smyth" -- flag for manual review; never auto-resolve without user confirmation unless a canonical list exists (master data file)

Missing value treatment -- exact strategy by column type and missingness level:

  • Remove the row: only when missing percentage is very low (below 2%), the value is in a critical column with no derivation possible, and the resulting data loss is documented
  • Mean imputation: only for normally distributed continuous numeric columns (verify with a histogram or skewness check); use the column mean; document: "Imputed 47 missing values in unit_cost with column mean of $12.43"
  • Median imputation: preferred for skewed continuous numeric columns (skewness absolute value above 0.5); median is resistant to outlier influence that would distort the mean
  • Mode imputation: for categorical columns with low cardinality (fewer than 20 distinct values) and low missingness (below 5%); document which mode value was used
  • Forward fill / backward fill: only appropriate for time-ordered datasets where the missing value logically inherits from the previous or next record (e.g., sensor readings, daily inventory snapshots)
  • Indicator imputation (predictive): for MNAR data, create a binary flag column "is_{column}_missing" = 1 where value is missing, then impute with median/mode for the numeric column -- this preserves the missingness signal for downstream modeling
  • Leave as missing: when the column is not critical, when the missingness is itself analytically meaningful (customers who didn't fill in a field may be a distinct segment), or when above 50% of values are missing and no imputation is defensible

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
608
Repository forks
113
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ferroxlabs/wayland/data-cleaning-protocol/badge)](https://verified-skill.com/skills/ferroxlabs/wayland/data-cleaning-protocol)

Something wrong with this skill or its page? Tell us.