DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services, repositories, specifications, and bounded contexts. Python dataclass implementations with TypeScript alternatives. Use when building rich domain models, enforcing invariants, or separating domain logic from infrastructure.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Domain-Driven Design Tactical Patterns
Model complex business domains with entities, value objects, and bounded contexts.
## Overview
- Modeling complex business logic
- Separating domain from infrastructure
- Establishing clear boundaries between subdomains
- Building rich domain models with behavior
- Implementing ubiquitous language in code
## Building Blocks Overview
```
┌─────────────────────────────────────────────────────────────┐
│ DDD Building Blocks │
├─────────────────────────────────────────────────────────────┤
│ ENTITIES VALUE OBJECTS AGGREGATES │
│ Order (has ID) Money (no ID) [Order]→Items │
│ │
│ DOMAIN SERVICES REPOSITORIES DOMAIN EVENTS │
│ PricingService IOrderRepository OrderSubmitted │
│ │
│ FACTORIES SPECIFICATIONS MODULES │
│ OrderFactory OverdueOrderSpec orders/, payments/ │
└─────────────────────────────────────────────────────────────┘
```
## Quick Reference
…
The line at the top of this page pins the label v1.0.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_jqz7nspjl2ekk2zr
GET https://markdownregistry.com/api/v1/resolve?ref=martineserios/thebrana/domain-driven-design
GET https://markdownregistry.com/api/v1/blob/535229fb889234226c3d6da0ac5e68fd90f6e97fa50c15c5ee7e591b669ec140
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
martineserios/thebrana · .agents/skills/cold-start-problem/SKILL.md · Start and scale networked products using Andrew Chen''s "The Cold Start Problem" framework for network effects. Use…
martineserios/thebrana · .agents/skills/critical-thinking-logical-reasoning/SKILL.md · Critical thinking and logical reasoning analysis skills for when you are explicitly asked to critically analyse written…
martineserios/thebrana · .agents/skills/decision-matrix/SKILL.md · Compares multiple named alternatives against weighted criteria to produce transparent, defensible choices with explicit…
martineserios/thebrana · .agents/skills/first-principles/SKILL.md · Break down complex problems to their fundamental truths, then reason up from there. Master Aristotle's ancient method…
martineserios/thebrana · .agents/skills/inversion/SKILL.md · "Invert, always invert." Apply Carl Jacobi's mathematical principle and Charlie Munger's investing wisdom to solve…
martineserios/thebrana · .agents/skills/jobs-to-be-done/SKILL.md · Discover what customers truly need by analyzing the "job" they hire your product to do. Use when the user mentions…
martineserios/thebrana · .agents/skills/marketplace-fundamentals/SKILL.md · Help users understand the core mechanics of marketplace businesses, from solving the cold start problem to maintaining…
martineserios/thebrana · .agents/skills/marketplace-liquidity-take-rates/SKILL.md · Help users define precise liquidity metrics, set competitive take rates based on value delivery, and manage the…
martineserios/thebrana · .agents/skills/pre-mortem/SKILL.md · Imagine your project has failed spectacularly—then work backward to identify why. Apply Gary Klein's "prospective…
martineserios/thebrana · .agents/skills/second-order-thinking/SKILL.md · Think beyond immediate consequences to understand the chain reactions of decisions. Master Howard Marks' investment…
martineserios/thebrana · .agents/skills/six-thinking-hats/SKILL.md · Apply Edward de Bono's parallel thinking framework (1985) to make better decisions by examining ideas from six distinct…
martineserios/thebrana · .agents/skills/supply-demand-balance/SKILL.md · Help users identify whether supply or demand is their primary growth bottleneck and apply tactical levers to achieve…
wondelai/skills · plugins/wondelai-skills/skills/domain-driven-design/SKILL.md · Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the…
wondelai/skills · plugins/code-craftsmanship/skills/domain-driven-design/SKILL.md · Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the…
wondelai/skills · domain-driven-design/SKILL.md · Model software around the business domain using bounded contexts, aggregates, and ubiquitous language. Use when the…
rrezartprebreza/spring-boot-skills · skills/spring-boot-3/domain-driven-design/SKILL.md · Use when evolving aggregate invariants, value objects or domain events in an existing DDD-style Spring Boot 3…
yonatangross/orchestkit · src/skills/domain-driven-design/SKILL.md · DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services…
yonatangross/orchestkit · plugins/ork/skills/domain-driven-design/SKILL.md · DDD tactical patterns for complex business modeling including entities, value objects, aggregates, domain services…
techygarg/lattice · source/atoms/domain-driven-design/SKILL.md · Apply DDD tactical patterns when working with domain code, and validate proposed domain models before approval (design…