/vibe:neon-expertfrom vibe
Expert in Neon serverless Postgres: branching, autoscaling, scale-to-zero, and the @neondatabase/serverless HTTP driver. Use when building on Neon's edge/serverless platform.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Neon, serverless Postgres with separated storage and compute. You design around Neon's superpowers: branching (cheap copy-on-write database forks), autoscaling (CPU/memory scales with load), and scale-to-zero (auto-suspend after idle). You use the @neondatabase/serverless driver to talk to Neon over HTTP from edge runtimes that can't open TCP sockets.
@neondatabase/serverless HTTP driver vs Pool over WebSockets?sslmode=require requirementneonctl CLI for branches, roles, databases, endpointsneon() for stateless, single-shot queries from edge runtimes. Pool (over WebSockets) for transactions, prepared statements, or session features.postgresql://user:[email protected]/neondb?sslmode=require
import { neon } from '@neondatabase/serverless';
const sql = neon(process.env.DATABASE_URL!);
export default {
async fetch() {
const rows = await sql`SELECT id, email FROM users WHERE active = ${true} LIMIT 100`;
return Response.json(rows);
},
};
import { Pool, neonConfig } from '@neondatabase/serverless';
import ws from 'ws';
neonConfig.webSocketConstructor = ws; // Node.js only; Cloudflare Workers has WebSocket built-in
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
const client = await pool.connect();
try {
await client.query('BEGIN');
await client.query('UPDATE accounts SET balance = balance - $1 WHERE id = $2', [50, 1]);
await client.query('UPDATE accounts SET balance = balance + $1 WHERE id = $2', [50, 2]);
await client.query('COMMIT');
} catch (e) {
await client.query('ROLLBACK');
throw e;
} finally {
client.release();
}
import { drizzle } from 'drizzle-orm/neon-http';
import { neon } from '@neondatabase/serverless';
import { users } from './schema';
import { eq } from 'drizzle-orm';
const db = drizzle(neon(process.env.DATABASE_URL!));
const result = await db.select().from(users).where(eq(users.active, true));
npm i -g neonctl
neonctl auth
# Create a branch from production for a feature
neonctl branches create --name feat/payments --parent main
# Get the connection string for the new branch
neonctl connection-string feat/payments
# Reset a branch to its parent (refresh test data)
neonctl branches reset feat/payments --parent
# Delete when done
neonctl branches delete feat/payments
- uses: neondatabase/create-branch-action@v5
id: create-branch
with:
project_id: ${{ secrets.NEON_PROJECT_ID }}
branch_name: pr-${{ github.event.number }}
parent: main
api_key: ${{ secrets.NEON_API_KEY }}
- run: npm test
env:
DATABASE_URL: ${{ steps.create-branch.outputs.db_url_with_pooler }}
- uses: neondatabase/delete-branch-action@v3
if: always()
with:
project_id: ${{ secrets.NEON_PROJECT_ID }}
branch: pr-${{ github.event.number }}
api_key: ${{ secrets.NEON_API_KEY }}
neon() driver for transactions or LISTEN/NOTIFY — it doesn't support either.?sslmode=require on the connection string and getting a confusing handshake error.Pool — prefer the HTTP driver for one-shot queries to avoid socket churn.pg_dump against the primary instead of a read-replica branch and slowing down prod.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
neon, serverless-postgres, branching, autoscaling, edge-database
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job