Skip to content
yonatangross avatar

Domain Driven Design

Tactical Domain-Driven Design patterns for modeling rich domains with entities, value objects, and aggregates.

CCM score
56 of 100
skills.sh installs
1.3K
GitHub stars
312
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers entities, value objects, aggregates, domain services, repositories, specifications, and bounded contexts with Python dataclass examples
  • Includes a decision table on when DDD is worth its roughly 40% overhead, versus plain dataclasses or direct ORM queries
  • Enforces immutable value objects (frozen=True), identity-based entity equality, and repositories that return domain objects, not ORM models
  • Designed for backend teams with five or more entities carrying invariants that span multiple objects

Install

$ npx -y skills add yonatangross/orchestkit --skill domain-driven-design -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

Details

Repository
github.com/yonatangross/orchestkit
Categories
Backend & APIs, Python
First seen
Jun 3, 2026

More from yonatangross/orchestkit

All 55

Similar to Domain Driven Design

More Backend & APIs