data-quality-conventions
БесплатноБез исполняемых скриптовНе проверенUse when designing data-quality coverage for a new data product or auditing an existing one: choosing dbt tests vs Great Expectations vs Soda, column vs…
от testland★ 18 звёзд на GitHubОб этом скилле
data-quality-conventions
A reference catalog for how to design data-quality coverage. Pairs
with the engine-specific skills
(dbt-testing,
great-expectations,
soda-checks) - those tell you the how
of running checks; this tells you which checks and where.
Engine selection
Use this matrix to pick an engine before authoring any checks. Mixing
engines is fine in a large platform - the data-quality-gate
skill exists precisely to reconcile their outputs.
| Use case | Preferred engine | Why |
|---|---|---|
| Repo is a dbt project; assertions live next to models | dbt-tests | Tests run as part of dbt build, share the project's adapter, and live in the same schema.yml as the column docs. |
| Python ELT, programmatic suite generation, runtime data connectors | Great Expectations | First-class Pandas / SQL / Spark batches; suites composable in Python. |
| YAML-only checks against a SQL warehouse, cross-team observability via Soda Cloud | Soda | SodaCL is a focused DSL; no Python or dbt required. |
| Mix of warehouse + non-warehouse sources | dbt + GX or Soda + GX | Use dbt or Soda for warehouse coverage; GX for non-warehouse (file uploads, Spark jobs, ad-hoc Pandas). |
| Brand-new project, no preference | dbt-tests if you already have dbt; otherwise Soda for YAML simplicity | Lowest cognitive overhead. |
Anti-pattern: running all three engines on the same dataset for the same checks "for redundancy" - duplicate checks shift the failure cost to humans triaging three CI signals for the same root cause.
Column-level vs table-level coverage
Authoring tip: start at the column level for the keys and required fields, then add table-level invariants. A reasonable starter set for a new data product:
| Layer | Check | Justification |
|---|---|---|
| Column (PK) | not_null, unique |
Catches the largest classes of ingestion bugs. |
| Column (FK) | relationships to the referenced table |
Catches out-of-order loads. |
| Column (enum) | accepted_values for low-cardinality strings |
Catches new states added upstream without coordination. |
| Column (numeric) | range / between for business-bounded columns |
Catches arithmetic errors and unit mismatches. |
| Column (date) | not_null on required timestamps |
Catches dropped fields. |
| Table | row_count > 0 (and an upper bound if known) |
Catches catastrophic ingestion drop or runaway duplicate. |
| Table | freshness on the load-time timestamp |
Catches "pipeline didn't run" - the most common silent failure. |
For numeric columns, prefer business-bounded ranges (e.g. discount 0 - 100 %) over distribution-bounded ranges (e.g. mean ± 3σ). Statistical ranges drift with seasonality and produce false positives at scale; the shop should treat distribution monitoring as a separate concern from data-quality assertions.
Severity tiering
Three tiers cover most needs:
| Tier | Behavior on failure | Use for |
|---|---|---|
error |
Block the pipeline / CI | Invariants the business depends on (PK uniqueness, FK integrity, required fields). |
warn |
Surface in the report, do not block | Distribution shifts, soft constraints, new unfamiliar checks during ramp-up. |
info |
Log only, never alert | Coverage telemetry (e.g. "70 % of customer rows had email populated"). |
In dbt, severity comes from a severity: config block; in GX, from
suite-level metadata; in SodaCL, from warn: / fail: blocks for
schema and from the alert configuration syntax for other checks. Each
engine's specifics are in its SKILL.md.
Anti-pattern: every check at error. A pipeline that blocks on a
single distribution drift becomes "the check that always fails" within
a quarter; the team eventually disables the gate entirely. Reserve
error for invariants the business will actually halt to fix.
Freshness and SLAs
A freshness check is the highest-leverage assertion in most pipelines - it catches the "pipeline didn't run" failure mode that no row-level check can detect (because there are no rows to check).
Conventions:
- One freshness check per pipeline output table, on the latest load-time / processed-at column.
- The freshness threshold is 2× the expected cadence. A daily
pipeline gets
freshness < 2d; an hourly pipeline gets< 2h. This avoids false alarms from a single late run while still catching a stuck pipeline. - Fr
Установить data-quality-conventions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл data-quality-conventions?
Use when designing data-quality coverage for a new data product or auditing an existing one: choosing dbt tests vs Great Expectations vs Soda, column vs table-level checks, severity tiers, SLA and freshness conventions, and anti-patterns to avoid.
Как установить скилл data-quality-conventions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-quality-conventions запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic