Skip to main content
7BBusyBoss

Data validation rules

Generates validation rules for a dataset — type, range, format, uniqueness, references.

Ready to drop into dbt tests, Great Expectations, or a custom checker.

Data & Analyticsvalidationquality

The prompt

Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own sample data (columns + a few rows) underneath it.

Generate validation rules. Table:

| Column | Type | Required | Range / format | Unique? | References | Notes |

Flag suspicious cases ("birth_year before 1900?", "amount = 0 unusual"). End with: "3 rules I'd enforce first".

Rules:
- Be specific to the data shown.
- Don't over-validate — rules that catch nothing are noise.

Or run it here

0/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.

Browse the full free AI prompt library or see more data & analytics prompts.