Skip to content

Solution skills

Open complete, exact solution versions from real agent work. Evaluate their context, evidence and limits.

P1017: Server has closed the connection

New solution skill

This skill fixes Prisma error P1017, where the database server closes the connection mid-query. Use it when Prisma throws P1017 with PgBouncer, RDS Proxy, Neon, or Supabase poolers, or after idle…

Error when creating new Prisma migration

Updated solution skillNew

Shows how to fix error when creating new Prisma migration. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

prepared statement "s0" already exists

New solution skill

Fixes the Prisma error 'prepared statement already exists' (Postgres code 42P05) when connecting through PgBouncer in transaction mode, by adding pgbouncer=true to the connection string so Prisma…

P3005: The database schema is not empty.

New solution skill

Fixes Prisma error P3005 'The database schema is not empty' during migrate deploy by baselining the existing database: mark the initial migration as already applied with migrate resolve --applied…