/data-engineering-skills:testing-dbt-projectsfrom data-engineering-skills
Add data quality tests to a dbt project: generic tests (unique, not_null, accepted_values, relationships), singular tests, unit tests, dbt-utils/dbt-expectations packages, and source freshness. Use when adding tests to dbt models, catching data quality regressions, validating assumptions, or setting up source freshness checks.
Ships in data-engineering-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.
building-dbt-models).- [ ] Add grain test: unique + not_null on the primary/surrogate key
- [ ] Add relationships tests for every foreign key
- [ ] Add accepted_values / range tests for constrained columns
- [ ] Add singular/unit tests for critical business logic
- [ ] Configure source freshness
- [ ] Run: dbt test (and dbt build to test as you materialize)
unique + not_null on the key catches the most
common and most damaging bug (fan-out duplicates).accepted_values for enums, range checks for numerics.unit_tests).Generic tests in schema.yml:
models:
- name: fct_orders
columns:
- name: order_id
tests: [unique, not_null]
- name: customer_id
tests:
- relationships:
to: ref('dim_customer')
field: customer_id
- name: status
tests:
- accepted_values:
values: ["placed", "shipped", "delivered", "cancelled"]
Range/expression test (dbt-utils / dbt-expectations):
- name: amount
tests:
- dbt_expectations.expect_column_values_to_be_between:
min_value: 0
Unit test (fixed input → expected output):
unit_tests:
- name: test_net_amount_excludes_tax
model: fct_orders
given:
- input: ref('stg_orders')
rows:
- { order_id: 1, gross: 110, tax: 10 }
expect:
rows:
- { order_id: 1, net_amount: 100 }
Source freshness:
sources:
- name: shop
freshness:
warn_after: { count: 12, period: hour }
error_after: { count: 24, period: hour }
loaded_at_field: _loaded_at
severity: error (or thresholds) so
bad data actually blocks the run.where/limit config or sampling; use
store_failures to inspect offenders.given rows, not
live tables.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub unknown-333/awesome-data-engineering-skills --plugin data-engineering-skills36 skills in this plugin
/authoring-airflow-dagsWrite production-grade Apache Airflow DAGs using the TaskFlow API — idempotent tasks, correct scheduling and catchup, retries/SLAs, connections/variables, and avoiding top-level code. Use when creating or reviewing Airflow DAGs, scheduling pipelines, wiring task dependencies, configuring retries/backfills, or fixing non-idempotent tasks./building-dagster-assetsBuild Dagster pipelines using software-defined assets — asset dependencies, partitions, resources and IO managers, asset checks, and schedules/sensors. Use when creating Dagster assets or jobs, modeling data as assets, adding partitions or backfills, wiring resources/IO managers, or migrating from task-based orchestration to assets./Other plugins' skills for the same job