prisma-client-api
Prisma Client API reference covering model queries, filters, operators, and client methods.
Skill by prisma
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/velclaw-prisma-client-api-aa995c
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, data, writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
prisma-client-api- Description
- Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
- License
- MIT
- Metadata
- author: prisma · version: 7.6.0
- Instructions
- 209 lines in SKILL.md · view on GitHub
Files (9)
- SKILL.md
- client-methods.md · references/
- constructor.md · references/
- filters.md · references/
- model-queries.md · references/
- query-options.md · references/
- raw-queries.md · references/
- relations.md · references/
- transactions.md · references/
SKILL.md (first lines)
# Prisma Client API Reference
Complete API reference for Prisma Client. This skill provides guidance on model queries, filtering, relations, and client methods for current Prisma projects.
## When to Apply
Reference this skill when:
- Writing database queries with Prisma Client
- Performing CRUD operations (create, read, update, delete)
- Filtering and sorting data
- Working with relations
- Using transactions
- Configuring client options
## Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|----------|----------|--------|--------|
| 1 | Client Construction | HIGH | `constructor` |
| 2 | Model Queries | CRITICAL | `model-queries` |
| 3 | Query Shape | HIGH | `query-options` |
| 4 | Filtering | HIGH | `filters` |
| 5 | Relations | HIGH | `relations` |
| 6 | Transactions | CRITICAL | `transactions` |
| 7 | Raw SQL | CRITICAL | `raw-queries` |
| 8 | Client Methods | MEDIUM | `client-methods` |
## Quick Reference
- `constructor` - `PrismaClient` setup, adapter wiring, logging, and SQL commenter plugins
- `model-queries` - CRUD operations and bulk operations
- `query-options` - `select`, `include`, `omit`, sort, pagination
- `filters` - scalar and logical filter operators
- `relations` - relation reads and nested writes
- `transactions` - array and interactive transaction patterns
- `raw-queries` - `$queryRaw` and `$executeRaw` safety
- `client-methods` - lifecycle methods, extensions, and `satisfies` patterns for `prisma-client`
## Client Instantiation
```typescript
import { PrismaClient } from '../generated/client'
import { PrismaPg } from '@prisma/adapter-pg'
const adapter = new PrismaPg({
connectionString: process.env.DATABASE_URL
})
const prisma = new PrismaClient({ adapter })
```
## Model Query Methods
| Method | Description |
|--------|-------------|
| `findUnique()` | Find one record by unique field |
| `findUniqueOrThrow()` | Find one or throw error |
| `findFirst()` | Find first matching record |
| `findFirstOrThrow()` | Find first or throw error |
| `findMany()` | Find multiple records |
| `create()` | Create a new record |
| `createMany()` | Create multiple records |
| `createManyAndReturn()` | Create multiple and return them |
| `update()` | Update one record |
| `updateMany()` | Update multiple records |
| `updateManyAndReturn()` | Update multiple and return them |
| `upsert()` | Update or create record |
| `delete()` | Delete one record |
| `deleteMany()` | Delete multiple records |
| `count()` | Count matching records |
| `aggregate()` | Aggregate values (sum, avg, etc.) |
| `groupBy()` | Group and aggregate |
## Query Options
| Option | Description |
|--------|-------------|
| `where` | Filter conditions |
| `select` | Fields to include |
| `include` | Relations to load |
| `omit` | Fields to exclude |
| `orderBy` | Sort order |
| `take` | Limit results |
| `skip` | Skip results (pagination) |
| `cursor` | Cursor-based pagination |
| `distinct` | Unique values only |
## Client Methods
| Method | Description |
|--------|-------------|
| `$connect()` | Explicitly connect to database |
| `$disconnect()` | Disconnect from database |
| `$transaction()` | Execute transaction |
| `$queryRaw()` | Execute raw SQL query |
| `$executeRaw()` | Execute raw SQL command |
| `$on()` | Subscribe to events |
| `$extends()` | Add extensions |
## Quick Examples
### Find records
```typescript
// Find by unique field
const user = await prisma.user.findUnique({
where: { email: 'alice@prisma.io' }
})
// Find with filter
const users = await prisma.user.findMany({
where: { role: 'ADMIN' },
orderBy: { createdAt: 'desc' },
take: 10
})
```
### Create recordsFrom Velclaw/VELCLAW, MIT.
More from Velclaw/VELCLAW
- 0.585score
velclaw-agent-platform
Velclaw
Điều phối multi-agent, tích hợp channel (Telegram/WhatsApp/WeChat), coding agent, monitoring/dashboard, và plugin auth Cursor cho hệ sinh thái Velclaw.
SkillAFreshness: A★ 2Claude Code +9 - 0.583score
vercel-platform
Velclaw
Diagnose, configure, build, and deploy applications in the Vercel ecosystem, including Next.js, Vite, pnpm monorepos, environment variables, deployment logs…
SkillAFreshness: A★ 2Claude Code +9 - 0.580score
velaclaw-api-agent
Velclaw
Hướng dẫn tích hợp API token, cấu hình agent, và tạo plugins/skills cho dự án AI sử dụng repo VelaClaw/VELCLAW (ailib-official/velaclaw hoặc zylzyqzz/Vclaw).
SkillAFreshness: A★ 2Claude Code +9 - 0.577score
velclaw-github-guardian
Velclaw
Review and repair Velclaw ecosystem repositories using approval-first changes and policy-gated auto-merge.
SkillAFreshness: A★ 2Claude Code +9 - 0.550score
prisma-cli
prisma
Prisma ORM CLI commands reference covering init, generate, migrate, db, dev, studio, validate, format, debug, and mcp.
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
prisma-compute
prisma
Prisma Compute deployment and hosting guide.
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
prisma-database-setup
prisma
Guides for configuring Prisma with different database providers (PostgreSQL, MySQL, SQLite, MongoDB, etc.).
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
prisma-mongodb-upgrade
prisma
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7.
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
prisma-postgres
prisma
Prisma Postgres setup and operations guidance across Console, create-db CLI, Management API, and Management API SDK.
SkillBFreshness: B★ 2Claude Code +9 - 0.550score
prisma-postgres-setup
prisma
Set up a new Prisma Postgres database and connect it to a local project using the Management API.
SkillBFreshness: B★ 2Claude Code +9 - 0.545score
sequential-thinking
Velclaw
Structured sequential problem-solving with branching, revision, and adaptive depth.
SkillBFreshness: B★ 2Claude Code +9 - 0.305score
prisma-driver-adapter-implementation
Tyler Benfield
Required reference for Prisma v7 driver adapter work.
SkillBFreshness: B★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 2
- Open issues
- 16
- Last commit (this folder)
- Sep 11, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 7.6.0
- License
- MIT
- Repository
- github.com/Velclaw/VELCLAW
- Website
- velclaw.site
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.715score
prisma-client-api
prismaOfficial
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillBFreshness: B★ 76Claude Code +9 - 0.347score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillAFreshness: A★ 1Claude Code +9 - 0.347score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillAFreshness: A★ 1Claude Code +9 - 0.311score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillBFreshness: BClaude Code +9 - 0.311score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillBFreshness: BClaude Code +9 - 0.311score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillBFreshness: BClaude Code +9 - 0.281score
prisma-client-api
prisma
Prisma Client API reference covering model queries, filters, operators, and client methods.
SkillCFreshness: CClaude Code +9
More from prisma
- 0.760score
prisma-compute
prismaOfficial
Deploy and operate apps on Prisma Compute with the Prisma 8 CLI.
SkillAFreshness: A★ 76Claude Code +9 - 0.760score
prisma-mongodb-upgrade
prismaOfficial
Decision and migration guide for Prisma ORM MongoDB projects on v6, which have no upgrade path to v7.
SkillAFreshness: A★ 76Claude Code +9 - 0.760score
prisma-orm-setup
prismaOfficial
Set up Prisma ORM in an application, connect its database, or troubleshoot the connection of an existing Prisma 6, 7, or 8 app.
SkillAFreshness: A★ 76Claude Code +9 - 0.760score
prisma-postgres-setup
prismaOfficial
Obtain or reuse a Prisma Postgres database and connect an application.
SkillAFreshness: A★ 76Claude Code +9 - 0.760score
prisma-upgrade-v7
prismaOfficial
Complete migration guide from Prisma ORM v6 to v7 covering all breaking changes.
SkillAFreshness: A★ 76Claude Code +9 - 0.756score
prisma-cli
prismaOfficial
Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows.
SkillAFreshness: A★ 76Claude Code +9
Cite this page
prisma-client-api skill. Agent Mart. https://agentmart.dev/skills/velclaw-prisma-client-api-aa995c (last updated 2026-10-24)