/architecture-skills:domain-driven-designfrom architecture-skills
Guides domain-driven design modeling: bounded contexts, aggregates, entities, value objects, domain events, and ubiquitous language. Useful when modeling complex business logic.
Ships in architecture-skills. 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.
None: SKILL.md is the whole skill.
Model business behavior before choosing tactical patterns. DDD addresses inherent business complexity: rules, decisions, workflows, language, and ownership. It is not a required folder structure or a checklist of entities, repositories, factories, and events.
A bounded context owns the meaning, behavior, rules, lifecycle, authority, and supporting data for a cohesive capability. It is a logical and linguistic boundary, not inherently a team, repository, process, database, or microservice.
The same real-world identity can have several legitimate models. An employee in HR and a user in access management, or a product in sales and warehouse, share identity without sharing all state and behavior.
Strategic DDD can clarify any large system. Rich tactical modeling is useful only where local behavior is sufficiently complex.
Keep a GLOSSARY.md per bounded context, or one at the root for a single
context. Create it when the first term is resolved and update it the moment a
term changes. Each entry gives one canonical term, a one- or two-sentence
definition of what it is, and rejected synonyms under _Avoid_. Include only
domain terms; implementation details belong elsewhere.
docs/adr/NNNN-slug.md only when a decision is hard to reverse, surprising without context, and the result of a real trade-off. A few sentences of context, decision, and reason are enough.| Situation | Prefer |
|---|---|
| Static shape, range, or format | Request validation or a validated type |
| Simple state change within one transaction | Transaction script and database guarantees |
| Rule shared across state transitions | Domain behavior or policy |
| Multiple objects must remain consistent together | Aggregate, if the state is practical to load and transact |
| Very large collection or external state | Transactional query, database constraint, reservation, or redesigned ownership |
| Caller permission | Application authorization |
| Business eligibility of a participant | Domain rule |
| Display and reporting | Purpose-built query/read model |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 skills in this plugin
/codebase-designUse for code-level module design, deep modules, interfaces, seams, adapters, testability, refactoring shallow modules, and finding architecture improvements in an existing codebase./design-reviewDesign review of a codebase area, branch, or PR. Maps its bounded contexts, vertical slices, and modules, then judges where rules live and whether flexibility sits where change actually happens. Use when the user asks for a design or architecture review, or when a review should judge structure rather than bugs or style./event-driven-systemsUse for event-driven or message-driven architecture, commands and events, queues, pub/sub, Kafka, choreography, orchestration, sagas, outbox, idempotency, retries, ordering, backpressure, consumer lag, and messaging operations./event-sourcingUse for event sourcing, event streams, event-sourced aggregates, business intent events, projections, replay, snapshots, optimistic stream concurrency, event schema evolution, and deciding whether event sourcing fits./persistence-designUse for database and persistence design, data ownership, transaction boundaries, repositories, CQRS read models, query performance, optimistic concurrency, caching, projections, schema migrations, partitioning, and multi-tenancy./service-boundariesUse for service boundaries, bounded capabilities, modular monoliths, microservices, monolith decomposition, data ownership, shared databases, API coupling, anti-corruption layers, and architecture topology decisions.npx claudepluginhub eralmansouri/skills --plugin architecture-skills