Logo vun Data Dictionary

Data Dictionary

Communautéit
jdm4pku
data-dictionary

Define data elements, structures, and compositions using formal data dictionary notation. Use when documenting the data model to eliminate ambiguity about what each data item means, contains, and how it relates to other data.

Iwwersiicht

Editeurjdm4pku
RepositoryRE-Skills
Skill-Nummdata-dictionary
Stären
27
Forks
1
Matgeliwwert Fichieren
2
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum jdm4pku op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Data Dictionary an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jdm4pku/RE-Skills.git /tmp/RE-Skills
mkdir -p .claude/skills
cp -r /tmp/RE-Skills/skills/data-dictionary .claude/skills/data-dictionary
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Data Dictionary an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Data Dictionary automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Data Dictionary net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Purpose

Create a structured data dictionary that formally defines every data element referenced in requirements: primitive types, composite structures, repeating groups, and valid values. Use this to eliminate ambiguity, detect missing requirements, and provide developers with precise data specifications.

This is not a database schema -- it is a requirements-level definition of what data means and how it is structured, independent of implementation technology.

Key Concepts

Data Dictionary Notation

SymbolMeaningExample
=is composed ofcustomer = name + address + phone
+and (sequence)name = first_name + last_name
`[ab]`either a or b (selection)
{x}zero or more of x (repetition)order = header + {line_item}
N{x}MN to M occurrences of xphone_list = 1{phone_number}3
(x)optionalname = first_name + (middle_name) + last_name
"x"literal valuecountry_code = "US"
*x*comment*ISO 8601 date format*

Data Element Types

Primitive: An atomic data element that cannot be decomposed further.

CAS_number = *Chemical Abstracts Service registry number*
             string, format: NNN-NN-N, where N is a digit

Structure: A composite of other elements in a fixed sequence.

chemical_record = chemical_name + CAS_number + quantity + 
                  storage_location + expiration_date +
                  (SDS_link) + date_added + added_by

Repeating Group: A collection of zero or more instances.

chemical_inventory = {chemical_record}
experiment_chemicals = 1{chemical_record}50

CRUD Matrix

A CRUD (Create, Read, Update, Delete) matrix cross-references data entities with system functions to detect missing requirements:

ChemicalAlertReportUser
Add ChemicalC
Search CatalogR
Update QuantityU
Dispose ChemicalDD
Generate AlertRC
Generate ReportRRC
Manage UsersCRUD

Analysis rules:

  • Every entity should have all four CRUD operations (or documented reasons why not)
  • An entity that is Created but never Read is suspicious (why store it?)
  • An entity that is Read but never Created means it comes from outside the system
  • Empty rows or columns indicate missing features or entities

Anti-Patterns

  • Undefined Composites -- Requirements reference "customer information" without defining what fields it includes
  • Implicit Assumptions -- "Name" -- first name? Full name? Family name first?
  • No Valid Values -- "Status" -- what are the possible values? What transitions are allowed?

Application

Use template.md for the fill-in structure.

Step 1: Inventory Data References

Scan through your requirements, use cases, and user stories. Every noun that represents data is a candidate for the data dictionary:

  • Inputs users provide
  • Outputs the system displays
  • Data the system stores
  • Data exchanged with external systems

Step 2: Define Primitives

For each atomic data element:

markdown
### [Element Name]
- **Type:** [string / integer / decimal / date / boolean / enumeration]
- **Format:** [Pattern, length, precision]
- **Valid Values:** [Range, enumeration, or constraint]
- **Default:** [Default value, if any]
- **Example:** [Representative value]
- **Notes:** [Additional context]

Step 3: Define Structures

Use the composition notation to build up from primitives:

address = street_line_1 + (street_line_2) + city + state_code + 
          postal_code + country_code

Step 4: Define Repeating Groups and Selections

order = order_header + 1{order_line}999
payment_method = [credit_card | debit_card | bank_transfer | purchase_order]

Step 5: Build CRUD Matrix

  1. List all data entities (rows)
  2. List all system functions or use cases (columns)
  3. For each cell, mark C, R, U, D as applicable
  4. Analyze for gaps

Step 6: Validate

  • Every data element in requirements has a dictionary entry
  • Every structure is decomposed to primitives
  • Valid values and formats are specified for all primitives
  • CRUD matrix has no unexplained empty cells
  • Dictionary entries are consistent (same element defined the same way everywhere)

Examples

See examples/sample.md for a complete data dictionary excerpt.

Mini example:

chemical_name = string, 1-200 characters, must match an entry in
                PubChem database or be manually verified by EHS officer

CAS_number = string, format: NNN-NN-N where N = digit
             *Chemical Abstracts Service registry number, globally unique*
             Example: "7732-18-5" (water)

quantity = decimal(10,2), >= 0, unit specified by quantity_unit
quantity_unit = ["mL" | "L" | "g" | "kg" | "units"]

chemical_record = chemical_name + CAS_number + quantity + quantity_unit +
                  storage_location + expiration_date + hazard_class +
                  (SDS_link) + date_added + added_by

Common Pitfalls

Pitfall 1: Skipping the Data Dictionary

Symptom: Requirements use terms like "customer data," "order information," or "report fields" without definition.

Consequence: Developers define data structures based on assumptions. Different developers make different assumptions. Data inconsistencies in production.

Fix: Every composite term in requirements must decompose to defined primitives in the data dictionary.


Pitfall 2: Incomplete Valid Values

Symptom: "Status" field defined as "string" with no enumeration of possible values.

Consequence: Developers and testers invent their own status values. The database has "Active," "active," "ACTIVE," and "A."

Fix: Define enumerations explicitly: status = ["Active" | "Inactive" | "Pending" | "Suspended"].


Pitfall 3: CRUD Matrix Not Built

Symptom: Requirements seem complete but there is no Create operation for a key entity.

Consequence: During testing, someone asks "How does this data get into the system?" and nobody knows.

Fix: Build the CRUD matrix early. It reliably exposes missing requirements before development starts.

References

Related Skills

  • skills/srs-document/SKILL.md -- Data dictionary is Section 4 of the SRS
  • skills/context-diagram/SKILL.md -- Data flows in context diagrams reference dictionary entries
  • skills/requirements-analysis-process/SKILL.md -- Data analysis is part of the analysis process

External Frameworks

  • Tom DeMarco, Structured Analysis and System Specification (1979) -- Data dictionary notation
  • Karl Wiegers & Joy Beatty, Software Requirements, Third Edition (2013) -- Chapter 13: A Picture Is Worth 1024 Words (data modeling)
  • Peter Chen, "The Entity-Relationship Model" (1976) -- Entity-relationship modeling

Skill type: Component Dependencies: None Used by: skills/srs-document/SKILL.md, skills/requirements-analysis-process/SKILL.md

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Data Dictionary?

Define data elements, structures, and compositions using formal data dictionary notation. Use when documenting the data model to eliminate ambiguity about what each data item means, contains, and how it relates to other data.

Firwat Data Dictionary op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Data Dictionary besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Data Dictionary an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Data Dictionary benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Data Dictionary benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Data Dictionary domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Data Dictionary gratis?

De Skill gëtt vum jdm4pku op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇