docs/plans/agent-native/006-skill-troubleshooting.md
A prisma-troubleshooting skill in prisma/skills: one router SKILL.md with a symptom →
reference table, and one references/ file per failure class. Agents are good at following
runbooks; today no runbook exists, so they guess from outdated training data.
generate
already prints (packages/cli/src/Generate.ts warns when prisma and @prisma/client
versions differ).npx prisma -v with the installed @prisma/client; align both to the same
exact version; regenerate; watch for duplicate versions in the lockfile (pnpm why, npm
dedupe) and for a globally installed CLI shadowing the local one.generate/migrate run on the host, app runs in a Linux
container (or vice versa) — cover binaryTargets for legacy setups,
PRISMA_CLI_BINARY_TARGETS, engine downloads behind proxies, and musl/openssl detection in
Alpine images.connection_limit, pool_timeout), SSL handled
by the native engine (sslmode, cert params).connection_limit in a URL does
nothing; configure the adapter (e.g. pg Pool max, ssl options). Common symptom:
pool exhaustion under load after an upgrade because the old URL params silently stopped
applying.node:cluster note).log: ['query', 'info', 'warn', 'error'], event-based vs stdout),
DEBUG="prisma*" for CLI/internal debug output, @prisma/instrumentation + OpenTelemetry,
and the sqlcommenter plugins for query provenance.psql/mysql/sqlcmd one-liners, nc -zv host port, openssl s_client for TLS
handshakes, DNS inside Docker networks, IPv4 vs IPv6 binding.P1000, P1001, P1017, DatabaseNotReachable-mapped
driver errors) to the corresponding external check.prisma-cli and the connection skill (task 004).binaryTargets to a Prisma 7 client schema.