Skip to content

Expert Neon Postgres patterns for branching, pooling, and Prisma or Drizzle setup on serverless.

CCM score
55 of 100
skills.sh installs
206
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Prisma and Drizzle configuration against Neon, plus PgBouncer connection pooling and branching workflows
  • Separates a pooled DATABASE_URL for application queries from a direct DIRECT_URL for migrations
  • Describes Drizzle's neon-http driver for one-off queries and neon-serverless WebSocket driver for transactions
  • Designed for edge and serverless deployments that connect to Postgres through a pooled endpoint

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Neon Postgres

Patterns

Prisma with Neon Connection

Configure Prisma for Neon with connection pooling.

Use two connection strings:

  • DATABASE_URL: Pooled connection for Prisma Client
  • DIRECT_URL: Direct connection for Prisma Migrate

The pooled connection uses PgBouncer for up to 10K connections. Direct connection required for migrations (DDL operations).

Drizzle with Neon Serverless Driver

Use Drizzle ORM with Neon's serverless HTTP driver for edge/serverless environments.

Two driver options:

  • neon-http: Single queries over HTTP (fastest for one-off queries)
  • neon-serverless: WebSocket for transactions and sessions

Connection Pooling with PgBouncer

Neon provides built-in connection pooling via PgBouncer.

Key limits:

  • Up to 10,000 concurrent connections to pooler
  • Connections still consume underlying Postgres connections
  • 7 connections reserved for Neon superuser

Use pooled endpoint for application, direct for migrations.

⚠️ Sharp Edges

Details

Repository
github.com/davila7/claude-code-templates
Categories
Databases, Backend & APIs
First seen
Jun 3, 2026

Questions

What does the neon-postgres skill do?

The neon-postgres skill gives expert patterns for Neon serverless Postgres, covering database branching, connection pooling, and Prisma or Drizzle integration. It describes using two connection strings, one pooled for the application and one direct for migrations.

How do I install the neon-postgres skill?

Run npx -y skills add davila7/claude-code-templates --skill neon-postgres -y in your project to install it. Once installed, the agent can follow the Neon connection pooling and Prisma or Drizzle setup patterns from the skill.

Which skills does neon-postgres sit alongside in the Databases category?

The neon-postgres skill is in the Databases category on Claude Marketplaces, alongside supabase-postgres-best-practices, prisma-client-api, prisma-database-setup, prisma-cli and prisma-postgres. It is the skill to reach for when your Postgres runs on Neon.

When should I use the neon-postgres skill?

Use it for work on a Neon database, serverless Postgres, Neon database branching, or Postgres in serverless setups. It also covers Drizzle with the Neon serverless driver for edge and serverless environments.

More from davila7/claude-code-templates

All 398

Similar to Neon Postgres

More Databases