
Ddd Tactical Patterns
This is for when you're past whiteboarding context maps and need to actually write the domain layer. It walks you through organizing code around aggregates, value objects, and invariants instead of letting everything leak into service classes. The guidance is practical: identify what must stay consistent, draw boundaries at aggregate roots, emit events when state changes matter, and keep repositories thin. The example shows a simple Order with guard clauses protecting its state transitions. It won't help you pick a database or design APIs, but if you're refactoring an anemic model or just want your business rules to live in one defensible place, this keeps you honest about where behavior belongs.
- skills.sh installs
- 143
- GitHub stars
- 39.4K
- last updated
- Jun 3, 2026
Install
$ npx -y skills add sickn33/antigravity-awesome-skills --skill ddd-tactical-patterns --agent claude-codeInstalls into .claude/skills of the current project.
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
- Identify invariants first and design aggregates around them.
- Model immutable value objects for validated concepts.
- Keep domain behavior in domain objects, not controllers.
- Emit domain events for meaningful state transitions.
- 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";
}
}
Sponsors
Details
- Repository
- github.com/sickn33/antigravity-awesome-skills
- First seen
- Jun 3, 2026
More from sickn33/antigravity-awesome-skills
All 708- Bevy Ecs Expert142
- Agents V2 Py141
- Ai Studio Image139
- Gitlab Automation139
- Ai Seo137
- Amplitude Automation137
- Linkedin Automation137
- X Twitter Scraper137
- 20 Andruia Niche Intelligence136
- Development136
- Idor Testing135
- Advogado Especialista134
- Burp Suite Testing132
- Claude Code Expert132
- Shadcn132
- Aws Cost Optimizer130
- Chrome Extension Developer130
- Shodan Reconnaissance130
- Ai Engineering Toolkit129
- On Call Handoff Patterns129
- Product Manager129
- Gemini Api Dev128
- Acceptance Orchestrator127
- Xss Html Injection127