architecture-patterns
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
Skill by woernfl
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/woernfl-architecture-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
architecture-patterns- Description
- Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use when architecting complex backend systems or refactoring existing applications for better maintainability.
- License
- MIT
- Instructions
- 491 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Architecture Patterns
Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.
## When to Use This Skill
- Designing new backend systems from scratch
- Refactoring monolithic applications for better maintainability
- Establishing architecture standards for your team
- Migrating from tightly coupled to loosely coupled architectures
- Implementing domain-driven design principles
- Creating testable and mockable codebases
- Planning microservices decomposition
## Core Concepts
### 1. Clean Architecture (Uncle Bob)
**Layers (dependency flows inward):**
- **Entities**: Core business models
- **Use Cases**: Application business rules
- **Interface Adapters**: Controllers, presenters, gateways
- **Frameworks & Drivers**: UI, database, external services
**Key Principles:**
- Dependencies point inward
- Inner layers know nothing about outer layers
- Business logic independent of frameworks
- Testable without UI, database, or external services
### 2. Hexagonal Architecture (Ports and Adapters)
**Components:**
- **Domain Core**: Business logic
- **Ports**: Interfaces defining interactions
- **Adapters**: Implementations of ports (database, REST, message queue)
**Benefits:**
- Swap implementations easily (mock for testing)
- Technology-agnostic core
- Clear separation of concerns
### 3. Domain-Driven Design (DDD)
**Strategic Patterns:**
- **Bounded Contexts**: Separate models for different domains
- **Context Mapping**: How contexts relate
- **Ubiquitous Language**: Shared terminology
**Tactical Patterns:**
- **Entities**: Objects with identity
- **Value Objects**: Immutable objects defined by attributes
- **Aggregates**: Consistency boundaries
- **Repositories**: Data access abstraction
- **Domain Events**: Things that happened
## Clean Architecture Pattern
### Directory Structure
```text
app/
├── domain/ # Entities & business rules
│ ├── entities/
│ │ ├── user.py
│ │ └── order.py
│ ├── value_objects/
│ │ ├── email.py
│ │ └── money.py
│ └── interfaces/ # Abstract interfaces
│ ├── user_repository.py
│ └── payment_gateway.py
├── use_cases/ # Application business rules
│ ├── create_user.py
│ ├── process_order.py
│ └── send_notification.py
├── adapters/ # Interface implementations
│ ├── repositories/
│ │ ├── postgres_user_repository.py
│ │ └── redis_cache_repository.py
│ ├── controllers/
│ │ └── user_controller.py
│ └── gateways/
│ ├── stripe_payment_gateway.py
│ └── sendgrid_email_gateway.py
└── infrastructure/ # Framework & external concerns
├── database.py
├── config.py
└── logging.py
```
### Implementation Example
```python
# domain/entities/user.py
from dataclasses import dataclass
from datetime import datetime
from typing import Optional
@dataclass
class User:
"""Core user entity - no framework dependencies."""
id: str
email: str
name: str
created_at: datetime
is_active: bool = True
def deactivate(self):
"""Business rule: deactivating user."""
self.is_active = False
def can_place_order(self) -> bool:From woernfl/ai-lab, MIT.
More from woernfl/ai-lab
- 0.566score
k8s-security-policies
woernfl
Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security.
SkillAFreshness: AClaude Code +9 - 0.560score
k8s-manifest-generator
woernfl
Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards.
SkillAFreshness: AClaude Code +9 - 0.557score
python-ase
woernfl
Expert assistance with the Atomic Simulation Environment (ASE) Python library for atomistic simulations, including structure building, calculator setup…
SkillAFreshness: AClaude Code +9 - 0.551score
python-best-practices
woernfl
Expert guidance for writing professional Python code following industry best practices including PEP 8 compliance, testing, type hints, error handling, and…
SkillAFreshness: AClaude Code +9 - 0.548score
python-multiobjective-optimization
woernfl
Expert guidance for multiobjective optimization in Python - Pareto optimality, evolutionary algorithms (NSGA-II, NSGA-III, MOEA/D), scalarization methods…
SkillAFreshness: AClaude Code +9 - 0.548score
python-jax
woernfl
Expert guidance for JAX (Just After eXecution) - high-performance numerical computing with automatic differentiation, JIT compilation, vectorization, and…
SkillAFreshness: AClaude Code +9 - 0.524score
github-issue-enhancer
woernfl
Enhance GitHub issues with additional information, context, and structure to prepare them for autonomous agent processing.
SkillBFreshness: BClaude Code +9 - 0.474score
github-pr
woernfl
Commit staged or local changes, push the branch, then open a Pull Request on GitHub using the gh CLI.
SkillCFreshness: CClaude Code +9 - 0.474score
commit-push
woernfl
Stage current git changes, generate a Conventional Commit message, commit, and push safely to the remote.
SkillCFreshness: CClaude Code +9 - 0.474score
naming-convention
woernfl
Help the user choose, validate, or rename infrastructure resource names using a well known naming convention.
SkillCFreshness: CClaude Code +9 - 0.471score
kubernetes-architect
woernfl
Expert Kubernetes architect specializing in cloud-native infrastructure, advanced GitOps workflows (ArgoCD/Flux), and enterprise container orchestration.
SkillCFreshness: CClaude Code +9 - 0.471score
kubernetes-deployment
woernfl
Kubernetes deployment workflow for container orchestration, Helm charts, service mesh, and production-ready K8s configurations.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 21, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/woernfl/ai-lab
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.648score
architecture-patterns
foryourhealth111-pixel
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.318score
architecture-patterns
harshahosur81
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: C★ 7Claude Code +9 - 0.303score
architecture-patterns
ovachiever
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 55Claude Code +9 - 0.293score
architecture-patterns
alexander-kastil
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 19Claude Code +9 - 0.290score
architecture-patterns
roadsidedev
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 20Claude Code +9 - 0.286score
architecture-patterns
LeoYeAI
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.285score
architecture-patterns
jiho00seo-dev
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 10Claude Code +9 - 0.281score
architecture-patterns
Harmeet10000
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 7Claude Code +9 - 0.279score
architecture-patterns
haresh-sai06
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillCFreshness: CClaude Code +9 - 0.256score
architecture-patterns
xurenlu
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: D★ 1Claude Code +9 - 0.243score
architecture-patterns
Mikisbell
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: DClaude Code +9 - 0.243score
architecture-patterns
Mikisbell
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillDFreshness: DClaude Code +9
More from woernfl
- 0.566score
k8s-security-policies
woernfl
Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security.
SkillAFreshness: AClaude Code +9 - 0.560score
k8s-manifest-generator
woernfl
Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards.
SkillAFreshness: AClaude Code +9 - 0.557score
python-ase
woernfl
Expert assistance with the Atomic Simulation Environment (ASE) Python library for atomistic simulations, including structure building, calculator setup…
SkillAFreshness: AClaude Code +9 - 0.551score
python-best-practices
woernfl
Expert guidance for writing professional Python code following industry best practices including PEP 8 compliance, testing, type hints, error handling, and…
SkillAFreshness: AClaude Code +9 - 0.548score
python-jax
woernfl
Expert guidance for JAX (Just After eXecution) - high-performance numerical computing with automatic differentiation, JIT compilation, vectorization, and…
SkillAFreshness: AClaude Code +9 - 0.548score
python-multiobjective-optimization
woernfl
Expert guidance for multiobjective optimization in Python - Pareto optimality, evolutionary algorithms (NSGA-II, NSGA-III, MOEA/D), scalarization methods…
SkillAFreshness: AClaude Code +9
Cite this page
architecture-patterns skill. Agent Mart. https://agentmart.dev/skills/woernfl-architecture-patterns (last updated 2026-10-24)