Data quality checks for any dataset
Define data quality checks for a dataset with rules for completeness, validity, duplicates and freshness, plus SQL or Python code and an alert plan.
- Published
- Works with
- ChatGPT, Claude and Gemini
- Level
- Intermediate
Bad data rarely announces itself: a column quietly fills with nulls, an upstream system starts sending duplicates, or yesterday's load never arrives, and someone spots it in a dashboard a week later. A short set of automated checks catches most of this early. This data quality prompt turns a table description into specific rules for completeness, validity, uniqueness, consistency and freshness, with code you can run and a plan for who gets alerted.
The prompt
Act as a data engineer focused on data quality. Define checks for this dataset.
Dataset / table:
Schema:
How it's loaded:
Who uses it and for what:
Known problems:
Tools:
Deliver:
1. A check list grouped by dimension: completeness, validity (types, ranges, allowed values, formats), uniqueness, referential integrity, consistency across columns or tables, freshness and volume.
2. For each check: the rule in plain English, why it matters for the users, severity (block / warn), and threshold.
3. Code for each check in my tool, returning failing rows or a count.
4. Volume and freshness checks that compare against recent history rather than fixed numbers.
5. An alert plan: who is notified for which severity, and what they should do first.
6. The 5 checks to implement first if I only have an hour.
Base the rules on my schema; mark any assumed business rule for me to confirm.
How to use it
- Paste a real sample of rows; it helps the model spot formats and edge cases.
- Confirm the assumed business rules with the data owner before turning checks on.
- Start with the top 5 checks and add more after the first false alarms are tuned.
Tips
- Checks that warn too often get ignored; set thresholds from recent history.
- Run checks right after each load, before dashboards refresh.
Frequently asked questions
What does this prompt do?
Define data quality checks for a dataset with rules for completeness, validity, duplicates and freshness, plus SQL or Python code and an alert plan.
Which AI tools does it work with?
It is written for ChatGPT, Claude and Gemini. It also works in other AI tools that accept text prompts, with small changes.
What do I need to fill in?
6 blanks: name, what one row represents; paste columns with types, or a sample of rows; source, frequency, batch or streaming; dashboards, models, finance reports; e.g. duplicate orders, missing country, late loads; sql dialect e.g. postgres / bigquery / snowflake, or python/pandas, or a data quality framework. Click each blue blank on the page, type your details and press Copy prompt.
Is this prompt free to use?
Yes. You can copy and use it for personal and commercial work.