/data-analyst:type-consistency-sweepfrom data-analyst
Scans datasets for data-type inconsistencies that block analysis or database loading — mixed types, stringified numbers/dates, inconsistent nulls — then reports or fixes them.
Ships in data-analyst. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Hybrid analysis + wrangling. Find the type inconsistencies that silently break joins, skew aggregations, and cause COPY INTO failures when the user tries to load the dataset into Postgres / DuckDB / BigQuery / a graph store. Then fix them — directly for trivial cases, or by handing off to the right specialist skill.
postgres, duckdb, bigquery, neo4j, parquet, none) — affects strictness.VARCHAR but >80% of values parse as numeric — a few stray strings are poisoning the type."1,234", "$19.99", "3.14 " — numeric intent, string storage.2024-01-15, 15/01/2024, Jan 15 2024 all in one column)."Y"/"N", "true"/"false", "1"/"0", "yes"/"no" — sometimes mixed."NA", "N/A", "null", "-", "-999".1.0, 2.0, ...) — will break joins to an integer key.INTEGER, another as VARCHAR, a third zero-padded."001" and the other is 1.NUMERIC/DATE/BOOLEAN; nested JSON in a column if destination is relational and not JSON-aware.List every file/table in scope. For each column, capture:
duckdb -c "DESCRIBE SELECT * FROM '<file>'").For each column, run the checks above. For numeric/date candidates held as strings, try parsing (TRY_CAST, strptime) and record pass rate. Anything below ~95% clean parse is a finding.
Match columns by name (fuzzy: lowercase, strip separators) across files. For each match group, compare types and sample values. Flag mismatches.
| Severity | Meaning |
|---|---|
blocker | Will fail load into destination, or will silently corrupt joins/aggregations. |
warning | Works, but introduces ambiguity or subtle bugs (e.g. string "1.0" comparisons). |
cosmetic | Stylistic, not analytically harmful (trailing whitespace in a free-text column). |
For each finding, pick one of:
(a) Fix in place — when the change is small, safe, reversible, and fully specified. Examples:
"1.0", "2.0", ... to INTEGER."-999" to NULL.Apply via DuckDB: write the result to a new file (*_typed.parquet) or a new table, never overwrite the source. Log the transformation.
(b) Delegate to a data-wrangler skill — when the fix matches an existing specialist skill, invoke it rather than re-implementing. Matching map:
| Finding | Delegate to |
|---|---|
| Text-formatted numbers across a file | data-wrangler:text-to-numeric |
| Mixed / inconsistent date formats | data-wrangler:date-wrangling |
| Country name vs ISO code mismatch | data-wrangler:standardise-country-names or :add-iso3166 |
| Missing currency codes on monetary columns | data-wrangler:enrich-with-currency |
| Unicode / case / whitespace drift | data-wrangler:unicode-consistency |
| JSON needs flattening for relational load | data-wrangler:json-restructure |
| CSV ↔ JSON conversion for destination | data-wrangler:csv-to-json |
| Loading into a SQL / graph database | data-wrangler:sql-load or :graph-database |
| Cleanliness audit beyond types | data-wrangler:data-cleanliness-scan |
Delegation means invoking the matching skill via Skill with the relevant file path and options. Don't silently re-do the work.
(c) Escalate to the user — when the fix requires a judgement the agent shouldn't make alone. Examples:
Write outputs/type-consistency-sweep/report.md:
yes / yes with warnings / no — blockers.pending / fixed / delegated / skipped).After any fixes or delegated wrangling, re-run Steps 1–3 on the output artifacts. Confirm blockers are resolved. Update the report with the post-fix state.
*_typed.parquet, *_normalised.csv) and make the new path visible in the report.data-wrangler plugin is not installed, fall back to fix-in-place and note in the report that a wrangler skill would have been the better path.forensic-sweep (detects whether cleaning has happened) — type-consistency-sweep fixes what's broken, forensic-sweep flags what's been changed without permission.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
14 skills in this plugin
/anomaly-analysisScan a dataset for significant anomalies — outliers, distribution shifts, impossible values, and unusual groupings. Use when the user wants a first-pass integrity and anomaly sweep of a CSV/Parquet/Excel file before deeper analysis./correlation-analysisDetect and compute correlations between numeric variables in a dataset. Use when the user wants to see how variables in a CSV/Parquet/Excel file move together — Pearson, Spearman, or Kendall — with a short report flagging the strongest positive and negative pairs./data-dictionary-creatorGenerate a data dictionary for a dataset, combining automatic profiling with the user's description of what the data represents. Use when the user wants documentation of columns — names, types, semantic meaning, units, allowed values, and nullability — for a CSV/Parquet/Excel file.claude-data-analyst@danielrosehill is listed by theantagonist2020/samr — review the source before installing
npx claudepluginhub theantagonist2020/samr --plugin claude-data-analystOther plugins' skills for the same job