architecture-patterns

Apply Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to structure backend systems.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a structured approach to designing and refactoring backend systems using proven architecture patterns like Clean Architecture, Hexagonal Architecture, and Domain-Driven Design, helping teams create maintainable, scalable codebases.

Core Features & Use Cases

  • Adopt layered architecture with explicit boundaries to separate business logic from infrastructure.
  • Map existing codebases to Clean Architecture, Hexagonal Architecture, and DDD concepts, and identify bottlenecks for refactoring.
  • Use for establishing architecture standards, guiding new projects, and aligning teams on common terminology and boundaries.

Quick Start

Audit a backend project and generate a mapping to Clean Architecture layers, ports/adapters, and bounded contexts per DDD.

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

To structure a backend using Clean Architecture and Domain-Driven Design, you separate business logic from infrastructure using explicit layer boundaries, ports, adapters, and bounded contexts to ensure maintainability and scalability.

When should I use Hexagonal Architecture for my backend software design?

You should use Hexagonal Architecture when you need to isolate business logic from external infrastructure by defining ports and adapters, which significantly improves testability and allows easier swapping of databases or services.

How do I map an existing codebase to Clean Architecture layers for refactoring?

You map an existing codebase to Clean Architecture layers by auditing the project to identify current bottlenecks, then aligning components into explicit domain, application, and infrastructure boundaries to guide refactoring.

What is the best way to establish backend architecture standards across a team?

The best way to establish backend architecture standards is adopting proven patterns like Clean Architecture and DDD, aligning teams on common terminology, explicit layer mappings, and bounded contexts for consistent software design.

Does Domain-Driven Design work for refactoring any backend project?

Domain-Driven Design works best for complex backend projects requiring clear bounded contexts and explicit layer boundaries. It helps map organizational standards to software design, though simpler projects may not need its full structural overhead.