domain-driven-design
Installation
SKILL.md
Domain-Driven Design
Config Resolution
The skill supports project-custom principles. Resolution:
- Look for
.lattice/config.yamlin the repo root. - If found, check
paths.ddd_principlesfor a custom doc path. - If a custom document exists at that path, read it and check its YAML frontmatter
mode:mode: override: the custom doc has full precedence. Use it instead of the embedded default. It must be comprehensive -- sole reference.mode: overlay(or no mode): read the embedded./references/defaults.mdfirst, then apply the custom doc on top. A custom section replaces the matching default section (matched by heading); new sections append after the defaults.
- If a custom path is configured but no document exists at it → tell the user which configured path is missing, then read
./references/defaults.md. - If there is no config file or no
paths.ddd_principleskey → read./references/defaults.md. - Language adaptation: if
paths.language_idiomsis set in the config and the document exists, read its "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.