architecture-patterns

Design backend architectures with layered boundaries and dependency rules.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/Sumeet138/qwen-code-agents --skill architecture-patterns-sumeet138
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/Sumeet138/qwen-code-agents/tree/main/plugins/backend-development/skills/architecture-patterns
Command: npx skills add https://github.com/Sumeet138/qwen-code-agents --skill architecture-patterns-sumeet138

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Backend teams often struggle to design scalable, maintainable systems without clear architectural guidance. This skill codifies proven patterns like Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to help you structure software with well-defined boundaries and testability.

Core Features & Use Cases

  • Clean Architecture: separations of concerns with inward dependencies and independent business rules.
  • Hexagonal Architecture: ports and adapters to isolate the core from frameworks and drivers.
  • Domain-Driven Design: bounded contexts, aggregates, value objects, and domain events to model complex domains.
  • Proven patterns often used together to create scalable services and reduce coupling.

Quick Start

Design a new service boundary or module using a layered structure with clear dependency rules and interface definitions.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I design backend architecture with clear bounded contexts and dependency rules?

To design backend architecture with clear bounded contexts, you apply Domain-Driven Design to model complex domains and enforce strict dependency rules. This isolates business logic into testable aggregates and defines repeatable practices for structuring new services.

What is the difference between Clean Architecture and Hexagonal Architecture for backend systems?

Clean Architecture focuses on inward dependencies to separate concerns and protect independent business rules, while Hexagonal Architecture uses ports and adapters to isolate the core domain from external frameworks and drivers. Both patterns reduce coupling and increase testability.

How do I refactor a monolith using Domain-Driven Design and layered boundaries?

Refactoring a monolith using Domain-Driven Design involves defining bounded contexts and establishing clear layered boundaries. By enforcing dependency rules and modeling domain logic through aggregates and domain events, you can incrementally decouple modules and reduce system coupling.

When do I need Hexagonal Architecture ports and adapters in my service?

You need Hexagonal Architecture ports and adapters when you want to isolate your core business logic from external frameworks, databases, or drivers. This approach ensures your domain logic remains testable and independent of infrastructure changes.

Does Clean Architecture work with Domain-Driven Design for modeling complex domains?

Yes, Clean Architecture works seamlessly with Domain-Driven Design. You can use Clean Architecture's inward dependency rules to protect the domain core, while leveraging Domain-Driven Design aggregates, value objects, and domain events to model complex business logic.

What are the limitations of using bounded contexts and aggregates for backend design?

The limitations of using bounded contexts and aggregates include the overhead of defining strict interface boundaries and mapping complex domain events. While these patterns reduce coupling, they require careful upfront modeling to avoid over-engineering simple services.