Implementing DDD Architecture
Designs and implements rich domain models using Domain-Driven Design (DDD), CQRS, and hexagonal architecture patterns.
The source repository doesn't declare a license. Check its terms before reusing the code.
Key features
- Enforces strict layer purity to keep the Domain model framework-agnostic
- Guides the implementation of Command Query Responsibility Segregation (CQRS)
- Provides patterns for creating rich domain models and avoiding anemic anti-patterns
- Includes architectural verification workflows using Deptrac to prevent dependency violations
- Defines the Repository and Domain Events patterns for data persistence and side-effects
Use cases
- Building new domain features with entities, value objects, and aggregates
- Establishing clear architectural boundaries between Domain, Application, and Infrastructure layers
- Refactoring an application to introduce CQRS for better performance and separation of concerns
FAQ
What does the Implementing DDD Architecture skill do?
This skill enables Claude to design and implement software using core Domain-Driven Design (DDD) patterns. It generates code for entities, value objects, repositories, and CQRS components, all while enforcing strict layer separation to keep your domain logic pure and framework-agnostic.
When should I use this skill?
Use this skill when you are creating new domain entities or aggregates, designing repository interfaces, implementing a bounded context, or learning how to apply DDD, CQRS, and hexagonal architecture patterns correctly in your project.
What key capabilities does this skill provide?
It provides patterns for creating rich domain models, implementing the CQRS and Repository patterns, recording and handling domain events, and enforcing strict architectural boundaries. It's designed to keep your core business logic completely independent of any framework.
How does this skill improve my development workflow?
It accelerates development by automating the creation of DDD/CQRS boilerplate code. It ensures architectural consistency by default, prevents common pitfalls like anemic models, and integrates with verification tools like Deptrac to catch dependency violations early, resulting in more maintainable code.
Related skills
Plugin Skill Development
Provides standardized workflows and best practices for building, organizing, and optimizing specialized skills within Claude Code plugins.
Developer Tools142,11812 ptsPlugin Architecture Guide
Provides standardized patterns and directory layouts for building modular and portable Claude Code plugins.
Developer Tools142,11812 ptsPrompt Engineering
Creates, improves, and optimizes prompts for Claude using Anthropic's best practices for clarity, structure, and security.
Developer Tools5412 pts