What problem does it solve?
This Skill provides deep guidance on Brokle's Domain-Driven Design (DDD) architecture, helping developers correctly structure new domains, entities, and cross-domain interactions. It ensures architectural consistency and maintainability.
Core Features & Use Cases
- Domain Structure: Defines the standard directory layout for new domains, including entities, repository interfaces, service interfaces, and domain-specific errors.
- Multi-Tenant Scoping: Explains the four critical patterns for multi-tenant data isolation (organization-scoped, project-scoped, flexible, global entities).
- Cross-Domain Relationships: Guides on how to manage dependencies and interactions between different domains using professional aliases.
- Use Case: A developer needs to introduce a new
reporting domain. This skill outlines the steps to create the domain structure, define entities with correct multi-tenant scoping, and integrate it with existing domains like observability.
Quick Start
I need to create a new domain called notifications. Outline the directory structure, entity pattern, and how to define its repository and service interfaces, ensuring multi-tenancy.