Tooluck logoTooluck
SKILL.md

architecture-patterns

Agent skill fromwshobson/agents

Implement proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design. Use this skill when designing clean architecture for a new microservice, when refactoring a monolith to use bounded contexts, when implementing hexagonal or onion architecture patterns, or when debugging dependency cycles between application layers.

How to install architecture-patterns

install architecture-patterns
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/backend-development/skills/architecture-patterns/

# into

~/.claude/skills/architecture-patterns/ (all projects)

.claude/skills/architecture-patterns/ (one project)

plugins/backend-development/skills/architecture-patterns/SKILL.md

MITFull file
1# Architecture Patterns
2
3Master proven backend architecture patterns including Clean Architecture, Hexagonal Architecture, and Domain-Driven Design to build maintainable, testable, and scalable systems.
4
5**Given:** a service boundary or module to architect.
6**Produces:** layered structure with clear dependency rules, interface definitions, and test boundaries.
7
8## When to Use This Skill
9
10- Designing new backend services or microservices from scratch
11- Refactoring monolithic applications where business logic is entangled with ORM models or HTTP concerns
12- Establishing bounded contexts before splitting a system into services
13- Debugging dependency cycles where infrastructure code bleeds into the domain layer
14- Creating testable codebases where use-case tests do not require a running database
15- Implementing domain-driven design tactical patterns (aggregates, value objects, domain events)
16
17## Core Concepts
18
19### 1. Clean Architecture (Uncle Bob)
20
21**Layers (dependency flows inward):**
22
23- **Entities**: Core business models, no framework imports
24- **Use Cases**: Application business rules, orchestrate entities
25- **Interface Adapters**: Controllers, presenters, gateways — translate between use cases and external formats
26- **Frameworks & Drivers**: UI, database, external services — all at the outermost ring
27
28**Key Principles:**
29
30- Dependencies point inward only; inner layers know nothing about outer layers
31…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates