Agent skill · software engineering · aiskillstore

ddd-tactical-patterns

Apply DDD tactical patterns in code using entities, value objects, aggregates, repositories, and domain events with explicit invariants.

Why this skill is useful

Provides specific domain-driven design patterns that help structure code according to DDD principles, which the AI may not reliably generate on its own.

What it needs

About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

DDD Tactical Patterns Use this skill when Translating domain rules into code structures. Designing aggregate boundaries and invariants. Refactoring an anemic model into behavior-rich domain objects. Defining repository contracts and domain event boundaries. Do not use this skill when You are still defining strategic boundaries. The task is only API documentation or UI layout. Full DDD complexity is not justified. Instructions 1. Identify invariants first and design aggregates around them. 2. Model immutable value objects for validated concepts. 3. Keep domain behavior in domain objects, not controllers. 4. Emit domain events for meaningful state transitions. 5. Keep repositories at aggregate root boundaries. If detailed checklists are needed, open references/tactical-checklist.md. Example Limitations This skill does not define deployment architecture. It does not choose databases or transport protocols. It should be paired with testing patterns for invariant coverage.

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/ddd-tactical-patterns

View the source on GitHub

Browse the @skills marketplace