Prisma Patterns is a specialized skill designed for developers building scalable TypeScript applications with the Prisma ORM. It provides domain-specific guidance on complex schema design, query optimization, and robust transaction management. The skill focuses on practical production needs, such as cursor-based pagination, serverless connection pooling, and soft-delete implementation. By highlighting non-obvious traps—including the updateMany return value behavior, @updatedAt limitations in bulk operations, and transaction timeouts—it ensures your database layer is both performant and reliable across local and cloud environments.
主な機能
01Advanced transaction management for interactive and batch operations
02Serverless-specific connection pooling and lifecycle management
03214,448 GitHub stars
04Schema design optimization for IDs, indexing, and relation strategies
05Safe migration workflows for local development and production deployments
06Efficient query patterns using select/include and N+1 problem prevention
ユースケース
01Architecting scalable database schemas for new TypeScript backends
02Optimizing database performance and implementing stable cursor-based pagination
03Implementing safe multi-step database migrations on live production systems