clean-architecture
Installation
SKILL.md
Clean Architecture Skill
Validate, implement, and maintain Clean Architecture patterns across the full stack. This skill covers architectural conformance checking, layer boundary enforcement, and guided refactoring.
See references/layer-examples.md for full code examples across all frameworks.
Architecture Layers
Layer 1: Entities (Domain Core)
The innermost layer. Pure business logic with zero framework dependencies.
- Rails: Models with domain logic only (
backend/app/models/), value objects (backend/app/values/) - React Native: Pure TypeScript interfaces and domain functions (
mobile/src/domain/) - Vite SPA: Pure TypeScript types (
web/src/domain/) - Next.js: Shared TypeScript types (
next/src/domain/)