Skip to content

Prisma ORM expert covering schema design, migrations, query tuning, relations, and connection issues.

CCM score
59 of 100
skills.sh installs
386
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers schema design, migrations, query optimization, relation modeling, transactions, and connection management for PostgreSQL, MySQL, and SQLite
  • Provides prisma validate, migrate status, and migrate diff checks, with fixes ordered from minimal to complete
  • Enforces migrate deploy for production and warns against migrate dev outside development environments
  • Designed for Prisma projects with schema drift, failed migrations, N+1 queries, or pool exhaustion, and defers raw SQL tuning to other specialists

Install

$ npx -y skills add davila7/claude-code-templates --skill prisma-expert -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

# 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

Details

Repository
github.com/davila7/claude-code-templates
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the prisma-expert skill do?

prisma-expert is an expert skill for Prisma ORM covering schema design, migrations, query optimization, relation modeling and database operations across PostgreSQL, MySQL and SQLite. It is meant to be used for Prisma schema issues, migration problems, query performance, relation design and database connection issues.

How do I install the prisma-expert skill?

Run npx -y skills add davila7/claude-code-templates --skill prisma-expert -y in a project to install it. After that, prisma-expert lets the agent check your Prisma version and provider, validate and format your schema, inspect migration status and suggest fixes.

Which skills are alongside prisma-expert in the Databases category?

prisma-expert sits in the Databases category next to supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. Its own focus is broad Prisma ORM expertise covering schema, migrations, query tuning and connection problems in one skill.

When should prisma-expert hand a task to another specialist?

prisma-expert is built to stop and recommend a specialist when the issue is raw SQL optimization, database server configuration or infrastructure-level connection pooling. For those cases it points to postgres-expert or mongodb-expert, database-expert, or devops-expert.

More from davila7/claude-code-templates

All 398

Similar to Prisma Expert

More Databases