Data Quality Checks Skill
Bad data quietly poisons dashboards and models until someone notices the number is wrong. The fix is
checks that fail loudly before that — across the standard DQ dimensions. This skill designs them for a
specific table/pipeline: the exact rule per dimension, its severity (block vs. warn), and where it runs
(dbt test, Great Expectations, or a SQL assertion), so quality is enforced, not hoped for.
Required Inputs
Ask for these only if they aren't already provided:
- The table/pipeline and what it represents (grain, key columns).
- The columns that matter — keys, required fields, enums, ranges, dates.
- Freshness expectation — how current the data must be.
- Tooling — dbt tests, Great Expectations, Soda, or raw SQL assertions.
Output Format
Data Quality Checks: [table]
Checks organised by dimension — each with the rule, severity (🔴 block the pipeline / 🟡 warn), and where it runs:
| Dimension |
Check |
Rule |
Severity |
Implement as |
| Completeness |
required fields non-null |
not_null on [cols] |
🔴 |
dbt test |
| Uniqueness |
grain key unique |
unique on [key] |
🔴 |
dbt test |
| Validity |
values in allowed set/range |
accepted_values / range |
🟡 |
GE / SQL |
| Freshness |
data is current |
max(loaded_at) within SLA |
🔴 |
dbt source freshness |
| Consistency |
cross-field / cross-table |
e.g. totals reconcile, FK exists |
🟡 |
SQL assertion |
| Accuracy |
matches a source of truth |
reconcile vs. system-of-record |
🟡 |
SQL assertion |
Notes:
- Severity discipline — only block on checks that should stop the pipeline (a duplicated grain key, stale critical data). Over-blocking trains people to ignore alerts.
- Where to check — at ingestion (catch early) vs. in the model vs. post-build; recommend per check.
- On failure — what happens (halt, quarantine rows, alert + continue) and who's paged.
Quality Checks
Anti-Patterns
Based On
Data-quality practice — the six DQ dimensions, dbt tests / Great Expectations / source-freshness, severity-tiered enforcement.
1---2name: data-quality-checks-23description: "Design the data quality checks for a table or pipeline across the standard dimensions. Use when asked to add data quality tests, define DQ checks, catch bad data before it hits dashboards, or set up monitoring for a dataset. Produces a checks plan across completeness, validity, uniqueness, freshness, consistency, and accuracy — each with the rule, severity, and where it runs (dbt test / Great Expectations / SQL assertion)."4homepage: https://mohitagw15856.github.io/pm-claude-skills/skill/data-quality-checks.html5metadata:6 source: https://skillmd.com/skills/mohitagw15856/data-quality-checks-27 openclaw:8 emoji: 🛠9---1011# Data Quality Checks Skill1213Bad data quietly poisons dashboards and models until someone notices the number is wrong. The fix is14checks that fail loudly *before* that — across the standard DQ dimensions. This skill designs them for a15specific table/pipeline: the exact rule per dimension, its severity (block vs. warn), and where it runs16(dbt test, Great Expectations, or a SQL assertion), so quality is enforced, not hoped for.1718## Required Inputs1920Ask for these only if they aren't already provided:2122- **The table/pipeline** and what it represents (grain, key columns).23- **The columns that matter** — keys, required fields, enums, ranges, dates.24- **Freshness expectation** — how current the data must be.25- **Tooling** — dbt tests, Great Expectations, Soda, or raw SQL assertions.2627## Output Format2829### Data Quality Checks: `[table]`3031Checks organised by dimension — each with the **rule**, **severity** (🔴 block the pipeline / 🟡 warn), and **where it runs**:3233| Dimension | Check | Rule | Severity | Implement as |34|---|---|---|---|---|35| **Completeness** | required fields non-null | `not_null` on [cols] | 🔴 | dbt test |36| **Uniqueness** | grain key unique | `unique` on [key] | 🔴 | dbt test |37| **Validity** | values in allowed set/range | `accepted_values` / range | 🟡 | GE / SQL |38| **Freshness** | data is current | max(loaded_at) within SLA | 🔴 | dbt source freshness |39| **Consistency** | cross-field / cross-table | e.g. totals reconcile, FK exists | 🟡 | SQL assertion |40| **Accuracy** | matches a source of truth | reconcile vs. system-of-record | 🟡 | SQL assertion |4142**Notes:**43- **Severity discipline** — only block on checks that should *stop* the pipeline (a duplicated grain key, stale critical data). Over-blocking trains people to ignore alerts.44- **Where to check** — at ingestion (catch early) vs. in the model vs. post-build; recommend per check.45- **On failure** — what happens (halt, quarantine rows, alert + continue) and who's paged.4647## Quality Checks4849- [ ] Covers the core dimensions (completeness, uniqueness, validity, freshness, consistency)50- [ ] Each check has an explicit rule and a severity (block vs. warn)51- [ ] Severity is disciplined — only truly critical checks block the pipeline52- [ ] Freshness has a measurable SLA, not "should be recent"53- [ ] Each check names where it runs and what happens on failure5455## Anti-Patterns5657- [ ] Do not block the pipeline on every check — alert fatigue makes people ignore the real failures; reserve 🔴 for critical58- [ ] Do not only test the happy path — the grain key, nulls, and freshness are where the real breakage hides59- [ ] Do not write checks with no failure action — a test that fails into the void changes nothing60- [ ] Do not skip freshness — stale data that looks fine is the most dangerous kind61- [ ] Do not check only one table in isolation — cross-table consistency (FKs, reconciliations) catches integration bugs6263## Based On6465Data-quality practice — the six DQ dimensions, dbt tests / Great Expectations / source-freshness, severity-tiered enforcement.