architecture-patterns

Explain software architecture patterns with Python and TypeScript code examples.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides guidance and code examples for implementing various software architecture patterns, helping developers build more robust, scalable, and maintainable systems.

Core Features & Use Cases

  • Pattern Explanations: Detailed descriptions of Clean Architecture, Hexagonal Architecture, Domain-Driven Design (DDD), Microservices, and CQRS/Event Sourcing.
  • Code Examples: Illustrative code snippets in Python and TypeScript for key concepts within each pattern.
  • Decision Guidance: Advice on when to choose specific patterns based on project needs.
  • Use Case: When starting a new project or refactoring an existing one, consult this Skill to understand and implement best practices for system design, ensuring long-term maintainability and scalability.

Quick Start

Show me the Python code structure for Clean Architecture.

Frequently Asked Questions about architecture-patterns

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

FAQPage Schema
What is the difference between Clean Architecture and Hexagonal Architecture?

Clean Architecture and Hexagonal Architecture both isolate domain logic from infrastructure, but Hexagonal emphasizes ports and adapters for interchangeable boundaries, while Clean focuses on dependency inversion across concentric layers.

How do I structure a Python project using Domain-Driven Design?

To structure a Python project using Domain-Driven Design, define bounded contexts, aggregate roots, and value objects, isolating business logic from infrastructure layers to ensure domain purity and maintainability.

When should I use CQRS and Event Sourcing in microservices?

Use CQRS and Event Sourcing in microservices when you need high scalability and independent read/write models, persisting state changes as a sequence of immutable events for reliable auditability and reconstruction.

Can I find code examples for implementing Hexagonal Architecture in TypeScript?

Yes, TypeScript code examples for Hexagonal Architecture are provided, demonstrating how to define ports and adapters to decouple application core logic from external frameworks and databases.

How do I choose the right software architecture pattern for my project?

Choose the right software architecture pattern by evaluating project complexity, scalability requirements, and team expertise, using provided decision guidance to match specific pattern implementations to your system needs.

Does this guidance cover implementing microservices with Python?

Yes, it covers implementing microservices with Python, offering architectural decision guidance and code examples to build robust, scalable, and maintainable distributed systems.