architecture-patterns

Architect backend systems using Clean Architecture, Hexagonal, and Domain-Driven Design patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps backend teams structure complex systems by applying proven architecture patterns such as Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to improve maintainability, testability, and scalability.

Core Features & Use Cases

  • Structured guidance on selecting and applying architectural patterns to new projects or refactors.
  • Practical patterns with clear layering, ports/adapters, and bounded contexts to improve testability and maintainability.
  • Use Case Scenarios include refactoring a monolith, designing a new service, or establishing architectural standards across teams.

Quick Start

Create a backend project layout that uses Clean Architecture with domain models, use cases, adapters, and infrastructure.

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 project using Clean Architecture and Domain-Driven Design?

Structure a backend project using Clean Architecture by defining domain models, use cases, adapters, and infrastructure layers. Apply Domain-Driven Design to establish clear domain boundaries, testability, and framework independence for maintainable software.

What is the best way to refactor a monolith into Hexagonal Architecture ports and adapters?

Refactor a monolith into Hexagonal Architecture by isolating business logic into ports and implementing external interactions as adapters. This pattern decouples core domain logic from infrastructure, improving testability and framework independence.

When do I need bounded contexts and architectural patterns for backend systems?

You need bounded contexts and architectural patterns when structuring complex backend systems to achieve maintainability and scalability. Apply these patterns when designing new services, refactoring monoliths, or establishing architecture standards across teams.

Does applying Clean Architecture and DDD improve backend testability?

Applying Clean Architecture and DDD improves backend testability by enforcing strict layering and clear domain boundaries. This separation ensures framework independence, allowing use cases and domain models to be tested without relying on external infrastructure.

How do I establish backend architecture standards across multiple teams?

Establish backend architecture standards across teams by implementing structured guidance on Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. This approach provides practical patterns with clear layering and bounded contexts to ensure consistent, scalable software design.

Why use Ports and Adapters instead of traditional layered architecture for software design?

Use Ports and Adapters instead of traditional layered architecture to achieve strict framework independence and isolate the domain. This software design pattern defines clear boundaries through ports, preventing infrastructure concerns from leaking into business logic.