neon
Skill2 starsChanged 4 months agoMITView on GitHub
Use to connect an app to serverless Postgres with pooled connections, the HTTP serverless driver, and database branching for previews.
- Reads credentials
6 other projects use a version of this.
Adopted by
Most recently taken up by
- jaakla/openmapstack-skillstheir own version, first seen Sep 28, 2026
- vercel-labs/hatcherytheir own version, first seen Sep 25, 2026
- neondatabase/agent-skillstheir own version, first seen Aug 30, 2026
- Naman21036/AgentForgetheir own version, first seen Jul 28, 2026
- xai-org/plugin-marketplacetheir own version, first seen Jun 12, 2026
- bergside/awesome-design-skillstheir own version, first seen Apr 24, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- bergside/awesome-design-skills★ 3.1ksame name
- xai-org/plugin-marketplace★ 276same name
- neondatabase/agent-skills★ 98same name
- jaakla/openmapstack-skills★ 74same name
- vercel-labs/hatchery★ 7same name
- Naman21036/AgentForge★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- anthropicSkill
- clerkSkill
- cloudflare-workersSkill
- dockerSkill
- fly-ioSkill
- github-actionsSkill
- netlifySkill
- nextjsSkill
- openaiSkill
- prismaSkill
- railwaySkill
- renderSkill
- resendSkill
- sentrySkill
- stripeSkill
- supabaseSkill
- tailwindcssSkill
- terraformSkill
- upstash-redisSkill
- vercelSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Use when: you want managed Postgres for serverless/edge apps (Vercel, Workers, Lambda).
- Distinctive: line 22
Use when: you want a fresh database branch per PR/preview deployment.
- Very specific: line 23
Don't use for: workloads needing persistent long-lived sessions with heavy LISTEN/NOTIFY on the pooler.
- Distinctive: line 94
Always pass user input through parameters (tagged templates or driver params), never string-concatenated SQL.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Neon — Skillship
Serverless Postgres that separates storage from compute: scales to zero, connects over HTTP from edge/serverless, and gives every branch a full copy-on-write database.
🧭 When to use this skill
- Use when: you want managed Postgres for serverless/edge apps (Vercel, Workers, Lambda).
- Use when: you want a fresh database branch per PR/preview deployment.
- Don't use for: workloads needing persistent long-lived sessions with heavy
LISTEN/NOTIFYon the pooler.
⚡ Quickstart
1. Get your connection string
From Project Dashboard → Connect, copy the string. It looks like:
postgresql://user:pass@ep-cool-darkness-a1b2c3d4.us-east-2.aws.neon.tech/dbname?sslmode=require2. Configure env
# .env — prefer the POOLED host (has "-pooler") for serverless/web apps
DATABASE_URL="postgresql://user:pass@ep-xxxx-pooler.us-east-2.aws.neon.tech/dbname?sslmode=require"3. Minimal working example (serverless driver — works on edge)
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL!);
const users = await sql`SELECT * FROM users WHERE id = ${id}`; // tagged template = parameterized🧩 Common recipes
Recipe: Pooled vs direct connection (this is the #1 gotcha)
Direct: ep-cool-darkness-123456.us-east-2.aws.neon.tech
Pooled: ep-cool-darkness-123456-pooler.us-east-2.aws.neon.tech <-- add "-pooler"| Use case | Connection |
| Serverless functions, web apps, connection-per-request | Pooled |
Schema migrations, pg_dump, logical replication, session-level SET | Direct |
Recipe: Use with Prisma
import { neon } from "@neondatabase/serverless";
import { PrismaNeonHTTP } from "@prisma/adapter-neon";
import { PrismaClient } from "@prisma/client";
const sql = neon(process.env.DATABASE_URL!);
const adapter = new PrismaNeonHTTP(sql);
const prisma = new PrismaClient({ adapter });For migrations with Prisma, use a direct (non-pooler) URL, e.g. a separate
DIRECT_URL.
Recipe: Use with Drizzle
import { neon } from "@neondatabase/serverless";
import { drizzle } from "drizzle-orm/neon-http";
const sql = neon(process.env.DATABASE_URL!);
const db = drizzle(sql);Recipe: Branch per preview (Vercel)
- Connect the Neon–Vercel integration so each preview deployment gets its own branch (isolated data,
copy-on-write from
main). Great for testing migrations before they touch production.
🚀 Ship to production
- App uses the pooled connection string; migrations use a direct one.
sslmode=requirepresent in the connection string.- Connection string stored as a host secret, not committed.
- Understand transaction-mode pooling limits: no session
SET, temp tables, or SQL-levelPREPAREon the pooler. - Add retry/backoff for cold starts (compute may be scaled to zero).
- Consider a dedicated
DIRECT_URLenv for tooling (pg_dump, migrations, analytics).
🔐 Security & secrets
- The connection string contains DB credentials — store in a secret manager / host env.
- Always pass user input through parameters (tagged templates or driver params), never string-concatenated SQL.
🐛 Common errors & fixes
| Symptom | Likely cause | Fix |
remaining connection slots are reserved / too many connections | Using direct URL from serverless | Switch to the -pooler host |
relation "x" does not exist after a SET search_path | Pooler transaction mode drops session state | Qualify tables (schema.table) or use a direct connection |
| Migrations fail on pooled URL | Tools need session features | Run migrations against the direct (non-pooler) URL |
| First request very slow | Compute scaled to zero (cold start) | Add retries; keep a warmer if latency-critical |
💰 Pricing gotchas
- Compute is billed by active time; scale-to-zero saves money but adds cold-start latency.
- Many long-lived branches accrue storage — archive/delete stale preview branches.
📚 Sources
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

