architecture-patterns

Guide backend architects in applying Clean Architecture, Hexagonal, and Domain-Driven Design patterns.

1|1|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/M-Abdullah07/Pharmacy-Billing-App --skill architecture-patterns-m-abdullah07
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/M-Abdullah07/Pharmacy-Billing-App/tree/main/.agent/skills/architecture-patterns
Command: npx skills add https://github.com/M-Abdullah07/Pharmacy-Billing-App --skill architecture-patterns-m-abdullah07

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Backend teams struggle to keep growing systems maintainable as complexity increases. This skill provides a structured approach to applying proven architecture patterns (Clean Architecture, Hexagonal, and Domain-Driven Design) to guide boundaries, dependencies, and implementation strategies.

Core Features & Use Cases

  • Explains core patterns and their trade-offs to help choose the right approach.
  • Provides a practical directory structure and governance guidance to organize codebases.
  • Offers templates and decision criteria for when to apply patterns during new builds, refactors, or architecture reviews.
  • Includes references and templates in assets to accelerate adoption.

Quick Start

Follow this guide to structure your backend around well-defined boundaries and testable components.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
What is the best way to structure a scalable backend using clean architecture?

Clean architecture structures scalable backends by defining clear boundaries and dependency rules, separating core domain logic from external interfaces. This skill codifies those principles to help organize maintainable codebases with adaptable interfaces.

How do I apply domain-driven design principles during a large-scale refactor?

Applying domain-driven design during refactors involves defining bounded contexts and isolating domain logic. This skill provides decision criteria and templates to guide boundaries, dependencies, and implementation strategies for restructuring complex codebases.

When should I use hexagonal architecture over other backend design patterns?

Hexagonal architecture is used when you need adaptable ports and adapters to isolate core logic from external systems. This skill explains the trade-offs between hexagonal, clean, and domain-driven design patterns to help you choose the right approach.

How do I organize a backend codebase with ports, adapters, and bounded contexts?

Organize backend codebases by mapping bounded contexts to directory structures and implementing ports and adapters for external dependencies. This skill provides recommended directory layouts and governance guidance to accelerate adoption.

Does this backend architecture guidance work for new project design and architecture reviews?

Yes, this architecture guidance applies to new project design, large-scale refactors, and architecture governance. It offers templates and decision criteria to define boundaries, dependencies, and interfaces across various backend development stages.