Automated summary
Guides work with Neon serverless PostgreSQL, covering database setup, branch-per-PR workflows, edge runtime connections, and Prisma or Drizzle integration.
Strengths
- Clearly separates the pooled (-pooler) connection string from the direct one depending on runtime type
- Lays out a concrete branch-per-pull-request workflow including branch creation, env var injection, and cleanup
- Covers Neon-specific ORM adapters for Prisma and Drizzle plus the HTTP driver for edge runtimes
- Provides precise autoscaling and autosuspend values for both development and production
Limitations
- Tied entirely to Neon: the advice does not transfer to vanilla PostgreSQL or other serverless providers
- Assumes an existing Neon account and neonctl install without explaining setup steps
- Does not address connection error troubleshooting or migration rollback strategies
Reach for it when a project needs a Neon database with branch-per-PR workflows, edge deployment, or pgvector-based vector search.
Skip it when working with self-hosted PostgreSQL, RDS, or another provider, or when you need general data modeling guidance.
Security analysis
SafeThe skill provides legitimate guidance for using Neon PostgreSQL, including CLI examples for database branching and configuration. It does not contain destructive, exfiltrating, or obfuscated commands, and no tools are declared that would execute risky actions. The commands mentioned (neonctl, neon branches) are standard administrative operations for the service.
No concerns found
How this analysis is madeExamples
Connect my Next.js app to Neon using Drizzle ORM, with a schema for users and posts, and run the initial migration on the main branch.Set up a GitHub Actions workflow that creates a Neon database branch named pr-$PR_NUMBER for every pull request, passes its connection string to the preview deployment, and deletes the branch when the PR closes.My API route runs on Vercel Edge — show me how to query Neon from it with @neondatabase/serverless and the pooled connection string.name: neon description: >- Assists with building applications using Neon serverless PostgreSQL. Use when setting up serverless databases, creating branches for development workflows, integrating with edge runtimes, or configuring Prisma/Drizzle with Neon. Trigger words: neon, serverless postgres, database branching, neon serverless driver, pgvector, neon database. license: Apache-2.0 compatibility: "Works with any PostgreSQL client; edge driver for serverless runtimes" metadata: author: terminal-skills version: "1.0.0" category: data-ai tags: ["neon", "postgresql", "serverless", "database", "branching"]
Neon
Overview
Neon provides serverless PostgreSQL with scale-to-zero compute, database branching, and an HTTP-based driver for edge runtimes. It offers full PostgreSQL compatibility including extensions like pgvector, with features like copy-on-write branching for development workflows and automatic preview deployment databases.
Instructions
- When setting up connections, use the pooled connection string (
-poolersuffix) for serverless functions and the direct connection string for long-running Node.js servers. - When creating development workflows, use database branching (
neon branches create) to give each feature or PR its own isolated database that inherits schema from the parent branch. - When deploying to edge runtimes (Cloudflare Workers, Vercel Edge), use
@neondatabase/serverlesswhich communicates over HTTP instead of TCP sockets. - When integrating with ORMs, use
@prisma/adapter-neonfor Prisma ordrizzle-orm/neon-serverlessfor Drizzle, and reserve raw SQL for complex queries and migrations. - When enabling AI features, install the
pgvectorextension at project creation for vector embeddings and ANN search. - When configuring scaling, set
autosuspend_delayto 300s for development and 0 (never suspend) for production, and configure compute autoscaling between 0.25 and 8 CU. - When running migrations, apply them on the main branch so feature branches inherit schema changes automatically.
Examples
Example 1: Set up Neon with Drizzle ORM for a Next.js app
User request: "Connect my Next.js project to Neon using Drizzle ORM"
Actions:
- Create a Neon project and obtain the pooled connection string
- Install
@neondatabase/serverlessanddrizzle-orm - Configure Drizzle with the Neon serverless adapter
- Define schema and run initial migration on the main branch
Output: A type-safe database layer using Drizzle with Neon that works in both server components and edge functions.
Example 2: Set up branch-per-PR workflow
User request: "Automatically create a database branch for each pull request"
Actions:
- Configure Neon-Vercel integration for automatic branch creation
- Set up CI script using
neonctl branches create --name pr-$PR_NUMBER - Pass branch connection string as environment variable to preview deployment
- Add cleanup step to delete branch when PR is closed
Output: An isolated database branch for each PR with automatic lifecycle management.
Guidelines
- Always use the pooled connection string (
-poolersuffix) for serverless functions to avoid exhausting connection limits. - Use
@neondatabase/serverlessfor edge runtimes; use standardpgfor long-running Node.js servers. - Create database branches for each feature or PR; never develop against the main branch.
- Enable
pgvectorextension at project creation if vector search will be needed. - Set
autosuspend_delayto 300s for dev and 0 for production. - Use Drizzle or Prisma with the Neon adapter; use raw SQL only for complex queries and migrations.
- Run migrations on the main branch; feature branches inherit schema automatically.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/neon-serverless-postgresql-muar2zdb' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/neon-serverless-postgresql-muar2zdb/download' --output '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md.part' && mv '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md.part' '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Environment declared by the author: Works with any PostgreSQL client; edge driver for serverless runtimes
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && test -s '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/neon' && cp -R '.skill-downloads/neon-serverless-postgresql-muar2zdb' '.claude/skills/neon'Cursor
test -f '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && test -s '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/neon' && cp -R '.skill-downloads/neon-serverless-postgresql-muar2zdb' '.cursor/skills/neon'Codex
test -f '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && test -s '.skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/neon' && cp -R '.skill-downloads/neon-serverless-postgresql-muar2zdb' '.agents/skills/neon'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/neon-serverless-postgresql-muar2zdb'openskills read 'neon-serverless-postgresql-muar2zdb'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/neon-serverless-postgresql-muar2zdb/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Create Interactive Maps with kepler.gl
Data & AI
Create interactive map visualizations and export standalone HTML using the keplergl Python package. Use to plot geospatial data from DataFrames, GeoJSON, or CSV.
Agent-Driven Parameter Optimization
Data & AI
Guide for optimizing configurable systems with a measurable objective, using bounded trials and evidence-based recommendations.
ICP Visitor Outreach
Data & AI
Identify signed-up users matching the ideal customer profile but stalled, and draft personalized outreach to re-engage them.