/polymath-architecture:bounded-context-mapfrom polymath-architecture
Map a domain into DDD bounded contexts + a context map (customer-supplier, conformist, anti-corruption layer, shared kernel) with per-context ubiquitous language.
Ships in polymath-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Carve a domain into bounded contexts before anyone draws service boundaries. A context map shows how contexts relate and where models must NOT leak.
Mode: analytical — judgment inside a fixed frame. Keep the output shape; every verdict cites its evidence; unknowns are marked [TBD] or [VERIFY], never filled in.
service-decomposition).polymath-architecture:bounded-context-map.Not this when: you already have one context and need its internals — that is aggregate-design. For the written decision record, hand off to polymath-writing:adr.
Context map: commerce platform
Contexts
Ordering core owner: checkout team
Payments supporting owner: payments team
Catalog supporting owner: merchandising team
Identity generic owner: platform team (Okta behind an ACL)
Relationships (upstream → downstream: pattern)
Catalog → Ordering : open-host / published language (product snapshot v2)
Ordering → Payments : customer–supplier (Ordering's needs are on the Payments backlog)
Okta → Identity : anti-corruption layer
Payments → Ledger : conformist (no leverage over the vendor ledger API)
Ubiquitous language (term that changes meaning at a boundary)
"order" Ordering: the customer's intent to buy · Payments: a charge reference only
"account" Identity: a login · Payments: a merchant settlement account
Boundaries that will hurt
- Ordering is downstream of 3 contexts → coupling risk on every release
- No owner for "Promotions" (lives half in Catalog, half in Ordering)
Inline by default; when a workflow step or the user wants it kept, write it to docs/architecture/<slug>-context-map.md (slug from the system or context name, lowercased, non-a-z0-9 runs → -).
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mohammadbafkar/polymath --plugin polymath-architecture8 skills in this plugin
/aggregate-designDesign DDD tactical aggregates for a bounded context — aggregate roots, entities vs value objects, invariants, transaction/consistency boundaries, reference-by-id./design-patterns-applyReview a design sketch against SOLID, GoF, and architectural patterns; flag anti-patterns at design time; not line-level code review (code-review)./distributed-consistencyChoose a consistency model for a cross-node operation — strong/eventual/causal, CAP/PACELC trade-off, idempotency + dedup, and when consensus (Raft/quorum) is warranted vs simpler./event-driven-designDesign an event-driven flow — event catalog, choreography vs orchestration, saga + compensation, the outbox pattern for dual-writes, idempotent consumers, and CQRS read models./integration-designDesign integration between two services — sync vs async, API gateway / BFF placement, anti-corruption layer, contract + versioning, ports-and-adapters, and backpressure handling./resilience-designDesign resilience for a dependency call path — timeout, retry with backoff+jitter, circuit breaker, bulkhead, fallback, load-shedding — with a failure-mode table.