跳到正文
Skillpedia
通用编程48k · #4346

ddd-context-mapping

它能做什么

这个工具可以帮你理解软件系统中不同部分之间如何沟通、如何相互依赖。它会为这种沟通定义清晰的规则,防止系统在增长或变化时出现问题。

适用场景

  • ✓在规划两个不同系统之间如何对接时。
  • ✓当你想确保一个系统不会不当地干扰另一个系统时。
  • ✓当你准备把旧系统迁移到新系统时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ddd-context-mapping/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ddd-context-mapping/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“帮我定义“Orders”系统应该如何与“Payments”和“Inventory”系统沟通。”

每周 5 个新技能,1 分钟读完。

工作原理

你需要列出需要相互沟通的系统,以及它们之间的关系。然后,工具会建议合适的沟通模式,并明确“对话”中每个环节由谁负责,确保规则清晰、安全。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

DDD Context Mapping

Use this skill when

  • Defining integration patterns between bounded contexts.
  • Preventing domain leakage across service boundaries.
  • Planning anti-corruption layers during migration.
  • Clarifying upstream and downstream ownership for contracts.

Do not use this skill when

  • You have a single-context system with no integrations.
  • You only need internal class design.
  • You are selecting cloud infrastructure tooling.

Instructions

  1. List all context pairs and dependency direction.
  2. Choose relationship patterns per pair.
  3. Define translation rules and ownership boundaries.
  4. Add failure modes, fallback behavior, and versioning policy.

If detailed mapping structures are needed, open references/context-map-patterns.md.

Output requirements

  • Relationship map for all context pairs
  • Contract ownership matrix
  • Translation and anti-corruption decisions
  • Known coupling risks and mitigation plan

Examples

Use @ddd-context-mapping to define how Checkout integrates with Billing,
Inventory, and Fraud contexts, including ACL and contract ownership.

Limitations

  • This skill does not replace API-level schema design.
  • It does not guarantee organizational alignment by itself.
  • It should be revisited when team ownership changes.
常见问题

什么是“限界上下文”(bounded context)?

它们就像把大型系统各部分隔开的“盒子”,每个盒子都有自己的一套规则和术语,以避免混淆。

什么是“集成契约”?

它是一份明确规定两个系统如何交换信息的约定,确保双方对数据的理解一致。

这个工具会自动编写沟通代码吗?

不会。它专注于规划系统之间的沟通方式并定义规则,不负责编写实际代码。

详情

作者的原始描述

Map relationships between bounded contexts and define integration contracts using DDD context mapping patterns.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4346
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能