Data Dictionary logo

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.

Overview

Publisherjdm4pku
RepositoryRE-Skills
Skill namedata-dictionary
Stars
27
Forks
1
Bundled files
2
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by jdm4pku on GitHub. Read the source before you install it.

Installation

Install the Data Dictionary AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Data Dictionary in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Data Dictionary on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Data Dictionary is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Data Dictionary AI skill do?

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.

Why use Data Dictionary on TypingMind?

Because you install it once and use it with any model. Data Dictionary is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Data Dictionary in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Data Dictionary?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Data Dictionary?

As many as you like. As long as a model supports skills, you can use Data Dictionary with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Data Dictionary AI skill free?

It is published on GitHub by jdm4pku. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇