neon-postgres

neon-postgres is a skill for Claude Code from neondatabase/agent-skills. It costs 246 tokens per session (4,658 once invoked), scanned A, original, Apache-2.0.

A guide to using Lakebase Postgres, the PostgreSQL-compatible database behind Neon. It covers connecting applications to the database and managing projects, branches, schemas, scaling, and data replication.

In plain words
What is it for?
Use it when setting up Neon database access, configuring drivers, planning schema migrations, using branches or read replicas, controlling network access, or connecting databases to other systems.
Why use it?
It helps developers choose suitable connection methods and understand database features such as pooled connections, temporary branches, automatic scaling, and restoring data.

Skill for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the neon plugin — 7 skills, 1 MCP server shipped together

Good fit Use it when setting up Neon database access, configuring drivers, planning schema migrations, using branches or read replicas, controlling network access, or connecting databases to other systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neondatabase/agent-skills/neon-postgres
About the project

Neon Agent Skills is a collection of agent instructions, scripts, and resources for working with Neon’s cloud backend services built around Lakebase Postgres. Developers, startups, and agent platforms use it to guide work with databases, branches, authentication, storage, functions, and AI Gateway services.

neondatabase/agent-skills · 121 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neondatabase/agent-skills --skill neon-postgres
Clone the repo
git clone --depth 1 https://github.com/neondatabase/agent-skills

Made for: Claude Code.

Or install neon, the plugin that ships this one along with the rest of its 7 skills, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for neon-postgres

README.md
[![agentmods](https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-postgres/github.svg)](https://agentmods.dev/skills/neondatabase/agent-skills/neon-postgres)
Your own site
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-postgres"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-postgres/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for neon-postgres

Your own site · 80×15
<a href="https://agentmods.dev/skills/neondatabase/agent-skills/neon-postgres"><img src="https://agentmods.dev/badge/skills/neondatabase/agent-skills/neon-postgres.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,658 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Nov 2026
  • Snyk pass 12 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Agent Snooping · line 24
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
  • medium MCP Rug Pull · line 27
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 91
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium Agent Snooping · line 88
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00246 $0.04658
Opus 5.5 $0.00098 $0.01863
Sonnet 5.5 $0.00049 $0.00932
Haiku 4.5 $0.00025 $0.00466

Measured 19d ago against content hash 06153ccdf20f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neon-postgres scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/neon-postgres/skills/neon-postgres/SKILL.md · 325 lines

How it starts

The opening of the file, as written. The whole thing — 325 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

neon skills -s neon -y

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.

Login, users, sessions, and @neon/auth belong in neon-auth.

Live queries, reactive UIs, and realtime data belong in neon-realtime.

Setup Flow

1. Select the organization and project

If a DATABASE_URL is already supplied (prompt, environment, or repo) or a .neon file points at a project, use it. Do not list organizations or create a second project for schema work.

Otherwise use the CLI (default) or MCP server to list organizations and projects. Let the user select an existing project or create a new one.

2. Get the connection string

If a DATABASE_URL is already supplied, use it. Do not fetch another through the CLI or MCP.

Otherwise 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 case Connection type
Web applications, serverless functions Pooled (-pooler)
Schema migrations Direct
pg_dump / pg_restore Direct
Logical replication Direct
Long-running analytics with temp tables Direct
Admin tasks needing SET or session state Direct
LISTEN / NOTIFY Direct

Read the full file on GitHub · 325 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago Changed · +13 lines · +20 tokens per session 06153ccdf20f
  2. 27d ago Changed · +17 lines · +6 tokens per session e208be6fd3db
  3. 29d ago Changed · +7 lines · +57 tokens per session c4902bbbcbad
  4. 1mo ago Changed · +4 lines · -1 tokens per session d3fbd270d189
  5. 1mo ago Changed efb692c6ba4c
  6. 1mo ago Changed · +3 lines · +18 tokens per session 2a6788756558
  7. 2mo ago Changed · +1 lines 83d3c75651bd
  8. 2mo ago Changed · +1 lines · -76 tokens per session 9964c0b291d5
  9. 2mo ago Changed adcdfa8b745a
  10. 2mo ago First seen · 279 lines · 222 tokens per session scan A 84de1bb89fc9

Subscribe to this mod's changes

neon-postgres is a skill published in the GitHub repository neondatabase/agent-skills (121 stars, last pushed today), licensed Apache-2.0. It adds 246 tokens to every session and 4,658 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

neon-postgres compared with skills from other repositories

neon-postgres next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neon-postgresneondatabase/agent-skillsSkill121todayApache-2.0A246Claude Code
alloydb-basicsgoogle/skillsSkill25ktodayApache-2.0A72Claude Code, Codex
postgresql-table-designwshobson/agentsSkill43k2d agoMITA37Claude Code
db-repairgarrytan/gbrainSkill34ktodayMITA96Claude Code
dsqlawslabs/agent-pluginsSkill956yesterdayApache-2.0A247Claude Code
volcengine-rds-postgresqlbytedance/agentkit-samplesSkill496yesterdayApache-2.0A63Claude Code, Codex
postgresdbericrisco/rsc-harnessSkill695todayMITA91Claude Code, Codex