# neon-postgres

Provides patterns for Neon serverless Postgres, connection pooling with PgBouncer, and dual-connection setups for Prisma or Drizzle ORM.

- skill · `type=skill` · Claude Code · 56 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/neon-postgres
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/neon-postgres

## What it 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.

## Requirements
- Works with: PostgreSQL

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/neon-postgres
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill neon-postgres -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/neon-postgres/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/neon-postgres/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/neon-postgres/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/neon-postgres/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates neon-postgres
```

2. **Manually: put the files in place**
- File: `.github/skills/neon-postgres/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/neon-postgres
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/neon-postgres/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/neon-postgres

## When to use it
- 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
- 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

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

## Other versions with the same name
- [neon-postgres · neondatabase](https://affpapa.org/en/nevibecode/skills/neondatabase-neon-postgres.md) — 281100 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
