Logo Data Dictionary

Data Dictionary

Cộng đồng
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.

Tổng quan

Nhà phát hànhjdm4pku
Kho mãRE-Skills
Tên kỹ năngdata-dictionary
Sao
27
Bản fork
1
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được jdm4pku công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Data Dictionary trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Data Dictionary trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Data Dictionary ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Data Dictionary không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Data Dictionary làm được gì?

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.

Vì sao nên dùng Data Dictionary trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Data Dictionary là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Data Dictionary trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Data Dictionary?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Data Dictionary với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Data Dictionary với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Data Dictionary có miễn phí không?

Kỹ năng này được jdm4pku phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇