clean-architecture
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
callmethod (backend/app/services/) - React Native: Custom hooks wrapping TanStack Query (
mobile/src/hooks/)
More from kaakati/sdh-claude-skills
refactor
Safely refactor code using Fowler's patterns with test-first methodology and incremental steps. Use this skill whenever someone asks to refactor code, reduce technical debt, extract patterns, restructure modules, or says things like "refactor this", "clean up this code", "extract this into a service", "this code smells", "reduce duplication", "decompose this function", or "restructure this module". Also trigger for code smell identification, large-scale codebase transformations, or safe migration of legacy code.
2ui-ux-patterns
|
2architecture-advisor
Evaluate architectural decisions, design system components, produce ADRs, and assess technical debt. Use this skill whenever someone asks to design a system, evaluate architecture, create an ADR, plan a large refactor, choose between technologies, or says things like "how should we architect X", "write an ADR", "evaluate this design", "what are the tradeoffs", "review the architecture", or "should we use X or Y". Also trigger for bounded context design, scalability planning, or migration strategy.
2web-design-guidelines
|
2react-best-practices
|
2api-designer
Design and review REST APIs for consistency, standards compliance, and developer experience. Use this skill whenever someone asks to design an API, create endpoints, review API contracts, generate OpenAPI specs, or says things like "design the API for X", "review this endpoint", "what should the API look like", "create a REST interface", "write the OpenAPI spec", or "check my API design". Also trigger when someone mentions pagination strategy, error response format, API versioning, or rate limiting design.
1