Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Prisma Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-prisma-patterns)
---
name: prisma-patterns
description: "Prisma ORM patterns: schema design, migrations, relation queries, transactions and avoiding N+1."
tags: [typescript, database]
---
# Prisma Patterns
## When to use
- Node/TypeScript apps using Prisma
## Procedure
1. Model relations explicitly with indexes
2. Use prisma migrate in dev and migrate deploy in CI/CD
3. Select only needed fields; include relations deliberately
4. Use interactive transactions for multi-step writes
5. One PrismaClient per process (singleton in serverless)
## Checklist
- [ ] Migrations reviewed before deploy
- [ ] Connection limits set
## Anti-patterns
- Creating a client per request
- Fetching whole tables