data-quality skillA
This file is byte-identical to the first copy the registry indexed. Same content hash, same audit grade.
data-quality is agent-read markdown (skill) from yeaight7/agent-powerups: Use when adding or reviewing data quality tests for dbt models in warehouse-backed analytics projects. Covers dbt generic tests, singular tests (assert_*.sql), accepted-values macros, dbt_utils patterns, cross-system consistency tests, and warehouse-oriented validation. Use when writing data tests, creating assert_*.sql files, testing business logic, or validating referential integrity..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Data Quality
Testing patterns for dbt projects on analytical warehouses such as BigQuery. This workflow uses **dbt tests exclusively** — no external data-quality framework required.
## Test Types
### 1. Generic Tests (in YAML files)
Defined in `.yml` files alongside models. Use `data_tests:` (not `tests:`):
```yaml
# models/core/shared/dim_teams.yml
models:
- name: dim_teams
columns:
- name: id
description: Surrogate key
data_tests:
- unique
- not_null
- name: natural_id
description: Natural key from source
data_tests:
- unique
- not_null
- name: plan_code
description: Subscription plan code
data_tests:
- accepted_values:
values: "{{ get_plan_code_values() }}" # Use macros, not hardcoded lists
```
### 2. Singular Tests (assert_*.sql files)
Business logic tests live in `tests/` as `assert_*.sql` files. They pass when they return **zero rows**:
```sql
-- tests/teams/assert_teams_created_before_deleted.sql
with teams as (
select * from {{ ref('dim_teams') }}
)
select
teams.natural_id,
teams.created_at,
teams.deleted_at
…Read the whole file at its exact version.
How to install
mdr add yeaight7/agent-powerups/data-quality@git:20260502.e5ff691mdr add yeaight7/agent-powerups/data-quality@sha256:30726307db8ad89cPin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_j3ffobvvlqnd7tbt)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260502.e5ff691 latest | 2026-05-02 | e5ff691 | 6,597 B | A | view · diff |
| git:20260502.10bf179 | 2026-05-02 | 10bf179 | 6,676 B | A | view · diff |
| git:20260502.9a4e79b | 2026-05-02 | 9a4e79b | 6,676 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (6597 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
yeaight7/agent-powerups · 6 stars · license Apache-2.0 · pushed 2026-09-21 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_j3ffobvvlqnd7tbt GET https://markdownregistry.com/api/v1/resolve?ref=yeaight7/agent-powerups/data-quality GET https://markdownregistry.com/api/v1/blob/30726307db8ad89c787df8a30ab3fa30379b3e72ec2bc237520058590f3c338b
Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
More from yeaight7/agent-powerups
Every file in yeaight7/agent-powerups