Clean Architecture
Building maintainable, testable software architectures
Build maintainable software architectures using Robert C. Martin's Clean Architecture principles. This skill equips your AI agent with the Dependency Rule, layered architecture patterns, and boundary design that keeps business logic independent of frameworks and infrastructure.
Clean Architecture
npx skills add wondelai/skills/clean-architecture What your agent learns
The Dependency Rule
Dependencies point inward — outer layers depend on inner layers, never the reverse. Business rules know nothing about UI or databases.
Entities & Use Cases
Entities encapsulate enterprise-wide business rules. Use cases contain application-specific business rules that orchestrate entities.
Interface Adapters
Controllers, presenters, and gateways convert data between the format most convenient for use cases and the format used by external agencies.
Frameworks Are Details
Frameworks and databases are implementation details — keep them at the outer ring and make them replaceable.
SOLID Principles
Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion guide component design.
Try these with the skill installed
Restructure this application to follow Clean Architecture layers using clean-architecture skill
ArchitectureIdentify Dependency Rule violations in this codebase using clean-architecture skill
Architecture reviewDesign use case and entity layers for this feature using clean-architecture skill
DesignDecouple the database layer so we can swap ORMs without touching business logic using clean-architecture skill
RefactoringInstall Clean Architecture
Free, open-source, and ready in 30 seconds.
npx skills add wondelai/skills/clean-architecture MIT Licensed · Works with Claude Code, Cursor, Claude Cowork & OpenClaw · No account needed