Skill

Map DDD Contexts and Integration Patterns

A DDD context-mapping skill for defining bounded-context relationships, ownership, and anti-corruption layers.


77
Spark score
out of 100
Updated 21 days ago
Version 14.1.0

Add to Favorites

Why it matters

Define integration patterns between bounded contexts, prevent domain leakage, and plan anti-corruption layers. Clarify upstream and downstream ownership for contracts.

Outcomes

What it gets done

01

List context pairs and dependency direction.

02

Choose relationship patterns for each pair.

03

Define translation rules and ownership boundaries.

04

Document failure modes, fallback behavior, and versioning.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/ag-ddd-context-mapping | bash

Overview

DDD Context Mapping

A DDD context-mapping skill for defining bounded-context relationship patterns, contract ownership, and anti-corruption-layer decisions. Use it when integrating multiple bounded contexts or clarifying contract ownership, not for a single-context system or cloud tooling selection.

What it does

DDD Context Mapping defines integration patterns between bounded contexts: it lists all context pairs and their dependency direction, chooses a relationship pattern per pair, defines translation rules and ownership boundaries, and adds failure modes, fallback behavior, and a versioning policy. Output is a fixed set of artifacts - a relationship map for all context pairs, a contract ownership matrix, translation and anti-corruption-layer decisions, and known coupling risks with a mitigation plan. A representative invocation:

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

When to use - and when NOT to

Use this skill when defining integration patterns between bounded contexts, preventing domain leakage across service boundaries, planning anti-corruption layers during a migration, or clarifying upstream and downstream ownership for contracts. Don't use it for a single-context system with no integrations, for internal class design alone, or when selecting cloud infrastructure tooling. It explicitly does not replace API-level schema design, does not guarantee organizational alignment by itself, and should be revisited whenever team ownership changes. Detailed mapping structures are available in a companion references/context-map-patterns.md file.

Inputs and outputs

Input is the set of bounded contexts in a system and their dependencies; output is a context map - relationship patterns per context pair, a contract ownership matrix, anti-corruption-layer and translation decisions, and a coupling-risk mitigation plan.

Who it's for

Architects and teams defining how bounded contexts integrate - especially during a migration or when clarifying contract ownership - who need a structured context map rather than ad hoc integration decisions.

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.