概要
This skill provides a comprehensive framework for building production-grade tRPC v11 layers in Next.js applications, emphasizing a clean separation between thin routers and domain-specific commands. It guides developers through implementing secure role-based access control (RBAC), centralizing domain error mapping, and ensuring type safety from the database to the UI. By adhering to these architectural patterns, developers can maintain clear client-server boundaries, implement efficient pagination, and reduce boilerplate while building scalable and maintainable full-stack applications.