شعار Architecture Paradigm Domain Driven

Architecture Paradigm Domain Driven

المجتمع
athola
architecture-paradigm-domain-driven

Models a business in its own language. Use when the domain has real business rules to capture.

Add to TypingMind

نظرة عامة

الناشرathola
المستودعclaude-night-market
اسم المهارةarchitecture-paradigm-domain-driven
النجوم
343
التفريعات
37
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/athola/claude-night-market/tree/master/plugins/archetypes/skills/architecture-paradigm-domain-driven
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/athola/claude-night-market.git /tmp/claude-night-market
mkdir -p .claude/skills
cp -r /tmp/claude-night-market/plugins/archetypes/skills/architecture-paradigm-domain-driven .claude/skills/architecture-paradigm-domain-driven
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

يُحمّل النموذج مهارة Architecture Paradigm Domain Driven تلقائيًا بمجرد ورود طلب ذي صلة بها.

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

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

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

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

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

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

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

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

The Domain-Driven Design Paradigm

Design for the future, build for now.

DDD is modeling a business in the business's own language. The goal is not to avoid structure. It is to avoid structure you cannot back out of, and to defer structure you do not yet need.

What DDD Is

Ubiquitous language, bounded contexts, and a model built by talking to the people who do the work. The measure of a domain model is whether a person in the business would recognize their own job in it.

What DDD Is Not

Clean Architecture. Mandatory layering. A mapper between every tier. A count of design patterns applied before the first line of business logic is written.

These are DDD-adjacent choices. Each has its own justification, and none of them is entailed by DDD. Wanting to decouple an API from the domain is a good reason to add a DTO. "This is what DDD requires" is not, because it does not.

Strategic Design Is The Core

The building blocks are not the point, and this is not the repo's opinion. Evans said so himself, ten years after the book, about the book:

"things like the entities and value objects [..] [People] come away thinking that that's really the core of DDD, whereas, in fact, it's really not."

"I really think that the way I arranged the book gives people the wrong emphasis, so that's the biggest part of what I do is rearrange those things."

Source: SE-Radio Episode 226, "Eric Evans on Domain-Driven Design at 10 Years" (video). Quotes as transcribed by The Core of Domain-Driven Design, which also cites his DDD Europe 2016 keynote criticizing the "over-emphasis on building blocks."

What the core actually is: discovering subdomains and drawing bounded contexts, in language the business already speaks. Entities, value objects, and aggregates are how a model reaches code once it exists. They are the translation, not the thing being translated.

Read the rest of this skill in that light. Every mechanism below is optional machinery serving a model you found by talking to people.

When To Use

  • The domain has business rules a domain expert could argue about.
  • The team can talk to the people who do the work being modeled.
  • The system is expected to grow into complexity you cannot yet name.

When NOT To Use

  • Domains with no meaningful business rules (CRUD over a form).
  • Single-actor tools with no business vocabulary to share.
  • Anything where the model would be a database schema with a new name.

Build For Now

Once a domain exists, create the data store and one concrete data object. Pass that object from the repository into the business layer. At the start of a project, pass it out to the view as well.

That is a legitimate starting state, not technical debt. One object moving through every layer is the cheapest thing that can work, and it is the shape the divergence protocol below is designed to split.

The Divergence Protocol

The DTO arrives at the moment of divergence, not in anticipation of it.

Trigger: the view's response shape must hold for contract reasons while the domain model needs to change.

Move: the old data object becomes the view DTO. The new domain object gains a translation into it. Where fields differ, a copy constructor maps them, in either direction as needed.

That is the whole mechanism. It works because the starting state (one shared object) is the same shape as the ending state's DTO, so the split costs one rename and one translation function. This is why "we might need a DTO later" is not a reason to build one now: later is cheap.

Shared-Type Options When Shapes Overlap

Ordered by cost:

  1. Same type in every layer. The default. If the objects look the same everywhere, use the same object.
  2. Builder, when different contexts select different subsets of one fixed field set.
  3. Shared base class with per-context subclasses (entity, DTO, domain object, JSON representation). Each context adds its own fields on top of a shared core. This reduces duplication when several contexts genuinely share that core.

Option 3 carries a cost worth stating plainly: inheritance couples the layers. Changing the base changes every context at once, which is the opposite of the flexibility the divergence protocol buys. It also feeds straight into the boundary hazard below. Reach for it when duplication is the larger present pain, and reach for it knowing what it trades away.

The IO Boundary Rule

Do not reuse a data type across a network or other IO boundary without validating that you are not sharing something you should not.

This is the one non-negotiable constraint in this skill. Everything else here can be deferred, dropped, or added later. This cannot.

Option 3 is where it bites hardest: a field added to a shared base class appears silently in every serialized representation that inherits it, including the one crossing the wire. The convenience is real and so is the leak.

Request DTOs Earn Their Keep Here

When two or more systems exchange commands over a network and do not deploy atomically, a versioned request DTO lets you introduce a new shape while continuing to serve the old one, and migrate the systems one at a time. Without it, any change to the command shape requires every system to update simultaneously, which fails the moment one update fails or one release waits on an app store, an IT department, or another team.

That is a deployment constraint, not a DDD principle. Name it as such when you justify the DTO, so the next reader knows which force put it there and when it can go.

Strangling An Existing Application Into Domains

Never in one pass. A refactor that tries to do every layer at once does not land. Per domain, in order:

  1. Data layer. Split fetching into a reasonable domain boundary.
  2. Business layer. One business entity, responsible for one domain.
  3. Strangle existing call sites over to that domain.
  4. View layer. Last.

Then repeat for the next domain. Keep the implementation simple until a need for more appears.

Adoption Steps

  1. Build the language. Talk to the people in the business. Write down the terms they use, and use exactly those terms in code.
  2. Draw the bounded contexts. Name where one meaning of a term stops and another starts. A term meaning two things is two contexts.
  3. Create the store and one data object. Pass it through the layers.
  4. Wait for divergence. Apply the protocol above when the contract and the model actually pull apart, not before.
  5. Audit the boundaries. Every type crossing IO gets its fields read.

Key Deliverables

  • A glossary of domain terms that a domain expert would sign off on.
  • A context map naming each bounded context and its relationships.
  • An ADR recording which ceremony was adopted and which need drove it.
  • A field audit for every type crossing an IO boundary.

Risks and Mitigations

  • Ceremony without need:
    • Mitigation: Name the current need in the pull request that adds any DTO, mapper, command object, or layer boundary, and apply the ceremony-audit lens in Skill(pensive:architecture-review). A mapper whose fields are all 1:1 copies is a mapper with no job.
  • Anemic model:
    • Mitigation: If the domain objects carry no behavior and every rule lives in a service, the model is a schema with a new name. Move the rules onto the objects that own them, or accept that this domain does not need DDD.
  • Silent field leak across a boundary:
    • Mitigation: The IO boundary rule above. Treat shared base classes as a leak risk, not just a duplication fix.

Concrete Components

Vocabulary for the tools and abstractions an implementation of this paradigm tends to carry. Not dependencies, and not tools: frontmatter.

  • ubiquitous-language-glossary: the term list the business and the code both use, maintained as a first-class artifact
  • context-map: names each bounded context and the relationships between them, including where one term changes meaning
  • copy-constructor: the translation introduced at the moment of divergence, mapping fields between a domain object and its view DTO

Exit Criteria

  • The domain model uses terms a person in the business would recognize without translation.
  • Every mapper in the codebase has at least one field that is not a 1:1 copy, or a documented contract reason to exist.
  • Every type crossing an IO boundary has had its fields audited for what they expose.
  • A decomposition in progress names which domain is being strangled and which layer it has reached.

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

ماذا تفعل مهارة الذكاء الاصطناعي Architecture Paradigm Domain Driven؟

Models a business in its own language. Use when the domain has real business rules to capture.

لماذا تستخدم Architecture Paradigm Domain Driven على TypingMind؟

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

كيف أثبّت Architecture Paradigm Domain Driven في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/athola/claude-night-market/tree/master/plugins/archetypes/skills/architecture-paradigm-domain-driven. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Architecture Paradigm Domain Driven؟

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

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Architecture Paradigm Domain Driven؟

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

هل مهارة الذكاء الاصطناعي Architecture Paradigm Domain Driven مجانية؟

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

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

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

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

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

عرض الكل
شعار nexu-io

Hyperframes

nexu-io
مؤسسةشائع

أنشئ تركيبات فيديو ورسومًا متحركة وبطاقات عنوان وطبقات تراكبية وتعليقات توضيحية وتعليقًا صوتيًا ومرئيات تستجيب للصوت وانتقالات بين المشاهد باستخدام HyperFrames HTML. استخدم هذه المهارة عند طلب إنشاء أي محتوى فيديو قائم على HTML…

11.5K
98.9K
الملفات: 40
عرض
شعار nexu-io

Audio Jingle

nexu-io
مؤسسةشائع

مهارة لتوليد الصوت — أغانٍ قصيرة، ومقاطع موسيقية خلفية، وتعليق صوتي، ومؤثرات صوتية. توجّه طلبات الموسيقى إلى Suno V5 / Udio / Lyria، والكلام إلى MiniMax TTS / FishAudio / ElevenLabs V3، والمؤثرات الصوتية إلى ElevenLabs SFX أو…

11.2K
96.7K
الملفات: 1
عرض
شعار openclaw

Proof Video

openclaw
مؤسسةشائع

أضف ترجمات مصاحبة أو تسميات توضيحية أو إشارات للسرد أو تكبيرًا إلى فيديو إثبات أو تسجيل PR باستخدام أدوات الالتقاط المحلية للمستودع وعارض ffmpeg على النظام.

82.2K
391K
التعليمات
عرض
شعار openclaw

Facetime

openclaw
مؤسسةشائع

افحص المراحل الداخلية لـ FaceTime، وأجرِ مكالمة معتمدة إلى معرّف مالك مُعدّ، واطلب إنهاء المكالمة عبر facetime_call.

82.2K
391K
الملفات: 1
عرض

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

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