architecture-patterns

Implement Clean, Hexagonal, and Domain-Driven Design patterns for backend systems.

Updated Jul 7, 2026
One-click install
npx skills add https://github.com/voidrot/agents --skill architecture-patterns-voidrot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/voidrot/agents/tree/main/skills/meta/architecture-patterns
Command: npx skills add https://github.com/voidrot/agents --skill architecture-patterns-voidrot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides guidance and examples for implementing Clean Architecture, Hexagonal Architecture, and Domain-Driven Design, addressing challenges in system design and maintenance.

Core Features & Use Cases

  • Clean Architecture: Guidance on creating a layered structure with clear dependency rules.
  • Hexagonal Architecture: Introduction to ports and adapters for flexible implementations.
  • Domain-Driven Design: Detailed strategies for bounded contexts, ubiquitous language, and domain events.
  • Use Case: Refactoring a monolithic application into a set of bounded contexts for better maintainability and scalability.

Quick Start

To learn about Clean Architecture, refer to the section 'Clean Architecture — Directory Structure' in the 'details.md' reference file.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I refactor a monolithic application into bounded contexts for better maintainability?

To refactor a monolithic application, apply Domain-Driven Design strategies to define bounded contexts, establish a ubiquitous language, and map domain events to decouple service boundaries for better maintainability and scalability.

What is the best way to structure directories using Clean Architecture?

Structuring directories with Clean Architecture involves creating a layered structure with clear dependency rules, ensuring your core business logic remains independent of external frameworks and infrastructure components.

How does Hexagonal Architecture work with ports and adapters?

Hexagonal Architecture works by isolating application logic through ports and adapters, allowing flexible implementations where external components interact with the core strictly through defined port interfaces.

Do I need prior knowledge of design principles to implement these system design patterns?

Yes, implementing these system design patterns requires prior knowledge of design principles and specific implementation details for Clean, Hexagonal, and Domain-Driven Design architectures.

When should I not use Domain-Driven Design for service design?

You should not use Domain-Driven Design for service design when your system lacks complex domain logic, as applying bounded contexts and ubiquitous language to simple CRUD operations introduces unnecessary overhead.