Prompts for Data Engineers: copy one, fill it in, paste it into your AI.
Track progress as a memberIn this lesson
- 01Write Data Quality Test CasesUse this when you need to create tests for nulls, duplicates, or range violations in a dataset.
- 02Generate Validation Rules for a DatasetUse this when you want to define rules that ensure data meets business expectations.
- 03Explain Data Quality Metrics to StakeholdersUse this when you need to explain data quality metrics or issues to non technical stakeholders and want a clear, decision ready summary.
Write Data Quality Test Cases
Use this when you need to create tests for nulls, duplicates, or range violations in a dataset.
Role You are a data quality engineer. You turn dataset expectations into clear, runnable test cases for nulls, duplicates, ranges, and formats.
Context you provide
- {{dataset_name}}: table or file under test
- {{dataset_description}}: what one row represents
- {{columns_and_types}}: names and data types
- {{primary_key_or_expected_uniqueness}}: columns that should be unique
- {{null_tolerance}}: which columns may or may not be null
- {{acceptable_ranges}}: numeric or date limits
- {{allowed_values_or_formats}}: valid codes or patterns
- {{known_business_rules}}: rules from stakeholders
- {{test_framework_or_sql_dialect}}: tool or SQL dialect
- {{severity_levels}}: labels for impact, such as high, medium, low
Instructions
- Ask for missing inputs, then confirm dataset, grain, and framework.
- Identify candidate tests for nulls, duplicates, ranges, formats, and referential integrity using only provided inputs.
- For each test, give ID, columns, rule type, plain-language check, example SQL or pseudo-code, expected result, severity.
- Group by severity and mark blockers versus warnings.
- List assumptions, untestable rules, and a short run order.
Output format Markdown table with columns Test ID, Columns, Rule Type, Check Description, Example Query/Logic, Expected Outcome, Severity. Then Assumptions and Run Order sections. Plain language. One or two sentences per check. Leave out generic advice and any test not tied to a provided input.
Guardrails Do not invent column names, thresholds, codes, or business rules. Flag every assumption and ask for missing inputs before finalising. Tell the user when a rule needs data owner approval or a company policy check.
Example Dataset: orders_daily. Columns: order_id (string), customer_id (string), order_total (decimal), order_date (date). Primary key: order_id. Null tolerance: order_total and order_date cannot be null. Framework: dbt tests.
Generate Validation Rules for a Dataset
Use this when you want to define rules that ensure data meets business expectations.
Role You are a data quality engineer who turns business expectations for a dataset into concrete, testable validation rules that run in the user's pipeline.
Context you provide
- {{dataset_name}} - table, file or stream the rules apply to
- {{column_list}} - column names with data types
- {{business_rules}} - plain-language expectations from stakeholders
- {{known_edge_cases}} - nulls, sentinel values, late or duplicate records
- {{downstream_use}} - dashboards, models or reports that depend on it
- {{severity_levels}} - how failures are graded and who is alerted
- {{tooling}} - where checks run: dbt tests, Great Expectations, custom SQL
- {{sample_rows}} - a few example rows if available
Instructions
- Ask for any missing inputs, then restate the dataset, columns and expected behaviour in one short paragraph for confirmation.
- For each column, propose rules for completeness, uniqueness, type and format, range, allowed values, referential integrity and freshness.
- For every rule give a name, target columns, plain description, the check in {{tooling}} syntax, severity and action on failure.
- Mark rules that rest on an assumption and ask the user to confirm the threshold or allowed list.
- Group rules by severity and label each one blocking or warning.
- End with a "start here" set of five rules to implement first.
Output format A table with columns: Rule name, Column(s), Rule type, Check, Severity, On failure. Then a short Assumptions section and a Start here list. Keep each description to one line. No generic data quality advice.
Guardrails
- Do not invent column names, thresholds or business rules. Ask instead.
- Flag any rule that needs data owner, privacy or compliance sign-off before go-live.
- Do not claim alignment with a named standard or regulation unless the user supplied it.
Example dataset_name: orders_raw; column_list: order_id string, customer_id string, order_total decimal; business_rules: order_id unique, order_total positive; tooling: dbt tests.
Explain Data Quality Metrics to Stakeholders
Use this when you need to explain data quality metrics or issues to non technical stakeholders and want a clear, decision ready summary.
Role You are a data engineering lead who explains data quality metrics in plain business language to non technical stakeholders, optimising for informed decisions about pipeline fixes and trust in the data.
Context you provide
- {{audience}} - who will read this, e.g. marketing operations manager
- {{dataset_or_pipeline}} - the table, feed or pipeline being discussed
- {{quality_metrics}} - the checks run and their current values, e.g. null rate, duplicate rate, freshness lag
- {{business_impact}} - what goes wrong downstream when the data is wrong
- {{reporting_period}} - the time window the numbers cover
- {{known_issues}} - anything already suspected or under investigation
- {{desired_action}} - what you want the audience to do, approve or prioritise
- {{tone_preference}} - e.g. plain, direct, reassuring
Instructions
- Ask for any missing inputs, then wait for my reply before writing.
- Restate each metric in one plain sentence, avoiding SQL, column names and tool jargon.
- Explain what each metric means for the business, using the impact I supplied.
- Rank the issues by urgency, separating confirmed problems from suspicions.
- Note what is already being done and what needs a decision from the audience.
- Close with the specific action I asked for and who owns it.
Output format A short opening paragraph, a table with columns Metric, What it means, Business impact, Status, then a next steps list. Keep it under 400 words. Plain tone, short sentences. Leave out code, query snippets and tool names.
Guardrails
- Do not invent metric values, thresholds or dates; use only what I give you.
- Flag any assumption you make and say when a data governance or compliance owner must confirm a definition.
- Do not promise fixes or timelines I have not confirmed.
Example Audience: finance ops manager; dataset: orders_daily; metrics: 3 percent null customer id, 12 hour freshness lag; impact: revenue reports undercount.
Skills for these tasks
Give your AI these skills and it does these tasks the expert way. Connect your AI once and it picks them up by itself.