Produce a DDD Context Map showing relationships between Bounded Contexts from existing UBIQUITOUS_LANGUAGE.md glossaries or conversation context. Saves to CONTEXT_MAP.md. Triggers on "context map", "context mapping", "bounded context relationships", "how do these contexts relate", "upstream downstream".
التثبيت
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Produce a DDD Context Map showing relationships between Bounded Contexts from existing UBIQUITOUS_LANGUAGE.md glossaries or conversation context. Saves to CONTEXT_MAP.md. Triggers on "context map", "context mapping", "bounded context relationships", "how do these contexts relate", "upstream downstream".
Context Map
Identify all Bounded Contexts in scope and classify the relationship between each pair using Evans/Vernon's canonical patterns. One map per system. Every relationship typed, every direction explicit.
Instructions
Discover contexts. Scan the working directory for UBIQUITOUS_LANGUAGE.md files — each one names a Bounded Context in its header. If none exist, extract context boundaries from the current conversation. Ask the user if the boundary between two contexts is unclear. Minimum 2 contexts required — a map of one context is meaningless; tell the user to run ubiquitous-language first.
Classify relationships. For every pair of contexts that communicate, assign exactly one relationship pattern from relationship-patterns.md. Determine direction: which is upstream (supplier) and which is downstream (consumer). If a pair has no communication, omit it — do not invent relationships. Use 🔀 CROSS-CONTEXT flags from glossaries as evidence when available.
Write. Produce CONTEXT_MAP.md in the working directory following the exact structure in output-format.md. Then print an inline summary: N contexts | M relationships | K unresolved.
Non-Negotiable Acceptance Criteria
Output file matches output-format.md exactly. No sections added, removed, or renamed.