gesmith0606/claude-config-public/data-quality

Claude Code and agent skill by gesmith0606/claude-config-public

Trust tier 2
  • community
LLM review pending
Source check pending

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

Data validation and quality contracts for pipelines — uniqueness/PK, not-null, range/domain, referential integrity, freshness/SLA, row-count tie-out, distribution drift — with the fail-closed-at-the-gate pattern. Use when adding tests/expectations to a pipeline, defining a data contract, catching nulls/dupes/stale/drifted data before a serving table or report, or picking between dbt tests, Great Expectations, Pandera, and Soda.

Install

npx vskill@latest install gesmith0606/claude-config-public/data-quality

SKILL.md

The same SKILL.md was published earlier as gesmith0606/claude-config-public/data-quality.

Data Quality

Validate the data flowing through a pipeline against explicit contracts, and fail closed at the gate — block bad data from landing in a serving table or report rather than letting it ship and apologizing later. This skill owns the assertions and the gate; it does not own:

  • Code-level swallowed errors (empty except, ignored return codes, catch {}) → that's the

silent-failure-hunter agent. Here the code runs fine but the data is wrong.

  • ML feature/label/training contracts (schema skew, label leakage, train/serve drift) →

mle-workflow. Drift here means pipeline data drifted, not model inputs.

Cross-link siblings: dbt and sql-warehouse for where most of these run in-warehouse, and cheap-data-orchestration for scheduling the gate and alerting on failure.

The principle: fail closed at the gate

A quality check that logs a warning and continues is theater — bad data still reaches users. The contract is only real if a failure stops the pipeline:

  1. Land new data in a staging/quarantine table, not the serving table.
  2. Run assertions against staging.
  3. Pass → promote (swap/merge into serving). Fail → halt: leave serving on its last-good

state, alert, and quarantine the bad batch for inspection.

  1. Never partially publish. A half-loaded serving table is worse than a stale one.

Stale-but-correct beats fresh-but-wrong for anything a person trusts (a dashboard, a payment, a report). Make the gate blocking by default; downgrade a specific check to warn-only only with a documented reason.

The assertion catalog

The seven checks that catch most real incidents. Pick the ones the data's contract actually needs.

AssertionCatchesTypical expression
Uniqueness / PKDuplicate rows, fan-out from a bad join, double-loaded batchcount(*) = count(distinct key); no null in key
Not-null / completenessDropped fields, upstream schema change, partial extractrequired columns have 0 nulls (or null rate < threshold)
Accepted range / domainGarbage values, unit errors, bad enumsnumeric within [min,max]; categorical in allowed set; regex/format
Referential integrityOrphan rows, broken FK, late-arriving dimensionevery FK value exists in parent; no orphans
Freshness / SLAStuck pipeline, dead upstream feedmax(updated_at) > now() - interval; partition for today exists
Row-count tie-out vs sourceSilent partial load, truncated extract, dedup gone wrongtarget_rows within tolerance of source_rows (exact or ±%)
Distribution driftUpstream semantics changed without erroringrow count, null rate, mean/quantiles, category mix vs trailing baseline

Notes that save incidents:

  • Tie-out is the cheapest high-value check. A job can succeed, tables can be non-null and

unique, and still be missing half the rows. Always reconcile a count against the source of truth.

  • Distribution drift is the subtle one — nothing is malformed, but the meaning shifted (a

currency switched, an enum was renamed upstream, a sensor recalibrated). Compare against a trailing window, alert on Δ beyond a band. This is pipeline drift; for model drift see mle-workflow.

  • Freshness needs a clock you trust — assert on event/load time, not wall-clock, or a

backfill will look "stale" and a stuck clock will look "fresh."

  • Set thresholds from history, not vibes. A null rate of 2% may be normal; pick bands from the

trailing baseline and tighten over time.

Where to assert (defense in depth)

  • At ingestion — schema/type/format and not-null, before raw data even lands. Reject early.
  • At transform — uniqueness, referential integrity, range/domain on the modeled tables (this

is dbt-test territory; see the dbt and sql-warehouse skills).

  • At the publish gate — tie-out, freshness, drift, plus a final re-check of the critical

invariants right before promotion. This is the blocking gate above.

Run the heavy/whole-table checks in-warehouse where the data already lives (echoing data-throughput-accelerator: move the check to the data, don't pull the data to the check).

Workflow

  1. Write the contract first — for each table: keys, required columns, value domains, FK

relationships, freshness SLA, expected row volume. A contract nobody wrote is a contract nobody keeps.

  1. Encode it as assertions in the right tool (see references/tool-map.md).
  2. Wire the gate so failures block promotion, not just log.
  3. Alert with context — which check, which table, observed vs expected, sample failing rows.

Route through cheap-data-orchestration.

  1. Quarantine the failing batch so it's inspectable and replayable.
  2. Tune thresholds from observed history; review flaky checks instead of muting them.

Guardrails

  • A check that only warns is not a gate — bad data still ships. Make it block or document why.
  • Don't delete/auto-coerce failing rows to make a check pass — quarantine and inspect.
  • Don't assert on wall-clock for freshness when the data has its own event time.
  • Don't tie-out against a number derived from the same broken extract — reconcile to an

independent source of truth.

  • A green test suite on an empty/half-loaded table is a false pass — pair every quality check

with a row-count/volume check.

  • For regulated, financial, healthcare, or customer-impacting data, keep the quarantined batch and

the gate decision as replay/audit evidence.

Tool selection — dbt tests vs Great Expectations vs Pandera vs Soda, with a pick-by-situation table — lives in `references/tool-map.md`. Read it when you're choosing how to implement.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

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

Source

Popularity

7-day trend score
0

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/gesmith0606/claude-config-public/data-quality/badge)](https://verified-skill.com/skills/gesmith0606/claude-config-public/data-quality)

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