clean-ddd-hexagonal

Define Clean Architecture, DDD, and Hexagonal boundaries for backend services.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/iinoshirozheng/SinoCloudChat --skill clean-ddd-hexagonal-iinoshirozheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-ddd-hexagonal
Source: https://github.com/iinoshirozheng/SinoCloudChat/tree/main/.agents/skills/clean-ddd-hexagonal
Command: npx skills add https://github.com/iinoshirozheng/SinoCloudChat --skill clean-ddd-hexagonal-iinoshirozheng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a blueprint for architecting backend services using Clean Architecture, DDD, and Hexagonal patterns to create modular, testable, and maintainable systems.

Core Features & Use Cases

  • Defines clear domain boundaries (Domain, Application, Infrastructure) to separate concerns.
  • Promotes ports/adapters and hexagonal architecture to enable easy replacement of infrastructure and improved testability.
  • Supports CQRS and Event Sourcing concepts along with Domain Events for cross-boundary communication.
  • Includes references and guidance for strategic and tactical patterns (DDD, Hexagonal, ACL, etc.) to accelerate architecture decisions.

Quick Start

Initialize a hexagonal-architecture project scaffold applying DDD patterns to structure domains, ports, and adapters.

Frequently Asked Questions about clean-ddd-hexagonal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a backend service using Clean Architecture and DDD?

Structure your backend by defining clear domain boundaries across Domain, Application, and Infrastructure layers, using ports and adapters to separate concerns and ensure testability. This approach creates modular, maintainable systems.

What is the difference between hexagonal architecture and clean architecture for domain-driven design?

Hexagonal architecture uses ports and adapters to isolate infrastructure dependencies, while clean architecture enforces layered dependency inversion. This blueprint combines both patterns to define clear domain boundaries and enable easy infrastructure replacement.

How do I implement CQRS and Event Sourcing with domain events in a hexagonal architecture?

Implement CQRS and Event Sourcing by defining domain events for cross-boundary communication and using repositories within the application layer. This blueprint provides guidance and references for integrating these patterns alongside tactical DDD concepts.

When should I use DDD and hexagonal architecture patterns for my backend project?

Use DDD and hexagonal architecture for multi-layer projects needing clear boundaries, testability, and maintainable domain models across APIs, services, and infrastructure. It suits complex systems requiring easy infrastructure replacement and cross-boundary communication.

How do I define ports and adapters for a domain model in Clean Architecture?

Define ports and adapters by aligning domain and application boundaries, ensuring infrastructure components interact through defined interfaces. This blueprint provides references and examples showing entities, value objects, repositories, and domain events.

Can I use this DDD architecture blueprint without prior knowledge of strategic and tactical patterns?

Yes, the blueprint includes references and guidance for strategic and tactical patterns like DDD, hexagonal architecture, and ACL to accelerate architecture decisions, making it accessible while requiring alignment of domain and application boundaries.