architecture-patterns

Implement Clean Architecture and Domain-Driven Design for scalable backend systems.

4|Updated May 1, 2026
One-click install
npx skills add https://github.com/HigorAlves/orc --skill architecture-patterns-higoralves
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/HigorAlves/orc/tree/main/orc/skills/architecture-patterns
Command: npx skills add https://github.com/HigorAlves/orc --skill architecture-patterns-higoralves

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the challenge of designing maintainable, scalable, and testable backend systems by implementing established architecture patterns.

Core Features & Use Cases

  • Implementing Layered Architectures: Use Clean Architecture and Hexagonal Architecture to structure backend codebases with clear dependency rules.
  • Applying Domain-Driven Design: Establish bounded contexts, value objects, aggregates, and domain events to model complex business domains.
  • Debugging Architecture & Dependencies: Use Anti-Corruption Layers and dependency analysis to identify and resolve cyclic dependencies and context bleed.
  • Use Case Example: Architect a new microservice with clear separation of domain, application, and infrastructure layers, ensuring testability and flexibility.

Quick Start

Implement the Clean Architecture directory structure for a new backend service, organizing entities, use cases, and adapters accordingly.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I structure a backend codebase using Clean Architecture and Hexagonal Architecture?

Clean Architecture and Hexagonal Architecture structure backend codebases by organizing code into distinct layers with strict dependency rules, separating domain logic, application use cases, and infrastructure adapters to ensure testability and maintainability for scalable systems.

What is the best way to model complex business domains using Domain-Driven Design?

Domain-Driven Design models complex business domains by establishing bounded contexts, value objects, aggregates, and domain events, ensuring clear boundaries and accurate mapping of business rules within multi-service backend architectures.

How do I resolve cyclic dependencies and context bleed in a multi-service system?

Resolve cyclic dependencies and context bleed by implementing Anti-Corruption Layers and performing dependency analysis to isolate bounded contexts, preventing cross-domain pollution and maintaining architectural integrity across backend services.

When do I need an Anti-Corruption Layer in system design?

An Anti-Corruption Layer is needed in system design when integrating new microservices with legacy systems or disparate bounded contexts, translating external models to prevent domain pollution and maintain the integrity of your core architecture.

Can I use Onion Architecture for architecting new microservices?

Onion Architecture is suitable for architecting new microservices as it enforces dependency inversion by organizing domain, application, and infrastructure layers, ensuring dependencies point inward toward the core domain for flexible and testable systems.

What directory structure should I implement for a scalable backend service?

Implement a scalable backend service directory structure by organizing files into distinct domain, application, and infrastructure layers, placing entities, use cases, and adapters in their respective directories to enforce clear separation of concerns.