Ddd Context Map logo

Ddd Context Map

Organization
ForceInjection
ddd-context-map

映射限界上下文间的关系与集成策略:模式选择、契约所有权、失败模式与版本策略。

Overview

PublisherForceInjection
Repositorydomain-driven-design-skills
Skill nameddd-context-map
Stars
99
Forks
16
Bundled files
1
LicenseApache-2.0
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.

  • 1 bundled files

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

  • Open source

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

Installation

Install the Ddd Context Map 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/ForceInjection/domain-driven-design-skills/tree/main/skills/ddd-context-map
  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/ForceInjection/domain-driven-design-skills.git /tmp/domain-driven-design-skills
mkdir -p .claude/skills
cp -r /tmp/domain-driven-design-skills/skills/ddd-context-map .claude/skills/ddd-context-map
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ddd Context Map 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 Ddd Context Map 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 Ddd Context Map 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.

DDD Context Map

🌐 English version: English

使用时机

  • 限界上下文已定义完毕,需要设计它们之间的协作与集成关系。
  • 需要明确"谁依赖谁、用什么模式集成、契约谁负责"。
  • ddd-model-review 报告"集成模式与映射不一致"时,作为回溯目标重新执行。

输入要求

  • 必需:上下文目录(来自 ddd-contexts)、事件流热点标注中的跨边界点(来自 ddd-discover)。
  • 可选:子域分类表(来自 ddd-subdomains,用于理解上下文的业务权重)、现有接口/消息/数据交换方式、团队协作模式。

流程

  1. 列举关系:列出所有上下文对(pair),标注依赖方向与数据/事件流向。
  2. 选择模式:为每对关系选择集成模式——ACL (Anti-Corruption Layer)、OHS (Open Host Service)、PL (Published Language)、Shared Kernel、Conformist、Customer-Supplier——并说明选择理由。
  3. 定义翻译:明确输入翻译、输出翻译、语义差异处理、字段映射规则。
  4. 契约所有权:明确每个契约的 Owner、消费者、变更流程、发布策略。
  5. 失败模式分析:针对每个集成点分析超时、降级、幂等、重试、补偿、数据延迟等失败模式。
  6. 版本策略:定义兼容窗口、弃用策略、契约测试要求、发布节奏。

输出

工件结构要求
上下文关系矩阵表格:上游、下游、模式、数据/事件、风险
契约所有权矩阵表格:契约、Owner、消费者、变更流程、发布策略
翻译与 ACL 决策表格:对象/事件、翻译规则、语义差异说明、实现位置
失败模式与缓解表格:失败模式、影响、检测方式、缓解措施、补偿策略
版本策略列表:版本命名规则、兼容窗口、弃用策略、契约测试要求

校验清单

  • 所有跨上下文交互都有显式的模式与所有权
  • 核心域的输入受 ACL 或等效翻译边界保护
  • 至少识别 5 个失败模式并给出可执行的缓解措施
  • 无循环依赖(若存在需标注为风险并给出解耦方案)
  • 版本策略覆盖向后兼容窗口与弃用流程

回溯触发

  • 检测到循环依赖,或单一上下文承担 > 3 个上游关系 → 回溯至 ddd-subdomains 或 ddd-contexts(可能存在"上帝上下文"或子域误分)。
  • 被 ddd-model-review 触发:战术层发现了新的集成需求,与当前映射不一致。

示例

text
@ddd-context-map
基于以下上下文目录,帮我设计上下文间的集成关系:
- Booking(预订全生命周期)
- Room Catalog(会议室资源管理)
- Identity(用户认证与授权)
请输出关系矩阵、集成模式选择、契约所有权与失败模式分析。

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 Ddd Context Map AI skill do?

映射限界上下文间的关系与集成策略:模式选择、契约所有权、失败模式与版本策略。

Why use Ddd Context Map on TypingMind?

Because you install it once and use it with any model. Ddd Context Map 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 Ddd Context Map in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ForceInjection/domain-driven-design-skills/tree/main/skills/ddd-context-map. 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 Ddd Context Map?

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 Ddd Context Map?

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

Is the Ddd Context Map AI skill free?

Yes. It is published on GitHub by ForceInjection under the Apache-2.0 license. 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 👇