1. Habit
  2. Skills
  3. Neon Postgres skill
neondatabase · 269K installs

Neon Postgres skill
Runs by itself, weekly health check.

Slow queries found and verified.

Install the Neon Postgres skill and make it a habit: follow https://gethabit.dev/skills/neondatabase/neon-postgres.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

269K installs103 starsApache-2.0 licenceSource on GitHub ↗

Neon Postgres

by neondatabase · 269K installs

The skill

The neon postgres skill guides your agent on Lakebase Postgres on Neon: pooled or direct connections, migrations on branches, read-only inspect checks and search.

Only when you ask.

The habit

Slow queries found and verified.

↻ Runs by itselfweekly health check

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one inspection pass and at most one query change per run.

  1. 01

    Use existing URL

    Use the DATABASE_URL or .neon file that is already there instead of a new project.

  2. 02

    Run the checks

    Run the smallest relevant neon inspect db checks, or inspect_database through MCP.

  3. 03

    Name one query

    Pick one specific query and read its plan with EXPLAIN (ANALYZE, BUFFERS, PREFETCH, FILECACHE) when it is safe.

  4. 04

    Hand off generic work

    For index, schema or query rewrites, load postgres-best-practices and carry the evidence over.

  5. 05

    Test on a branch

    Test any migration on a branch of production over a direct connection.

  6. 06

    Verify the change

    Re-run the same check and workload and compare with the log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Neon Postgres skill helps.

Use it when

  • ✓ you have a Neon DATABASE_URL
  • ✓ queries are slow or storage grows
  • ✓ you plan a schema migration

Skip it when

  • – you are setting up a new Neon backend
  • – you need login or live queries

Questions

Neon Postgres skill, answered.

Will it drop unused indexes?

No. The skill treats unused-indexes as a candidate list and asks you to confirm the window and workload first.

Why do fresh results look odd?

Cache and stats reset when compute restarts, also on scale-to-zero. Run a normal workload before you read them.

Pooled or direct?

Pooled for app traffic, direct for migrations, dumps and replication.

How do I install the Neon Postgres skill?

Copy the prompt at the top into your agent. It installs the skill from neondatabase/agent-skills and sets up the habit. Or run npx skills add neondatabase/agent-skills --skill neon-postgres.

Is the Neon Postgres skill free?

Yes. It is published under Apache-2.0. Habit is free too.

Neon Postgres. Now as a habit.

Install the Neon Postgres skill and make it a habit: follow https://gethabit.dev/skills/neondatabase/neon-postgres.md

  • Free
  • No account
  • Undo in one line

All neondatabase skills →More ops skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by neondatabase, published under Apache-2.0. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.