Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related questions.
Add this skill
npx mdskills install neondatabase/neon-postgresProvides useful Neon Postgres patterns but lacks actionable instructions and has placeholder content
1---2name: neon-postgres3description: Guides and best practices for working with Neon Serverless Postgres. Covers getting started, local development with Neon, choosing a connection method, Neon features, authentication (@neondatabase/auth), PostgREST-style data API (@neondatabase/neon-js), Neon CLI, and Neon's Platform API/SDKs. Use for any Neon-related questions.4---56# Neon Serverless Postgres78Neon is a serverless Postgres platform that separates compute and storage 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.910## Neon Documentation1112The Neon documentation is the source of truth for all Neon-related information. Always verify claims against the official docs before responding. Neon features and APIs evolve, so prefer fetching current docs over relying on training data.1314### Fetching Docs as Markdown1516Any Neon doc page can be fetched as markdown in two ways:17181. **Append `.md` to the URL** (simplest): `https://neon.com/docs/introduction/branching.md`192. **Request `text/markdown`** on the standard URL: `curl -H "Accept: text/markdown" https://neon.com/docs/introduction/branching`2021Both return the same markdown content. Use whichever method your tools support.2223### Finding the Right Page2425The docs index lists every available page with its URL and a short description:2627```28https://neon.com/docs/llms.txt29```3031Common doc URLs are organized in the topic links below. If you need a page not listed here, search the [docs index](https://neon.com/docs/llms.txt) — don't guess URLs.3233## What Is Neon3435Use this for architecture explanations and terminology (organizations, projects, branches, endpoints) before giving implementation advice.3637Link: `references/what-is-neon.md`3839## Getting Started4041Use this for first-time setup: org/project selection, connection strings, driver installation, optional auth, and initial schema setup.4243Link: `references/getting-started.md`4445## Connection Methods & Drivers4647Use this when you need to pick the correct transport and driver based on runtime constraints (TCP, HTTP, WebSocket, edge, serverless, long-running).4849Link: `references/connection-methods.md`5051### Serverless Driver5253Use this for `@neondatabase/serverless` patterns, including HTTP queries, WebSocket transactions, and runtime-specific optimizations.5455Link: `references/neon-serverless.md`5657### Neon JS SDK5859Use this for combined Neon Auth + Data API workflows with PostgREST-style querying and typed client setup.6061Link: `references/neon-js.md`6263## Developer Tools6465Use this for local development enablement with `npx neonctl@latest init`, VSCode extension setup, and Neon MCP server configuration.6667Link: `references/devtools.md`6869### Neon CLI7071Use this for terminal-first workflows, scripts, and CI/CD automation with `neonctl`.7273Link: `references/neon-cli.md`7475## Neon Admin API7677The Neon Admin API can be used to manage Neon resources programmatically. It is used behind the scenes by the Neon CLI and MCP server, but can also be used directly for more complex automation workflows or when embedding Neon in other applications.7879### Neon REST API8081Use this for direct HTTP automation, endpoint-level control, API key auth, rate-limit handling, and operation polling.8283Link: `references/neon-rest-api.md`8485### Neon TypeScript SDK8687Use this when implementing typed programmatic control of Neon resources in TypeScript via `@neondatabase/api-client`.8889Link: `references/neon-typescript-sdk.md`9091### Neon Python SDK9293Use this when implementing programmatic Neon management in Python with the `neon-api` package.9495Link: `references/neon-python-sdk.md`9697## Neon Auth9899Use this for managed user authentication setup, UI components, auth methods, and Neon Auth integration pitfalls in Next.js and React apps.100101Link: `references/neon-auth.md`102103Neon Auth is also embedded in the Neon JS SDK - so depending on your use case, you may want to use the Neon JS SDK instead of Neon Auth. See `references/connection-methods.md` for more details.104105## Branching106107Use this when the user is planning isolated environments, schema migration testing, preview deployments, or branch lifecycle automation.108109Key points:110111- Branches are instant, copy-on-write clones (no full data copy).112- Each branch has its own compute endpoint.113- Use the neonctl CLI or MCP server to create, inspect, and compare branches.114115Link: `references/branching.md`116117## Autoscaling118119Use this when the user needs compute to scale automatically with workload and wants guidance on CU sizing and runtime behavior.120121Link: https://neon.com/docs/introduction/autoscaling.md122123## Scale to Zero124125Use this when optimizing idle costs and discussing suspend/resume behavior, including cold-start trade-offs.126127Key points:128129- Idle computes suspend automatically (default 5 minutes, configurable) (unless disabled - launch & scale plan only)130- First query after suspend typically has a cold-start penalty (around hundreds of ms)131- Storage remains active while compute is suspended.132133Link: https://neon.com/docs/introduction/scale-to-zero.md134135## Instant Restore136137Use this when the user needs point-in-time recovery or wants to restore data state without traditional backup restore workflows.138139Key points:140141- Restore windows depend on plan limits.142- Users can create branches from historical points-in-time.143- Time Travel queries can be used for historical inspection workflows.144145Link: https://neon.com/docs/introduction/branch-restore.md146147## Read Replicas148149Use this for read-heavy workloads where the user needs dedicated read-only compute without duplicating storage.150151Key points:152153- Replicas are read-only compute endpoints sharing the same storage.154- Creation is fast and scaling is independent from primary compute.155- Typical use cases: analytics, reporting, and read-heavy APIs.156157Link: https://neon.com/docs/introduction/read-replicas.md158159## Connection Pooling160161Use this when the user is in serverless or high-concurrency environments and needs safe, scalable Postgres connection management.162163Key points:164165- Neon pooling uses PgBouncer.166- Add `-pooler` to endpoint hostnames to use pooled connections.167- Pooling is especially important in serverless runtimes with bursty concurrency.168169Link: https://neon.com/docs/connect/connection-pooling.md170171## IP Allow Lists172173Use this when the user needs to restrict database access by trusted networks, IPs, or CIDR ranges.174175Link: https://neon.com/docs/introduction/ip-allow.md176177## Logical Replication178179Use this when integrating CDC pipelines, external Postgres sync, or replication-based data movement.180181Key points:182183- Neon supports native logical replication workflows.184- Useful for replicating to/from external Postgres systems.185186Link: https://neon.com/docs/guides/logical-replication-guide.md187
Full transparency — inspect the skill content before installing.