技能 编程开发 领域上下文集成契约设计

领域上下文集成契约设计

v20260927
ddd-context-mapping
用于在复杂的软件系统中,根据领域驱动设计(DDD)原则,定义不同业务边界(Bounded Contexts)之间的集成关系和契约。它帮助架构师规划反腐败层(ACL),防止领域泄露,并明确各服务间的依赖和所有权,确保系统架构的健壮性和可扩展性。
获取技能
431 次下载
概览

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.
信息
Category 编程开发
Name ddd-context-mapping
版本 v20260927
大小 1.46KB
更新时间 2026-09-28
语言