Skip to content
Skills Library
Programming · Planning

domain-driven-design

/domain-driven-design

Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.

Original author description

Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 75 lines, 502 words
SKILL.md preview
---
name: domain-driven-design
description: "Apply DDD pragmatically: bounded contexts, ubiquitous language, and aggregates sized to invariants. Use when modeling a complex domain or when code and business people describe the same thing differently."
---

# Domain-driven design

DDD's durable core is small: name things the way the business names
them, draw boundaries where the language changes meaning, and cluster
data around the rules that must stay consistent. The tactical
machinery is optional; the strategic modeling is where the value is.

## Method

1. **Build a ubiquitous language, and use it everywhere.**
   The terms the domain experts use become the terms in
   code, APIs, and conversation: no translation layer
   between "what the business calls it" and "what the class
   is named" (see naming-things). When a developer says
   "record" and the expert says "policy" for the same
   thing, bugs breed in the gap; close it by adopting the
   expert's word in the code.
2. **Find bounded contexts where the language shifts.** The
   same word means different things in different parts of
   the business ("customer" in sales vs support vs
   billing): each coherent meaning is a bounded context
   with its own model, and the boundaries between contexts
   are exactly where you draw module or service lines (see
   microservices-boundaries, monolith-first). One universal
   model for the whole enterprise is the anti-pattern:
   it satisfies no context fully.
3. **Map the relationships between contexts.** How contexts
   integrate (shared events, published APIs, an
   anti-corruption layer translating another context's
   model into yours: see event-driven-architecture,
   api-gateway-pattern) and the power dynamics (upstream/
   downstream): a context map makes the system's real
   structure visible and prevents one context's model from
   silently corrupting another's.
4. **Size aggregates around invariants.** An aggregate is
   the cluster of objects that must stay consistent
   together, with one entry point (the root); it is the
   transactional and consistency boundary (see
   event-sourcing, transactions-isolation). Keep aggregates
   small: a huge aggregate is a lock-contention and
   scaling problem, and cross-aggregate consistency is
   eventual (via events/sagas: see saga-pattern), so put
   only the truly-must-be-atomic together.
5. **Reach for tactical patterns only when they pay.**
   Entities (identity over time), value objects (immutable,
   compared by value: see python-dataclasses' twin),
   domain events, repositories, domain services: use the
   ones that clarify, skip the ceremony that does not.
   Rich domain models (behavior with the data) beat
   anemic ones (data structs plus a service doing
   everything) for genuinely complex logic; for CRUD, the
   simple approach wins (see premature-abstraction).
6. **Model collaboratively, iterate on it.** The domain
   model comes from conversations with domain experts
   (event storming, examples: see customer-interviews'
   listening ethic applied internally), not from a
   developer guessing; and it evolves as understanding
   deepens. A model handed down once and frozen drifts
   from the business it was meant to capture.

## Boundaries

- DDD's cost is justified by domain complexity; for
  simple or generic domains (a standard CRUD app, a thin
  integration) the full apparatus is overhead, and
  ubiquitous language plus sensible modules suffice.
- Tactical patterns without strategic design (aggregates
  and repositories over a model with no bounded contexts
  or shared language) is cargo-cult DDD: the ceremony
  without the insight.
- Bounded contexts inform but do not dictate service
  boundaries; a context can be a module in a monolith
  (see monolith-first) before it is ever a service.

Versions

RepositoryScoreLicence
This page · Amey-Thakur/AI-SKILLS100MIT
kookr-ai/kookr100Apache-2.0
yonatangross/orchestkit100MIT
yonatangross/orchestkit100MIT
joeblackwaslike/agent-skills100MIT
rrezartprebreza/spring-boot-skills100MIT
rrezartprebreza/spring-boot-skills100MIT
reddygopalkrishna/developer-agent-skills100MIT
bdfinst/agentic-dev-team100MIT

Database snapshot: 13.11.2026 · package version 0f73f975e6c3 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100domain-modeling
    Domain-Driven Design: aggregates, bounded contexts, ubiquitous language, value objects, domain events, repository pattern, anti-corruption layer. When to use DDD vs simple CRUD. Entity vs value object distinction. TypeScript implementations with invariant enforcement. Use when…
  • 90ddd
    Coach strategic and tactical domain-driven design for a model, a spec, or a legacy system. Use for /ddd, or when subdomains, bounded contexts, ubiquitous language, aggregates, or domain events decide the design.
  • 100ddd-architect
    Comprehensive Domain-Driven Design analysis and architecture generation — use when designing bounded contexts, defining aggregates, creating context maps, or decomposing systems into microservices or modular monolith. Triggers: DDD, domain-driven design, bounded context,…
  • 100fai-domain-driven-design
    Apply Domain-Driven Design to AI system architecture — bounded contexts, aggregates, ubiquitous language, and context maps. Use this skill when modeling a complex domain, untangling a tangled codebase, or aligning teams on boundaries — even if the user only says "how should we…
  • 100ddd
    Domain-Driven Design patterns. Bounded contexts, aggregates, entities, value objects, domain events, repositories, and application services. Strategic and tactical DDD for complex business domains. USE WHEN: user mentions "DDD", "Domain-Driven Design", "bounded context",…
  • 100domain-modeling
    Use when the code's vocabulary does not match the business's. Establishes a ubiquitous language, models domain concepts as explicit types, and identifies bounded contexts. Trigger on "we call it a customer here and an account there", "this model is used by everything", "what are…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.