writing-data-metadata
Installation
SKILL.md
Activation Contract
Load when writing or reviewing what a data consumer reads to find and understand data: descriptions of tables, views, columns and datasets, glossary terms and catalog entries, in YAML, SQL COMMENT or a catalog. Not for code comments, docstrings or commits: a developer reads those.
Hard Rules
- Write for a consumer with no access to the code, the issue tracker or the team. Every description stands alone.
- A definition MUST be singular, say what the item is (not only what it is not), be a full phrase or sentence rather than a label, use only abbreviations the reader already knows, and name other items instead of defining them inside.
- A definition SHOULD give the core meaning, be precise and concise, never define a term with itself, and reuse the wording and structure of related definitions.
- Never invent facts about the data. When the grain, source, allowed values or unit are unknown, leave a visible placeholder (
<allowed values>) and ask. - Never include work state or implementation: ticket or decision-record ids, review codes, dated measurements, "still" or "until X ships", function, macro, model or pipeline names, how the code computes the value, citations of books or standards. Move them to code comments, test descriptions or decision records.
- Define a business concept once, in the glossary when one exists. A column description says what the column holds in its table and names the concept.
- Keep each description within its platform's limit (BigQuery column: 1,024 characters).