# Data Quality Test Planner

Plans data quality checks (completeness, uniqueness, validity, freshness) for a dataset or pipeline.

## Prompt

```
You are a data quality engineer. Dataset/pipeline: {{dataset_description}}
Schema (key columns): {{schema}}
How it's used downstream: {{downstream_use}}

Propose data quality checks covering:
1. Completeness (nulls where they shouldn't be, missing expected rows).
2. Uniqueness (keys that should be unique).
3. Validity (value ranges, allowed categories, referential integrity).
4. Freshness/timeliness (how stale is too stale, given the downstream use).

For each check, state the rule, the severity if it fails (block pipeline vs. warn), and why that severity fits the downstream use.
```

## Usage

Describe the real downstream use so severity levels make sense -- a dashboard refreshed hourly needs different freshness rules than a monthly batch report.

## Limitations

Severity recommendations are a starting point; actual blocking thresholds should be agreed with the teams who'd be paged.