architecture-patterns
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
Skill by Harmeet10000
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/harmeet10000-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
```
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 Harmeet10000/skills, MIT.
More from Harmeet10000/skills
- 0.474score
text-to-speech
Harmeet10000
Convert text to speech using ElevenLabs voice AI.
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
langsmith-evaluator
Harmeet10000
INVOKE THIS SKILL when building evaluation pipelines for LangSmith.
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
langchain-dependencies
Harmeet10000
INVOKE THIS SKILL when setting up a new project or when asked about package versions, installation, or dependency management for LangChain, LangGraph…
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
ai-music-generation
Harmeet10000
Generate AI music and songs with Diffrythm, Tencent Song Generation via inference.sh CLI.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
langchain-middleware
Harmeet10000
INVOKE THIS SKILL when you need human-in-the-loop approval, custom middleware, or structured output.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
deep-agents-core
Harmeet10000
INVOKE THIS SKILL when building ANY Deep Agents application.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
deep-agents-memory
Harmeet10000
INVOKE THIS SKILL when your Deep Agent needs memory, persistence, or filesystem access.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
deep-agents-orchestration
Harmeet10000
INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
langsmith-dataset
Harmeet10000
INVOKE THIS SKILL when creating evaluation datasets, uploading datasets to LangSmith, or managing existing datasets.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
langsmith-trace
Harmeet10000
INVOKE THIS SKILL when working with LangSmith tracing OR querying traces.
SkillDFreshness: D★ 7Claude Code +9 - 0.463score
langchain-fundamentals
Harmeet10000
Create LangChain agents with create_agent, define tools, and use middleware for human-in-the-loop and error handling.
SkillDFreshness: D★ 7Claude Code +9 - 0.461score
crawl4ai
Harmeet10000
Complete toolkit for web crawling and data extraction using Crawl4AI.
SkillDFreshness: D★ 7Claude Code +9
Signals
- Stars
- 7
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 15, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Harmeet10000/skills
- 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.339score
architecture-patterns
woernfl
Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design.
SkillAFreshness: AClaude 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.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 Harmeet10000
- 0.474score
text-to-speech
Harmeet10000
Convert text to speech using ElevenLabs voice AI.
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
langchain-dependencies
Harmeet10000
INVOKE THIS SKILL when setting up a new project or when asked about package versions, installation, or dependency management for LangChain, LangGraph…
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
ai-music-generation
Harmeet10000
Generate AI music and songs with Diffrythm, Tencent Song Generation via inference.sh CLI.
SkillDFreshness: D★ 7Claude Code +9 - 0.469score
langsmith-evaluator
Harmeet10000
INVOKE THIS SKILL when building evaluation pipelines for LangSmith.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
deep-agents-core
Harmeet10000
INVOKE THIS SKILL when building ANY Deep Agents application.
SkillDFreshness: D★ 7Claude Code +9 - 0.466score
deep-agents-orchestration
Harmeet10000
INVOKE THIS SKILL when using subagents, task planning, or human approval in Deep Agents.
SkillDFreshness: D★ 7Claude Code +9
Cite this page
architecture-patterns skill. Agent Mart. https://agentmart.dev/skills/harmeet10000-architecture-patterns (last updated 2026-10-24)