
Prisma Patterns
This is the Prisma skill you reach for when you're past the getting-started docs and need production patterns. It covers the traps that bite you at scale: updateMany returning counts instead of records, @updatedAt silently skipping bulk writes, migrate dev resetting your database, and serverless connection pool exhaustion. You'll find cursor pagination with the limit-plus-one trick, soft delete patterns without middleware magic, transaction form selection (array vs interactive), and schema design decisions around ID strategies and indexing. Tested against Prisma 5 and 6, with notes on relationJoins and when it causes row explosion. Written for TypeScript backends where one bad query pattern can tank your API latency.
- skills.sh installs
- 1.4K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill prisma-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Prisma Patterns
Production patterns and non-obvious traps for Prisma ORM in TypeScript backends.
Check your version before applying patterns. The Prisma API surface has evolved across major releases:
npx prisma --versionNotable API differences across versions:
relationJoinscan load relations via JOIN rather than separate queries, but may cause row explosion on large 1:N relations or deepinclude— benchmark both approachesomitfield modifier andprisma.$extendsClient Extensions API were added- Newer installs: the package may be named
prismainstead of@prisma/client;PrismaClientmay require a driver adapter (e.g.@prisma/adapter-pg);datasource.urlmay live inprisma.config.tsinstead ofschema.prisma- CLI commands (
migrate dev,migrate deploy,generate) are unchanged across versions
When to Activate
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- Categories
- Backend & APIs, Databases
- First seen
- Jun 3, 2026
More from affaan-m/everything-claude-code
All 256- Blender Motion State Inspection1.3K
- Recsys Pipeline Architect1.3K
- Uncloud1.2K
- React Testing910
- React Performance903
- React Patterns893
- Frontend A11y870
- Marketing Campaign827
- Benchmark Optimization Loop826
- Latency Critical Systems818
- Parallel Execution Optimizer813
- Social Publisher806
- Data Throughput Accelerator805
- Prediction Market Risk Review801
- Recursive Decision Ledger801
- Prediction Market Oracle Research796
- Ito Basket Compare794
- Ito Data Atlas Agent794
- Ito Market Intelligence794
- Ito Trade Planner791
- Team Agent Orchestration539
- Dynamic Workflow Mode536
- Security Review11.5K
- Golang Patterns9.9K