architecture-patterns

Standardizes backend architecture design using proven patterns like Clean Architecture and Hexagonal.

98|25|Updated Mar 14, 2020
One-click install
npx skills add https://github.com/baotoq/micro-commerce --skill architecture-patterns-baotoq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/baotoq/micro-commerce/tree/main/.agents/skills/architecture-patterns
Command: npx skills add https://github.com/baotoq/micro-commerce --skill architecture-patterns-baotoq

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Architecture drift and inconsistent designs hinder maintainability; this skill codifies proven patterns to standardize backend architecture.

Core Features & Use Cases

  • Guidance on Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to structure services and modules.
  • Clear boundaries, ports/adapters, and interface contracts to improve testability and replaceability.
  • Use cases include designing new services, refactoring monoliths, and guiding architecture decisions across teams.

Quick Start

Review the architecture playbooks and map your current project to a suitable pattern to start standardizing your architecture.

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 service using Domain-Driven Design?

Hexagonal Architecture improves testability by using ports and adapters to isolate application logic. This approach defines clear interface contracts, ensuring core business logic remains independent of external dependencies and easily replaceable.

How do I refactor a legacy monolith into a clean architecture?

Refactoring a legacy monolith into clean architecture involves mapping current project structures to suitable patterns. This skill provides playbooks to establish clear boundaries and standardize architectural decisions during the migration process.

When do I need ports and adapters in backend architecture?

You need ports and adapters in backend architecture when replacing external dependencies or improving testability. This pattern isolates core logic from infrastructure, making components easily replaceable and simplifying integration testing.

Clean Architecture vs Hexagonal Architecture: which pattern suits my project?

Clean Architecture and Hexagonal Architecture both enforce boundaries, but Hexagonal explicitly uses ports and adapters for dependency isolation. Choosing depends on whether your focus is on layer dependencies or strict infrastructure replaceability.