Skip to main content
skill

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.

Install into Claude Code · claude-code-templates All methods and platforms ↓
npx claude-code-templates@latest --skill development/neon-postgres
Open on GitHub

What 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-postgres

2Skills CLI (Vercel)

npx skills add davila7/claude-code-templates --skill neon-postgres -a claude-code

3Manually: put the files in place

~/.claude/skills/neon-postgres/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/neon-postgres/

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.

From the same set804

The whole set →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor