Skip to content
Back to skills

Data Quality Auditor

ASecurity

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-eng...

  • 19 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentsgotesting

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add khoavd18/skills --skill data-quality-auditor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Quality Auditor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Quality Auditor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/khoavd18-data-quality-auditor/badge)](https://www.skillsdirectory.com/skills/khoavd18-data-quality-auditor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md3.3 KB
  • references/analytical-testing-framework.md3.5 KB
  • references/defect-report-template.md1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.