Agent skill

Neon Postgres

by smontlouis in smontlouis/bible-strong

Guides and best practices for working with Lakebase Postgres, the database behind Neon.

GPL-3.0Auto-check: notesDatabases

Install Neon Postgres

skills CLI
$ npx skills add smontlouis/bible-strong --skill neon-postgres -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install smontlouis/bible-strong neon-postgres --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/smontlouis/bible-strong.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/neon-postgres .claude/skills/neon-postgres && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
neon-postgres
GitHub stars
171
Used in
1 other repo
Token cost
~2.3k tokens
SKILL.md length
1,023 words
Files
1
Skills in repo
12
Repo updated
First seen
Licence
GPL-3.0

At a glance

Guides and best practices for working with Lakebase Postgres, the database behind Neon.

  • Works in 4 steps: Select the organization and project → Get the connection string → Pick the connection method and driver → …
  • Users ask about Lakebase Postgres
  • SKILL.md covers Setup Flow, Branching, Migrations and Autoscaling, plus 7 more sections
  • Calls npx and npm

What it does

Neon Postgres is an agent skill from smontlouis/bible-strong. 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", "DATABASEURL", "serverless Postgres", "Neon CLI", "neon", "Neon MCP", "Neon Auth"…

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Databases, covering Database administration, Serverless and Database migrations. It works with Neon, PostgreSQL and Model Context Protocol. The licence is GPL-3.0.

When your agent uses it

  • Users ask about Lakebase Postgres
  • Connect to Neon
  • Serverless Postgres
  • @neondatabase/serverless

Example prompts

  • “Lakebase Postgres”
  • “Neon setup”
  • “connect to Neon”
  • “/neon-postgres”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Select the organization and project
  2. Get the connection string
  3. Pick the connection method and driver
  4. Set up the schema

What it can do on your machine

Read from SKILL.md and the folder at commit 5fb49f7. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npx
    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • neon.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Neon Postgres loads about 2.3k tokens when it runs. Until then it costs about 167 tokens; SKILL.md has 1,023 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~167
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:41
    get the connection string. Store it in `.env` as `DATABASE_URL`. Read the file first before modifying it, to avoid over

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from smontlouis/bible-strong at commit 5fb49f7, republished under its GPL-3.0 licence (© smontlouis). 1,023 words, ~2,291 tokens.

Download SKILL.mdSave it as .claude/skills/neon-postgres/SKILL.md (or your agent's skills folder).
name
neon-postgres
description
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".
metadata.parent
neon
metadata.source
https://github.com/neondatabase/agent-skills/tree/main/skills/neon-postgres

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:

bash
npx skills add neondatabase/agent-skills --skill neon

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 DATABASE_URL. Read the file first before modifying it, to avoid overwriting existing values.

When to use pooled vs direct connections
Use caseConnection type
Web applications, serverless functionsPooled (-pooler)
Schema migrationsDirect
pg_dump / pg_restoreDirect
Logical replicationDirect
Long-running analytics with temp tablesDirect
Admin tasks needing SET or session stateDirect
LISTEN / NOTIFYDirect
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.

Recommendations:

  • Drizzle as ORM (see https://neon.com/docs/guides/drizzle.md)
  • On Vercel, use node-postgres (npm install pg) with Vercel Fluid compute and import { attachDatabasePool } from "@vercel/functions";
  • On Cloudflare, use node-postgres with Cloudflare Hyperdrive
  • On Neon Functions, use node-postgres, as the functions are long-running and reuse the pool across requests.
  • Use the @neondatabase/serverless driver for serverless and edge environments (for example, when using Netlify) — HTTP transport for one-shot queries, WebSocket for transaction support. Link: https://neon.com/docs/serverless/serverless-driver.md
4. Set up the schema

Manage schemas and migrations as code. Avoid running ad hoc schema migrations against your database, since they're hard to manage.

If you're using an ORM, follow your ORM's best practices to manage schemas and migrations. For example, if using Drizzle, only use Drizzle for schema and migration management unless instructed otherwise.

Branching

Use this when the user is planning isolated environments, schema migration testing, preview deployments, or branch lifecycle automation.

Key points:

  • Branches are instant, copy-on-write clones (no full data copy).
  • Each branch has its own compute endpoint.
  • Use the neon CLI or MCP server to create, inspect, and compare branches.

Link: https://neon.com/docs/introduction/branching.md

For detailed branch creation workflows (normal vs schema-only branches, reset-from-parent, CLI/MCP selection), use the neon-postgres-branches skill. If it isn't installed, fetch it from https://neon.com/docs/ai/skills/neon-postgres-branches/SKILL.md or install it with:

bash
npx skills add neondatabase/agent-skills --skill neon-postgres-branches

Migrations

Test a migration on a branch of production, against production-like data, before applying it to production.

Use a direct (non-pooled) connection string when you run the migration, not a pooled one. neon connection-string returns the direct string by default; make sure the hostname does not include the -pooler suffix.

Autoscaling

Use this when the user needs compute to scale automatically with workload and wants guidance on CU sizing and runtime behavior.

Link: https://neon.com/docs/introduction/autoscaling.md

Scale to Zero

Use this when optimizing idle costs and discussing suspend/resume behavior, including cold-start trade-offs.

Key points:

  • Idle computes suspend automatically after a default of 5 minutes; the timeout is configurable, and suspension can only be disabled on the Launch and Scale plans.
  • First query after suspend typically has a cold-start penalty (around hundreds of ms)
  • Storage remains active while compute is suspended.

Link: https://neon.com/docs/introduction/scale-to-zero.md

Show full SKILL.md (400 more words)Show less

Instant Restore

Use this when the user needs point-in-time recovery or wants to restore data state without traditional backup restore workflows.

Key points:

  • History windows for instant restore depend on plan limits.
  • Users can create branches from historical points-in-time.
  • Time Travel queries can be used for historical inspection workflows.

Link: https://neon.com/docs/introduction/branch-restore.md

Read Replicas

Use this for read-heavy workloads where the user needs dedicated read-only compute without duplicating storage.

Key points:

  • Replicas are read-only compute endpoints sharing the same storage.
  • Creation is fast and scaling is independent from primary compute.
  • Typical use cases: analytics, reporting, and read-heavy APIs.

Link: https://neon.com/docs/introduction/read-replicas.md

Connection Pooling

Use this when the user is in serverless or high-concurrency environments and needs safe, scalable Postgres connection management.

Key points:

  • Neon pooling uses PgBouncer.
  • Add -pooler to endpoint hostnames to use pooled connections.
  • Pooling is especially important in serverless runtimes with bursty concurrency.

Link: https://neon.com/docs/connect/connection-pooling.md

IP Allow Lists

Use this when the user needs to restrict database access by trusted networks, IPs, or CIDR ranges.

Link: https://neon.com/docs/introduction/ip-allow.md

Logical Replication

Use this when integrating CDC pipelines, external Postgres sync, or replication-based data movement.

Key points:

  • Neon supports native logical replication workflows.
  • Useful for replicating to/from external Postgres systems.

Link: https://neon.com/docs/guides/logical-replication-guide.md

Gotchas

Pooled vs direct connections: use the direct URL for migrations, dumps, and replication

Neon gives you two connection strings for the same database: a pooled one (hostname with the -pooler suffix) and a direct/unpooled one (no -pooler suffix). neon env pull writes them as DATABASE_URL and DATABASE_URL_UNPOOLED. The pooled connection routes through PgBouncer in transaction mode, which doesn't support session-level operations. Choose the right one:

  • Pooled (DATABASE_URL) — your application's normal query traffic, especially serverless and connection-per-request workloads.
  • Direct (DATABASE_URL_UNPOOLED) — schema migrations (Prisma Migrate, Drizzle Kit, Alembic, and others), pg_dump / pg_restore, logical replication, LISTEN/NOTIFY, and anything relying on SET or other session state.

Running migrations, dumps, or replication over the pooled connection can fail, and never in a way that names pooling: prepared statement "s0" already exists from Prisma Migrate, a SET search_path that doesn't persist past its own transaction so the next query reports relation "mytable" does not exist, or a write intermittently hitting a read-only transaction (SQLSTATE 25006) that a pooled backend inherited from an earlier client. Migration tools generally take both strings at once — Prisma's directUrl alongside url — so point that at the direct one rather than swapping DATABASE_URL and losing pooling for the application. See https://neon.com/docs/connect/connection-pooling.md.

© smontlouis, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/neon-postgres of smontlouis/bible-strong.

Open the folder on GitHubat commit 5fb49f7

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in smontlouis/bible-strong, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Neon Postgres next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Neon Postgres compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Neon Postgres this skillsmontlouis/bible-strong1711 repos~2.3kAutomated safety check: NotesGPL-3.0
Neon Postgresusenotra/notra256—~4.1kAutomated safety check: NotesAGPL-3.0
Neon Postgresneondatabase/agent-skills100—~4.1kAutomated safety check: NotesApache-2.0
Neon Postgresdavila7/claude-code-templates32k4 repos~396Automated safety check: PassMIT
Neon Postgresaiskillstore/marketplace4304 repos~4.2kAutomated safety check: NotesApache-2.0
DB Connectionaiskillstore/marketplace430—~3.5kAutomated safety check: NotesNone

Similar skills

  • Neon Postgres

    usenotra/notra

    Guides and best practices for working with Lakebase Postgres, the database behind Neon.

    256 GitHub stars~4.1k tokensUpdated today
    DatabasesAuto-check: notes
  • Neon Postgres

    neondatabase/agent-skills

    Official

    Guides and best practices for working with Lakebase Postgres on Neon: connections, pooled vs direct, schema migrations, branching, autoscaling, scale-to-zero, instant restore, read replicas, IP…

    100 GitHub stars~4.1k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Neon Postgres

    davila7/claude-code-templates

    Expert patterns for Neon serverless Postgres, branching, connection pooling, and Prisma/Drizzle integration Use when: neon database, serverless postgres, database branching, neon postgres, postgres…

    32k GitHub starsUsed in 4 repos~396 tokens
    DatabasesAuto-check passed
  • Neon Postgres

    aiskillstore/marketplace

    Guides and best practices for working with Neon Serverless Postgres.

    430 GitHub starsUsed in 4 repos~4.2k tokens
    DatabasesAuto-check: notes
  • DB Connection

    aiskillstore/marketplace

    A skill your agent uses when setting up database connections, especially for Neon PostgreSQL.

    430 GitHub stars~3.5k tokensUpdated yesterday
    DatabasesAuto-check: notes
  • Neon

    neondatabase/agent-skills

    Official

    Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, and the AI Gateway.

    100 GitHub stars~8.7k tokensUpdated yesterday
    Backend & APIsAuto-check: notes

More from smontlouis/bible-strong

All 12 skills in this repo
  • Bible Strong Illustrations

    smontlouis/bible-strong

    Create or adapt Bible Strong illustrations in the house style of flat colors, monochromatic characters, and fine detail lines.

    171 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Setup TS Deep Modules

    smontlouis/bible-strong

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files.

    171 GitHub starsUsed in 4 repos~1.9k tokens
    Auto-check passed
  • Bible To Strong

    smontlouis/bible-strong

    Deterministic Strong-Bible command workflow for this repository.

    171 GitHub stars~17k tokensUpdated yesterday
    Auto-check: notes
  • Review And Merge PRs

    smontlouis/bible-strong

    Sequentially review and merge GitHub pull requests one at a time.

    171 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Neon

    smontlouis/bible-strong

    Overview of Neon, a complete set of cloud backend primitives for apps and agents, spanning Lakebase Postgres, Auth, the Data API, Object Storage, Compute Functions, and the AI Gateway.

    171 GitHub stars~7.1k tokensUpdated yesterday
    Auto-check: notes
  • Orchestrate Ready Issues

    smontlouis/bible-strong

    Sequentially orchestrate GitHub issues labeled ready-for-agent through the Bible Strong harness.

    171 GitHub stars~1.7k tokensUpdated yesterday
    Auto-check: warnings

Categories

Questions about Neon Postgres

What does Neon Postgres do?

Guides and best practices for working with Lakebase Postgres, the database behind Neon. Neon Postgres is an agent skill from smontlouis/bible-strong. Guides and best practices for working with Lakebase Postgres, the database behind Neon.

When should I use Neon Postgres?

Neon Postgres fits situations like: users ask about Lakebase Postgres; connect to Neon; serverless Postgres; @neondatabase/serverless.

How do I install Neon Postgres in Claude Code?

Run `npx skills add smontlouis/bible-strong --skill neon-postgres -a claude-code`. Or copy the skill folder (.agents/skills/neon-postgres in smontlouis/bible-strong) into .claude/skills/neon-postgres in your project. Claude Code loads it when a task matches its description.

How do I install Neon Postgres in Codex?

Run `npx skills add smontlouis/bible-strong --skill neon-postgres -a codex`. Or copy the skill folder (.agents/skills/neon-postgres in smontlouis/bible-strong) into .agents/skills/neon-postgres in your project. Codex loads it when a task matches its description.

Can I use Neon Postgres in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add smontlouis/bible-strong --skill neon-postgres -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/neon-postgres, .gemini/skills/neon-postgres, .github/skills/neon-postgres and .opencode/skills/neon-postgres in your project.

What does Neon Postgres need to run?

Going by SKILL.md and its folder, Neon Postgres needs the command-line tools its instructions call (npx and npm). Our summary lists: Node.js.

Does Neon Postgres access the network?

SKILL.md names 1 domain. As links in the text: neon.com. This is read from the text; nothing was executed.

Is Neon Postgres safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Neon Postgres use?

Neon Postgres is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Neon Postgres use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Neon Postgres?

Skills that share tags, products or a category with Neon Postgres: Neon Postgres (usenotra/notra, 256 stars), Neon Postgres (neondatabase/agent-skills, 100 stars), Neon Postgres (davila7/claude-code-templates, 32k stars) and Neon Postgres (aiskillstore/marketplace, 430 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Neon Postgres?

smontlouis (a GitHub user) maintains it in smontlouis/bible-strong, which has 171 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 7, 2026.

Source: smontlouis/bible-strong on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.