Get the FREE Ultimate OpenClaw Setup Guide →

neon-postgres

Scanned
npx machina-cli add skill VictrixTech/agent-factory-template/neon-postgres --openclaw
Files (1)
SKILL.md
4.2 KB

Neon Serverless Postgres

Neon 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.

Neon Documentation

Always reference the Neon documentation before making Neon-related claims. The documentation is the source of truth for all Neon-related information.

Below you'll find a list of resources organized by area of concern. This is meant to support you find the right documentation pages to fetch and add a bit of additional context.

You can use the curl commands to fetch the documentation page as markdown:

Documentation:

# Get list of all Neon docs
curl https://neon.com/llms.txt

# Fetch any doc page as markdown
curl -H "Accept: text/markdown" https://neon.com/docs/<path>

Don't guess docs pages. Use the llms.txt index to find the relevant URL or follow the links in the resources below.

Overview of Resources

Reference the appropriate resource file based on the user's needs:

Core Guides

AreaResourceWhen to Use
What is Neonreferences/what-is-neon.mdUnderstanding Neon concepts, architecture, core resources
Referencing Docsreferences/referencing-docs.mdLooking up official documentation, verifying information
Featuresreferences/features.mdBranching, autoscaling, scale-to-zero, instant restore
Getting Startedreferences/getting-started.mdSetting up a project, connection strings, dependencies, schema
Connection Methodsreferences/connection-methods.mdChoosing drivers based on platform and runtime
Developer Toolsreferences/devtools.mdVSCode extension, MCP server, Neon CLI (neon init)

Database Drivers & ORMs

HTTP/WebSocket queries for serverless/edge functions.

AreaResourceWhen to Use
Serverless Driverreferences/neon-serverless.md@neondatabase/serverless - HTTP/WebSocket queries
Drizzle ORMreferences/neon-drizzle.mdDrizzle ORM integration with Neon

Auth & Data API SDKs

Authentication and PostgREST-style data API for Neon.

AreaResourceWhen to Use
Neon Authreferences/neon-auth.md@neondatabase/auth - Authentication only
Neon JS SDKreferences/neon-js.md@neondatabase/neon-js - Auth + Data API (PostgREST-style queries)

Neon Platform API & CLI

Managing Neon resources programmatically via REST API, SDKs, or CLI.

AreaResourceWhen to Use
Platform API Overviewreferences/neon-platform-api.mdManaging Neon resources via REST API
Neon CLIreferences/neon-cli.mdTerminal workflows, scripts, CI/CD pipelines
TypeScript SDKreferences/neon-typescript-sdk.md@neondatabase/api-client
Python SDKreferences/neon-python-sdk.mdneon-api package

Source

git clone https://github.com/VictrixTech/agent-factory-template/blob/main/.cursor/skills/neon-postgres/SKILL.mdView on GitHub

Overview

This skill provides practical guidance for working with Neon Serverless Postgres—from getting started and local development to selecting connection methods and using Neon features. It covers authentication with @neondatabase/auth, data API access via @neondatabase/neon-js, and tooling like the Neon CLI and Platform API/SDKs. Use this skill to accelerate Neon adoption and build robust, scalable Postgres-backed apps.

How This Skill Works

Neon separates compute and storage to enable autoscaling, branching, and instant restore while remaining Postgres-compatible. Practically, you install the Neon CLI, create a Neon database, and connect from your app using a chosen driver or Neon JS data API depending on needs. The guidance integrates the auth and data API libraries with Neon platform tooling for end-to-end workflows.

When to Use It

  • Bootstrapping a Neon project and obtaining a connection string for development
  • Developing locally with Neon and testing without heavy infra
  • Choosing a connection method based on runtime (HTTP/WS, serverless, or ORM)
  • Implementing authentication and PostgREST-style data API with neon-auth and neon-js
  • Automating resource management with Neon CLI and Platform API/SDKs

Quick Start

  1. Step 1: Install Neon CLI and run neon init to bootstrap your project
  2. Step 2: Create a Neon database, retrieve the connection string, and install a driver or Neon JS
  3. Step 3: Connect, authenticate, and run a simple query using your chosen method (driver or Neon JS data API)

Best Practices

  • Always reference Neon docs as the source of truth before making claims or decisions
  • Use the Neon CLI for local development and for provisioning Neon resources
  • Select a connection method based on runtime, performance needs, and network constraints
  • Leverage @neondatabase/auth for authentication and @neondatabase/neon-js for the Data API
  • Test Neon features (autoscale, branching, scale-to-zero, instant restore) in a sandbox before production

Example Use Cases

  • Bootstrap a new app and connect using a standard Postgres driver
  • Use Neon JS to interact with a PostgREST-style Data API for data access
  • Create a development branch of a Neon database to isolate feature work
  • Run a serverless workload that scales to zero with Neon
  • Automate provisioning and teardown with the Neon Platform API/SDKs

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers