01
It starts by itself
PR touches adapter code. Runs in GitHub Actions or Claude Code routine.
- ↻ PR touches adapter code
pull_request touching SqlDriverAdapter or Transaction 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
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
When does it start? How does it check its work? What does it remember?
Stops after one pull request per run and one fix attempt.
The agent pins the @prisma/driver-adapter-utils version of the target Prisma release and typechecks.
It checks that queryRaw keeps column order, types, nulls and precision, and that executeRaw reports affected rows.
It checks one dedicated connection per transaction and that commit and rollback release it exactly once.
It checks DriverAdapterError mapping and that unknown errors keep their original code and message.
It checks dispose ownership and that the shadow database is isolated and always dropped.
It runs Prisma Client integration tests, not only adapter unit tests, and logs open items.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the Prisma Driver Adapter Implementation skill helps.
The skill says adapters are a protocol boundary: code can typecheck and still corrupt values or leak connections.
No. They are optional and only for providers that support them. No-op savepoints must be documented and tested.
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.
Yes. It is published under MIT. Habit is free too.
Install the Prisma Driver Adapter Implementation skill and make it a habit: follow https://gethabit.dev/skills/prisma/prisma-driver-adapter-implementation.md
All prisma skills →More code skills →
Works in
Made by prisma, published under MIT. Habit links to the original and never changes it. Is this your skill?