شعار Data Dictionary

Data Dictionary

المجتمع
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.

نظرة عامة

الناشرjdm4pku
المستودعRE-Skills
اسم المهارةdata-dictionary
النجوم
27
التفريعات
1
الملفات المرفقة
2
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها jdm4pku على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Data Dictionary في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Data Dictionary في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Data Dictionary تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Data Dictionary بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Data Dictionary على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Data Dictionary عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Data Dictionary في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/jdm4pku/RE-Skills/tree/main/skills/data-dictionary. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Data Dictionary؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Data Dictionary؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Data Dictionary معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Data Dictionary مجانية؟

نشرها jdm4pku على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇