Skill community beginner
dbt Test Writer
Generate the minimum test set that actually protects a model.
Proposes dbt tests ranked by blast radius: uniqueness/not-null on the grain key, accepted values on enums, relationships on foreign keys, and freshness on sources.
npx de-agent-platform add dbt-test-writer At a glance
| What | Generate the minimum test set that actually protects a model. |
|---|---|
| Where | dbt · tech-dbt |
Learning objectives
- Rank tests by the cost of the failure they prevent
- Write a custom singular test
- Wire freshness on a source
Security scan
Last sweep 2026-10-24: 0 finding(s), 0 marked as examples.
Details
dbt Test Writer
Rank by blast radius, not by effort
unique+not_nullon the grain key — the model is meaningless without it.relationshipson every foreign key — catches broken joins upstream.accepted_valueson low-cardinality enums — catches upstream renames.freshnesson sources — catches a stalled extractor, the #1 silent outage.
Avoid
- Row-count equality tests on raw sources: they flake.
- Testing a column nobody reads.
warnseverity on a correctness test nobody will see.
Registry stats
| Verification | community · Sep 28, 2026 |
|---|---|
| Completeness | 100 |
| Trust multiplier | ×1 |
| Composite | 40.5 · adequate |
| Freshness | 26 days since last source check |
| Difficulty | beginner |
| Version | 0.3.2 |
| License | Apache-2.0 |
| Security flags | 1 |
Did this solve your problem?
dbt Test Writer