prisma-next-supabase
Installation
SKILL.md
Prisma Next — Supabase
Edit your data contract. Prisma handles the rest.
This skill covers using Prisma Next against a Supabase project end-to-end: composing the Supabase extension pack, referencing Supabase-owned tables from your contract, authoring row-level-security (RLS) policies, and running role-bound queries through the supabase() runtime.
When to Use
- User has a Supabase project (or wants one) and is wiring Prisma Next into it.
- User wants RLS policies on their tables (
policy_select,@@rls,auth.uid()). - User wants per-request role binding (
asUser(jwt),asAnon(),asServiceRole()). - User wants a foreign key into
auth.users(cross-space FK). - User wants to read Supabase-internal tables (
auth.*,storage.*) as an admin. - User mentions: supabase, RLS, row level security, policy, anon, authenticated, service_role, auth.users, auth.uid(), JWT, jwtSecret, jwksUrl, InvalidJwtError, RoleBoundDb, session pooler.