Agent skill · writing content · aiskillstore

neon-postgres

Guides and best practices for working with Lakebase Postgres, the database behind Neon. Covers setup, connection methods and drivers, pooled vs direct connections, branching, schema migrations, autoscaling, scale-to-zero, instant restore, read replicas, connection pooling, IP allow lists, and logical replication. Use when users ask about "Lakebase Postgres", "Neon setup", "connect to Neon", "Neon project", "DATABASE_URL", "serverless Postgres", "Neon CLI", "neon", "Neon MCP", "Neon Auth", "@neondatabase/serverless", "@neondatabase/neon-js", "scale to zero", "Neon autoscaling", "Neon read replica", "Neon connection pooling", or "schema migrations".

Why this skill is useful

Provides specific guidance on using Neon Serverless Postgres features and APIs that the AI wouldn't reliably generate on its own.

What it needs

About 5k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

FIRST: Use the parent neon skill for a Neon overview, getting started with Neon, Neon development best practices, and more. If the neon skill is not installed, fetch it from https://neon.com/docs/ai/skills/neon/SKILL.md or install it with: Lakebase Postgres Lakebase Postgres is the database at the core of Neon. It runs on the lakebase architecture — OLTP built directly on cloud object storage — which decouples storage from compute to offer autoscaling, branching, instant restore, and scale-to-zero. It's fully compatible with Postgres and works with any language, framework, or ORM that supports Postgres. It is the same database whether you reach it through Neon or through Databricks; this skill covers the Neon access path. Setup Flow 1. Select the organization and project Use the CLI (default) or MCP server to list organizations and projects. Let the user select an existing project or create a new one. Check the .neon file for an existing linked project or branch. 2. Get the connection string Use the CLI (default), neon env pull, or the MCP server to get the connection string. Store it in .env as DATABASEURL. Read the file first before modifying it, to avoid overwriting existing values. When to use pooled vs direct connections Use case Connection type ---------------------------------------- ---------------- Web applications, serverless functions Pooled (-pooler) Schema migrations Direct pgdump / pgrestore Direct Logical replication Direct Long-running analytics with temp tables Direct Admin tasks needing SET or session state Direct LISTEN / NOTIFY Direct 3. Pick the connection method and driver Always pair Neon with an ORM such as Drizzle for easy schema management and migrations. Refer to the connection methods guide to pick the correct driver based on how the runtime treats your code: https://neon.com/docs/connect/choose-connection.md. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/neon-postgres--4f205a

View the source on GitHub

Browse the @skills marketplace