prisma-orm
Models databases and writes type-safe queries with Prisma ORM. Use for modern Node.js/TypeScript database access.
Target: Databases. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Prisma ORM
- Quick Start
- When to Use
- Best Practices
- Step-by-Step Instructions
- Dependencies
- Examples
- Resources
Type-safe database access with auto-generated queries. Type-safe database access Rapid schema evolution with migrations Not for complex raw SQL queries Define the schema as the single source of truth; generate the client. Use migrations for every schema change, committed with the code. Select only needed fields (select) to avoid over-fetching. Use include/relationLoadStrategy deliberately to prevent N+1. Batch writes with createMany/updateMany. Use transactions for multi-step consistency. 1. Install: npm install prisma @prisma/client 2. Init: npx prisma init 3. Define models in schema.prisma 4. Migrate: npx prisma migrate dev 5. Generate client and query with types Input: prisma.user.findMany({ where: { email: { contains: "@" } } }) → Output: All users with @ in email Prisma Docs Examples PrismaClientInitializationError — the schema is out of sync. Re-run npx prisma generate and check the DATABASEURL is reachable. Introspection overwrites custom types — treat prisma db pull as an initial scaffold; re-apply manual types and relations afterwards. Relation queries are slow — missing index. Add @@index on foreign keys and use the Prisma Data Platform for query analysis. Migrations drif
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- ssrjkk/agent-skills
- Source file
- .claude/skills/database/prisma-orm/SKILL.md
- Fixed revision
- 868975614072b553f929cb32c52c5e7dc4ba8734
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: ssrjkk/agent-skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-11T03:01:42.368Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.