← ClaudeAtlas

ts-ddd-bounded-contextlisted

Map bounded contexts for a TypeScript DDD project — identify context boundaries, define ubiquitous language, map relationships (ACL, Partnership, Shared Kernel, etc.), and surface aggregate roots and domain events. Trigger when the user says "map the domain", "define bounded contexts", "what are the aggregates", "design the domain model", "identify the ubiquitous language", "how should we split this domain", or when planning a new feature that touches multiple domain areas. Also trigger when the user describes a business process and wants to know how to structure it in DDD.
Methasit-Pun/ts-ddd-clean-architecture · ★ 0 · Web & Frontend · score 68
Install: claude install-skill Methasit-Pun/ts-ddd-clean-architecture
# Bounded Context Mapper — TypeScript DDD Produce a structured domain map that gives the team a shared understanding of where responsibilities live, how contexts relate, and what language each context owns. ## Process (follow in order) ### 1. Extract domain concepts From the user's description, identify and list: - **Nouns** → candidate Entities and Value Objects - **Verbs** → candidate Domain Events and Commands - **Business rules** → candidate invariants for Aggregates ### 2. Group into bounded contexts Cluster concepts that share a ubiquitous language and a clear owner. Each bounded context should: - Have a single team or module owning it - Have a name that domain experts recognize - Be cohesive — the language inside it doesn't leak to other contexts ### 3. Define relationships For each pair of interacting contexts, name the relationship pattern: | Pattern | When to use | |---------|-------------| | **Shared Kernel** | Two contexts share a small, stable subset of the model | | **Customer/Supplier** | One context consumes another's output; upstream is the supplier | | **Conformist** | Downstream adapts entirely to upstream's model | | **Anti-Corruption Layer (ACL)** | Downstream translates upstream's model to protect its own language | | **Open Host Service** | Upstream publishes a stable, versioned API for many consumers | | **Published Language** | Shared data format (e.g. events on a bus) both sides agree on | | **Partnership** | Two contexts evolve together wit