Ddd Guidance
Guides teams through applying Domain-Driven Design to existing projects. Structured discovery of bounded contexts, ubiquitous language capture, and aggregate boundary design using Vernon's rules of thumb.
Stores typed, versioned domain knowledge that agents can query to inform architectural decisions over time.
2026.08.21.1
Changed: Added .describe(...) documentation to previously undocumented
fields in the resource-only schemas ContextMapSchema, DomainGlossarySchema,
and BoundariesSchema (and their nested ContextRelationshipSchema,
BoundedContextSchema, GlossaryEntrySchema, InvariantSchema, and
AggregateDesignSchema). The corresponding method argument schemas already
had descriptions; this brings the resource schemas up to the same standard.
No behavioral changes.
2026.07.18.1
Added: An upgrades array entry (no-op) to mod.ts for proper typeVersion tracking on existing instances. No schema or behavior changes.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| projectContext | string | Brief description of the project, its domain, and team structure |
| existingPatterns | array | Architectural patterns already in use (e.g., microservices, monolith, event-driven) |
| Argument | Type | Description |
|---|---|---|
| focus? | string | Optional: narrow discovery to a specific area of the system |
| contexts | array | Bounded contexts discovered through conversation |
| relationships | array | Relationships between bounded contexts |
| overloadedTerms | array | Terms that mean different things in different contexts |
| Argument | Type | Description |
|---|---|---|
| mode | enum | Write strategy: merge (default), replace-context, or replace-all |
| context | string | Bounded context name these terms belong to |
| entries | array | Glossary entries captured through conversation |
| overloadedTerms? | array | Any newly discovered terms that are overloaded across contexts |
| Argument | Type | Description |
|---|---|---|
| context | string | Bounded context name these boundaries belong to |
| aggregates | array | Aggregate designs produced through Vernon's rules analysis |
| eventualConsistencyRules | array | Cross-aggregate consistency rules that tolerate eventual consistency |
Resources
2026.07.18.1
Added: An upgrades array entry (no-op) to mod.ts for proper typeVersion tracking on existing instances. No schema or behavior changes.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned