prisma-driver-adapter-implementation
Required reference for Prisma v7 driver adapter work.
Skill by Tyler Benfield
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-driver-adapter-implementation-937c06
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: documents, backend
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-driver-adapter-implementation- Description
- Required reference for Prisma v7 driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter/Transaction interfaces. Contains critical contract details not inferable from code examples — including the transaction lifecycle protocol, error mapping requirements, and verification checklist. Existing implementations do not replace this skill.
- License
- MIT
- Metadata
- author: Tyler Benfield · version: 7.6.0
- Instructions
- 631 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 631 lines (spec recommends under 500)
Files (1)
- SKILL.md
SKILL.md (first lines)
# Prisma 7 Driver Adapter Implementation Guide
This skill provides everything needed to implement a Prisma ORM v7 driver adapter for any database.
## Architecture Overview
```
┌─────────────────────────────────────────────────────────────────┐
│ PrismaClient │
│ (requires adapter factory) │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ SqlMigrationAwareDriverAdapterFactory │
│ ┌─────────────────────┐ ┌─────────────────────────────┐ │
│ │ connect() │ │ connectToShadowDb() │ │
│ │ → SqlDriverAdapter │ │ → SqlDriverAdapter │ │
│ └─────────────────────┘ └─────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ SqlDriverAdapter │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │
│ │ queryRaw() │ │ executeRaw() │ │ startTransaction() │ │
│ │ → ResultSet │ │ → number │ │ → Transaction │ │
│ └──────────────┘ └──────────────┘ └──────────────────────────┘ │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────────┐ │
│ │executeScript │ │ dispose() │ │ getConnectionInfo() │ │
│ └──────────────┘ └──────────────┘ └──────────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────────┐
│ Transaction │
│ Extends SqlQueryable + commit() + rollback() + options │
│ (lifecycle hooks only — Prisma sends SQL via executeRaw) │
└─────────────────────────────────────────────────────────────────┘
```
## Required Interfaces
Import from `@prisma/driver-adapter-utils`:
```typescript
import type {
ColumnType,
IsolationLevel,
SqlDriverAdapter,
SqlMigrationAwareDriverAdapterFactory,
SqlQuery,
SqlQueryable,
SqlResultSet,
Transaction,
TransactionOptions,
ArgType,
ConnectionInfo,
MappedError,
} from "@prisma/driver-adapter-utils";
import {
ColumnTypeEnum,
DriverAdapterError,
} from "@prisma/driver-adapter-utils";
```
## Interface Definitions
### SqlQuery (input to queryRaw/executeRaw)
```typescript
type SqlQuery = {
sql: string; // Parameterized SQL with placeholders
args: Array<unknown>; // Bound parameter values
argTypes: Array<ArgType>; // Type hints for each argument
};
type ArgType = {
scalarType: ArgScalarType; // 'string' | 'int' | 'bigint' | 'float' | 'decimal' | 'boolean' | 'enum' | 'uuid' | 'json' | 'datetime' | 'bytes' | 'unknown'
dbType?: string;
arity: "scalar" | "list";
};
```
### SqlResultSet (output from queryRaw)
```typescript
interface SqlResultSet {
columnNames: Array<string>; // Column names in order
columnTypes: Array<ColumnType>; // Column types matching columnNames
rows: Array<Array<unknown>>; // Row data as arrays
lastInsertId?: string; // For INSERT without RETURNING
}
```
### ColumnTypeEnum values
```typescript
const ColumnTypeEnum = {
Int32: 0,
Int64: 1,
Float: 2,
Double: 3,
Numeric: 4,
Boolean: 5,
Character: 6,
Text: 7,
Date: 8,
Time: 9,
DateTime: 10,
Json: 11,
Enum: 12,
Bytes: 13,
Set: 14,
Uuid: 15,
Int32Array: 64,
Int64Array: 65,
FloatArray: 66,
DoubleArray: 67,From 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-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.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.545score
sequential-thinking
Velclaw
Structured sequential problem-solving with branching, revision, and adaptive depth.
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.323score
prisma-driver-adapter-implementation
Tyler Benfield
Required reference for Prisma v7 driver adapter work.
SkillAFreshness: A★ 1Claude Code +9 - 0.323score
prisma-driver-adapter-implementation
Tyler Benfield
Required reference for Prisma v7 driver adapter work.
SkillAFreshness: A★ 1Claude Code +9 - 0.285score
prisma-driver-adapter-implementation
Tyler Benfield
Required reference for Prisma v7 driver adapter work.
SkillBFreshness: BClaude Code +9 - 0.285score
prisma-driver-adapter-implementation
Tyler Benfield
Required reference for Prisma v7 driver adapter work.
SkillBFreshness: BClaude Code +9
Cite this page
prisma-driver-adapter-implementation skill. Agent Mart. https://agentmart.dev/skills/velclaw-prisma-driver-adapter-implementation-937c06 (last updated 2026-10-24)