---
name: claude-code-clean-arch
description: "Prevents autonomous coding agents from dumping 800-line spaghetti files and mixing database calls directly into React components."
---

# SKILL: Claude Code Clean Architecture
## Architectural Constraints
1. Components must not contain business logic or raw database operations.
2. Delegate data mutations to explicit server functions or domain services.
3. Every API endpoint and server function must be schema-validated with Zod.
4. File size limit: Split any file exceeding 250 lines into atomic modules.
