/engineering-advanced-skills:data-quality-auditorfrom engineering-advanced-skills
Audits data quality across pipelines and warehouses: defines DQ dimensions, runs rule-based checks, detects schema drift, monitors freshness SLAs, and responds to incidents. Tool-agnostic.
Ships in engineering-advanced-skills. 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.
Read when SKILL.md points to them; scripts run unread.
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, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
--data).dq_check_runner.py vs schema_drift_detector.py vs freshness_monitor.py).--max-age-min).Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
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 | Exit codes |
|---|---|---|
dq_check_runner.py | Run a checks file (YAML or JSON, top-level checks: list) against CSV/JSON rows; --profile adds per-column null rate, distinct count, min/max | 0 all pass, 1 a check failed/errored, 2 bad input or zero checks loaded |
schema_drift_detector.py | Diff a current schema against a baseline (added/removed columns, type, nullability, ordinal); --snapshot infers a baseline from data; --fail-on sets the gate severity (default critical) | 0 no drift at/above --fail-on, 1 drift, 2 bad input |
freshness_monitor.py | Age of the newest timestamp vs a max-age budget; --now pins the clock | 0 within SLA, 1 breach, 2 bad input |
Supported check types: not_null (threshold = max null rate), unique, accepted_values (values), matches_regex (regex), between (min/max), row_count_between, freshness (max_age_min, optional now), length_between (min_len/max_len), reference_exists (reference_values). The YAML reader handles block maps, block lists and flow lists ([a, b]); anything fancier, use JSON.
Run from the skill folder. The samples pin now so the demo gives the same result on any date.
# 1. Profile, then run the suite: sound data passes (exit 0), flawed data fails 7 of 8 checks (exit 1)
python3 scripts/dq_check_runner.py --profile --data assets/sample_orders.json
python3 scripts/dq_check_runner.py --data assets/sample_orders.json --checks assets/checks.yaml
python3 scripts/dq_check_runner.py --data assets/sample_orders_flawed.json --checks assets/checks.yaml --format json
# 2. Snapshot a baseline, then diff: the drifted schema has a type change and a NOT NULL tightening (exit 1)
python3 scripts/schema_drift_detector.py --snapshot assets/sample_orders.json --output "$(mktemp -d)/baseline.json"
python3 scripts/schema_drift_detector.py --baseline assets/baseline_schema.json --current assets/current_schema_drifted.json
# 3. Freshness SLA: newest row 30 min old against a 60 min budget (exit 0)
python3 scripts/freshness_monitor.py --data assets/sample_orders.json --column updated_at --max-age-min 60 --now 2026-06-01T12:30:00Z --table-name orders
The tools read exported rows or schema JSON; they do not query a database. To audit a live table, export a sample (SELECT ... LIMIT n to JSON/CSV) or the information_schema.columns rows, then run the same commands. A result is only as good as the export: say what was sampled.
Done means: every production-critical table has at least one check per relevant dimension, the suite exits 0 on current data, and any failure has an owner and a ticket.
Mistake: Treating a run that loaded zero checks as a pass. Why it happens: A typo in the checks file or the wrong format silently produces an empty suite. Instead: The runner exits 2 when no checks load. In CI, gate on the exit code, not on the absence of failures in the report.
Mistake: Checks that alert but never block. Why it happens: Wiring the exit code into the pipeline feels risky, so failures only post to a channel. Instead: Fail the load on exit 1 for critical checks and route warnings by severity. Unenforced checks let bad data reach consumers anyway.
Mistake: not_null on every column of a wide table.
Why it happens: Coverage looks good on a dashboard.
Instead: Check the columns the business needs, with thresholds tuned from the profile. Noise trains people to ignore the real alerts.
More in references/dq-anti-patterns.md.
scripts/dq_check_runner.py, scripts/schema_drift_detector.py, scripts/freshness_monitor.py — the three tools above.assets/sample_orders.json (sound), assets/sample_orders_flawed.json (duplicate key, empty and malformed email, unknown status, negative amount, orphan customer, stale), assets/checks.yaml, assets/baseline_schema.json, assets/current_schema_drifted.json.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 controlsassets/baseline_schema.json (opens in a new tab)assets/checks.yaml (opens in a new tab)assets/current_schema_drifted.json (opens in a new tab)assets/sample_orders.json (opens in a new tab)assets/sample_orders_flawed.json (opens in a new tab)references/data-quality-dimensions.md (opens in a new tab)references/dq-anti-patterns.md (opens in a new tab)references/dq-check-catalog.md (opens in a new tab)references/dq-incident-response.md (opens in a new tab)references/dq-maturity-model.md (opens in a new tab)references/dq-workflows.md (opens in a new tab)scripts/dq_check_runner.py (opens in a new tab)scripts/freshness_monitor.py (opens in a new tab)scripts/schema_drift_detector.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub borghei/claude-skills --plugin engineering-advanced-skills100 skills in this plugin
/a11y-auditStatic WCAG scan of HTML files (alt text, headings, labels, ARIA, lang, landmarks) and colour contrast checks for colour pairs or CSS. Use when auditing templates for accessibility, checking contrast, or adding an a11y gate to CI.
/agent-designerDesigns multi-agent system architectures with orchestration patterns, tool schemas, and performance evaluation. Use when building AI agent systems, designing agent workflows, creating tool schemas, or evaluating agent performance.
/agent-harnessTest and evaluation harness for AI agents — scenario suites, deterministic replay, regression diffing, cost and latency budgets. Use when agent quality is vibe-checked, before shipping a prompt or model change, or when evals drift.
Other plugins' skills for the same job