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.
74
59%
Does it follow best practices?
Impact
100%
1.14xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./plugins/architecture-patterns/skills/architecture-patterns/SKILL.mdClean Architecture structure and use cases
domain/ directory
25%
100%
use_cases/ directory
100%
100%
adapters/ directory
0%
100%
Abstract repo interface
20%
100%
No framework imports in domain
100%
100%
Entity uses @dataclass
100%
100%
Entity has behavior
0%
100%
Use case constructor injection
100%
100%
Use case has request/response DTOs
0%
100%
Adapter returns domain entity
100%
100%
No business logic in adapters
100%
100%
Inward dependency direction
100%
100%
DDD value objects, aggregates, domain events
Money is frozen dataclass
100%
100%
Email is frozen dataclass
100%
100%
Money validates in __post_init__
100%
100%
Email validates in __post_init__
100%
100%
Subscription has behavior
100%
100%
Aggregate enforces max limit
100%
100%
_events list on entity
100%
100%
Cancel appends domain event
100%
100%
Billing cycle appends domain event
100%
100%
Entities use @dataclass
100%
100%
No framework dependencies
100%
100%
Cancel status guard
100%
100%
Hexagonal architecture ports and mock adapters
Ports use ABC
100%
100%
Separate ports per capability
100%
100%
Service depends on ports only
100%
100%
No infrastructure in service
100%
100%
Mock adapter provided
100%
100%
Mock adapter returns fixed result
100%
100%
Tests use mock adapters
100%
100%
Tests pass without network
100%
100%
Adapters implement ports
100%
100%
Core logic in service
100%
100%
No business logic in adapters
100%
100%
90d6bd7
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.