What problem does it solve? Writing Express + Prisma backend code without consistent conventions leads to connection pool exhaustion, leaked stack traces, missing authorization checks, and unbounded Socket.IO broadcasts. This Skill encodes the exact architectural patterns used in the VSmartwatch HealthGuard admin backend so generated or modified code follows the project's layering, error model, and security rules. ## Core Features & Use Cases - Layered architecture enforcement: Routes map URLs, controllers parse and delegate, services hold business logic with Zod validation and Prisma transactions. - Security patterns: PrismaClient singleton, JWT auth middleware with role checks, resource ownership verification, pre-signed S3 URLs, and room-scoped Socket.IO emissions. - Error handling and testing: Centralized error handler mapping Prisma P2002/P2025 and ZodError codes, plus Jest service tests using jest-mock-extended. - Use Case: When adding a new device-management endpoint to HealthGuard/backend, apply this Skill to generate the route, thin controller, transactional service with audit logging, and a focused Jest test that all match the existing codebase conventions. ## Quick Start Use the express-prisma-patterns skill to create a new Express route, controller, and Prisma service for managing patient devices in the HealthGuard backend.