Logo di Data Dictionary

Data Dictionary

Community
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.

Panoramica

Autorejdm4pku
RepositoryRE-Skills
Nome della skilldata-dictionary
Stelle
27
Fork
1
File inclusi
2
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 2 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da jdm4pku su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Data Dictionary in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Data Dictionary in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Data Dictionary non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Data Dictionary non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Data Dictionary su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Data Dictionary è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Data Dictionary in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Data Dictionary?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Data Dictionary?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Data Dictionary: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Data Dictionary è gratuita?

È pubblicata su GitHub da jdm4pku. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇