Skip to content
sickn33 avatar

Ddd Tactical Patterns

Concrete guidance for modeling domain rules in code with entities, value objects, aggregates, repositories, and domain events.

CCM score
52 of 100
skills.sh installs
143
GitHub stars
50.5K
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers translating domain rules into code, including aggregate boundaries, invariants, and refactoring anemic models into behavior-rich objects
  • Keeps domain behavior inside domain objects rather than controllers, with repositories held at aggregate root boundaries
  • Emits domain events for meaningful state transitions and models validated concepts as immutable value objects
  • Designed for teams with real domain complexity, not CRUD tasks, and should be paired with testing patterns for invariant coverage

Install

$ npx -y skills add sickn33/agentic-awesome-skills --skill ddd-tactical-patterns -y

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

Files

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

class Order {
  private status: "draft" | "submitted" = "draft";

  submit(itemsCount: number): void {
    if (!Number.isInteger(itemsCount) || itemsCount <= 0) throw new Error("Order cannot be submitted empty");
    if (this.status !== "draft") throw new Error("Order already submitted");
    this.status = "submitted";
  }
}

Details

Repository
github.com/sickn33/agentic-awesome-skills
Categories
Backend & APIs, Technical Documentation, Code Review & Quality
First seen
Jun 3, 2026

Questions

What does the ddd-tactical-patterns skill do?

The ddd-tactical-patterns skill applies DDD tactical patterns in code, using entities, value objects, aggregates, repositories, and domain events with explicit invariants. It helps translate domain rules into code structures and refactor an anemic model into behavior-rich domain objects.

When should I use the ddd-tactical-patterns skill?

Use ddd-tactical-patterns when designing aggregate boundaries and invariants, or defining repository contracts and domain event boundaries. It is not meant for defining strategic boundaries, API documentation, or UI layout, and it should be paired with testing patterns for invariant coverage.

How do I install the ddd-tactical-patterns skill?

Run npx -y skills add sickn33/agentic-awesome-skills --skill ddd-tactical-patterns -y in a project to install it. Once installed, the agent can model immutable value objects and keep domain behavior in domain objects rather than controllers.

Where does ddd-tactical-patterns stand in the Backend & APIs category?

ddd-tactical-patterns is listed in the Backend & APIs category on Claude Marketplaces. Its focus on invariants, aggregates and domain events sets it apart from the neighboring skills in that category.

More from sickn33/agentic-awesome-skills

All 682

Similar to Ddd Tactical Patterns

More Backend & APIs