PlugWiki

neon-postgres Skill for Claude: Neon Postgres Connections, Branches and Search

neon-postgres gives your agent Neon's Postgres guidance: connections, migrations, branching, autoscaling, diagnostics and search.

Installs
298.5K
on skills.sh
Stars
108
on GitHub
Files
4
besides SKILL.md
Updated
Oct 2026
last repo commit

neon-postgres triggers on work with an existing DATABASE_URL, SQL, schemas, neon inspect, or semantic, vector, full-text and hybrid search. It tells the agent when to use the pooled or direct connection string, to test migrations on a branch of production, and to run Neon's read-only inspect checks before writing catalog queries by hand.

It begins by using the parent neon skill, so install both. New backends, Auth, files and Functions go to the parent skill, and live queries go to neon-realtime. It uses the Neon CLI by default, or the Neon MCP server, and needs a Neon project.

Good for

  • Developers using a Neon database through a DATABASE_URL, SQL or a schema
  • Teams testing migrations on a branch before production
  • Anyone adding vector, full-text or hybrid search to a Neon Postgres project

Install neon-postgres

Claude Code

  1. 1

    Copy this prompt.

    Install the neon-postgres skill in Claude Code. Run this command:
    
    npx skills add neondatabase/agent-skills --skill neon --skill neon-postgres
    
    Then check that it loaded and tell me how to use it.
  2. 2

    Paste it into Claude Code. It shows the change and asks before running it.

Requires Node.js.

neon-postgres starts by using the parent neon skill, so install both. Optional companions from the same repo include neon-postgres-branches for branch workflows and neon-realtime for live queries.

From the vendor's docs. Source.

What's in the skill

When it loads

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 allow lists, logical replication, and Lakebase Search. Use when the work is an existing DATABASE_URL, SQL, schema, inspect, or search. New backends, Auth, files, Functions, and LLM calls go to the parent `neon` skill. Live queries, reactive UIs, and realtime data go to `neon-realtime`. Also use for "@neondatabase/serverless", "@neon/neon-js", "neon inspect db", "semantic search", "vector search", "full-text search", "BM25", or "hybrid search".

Sections in SKILL.md

  1. Setup Flow
  2. 1. Select the organization and project
  3. 2. Get the connection string
  4. 3. Pick the connection method and driver
  5. 4. Set up the schema
  6. Branching
  7. Migrations
  8. Troubleshooting and Neon-Specific Performance
  9. Choose CLI or MCP
  10. Pick the Diagnostic
  11. Interpret Results Safely
  12. Inspect Neon Cache Behavior Per Query
  13. Performance Workflow
  14. Autoscaling
  15. Scale to Zero
  16. Keep hot reads off Postgres

Key facts

License
Apache-2.0
Installs on skills.sh
298,543 as of 2026-11-02
Part of plugin
neon
Last commit to the repo
2026-10-30

What it includes

  • Starts with the neon skill for the overview

    If it is missing, SKILL.md says to fetch it from neon.com or install it with `neon skills -s neon -y`.

    Read · Parent neon skill first

  • Uses your DATABASE_URL, or the CLI to find one

    If DATABASE_URL is supplied it uses that. Otherwise it lists organizations and projects, runs `neon env pull`, and stores the string in .env after reading the file.

    Try: “Set up my Neon connection and use the direct URL for the Drizzle migration.”

    Files · Project and connection string

  • Pooled for apps, direct for migrations and dumps

    Direct for schema migrations, pg_dump, logical replication, LISTEN/NOTIFY and session state. Pooled strings carry the -pooler suffix.

    Read · Pooled or direct

  • Tests a migration on a production branch first

    Uses the Neon CLI or MCP to create and compare branches. Detailed branch workflows live in the neon-postgres-branches skill.

    Runs code · Branching and migrations

  • Predefined read-only diagnostics

    Checks such as table-sizes, unused-indexes, locks, outliers, bloat and replication-slots. The MCP inspect_database tool runs the same checks.

    Runs code · neon inspect db checks

  • Vector, full-text and hybrid search guides

    Four reference files cover semantic search, BM25 full-text search, hybrid search and managing search with Drizzle.

    Read · Lakebase Search

  • Autoscaling, scale to zero, restore, replicas, IP allow lists

    Short notes with links to the Neon docs for each feature.

    Read · Platform topics

From the official docs

Permissions

Medium risk

The agent can run SQL and migrations on your Neon database and write the connection string to .env. Try changes on a branch or dev database first.

What it can do

  • Read your data
  • Create and change things
  • Delete things
  • Read-only mode

Watch out for

  • It can run SQL and migrations on your database

    Use a branch of production to test schema changes, as SKILL.md advises, and use a direct connection string for migrations.

  • It stores your connection string in .env

    SKILL.md says to read .env first so it does not overwrite values. Keep .env out of git.

  • It asks before installing database extensions

    SKILL.md says to ask before CREATE EXTENSION because it changes the database.

Technical details
Talks toNeon API through the CLI or MCP server. Your Neon database
Scopes
  • Runs the Neon CLI or Neon MCP tools as your account

  • Can read or write DATABASE_URL in .env

  • Can run SQL, migrations and branch commands

Questions

What does the neon-postgres skill do?

It gives your agent Neon-specific Postgres guidance for connections, branching, migrations, diagnostics, scaling and search. It is a documentation index plus working rules, not a database tool by itself.

How do I install it?

Use the install box at the top of this page, which has tabs for Claude Code, the Claude app and Codex. The install box adds the parent neon skill as well, which this skill starts from.

Do I need the parent neon skill?

Yes, SKILL.md starts by telling the agent to use it for the Neon overview and getting started. It also gives a command to install it if missing.

Does it need an API key?

No key is named in SKILL.md. It uses the Neon CLI or MCP server, which must be authenticated, and a DATABASE_URL for your database.

Pooled or direct connection string?

Use pooled for web apps and serverless functions. Use direct for schema migrations, pg_dump, logical replication and anything that relies on session state.

Can it change my database?

Yes, through SQL, migrations and branches via the CLI or MCP. SKILL.md has it test migrations on a branch and ask before CREATE EXTENSION.

Is it safe?

It can write your connection string to .env and run SQL, so point it at a branch or dev database first. See the audit results under key facts.

Information

updated Nov 2, 2026

Folder
skills/neon-postgres

neondatabase/agent-skillsskills.sh

Sources

Docs, issue trackers and discussions this page is built from.

Show all 4
  1. neondatabase/agent-skills README · github.com
  2. skills CLI commands · github.com
  3. neon-postgres SKILL.md · github.com
  4. skills.sh listing and audits · skills.sh

Updated Nov 2, 2026.