From lattice
Enforces DDD tactical patterns including aggregates, value objects, entity identity, and bounded contexts when designing or modifying domain models.
How this skill is triggered — by the user, by Claude, or both
Slash command
/lattice:domain-driven-designThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Skill support project-custom. Resolution:
Skill support project-custom. Resolution:
.lattice/config.yaml repo rootpaths.ddd_principles custom doc pathmode:
mode: override (or no mode): Custom doc full precedence.
Use instead embed default. Must comprehensive -- sole reference.mode: overlay: Read embed ./references/defaults.md first, then apply
custom doc section on top. Section custom replace match
section default (match by heading). New section append after default../references/defaults.mdpaths.language_idioms exist in config, read "Type System & Object Model" section and adapt entity, value object, and aggregate implementation patterns to language constructs (e.g., struct vs class, trait vs interface, data class vs record). Language idioms take precedence over pseudocode defaults.STOP after generating each component. Verify ALL before proceeding. STOP: If any check fails, fix before presenting. If check is a judgment call with multiple valid approaches (see Ambiguity Signals), flag — present options and reasoning rather than silently choosing.
Order.create(...)) or standalone factory class? Initial creation and reconstitution from persistence handle separate?After verify checklist above, scan output these specific anti-pattern. If find any, fix before present code.
Address or Money) may or may not need identity depend domain complexity. Apply identity test, but acknowledge when borderline.Skill operate within single repo, single bounded context (e.g., one API -- Order, User, Pricing). Cover tactical DDD pattern only -- not strategic DDD (no context map, no microservice topology, no bounded context integration).
If task appear span multiple bounded context (e.g., Order feature call Shipping logic), flag before proceed: "This task touches [Context A] and [Context B]. Cross-context integration is strategic DDD — outside this skill's scope. Would you like to scope to one context, or proceed knowing cross-context coordination is your responsibility?"
framework:architecture provide structural envelope -- where code live, which layer exist, which direction dependency flow. This skill define how craft domain within envelope: rich model, invariant, aggregate boundary, ubiquitous language.
See ./references/defaults.md for aggregate design rules, entity/value object/domain service/domain event/repository/creation patterns with code examples, inline anti-pattern warnings, and decomposition guide.
npx claudepluginhub techygarg/lattice --plugin latticeProvides Domain-Driven Design tactical patterns for modeling entities, value objects, domain services, repositories, aggregates, and bounded contexts in complex business domains.
Guides Domain-Driven Design for complex business logic: aggregates, bounded contexts, ubiquitous language, value objects, entities, and TypeScript implementations with invariants.
Apply DDD principles to model business domains, design aggregates, and establish clear language across teams. Use when modeling complex business logic or integrating domain experts.