Data Quality Auditor
ASecurityAudit whether an existing pipeline, dataset, metric, model or report is correct against its contract or source. Use for source-to-target reconciliation, control totals, proving how many rows were lost or duplicated, referential integrity and orphan keys, schema and business-rule validation, regression tests for a data defect, data drift between loads, sign-off before publishing numbers, and writing reproducible defect reports. Not for first-look exploration of new data (use data-profiling-eng...
- 19 stars
- 0 votes
- 0 copies
- 1 view
- Added November 29, 2026
Security analysis
100/100Pro scans all 3 files and shows the line behind each finding
npx -y skills add khoavd18/skills --skill data-quality-auditor --agent claude-codeAre you the author of Data Quality Auditor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/khoavd18-data-quality-auditor)---
name: data-quality-auditor
description: Audit whether an existing pipeline, dataset, metric, model or report is correct against its contract or source. Use for source-to-target reconciliation, control totals, proving how many rows were lost or duplicated, referential integrity and orphan keys, schema and business-rule validation, regression tests for a data defect, data drift between loads, sign-off before publishing numbers, and writing reproducible defect reports. Not for first-look exploration of new data (use data-profiling-engineer).
---
# Data Quality Auditor
Independent check that numbers are right. Produces evidence, not reassurance.
## Inputs
- The data contract or metric contract. If there is none, the audit records which rules are UNKNOWN.
- Source and output datasets, the transformation code, and the report.
## Procedure
1. **Identify the contract**: schema, grain, keys, business rules, tolerance.
2. **Inspect** source and output: extract timestamps, filters, versions.
3. **Schema**: columns, types and nullability match the contract.
4. **Row counts**: source → each stage → output. Explain every difference with a reason and a count.
5. **Business keys**: unique at the declared grain, no unexpected NULL keys.
6. **Referential integrity**: orphan fact keys, unused or duplicated dimension members.
7. **Numeric reconciliation**: totals by period and segment against an independent path, within the stated tolerance.
8. **Business invariants**: for example `achieved >= 0`, `end_date >= start_date`, shares sum to 100%, each employee has one manager per period.
9. **Categories**: unexpected new codes, missing expected codes, and drift vs the previous load.
10. **Report defects** with reproducible evidence using [defect-report-template.md](references/defect-report-template.md).
Test design and fixtures: [analytical-testing-framework.md](references/analytical-testing-framework.md).
## Quality dimensions
| Dimension | Example check |
|---|---|
| Completeness | Expected entities and periods present |
| Accuracy | Totals match the authoritative source |
| Consistency | The same metric agrees across reports |
| Uniqueness | No duplicate grain keys |
| Validity | Values within types, ranges and allowed codes |
| Timeliness | Data as-of date meets the SLA |
| Integrity | Foreign keys resolve |
## Rules
- Every defect states its evidence (query or test plus output) and its impact (which metric, which rows, how much).
- A successful refresh or job run is not evidence of completeness.
- Never hide dropped rows. Report them with counts and reasons.
- Never silently repair source data. Propose the fix, and keep the raw data unchanged.
- Write a failing regression test before fixing a confirmed defect, where practical.
- Separate a **technical defect** (code contradicts the contract) from an **open business question** (the contract is silent or ambiguous). Route the second to **kpi-metrics-engineer** or the owner.
- Use synthetic fixtures for tests. Never copy production records into the repository.
## Outputs
An audit summary (pass/fail per check, with evidence), defect reports, regression tests, and a list of open business questions.
## Hand-offs
Fixes → the owning implementation skill. Definition questions → **kpi-metrics-engineer**. Contract changes → **data-pipeline-engineer**.
Files in this skill
- SKILL.md
- references/analytical-testing-framework.md
- references/defect-report-template.md
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.