neon-postgres · davila7 — Claude Code skill: what it does, how to install
Provides patterns for Neon serverless Postgres, connection pooling with PgBouncer, and dual-connection setups for Prisma or Drizzle ORM.
npx claude-code-templates@latest --skill development/neon-postgresWhat neon-postgres does
The skill outlines database connection strategies for Neon Postgres. When configuring Prisma, it specifies a dual-string structure: DATABASE_URL points to the PgBouncer pool for standard traffic, while DIRECT_URL connects directly to the instance. DDL operations require a direct connection.
For Drizzle ORM, the instructions guide driver selection based on the workload. The neon-http driver serves isolated single queries over HTTP. The WebSocket-based neon-serverless driver handles transactions and stateful sessions.
Neon supports up to 10,000 pooled client connections via PgBouncer. Note that 7 connections remain reserved specifically for the Neon superuser.
What it helps with
- configure separate Prisma endpoints for client queries and schema migrations
- select the proper Drizzle driver between HTTP and WebSocket
- apply PgBouncer connection limits to serverless instances
- route application queries through the built-in pooler
Example prompts for the agent
- Configure Prisma schema for Neon connection pooling with a direct migration URL
- Set up Drizzle ORM using neon-http for serverless edge handlers
- Check connection limits and reserved slots for Neon PgBouncer
How to install neon-postgres
1claude-code-templates
npx claude-code-templates@latest --skill development/neon-postgres2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill neon-postgres -a claude-code3Manually: put the files in place
~/.claude/skills/neon-postgres/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/neon-postgres/
Manually: put the files in place
.agents/skills/neon-postgres/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/neon-postgres/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates neon-postgres2Manually: put the files in place
.github/skills/neon-postgres/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/neon-postgresManually: put the files in place
.devin/skills/neon-postgres/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about neon-postgres
How to install neon-postgres in Claude Code?
Run npx claude-code-templates@latest --skill development/neon-postgres in your terminal.
Why does Prisma require two connection strings for Neon?
The DATABASE_URL variable routes client queries through the PgBouncer pool. The direct endpoint DIRECT_URL is mandatory for DDL operations during schema migrations.
Which Drizzle driver should be used with Neon?
Use neon-http for one-off queries over HTTP. Switch to neon-serverless over WebSockets when your code runs multi-step database transactions.
Similar skills
All skills for Data and databases →neon-postgres by other authors comes first.