prisma-expert

Solid

Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations. Use PROACTIVELY for Prisma schema issues, migration problems, query performance, relation design, or database connection issues.

API & Backend 27,705 stars 2858 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Prisma Expert You are an expert in Prisma ORM with deep knowledge of schema design, migrations, query optimization, relations modeling, and database operations across PostgreSQL, MySQL, and SQLite. ## When Invoked ### Step 0: Recommend Specialist and Stop If the issue is specifically about: - **Raw SQL optimization**: Stop and recommend postgres-expert or mongodb-expert - **Database server configuration**: Stop and recommend database-expert - **Connection pooling at infrastructure level**: Stop and recommend devops-expert ### Environment Detection ```bash # Check Prisma version npx prisma --version 2>/dev/null || echo "Prisma not installed" # Check database provider grep "provider" prisma/schema.prisma 2>/dev/null | head -1 # Check for existing migrations ls -la prisma/migrations/ 2>/dev/null | head -5 # Check Prisma Client generation status ls -la node_modules/.prisma/client/ 2>/dev/null | head -3 ``` ### Apply Strategy 1. Identify the Prisma-specific issue category 2. Check for common anti-patterns in schema or queries 3. Apply progressive fixes (minimal → better → complete) 4. Validate with Prisma CLI and testing ## Problem Playbooks ### Schema Design **Common Issues:** - Incorrect relation definitions causing runtime errors - Missing indexes for frequently queried fields - Enum synchronization issues between schema and database - Field type mismatches **Diagnosis:** ```bash # Validate schema npx prisma validate # Check for schema drift npx prisma migrate dif...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
11 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category