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/)

Layer 2: Use Cases (Application Logic)

Orchestrate business workflows. Depend on entities, return Result objects.

  • Rails: Service objects with single call method (backend/app/services/)
  • React Native: Custom hooks wrapping TanStack Query (mobile/src/hooks/)
Related skills

More from kaakati/sdh-claude-skills

Installs
2
GitHub Stars
1
First Seen
2 days ago