1. Habit
  2. Skills
  3. Prisma Driver Adapter Implementation skill
prisma · 369K installs

Prisma Driver Adapter Implementation skill
Runs by itself, PR touches adapter code.

Driver adapter changes pass the checklist.

Install the Prisma Driver Adapter Implementation skill and make it a habit: follow https://gethabit.dev/skills/prisma/prisma-driver-adapter-implementation.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

369K installs74 starsMIT licenceSource on GitHub ↗

Prisma Driver Adapter Implementation

by prisma · 369K installs

The skill

The prisma driver adapter implementation skill is a reference for building Prisma ORM 7 SQL driver adapters: transaction lifecycle, savepoints, result mapping, error preservation and a verification checklist.

Only when you ask.

The habit

Driver adapter changes pass the checklist.

↻ Runs by itselfPR touches adapter code

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one pull request per run and one fix attempt.

  1. 01

    Match the version

    The agent pins the @prisma/driver-adapter-utils version of the target Prisma release and typechecks.

  2. 02

    Check queries

    It checks that queryRaw keeps column order, types, nulls and precision, and that executeRaw reports affected rows.

  3. 03

    Check transactions

    It checks one dedicated connection per transaction and that commit and rollback release it exactly once.

  4. 04

    Check errors

    It checks DriverAdapterError mapping and that unknown errors keep their original code and message.

  5. 05

    Check cleanup

    It checks dispose ownership and that the shadow database is isolated and always dropped.

  6. 06

    Run E2E tests

    It runs Prisma Client integration tests, not only adapter unit tests, and logs open items.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Prisma Driver Adapter Implementation skill helps.

Use it when

  • ✓ You build a new driver adapter
  • ✓ You debug P2039 errors
  • ✓ You add savepoint support

Skip it when

  • – You only write Prisma queries
  • – You work on Prisma 8

Questions

Prisma Driver Adapter Implementation skill, answered.

Why not trust the type checker?

The skill says adapters are a protocol boundary: code can typecheck and still corrupt values or leak connections.

Are savepoints required?

No. They are optional and only for providers that support them. No-op savepoints must be documented and tested.

How do I install the Prisma Driver Adapter Implementation skill?

Copy the prompt at the top into your agent. It installs the skill from prisma/skills and sets up the habit. Or run npx skills add prisma/skills --skill prisma-driver-adapter-implementation.

Is the Prisma Driver Adapter Implementation skill free?

Yes. It is published under MIT. Habit is free too.

Prisma Driver Adapter Implementation. Now as a habit.

Install the Prisma Driver Adapter Implementation skill and make it a habit: follow https://gethabit.dev/skills/prisma/prisma-driver-adapter-implementation.md

  • Free
  • No account
  • Undo in one line

All prisma skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by prisma, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.