
Prisma Patterns
This is the Prisma cheat sheet you wish you'd had before running `updateMany` and wondering why it returned a count instead of records, or before `migrate dev` reset your local database mid-sprint. It covers the traps that actually bite: `@updatedAt` skipped on bulk writes, `$transaction` timeouts in long operations, serverless connection pool exhaustion, and the N+1 problem with eager loading. You also get practical patterns for cursor pagination, soft delete filtering, singleton client setup, and when to use the interactive versus array transaction form. Activate it when writing queries, designing schemas, or deploying to serverless, especially if you're past the tutorial phase and dealing with production edge cases.
- skills.sh installs
- 5.5K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --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/ecc
- Categories
- Backend & APIs, Cloud & Infrastructure, Design & UI/UX, Databases
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Continuous Agent Loop5.5K
- Continuous Learning5.5K
- Agent Eval5.5K
- Exa Search5.5K
- Agent Sort5.5K
- Product Lens5.5K
- Iterative Retrieval5.5K
- Skill Stocktake5.5K
- Benchmark5.5K
- Healthcare Emr Patterns5.5K
- Homelab Network Setup5.5K
- Ios Icon Gen5.5K
- Kotlin Ktor Patterns5.5K
- Api Connector Builder5.5K
- Safety Guard5.5K
- Csharp Testing5.5K
- Skill Scout5.5K
- Customs Trade Compliance5.5K
- Research Ops5.5K
- Crosspost5.5K
- Videodb5.5K
- Click Path Audit5.5K
- Skill Comply5.5K
- Hipaa Compliance5.5K