architecture-patterns

Identify and prescribe architectural patterns for software system design challenges.

10|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/CsHeng/dot-claude --skill architecture-patterns-csheng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: architecture-patterns
Source: https://github.com/CsHeng/dot-claude/tree/main/skills/architecture-patterns
Command: npx skills add https://github.com/CsHeng/dot-claude --skill architecture-patterns-csheng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Architectural pattern guidance and layering principles. Use when architecture patterns guidance is required.

Core Features & Use Cases

  • Layered Architecture: Separation of presentation, business logic, and data access.
  • Microservices & EDA: Rules for service decomposition, data consistency, and resilience.

Quick Start

Apply core architecture patterns (layered, microservices, event-driven) to design or refactor a system.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
How do I choose between layered, microservices, and event-driven architecture?

Layered architecture centralizes business logic in distinct tiers for monolithic systems. Microservices decompose functionality into independent services for scalability. Event-driven architecture uses asynchronous messaging for loose coupling. Select based on scale, team structure, and data consistency requirements.

What is domain-driven design and when should I apply it?

Domain-driven design aligns system boundaries with business domains, using ubiquitous language and bounded contexts. Apply it when decomposing large systems into services or refactoring monoliths to clarify service responsibilities and prevent tangled dependencies.

How do I design APIs for microservices architectures?

Design RESTful or GraphQL APIs with clear contracts, versioning strategy, and gateway patterns. Use API gateways for routing, authentication, and rate limiting. Follow interface segregation principles to expose only necessary operations per client.

What patterns ensure data consistency across distributed systems?

Event-driven architecture, saga patterns, and eventual consistency models address data consistency in microservices. Use message brokers for event publishing and subscription. Apply compensating transactions for distributed workflows requiring coordination.

How do I structure repositories and separation of concerns in layered architectures?

Repository patterns abstract data access, isolating business logic from persistence details. Organize layers as presentation, business logic, and data access with unidirectional dependencies. Apply dependency injection to decouple components and ease testing.

What security and resilience patterns apply to enterprise systems?

Zero-trust security validates every request. Circuit breakers, timeouts, and retry logic handle failures. Use API gateways for centralized authentication. Event-driven systems provide resilience through asynchronous decoupling and message durability.