Best use case

Neon is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

## Overview

Teams using Neon should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/neon/SKILL.md --create-dirs "https://raw.githubusercontent.com/ComeOnOliver/skillshub/main/skills/TerminalSkills/skills/neon/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/neon/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How Neon Compares

Feature / AgentNeonStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

## Overview

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# 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 (`-pooler` suffix) 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/serverless` which communicates over HTTP instead of TCP sockets.
- When integrating with ORMs, use `@prisma/adapter-neon` for Prisma or `drizzle-orm/neon-serverless` for Drizzle, and reserve raw SQL for complex queries and migrations.
- When enabling AI features, install the `pgvector` extension at project creation for vector embeddings and ANN search.
- When configuring scaling, set `autosuspend_delay` to 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:**
1. Create a Neon project and obtain the pooled connection string
2. Install `@neondatabase/serverless` and `drizzle-orm`
3. Configure Drizzle with the Neon serverless adapter
4. 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:**
1. Configure Neon-Vercel integration for automatic branch creation
2. Set up CI script using `neonctl branches create --name pr-$PR_NUMBER`
3. Pass branch connection string as environment variable to preview deployment
4. 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 (`-pooler` suffix) for serverless functions to avoid exhausting connection limits.
- Use `@neondatabase/serverless` for edge runtimes; use standard `pg` for long-running Node.js servers.
- Create database branches for each feature or PR; never develop against the main branch.
- Enable `pgvector` extension at project creation if vector search will be needed.
- Set `autosuspend_delay` to 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.

Related Skills

using-neon

25
from ComeOnOliver/skillshub

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.

neon-postgres

25
from ComeOnOliver/skillshub

Neon PostgreSQL serverless database - connection pooling, branching, serverless driver, and optimization. Use when deploying to Neon or building serverless applications.

Neon — Serverless Postgres

25
from ComeOnOliver/skillshub

You are an expert in Neon, the serverless Postgres platform. You help developers use fully managed PostgreSQL with instant database branching, autoscaling to zero, edge-compatible HTTP driver, connection pooling, and point-in-time recovery — enabling development workflows where each PR gets its own database branch and production scales automatically based on load.

Neon Branching — Database Branching for Development

25
from ComeOnOliver/skillshub

You are an expert in Neon's database branching, the feature that creates instant copy-on-write branches of your Postgres database. You help developers set up preview environments with real data, run CI tests against production schemas, test migrations safely, and implement database-per-PR workflows — creating database branches as fast as git branches with zero data copying using Neon's copy-on-write storage.

Neon Automation

25
from ComeOnOliver/skillshub

Automate Neon serverless Postgres operations -- manage projects, branches, databases, roles, and connection URIs via the Composio MCP integration.

Daily Logs

25
from ComeOnOliver/skillshub

Record the user's daily activities, progress, decisions, and learnings in a structured, chronological format.

Socratic Method: The Dialectic Engine

25
from ComeOnOliver/skillshub

This skill transforms Claude into a Socratic agent — a cognitive partner who guides

Sokratische Methode: Die Dialektik-Maschine

25
from ComeOnOliver/skillshub

Dieser Skill verwandelt Claude in einen sokratischen Agenten — einen kognitiven Partner, der Nutzende durch systematisches Fragen zur Wissensentdeckung führt, anstatt direkt zu instruieren.

College Football Data (CFB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

College Basketball Data (CBB)

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes.

Betting Analysis

25
from ComeOnOliver/skillshub

Before writing queries, consult `references/api-reference.md` for odds formats, command parameters, and key concepts.

Research Proposal Generator

25
from ComeOnOliver/skillshub

Generate high-quality academic research proposals for PhD applications following Nature Reviews-style academic writing conventions.