ddd-tactical-patterns
Apply DDD tactical patterns in code using entities, value objects, aggregates, repositories, and domain events with explicit invariants.
npx skills add sickn33/agentic-awesome-skills --skill ddd-tactical-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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 ```typescript class Order { private status: "draft" | "submitted" = "draft"; submit(itemsCount: number): void { if (itemsCount === 0) throw new Error("Order cannot be submitted empty"); if (this.status !== "draft") throw new Error("Order already submitted"); this.status = "submitted"; } } ``` ## Limitations - This skill does not define deployment architecture. - It do
- Use this skill when
- Do not use this skill when
- Instructions
- Example
- Limitations
What does the ddd-tactical-patterns skill do?
Apply DDD tactical patterns in code using entities, value objects, aggregates, repositories, and domain events with explicit invariants.
How do I install it?
Run `npx skills add sickn33/agentic-awesome-skills --skill ddd-tactical-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.