Skip to content
Back to skills

Prisma

ASecurity

Prisma ORM — schema DSL, migrations, Prisma Client, Studio, edge deployment.

  • 47 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
devops

Works with

  • cli

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add skeletorflet/opencode-supreme-setup --skill prisma --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prisma?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prisma
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/skeletorflet-prisma/badge)](https://www.skillsdirectory.com/skills/skeletorflet-prisma)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prisma
description: Prisma ORM — schema DSL, migrations, Prisma Client, Studio, edge deployment.
---

## prisma

### Schema DSL (`schema.prisma`)
- **Models**: `model User { id Int @id @default(autoincrement()) }` with field types, attributes, default values.
- **Enums**: `enum Role { USER ADMIN }` used as field types.
- **Relations**: `@relation` with `fields: [authorId] references: [id]` for one-to-many, many-to-many.
- **Attributes**: `@unique`, `@index`, `@default(now())`, `@updatedAt`.

### Migrations
- `prisma migrate dev` — generate + apply migration; `prisma migrate deploy` — apply in CI/prod.
- `prisma migrate reset` — drop + recreate; `prisma migrate status` — check drift.
- Use `prisma migrate resolve` to fix migration history conflicts.

### Prisma Client
- `new PrismaClient()` — instantiate; `prisma.user.findMany()` — CRUD.
- Filtering: `where: { email: { contains: "example.com" } }`; sorting: `orderBy: { name: "asc" }`; pagination: `take: 10, skip: 20`.
- Include/nested reads: `include: { posts: true }`; select specific fields.

### Prisma Studio
- `npx prisma studio` — GUI for browsing/editing data.

### Extensions & Edge
- Zod schemas auto-generated via `prisma-zod` for validation.
- `@prisma/client` works on Edge (Neon, Cloudflare D1) via `@prisma/adapter-neon` or `@prisma/adapter-pg`.
- Policy/permission layer: `@prisma/extension-policy` or middleware middleware hooks.
- Connection pooling with PgBouncer for serverless.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.