forze-domain-aggregates
Installation
SKILL.md
Forze Domain Aggregates
Use when defining domain models, document aggregates, and kernel specifications. Physical tables, collections, Redis namespaces, buckets, and queues belong in integration configs — see forze-specs-infrastructure and pages/docs/core-concepts/specs-and-wiring.md.
Pair with forze-framework-usage for ports and forze-wiring for composition and HTTP.
Document aggregate structure
Every document aggregate typically defines four model types:
| Type | Base class | Purpose |
|---|---|---|
| Domain model | Document |
Entity with business logic, validation |
| Create command | CreateDocumentCmd |
Input for creation |
| Update command | BaseDTO |
Partial update payload |
| Read model | ReadDocument |
Frozen projection for queries |