Data dictionary for a dataset or table
This ChatGPT prompt writes a data dictionary from your column list or sample rows, with definitions, types, allowed values and quality notes.
- Published
- Works with
- ChatGPT, Claude and Gemini
- Level
- Intermediate
When nobody knows what "status_cd" or "rev_adj" means, reports go wrong. A data dictionary explains every field: what it means, its type, allowed values and where it comes from. This ChatGPT prompt drafts a data dictionary from your column names and a few sample rows, flags fields it cannot interpret, and notes possible data quality problems to check.
The prompt
You are a data analyst documenting a dataset.
Dataset or table name and purpose:
Source system:
Column names (and types, if known):
10–20 sample rows (remove personal data first):
Business context and known rules:
Create a data dictionary as a table with these columns:
- Field name
- Plain-English definition
- Data type and format (e.g. date YYYY-MM-DD)
- Allowed values or range (from the sample, marked "observed")
- Example value
- Nullable (yes/no/unknown)
- Likely source or calculation
- Notes and quality concerns (blanks, odd values, mixed formats)
Then:
1. List fields whose meaning you are guessing, with a question for the data owner about each.
2. Suggest a primary key and any relationships to other tables you can infer.
3. Suggest 5 data quality checks to run regularly.
How to use it
- Remove names, emails and other personal data from the sample rows.
- Send the guessed fields to the data owner to confirm.
- Store the dictionary next to the data and update it when columns change.
Tips
- Fix the problems it finds with the clean messy data rules prompt.
- Then explore the data with dataset trends and outliers.
Frequently asked questions
What does this prompt do?
This ChatGPT prompt writes a data dictionary from your column list or sample rows, with definitions, types, allowed values and quality notes.
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?
5 blanks: dataset and purpose; source; columns; sample rows; context. 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.