ワンクリックで
write-data-dict
Create or update a data-dict.yaml file for a dataset following the spec.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create or update a data-dict.yaml file for a dataset following the spec.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | write-data-dict |
| description | Create or update a data-dict.yaml file for a dataset following the spec. |
Create or update a data-dict.yaml file for a dataset following the
spec. Read the spec before you start.
Discover the data. Identify every table (parquet file, database table, or data-frame) in scope. For each table, read the schema to get column names and physical types.
Create the skeleton. Start a data-dict.yaml with the three
top-level keys: tables, relationships, and glossary.
Fill in each table. For every table:
a. Write a description: a few sentences explaining what each row
represents and where the data comes from.
b. Add a source map with the appropriate access methods (e.g.
parquet, SQL, R, Python). You should only need to provide
one by default.
c. For each column, create an entry with:
- `name`: must match the actual column name exactly.
- `type`: choose the appropriate analytical type (`number`,
`string`, `boolean`, `date`, `datetime`, `enum`,
`enum<l1, l2, ...>`). For numbers, add a measure when possible:
`number(id)`, `number(ordinal)`, or `number(quantity)`.
- `constraints`: list any that apply (`primary_key`, `required`,
`unique`, `foreign_key`).
- `description` (required): a clear explanation of what the column
contains.
- `examples`: ~5 representative values, chosen by selecting evenly
spaced values from the sorted unique values. Omit for enums with
listed levels.
d. Add details to the table or any column where there are important
caveats, edge cases, or methodology notes that don't fit in the
description.
Define relationships. For every foreign key, add a relationship entry
with description, cardinality (one-to-many or many-to-one),
join, and any conflicts (column names that appear in both tables with
different meanings).
Build the glossary. Add definitions for domain-specific terms used in descriptions. If a word would be unfamiliar to a new team member or an AI agent, define it. If you don't know what a term refers to, ask the user for clarification.
Verify. Check the dictionary against the actual data:
required columns truly non-null?> for wrapping, | for preserving newlines)
for multi-line text.enum types with a small known set of values, list them inline:
enum<M, F, U>. Use the description to explain what each level means
using a markdown list.