Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Audit data quality across pipelines, warehouses, and stores. Use when designing a DQ program, defining DQ dimensions, building rule-based checks, detecting schema drift, monitoring freshness SLAs, or responding to a DQ incident.
.claude/skills/borghei-data-quality-auditor/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | 267% | 0% |
| case-04 | ✗→✓ | ▲ Improved | 43% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 56% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 113% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 165% | 0% |
End-to-end data quality (DQ) practice: define DQ dimensions, write rule-based checks, detect schema drift, monitor freshness SLAs, respond to DQ incidents, build a maturity-graded program. Tool-agnostic — works whether you use Great Expectations, dbt tests, Soda Core, Monte Carlo, custom SQL, or hand-rolled scripts.
This skill is audit-focused, not pipeline-focused. For pipeline design, ETL, Spark/dbt, see engineering/senior-data-engineer.
| Situation | Skill applies | |-----------|---------------| | Setting up DQ from scratch on a new pipeline | Yes — start with DQ dimensions + check catalog | | Auditing existing pipelines for missing DQ | Yes — dq_check_runner.py | | Detecting schema drift in upstream sources | Yes — schema_drift_detector.py | | Monitoring freshness / SLA on data assets | Yes — freshness_monitor.py | | Responding to a DQ incident (bad data in prod) | Yes — incident response playbook | | Designing a DQ governance model | Yes — DQ maturity model | | Compliance evidence (SOC 2 PI1, GDPR, ISO 27001) | Yes — checks produce auditable artifacts | | Building data pipelines for the first time | Use engineering/senior-data-engineer first |
Before running the audit, confirm these inputs. If any is unknown or vague, ASK — do not assume:
--data)dq_check_runner.py vs schema_drift_detector.py vs freshness_monitor.py)--max-age-min)Stop rule: ask only the 2-3 that most change the output. If the user says "just draft it," proceed and list your assumptions at the top of the artifact.
Industry-standard taxonomy. Every dataset should have at least one check per dimension when at production stage.
| Dimension | Question | Example check | |-----------|----------|---------------| | Completeness | Are required fields populated? | users.email IS NOT NULL — fail if > 0.1% nulls | | Accuracy | Do values match reality? | Reconciliation against source-of-truth system; sample-based human review | | Consistency | Do values agree across systems / time? | users.email in DB matches Salesforce; row count today within 5% of yesterday | | Timeliness / Freshness | Is data current to expectation? | events_table.max(event_time) is < 1h old; pipeline runs SLA | | Validity | Do values conform to format / schema / business rules? | Email regex matches; country code in ISO 3166-1; status in known enum | | Uniqueness | Are entities not duplicated? | users.user_id is unique; no two rows with same (user_id, day) |
Some teams add: Integrity (referential — FKs resolve), Conformity (matches a published standard), Reasonableness (passes basic sanity checks beyond strict validity).
Checks group into five categories applied per dataset — Volume, Freshness, Schema, Values, and Distribution. See the category summary and the full ~50-pattern catalog in references/dq-check-catalog.md.
| Tool | Purpose | Command | |------|---------|---------| | dq_check_runner.py | Run/profile DQ checks against tabular data; per-table pass/fail/warning with value vs threshold | python scripts/dq_check_runner.py --data t.json --checks checks.json --format json | | schema_drift_detector.py | Diff a current schema against a baseline snapshot (added/removed/changed columns, types, ordinals) | python scripts/schema_drift_detector.py --baseline base.json --current cur.json | | freshness_monitor.py | Check a freshness SLA: current age vs max-age budget, alerting-ready output | python scripts/freshness_monitor.py --data t.json --column updated_at --max-age-min 60 |
All scripts: stdlib only, argparse CLI, JSON or human-readable output (see Scope re: live DB integration).
Load the reference that matches the task — keep this file lean and pull detail on demand:
This skill covers:
This skill does NOT cover:
engineering/senior-data-engineer.engineering/senior-data-engineer — pipeline design, ETL, dbt, Sparkengineering/observability-designer — observability for data infrastructure (adjacent to DQ)engineering/chaos-engineering — DQ checks benefit from chaos testingra-qm-team/gdpr-dsgvo-expert — DQ underpins GDPR Art. 5(1)(d) "accuracy"ra-qm-team/soc2-compliance-expert — SOC 2 PI1 (Processing Integrity) requires DQ controls| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 10,409 | 30,522 | +193% | 1 | 1 | 0% | 1,704 | 7,281 | +327% | 0 | 0 | — |
case-02 | fail→pass | 9,967 | 22,041 | +121% | 1 | 1 | 0% | 1,698 | 6,228 | +267% | 0 | 0 | — |
case-03 | fail→fail | 29,345 | 9,762 | -67% | 1 | 1 | 0% | 6,209 | 2,591 | -58% | 0 | 0 | — |
case-04 | fail→pass | 19,973 | 19,171 | -4% | 1 | 1 | 0% | 3,954 | 5,636 | +43% | 0 | 0 | — |
case-05 | fail→fail | 14,115 | 14,916 | +6% | 1 | 1 | 0% | 2,711 | 4,754 | +75% | 0 | 0 | — |
case-17 | fail→pass | 18,953 | 14,643 | -23% | 1 | 1 | 0% | 2,896 | 4,508 | +56% | 0 | 0 | — |
case-06 | fail→fail | 8,710 | 16,725 | +92% | 1 | 1 | 0% | 1,692 | 5,167 | +205% | 0 | 0 | — |
case-07 | pass→pass | 21,161 | 26,313 | +24% | 1 | 1 | 0% | 3,954 | 7,059 | +79% | 0 | 0 | — |
case-08 | fail→pass | 6,522 | 1,994 | -69% | 1 | 1 | 0% | 1,062 | 2,260 | +113% | 0 | 0 | — |
case-09 | fail→pass | 16,729 | 30,513 | +82% | 1 | 1 | 0% | 2,833 | 7,495 | +165% | 0 | 0 | — |
case-10 | fail→pass | 24,570 | 5,266 | -79% | 1 | 1 | 0% | 1,342 | 2,823 | +110% | 0 | 0 | — |
case-11 | fail→pass | 28,279 | 24,841 | -12% | 1 | 1 | 0% | 4,458 | 6,150 | +38% | 0 | 0 | — |
case-12 | pass→pass | 18,349 | 28,356 | +55% | 1 | 1 | 0% | 2,732 | 6,442 | +136% | 0 | 0 | — |
case-13 | fail→pass | 14,879 | 11,660 | -22% | 1 | 1 | 0% | 2,297 | 3,829 | +67% | 0 | 0 | — |
case-14 | fail→pass | 20,628 | 21,780 | +6% | 1 | 1 | 0% | 3,728 | 5,482 | +47% | 0 | 0 | — |
case-15 | pass→pass | 20,652 | 25,285 | +22% | 1 | 1 | 0% | 3,652 | 6,521 | +79% | 0 | 0 | — |
case-16 | pass→pass | 14,450 | 13,749 | -5% | 1 | 1 | 0% | 2,286 | 4,027 | +76% | 0 | 0 | — |
case-18 | fail→pass | 18,675 | 8,387 | -55% | 1 | 1 | 0% | 3,317 | 3,426 | +3% | 0 | 0 | — |
case-19 | pass→pass | 6,619 | 8,595 | +30% | 1 | 1 | 0% | 1,057 | 3,251 | +208% | 0 | 0 | — |
case-20 | pass→pass | 14,731 | 7,802 | -47% | 1 | 1 | 0% | 2,429 | 3,152 | +30% | 0 | 0 | — |
case-21 | fail→pass | 19,336 | 17,137 | -11% | 1 | 1 | 0% | 3,329 | 5,302 | +59% | 0 | 0 | — |
case-22 | pass→pass | 11,579 | 9,187 | -21% | 1 | 1 | 0% | 1,864 | 3,294 | +77% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 20 counted toward the lift figure. The other 2 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +50 percentage points is the difference between those two pass rates over the 20 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.