What problem does it solve? Prisma projects often hit schema design errors, failed migrations, N+1 query bottlenecks, and connection pool exhaustion that are hard to diagnose without deep ORM expertise. This Skill provides structured playbooks to detect, diagnose, and fix these issues across PostgreSQL, MySQL, and SQLite. ## Core Features & Use Cases - Schema Design Review: Validates relation definitions, indexes, enums, and field types with prisma validate and prisma migrate diff, then applies prioritized fixes. - Migration Management: Handles migration conflicts, failed production deployments, and shadow database issues using migrate dev, migrate deploy, and migrate resolve workflows. - Query Optimization: Detects N+1 problems and over-fetching, then rewrites queries with include, select, or $queryRaw for complex aggregations. - Use Case: Your serverless app on Vercel throws "too many connections" errors. The Skill detects the environment, applies the global PrismaClient singleton pattern, and configures connection_limit in the DATABASE_URL. ## Quick Start Ask the assistant to review your prisma/schema.prisma file and fix any relation or index issues, then optimize a slow query in your repository.