
Architecture Patterns
This one walks you through Clean Architecture, Hexagonal Architecture, and DDD with actual code examples in Python. You get the full layer breakdowns (entities, use cases, adapters), directory structures, and working implementations showing how to separate your domain logic from framework dependencies. The examples are practical: user repositories, order services, value objects, and how to wire up ports and adapters so you can swap databases or mock things for testing. It's comprehensive enough to use as a reference when refactoring a monolith or setting up architecture standards for a team. The code samples are clear and show the dependency flow you actually need to maintain to make these patterns work.
- skills.sh installs
- 508
- GitHub stars
- 248
- last updated
- Aug 21, 2026
Install
$ npx -y skills add secondsky/claude-skills --skill architecture-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
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)
Sponsors
Details
- Repository
- github.com/secondsky/claude-skills
- Categories
- Backend & APIs, Code Review & Quality, Design & UI/UX
- First seen
- Jun 3, 2026
More from secondsky/claude-skills
All 146- Api Rate Limiting507
- Api Security Hardening506
- Better Auth502
- Design System Creation500
- React Composition Patterns494
- Api Contract Testing491
- React Native Skills490
- Technical Specification489
- Mobile App Testing480
- Api Design Principles479
- Frontend Design479
- Threejs477
- Csrf Protection474
- Ml Model Training474
- Payment Gateway Integration469
- Test Quality Analysis469
- Api Reference Documentation465
- Tanstack Router461
- Systematic Debugging457
- Interaction Design456
- Mutation Testing456
- Api Error Handling455
- Internationalization I18n455
- Security Headers Configuration454