docs/plans/agent-native/004-skill-connection-config.md
Author a skill (or extend prisma-database-setup) in prisma/skills that answers the single
most common class of agent confusion in Prisma 7: which connection value goes into which slot,
per provider. Agents trained on Prisma ≤6 put URLs in the schema, expect .env auto-loading,
and pass pool parameters in URL query strings — all wrong in 7.
prisma.config.ts (datasource.url for CLI/migrate) and in the driver adapter
constructed in application code (new PrismaPg({ connectionString }), etc.)..env loading. The config file must load env itself (e.g. dotenv/config
import); document the canonical pattern.prisma+postgres:// URLs (Prisma Postgres / Accelerate) vs direct URLs: which commands and
client options (accelerateUrl) accept which.datasource.url (prisma.config.ts): used by CLI commands (migrate, db push, studio).directUrl: when a pooler (pgBouncer, Neon pooled endpoint) fronts the database and migrate
needs a direct connection.shadowDatabaseUrl: migrate dev on cloud databases where the user cannot create databases.references/ file)adapter-pg): connection string vs pool object, ssl options, pgBouncer.adapter-neon): pooled vs direct endpoints, websocket config.adapter-planetscale): no shadow DB needs, relationMode.adapter-d1) and Turso/libSQL (adapter-libsql): binding/token patterns.adapter-mssql), MariaDB (adapter-mariadb), better-sqlite3.adapter-ppg / prisma+postgres://).Short contrast table (URL in schema → config; env auto-load → explicit; URL pool params →
adapter pool config) with a pointer to the prisma-upgrade-v7 skill for the full migration.
prisma-database-setup extension (decide with the
skills repo maintainers; the repo's AGENTS.md naming and references/{category}-{rule}.md
conventions apply).prisma-cli and prisma-client-api.url,
directUrl, and adapter pool settings on the first attempt.