neon
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Neon serverless PostgreSQL assistance covering scale-to-zero, instant database branching, connection pooling, and pgvector. Use when setting up serverless Postgres, ephemeral CI/CD databases, or edge apps.
- Reads credentials
15 other projects use a version of this.
Adopted by
Most recently taken up by
- hemal08ce094/DesignSkillsSwiftUItheir own version, first seen Nov 8, 2026
- x77jh8gvrn-alt/staqd-skillstheir own version, first seen Oct 20, 2026
- matheus-rib1108/meu-kit-claude-codetheir own version, first seen Oct 17, 2026
- neondatabase/agent-skillstheir own version, first seen Oct 15, 2026
- xai-org/plugin-marketplacetheir own version, first seen Oct 13, 2026
- AtharvaK-XD/Bedrocktheir own version, first seen Oct 13, 2026
Used with
Projects with it also use neon-auth, neon-postgres-branches and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jaaklaSkillneon-auth
Add authentication to a new app. Use for "add auth", "add login", Neon Auth (Managed Better Auth), identity routing, sign-up, sign-in, password reset, email OTP, magic links, organizations, phone OTP, OAuth, passkeys, MFA, trusted domains, invalid domain, and @neondatabase/auth. No existing identity: default to Managed Better Auth. Keep working Better Auth, Clerk, Supabase Auth, or another IdP. User asked to migrate from Supabase Auth: Managed Better Auth. A required plugin outside Managed support: self-managed Better Auth on a Neon Function or the existing app host. Also use for auth APIs in @neondatabase/neon-js.
Also in 5 projects that use this
xAISkillneon-postgres-branches
Choose and create the right Neon branch type for testing and development. Use when users ask about Neon branching, migration testing with real data, isolated test environments, schema-only branch workflows for sensitive data, or branch creation via Neon CLI or Neon MCP. Triggers include "Neon branch", "test migrations safely", "branch production data", "schema-only branch", "reset branch" and "sensitive data testing".
Also in 4 projects that use this
jaaklaSkillneon-ai-gateway
One API and one credential for frontier and open-source LLMs, built into your Neon branch and powered by Databricks. Use when a user wants to call an LLM, add AI/chat/an agent to their app, route between model providers (OpenAI, Anthropic, Google/Gemini, Meta, Alibaba, and more), or avoid juggling separate provider API keys and accounts — especially when they already use Neon and want AI requests to branch with their project. Works with the OpenAI SDK, Anthropic SDK, google-genai, the Vercel AI SDK, and Mastra by changing only the base URL. Triggers include "call an LLM", "add AI to my app", "chat completion", "model routing", "LLM proxy/gateway", "one API for all models", "use Claude/GPT/Gemini", "AI SDK", "Mastra agent", "Neon AI Gateway", and "log/rate-limit AI calls".
Also in 4 projects that use this
bergsideSkillneobrutalism
Modern take on brutalism with bold borders, vivid accent colors, and raw, high-contrast layouts on warm surfaces.
Also in 4 projects that use this
bergsideSkillant
Structured, enterprise-focused design system emphasizing clarity, consistency, and efficiency for data-dense web applications.
Also in 3 projects that use this
- +2 more from jaakla
- +5 more from bergside
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- bergside/awesome-design-skills★ 2.9ksame name
- xai-org/plugin-marketplace★ 323same name
- neondatabase/agent-skills★ 111same name
- jaakla/openmapstack★ 76same name
- jaakla/openmapstack-skills★ 76same name
- iyashjayesh/tokenchit★ 14same name
- vercel-labs/hatchery★ 7same name
- AtharvaK-XD/Bedrock★ 3same name
- regisagnikpe2002-ai/omnipay-bj★ 2same name
- Naman21036/AgentForge★ 1same name
5 more not listed
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 repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
2
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 74
Create a disposable copy-on-write branch for each PR or test run:
- Very specific: line 93
Use the Serverless HTTP Driver for Edge Functions: Prevent connection starvation using @neondatabase/serverless.
- Distinctive: line 100
Keep preview branches alive indefinitely: Automate cleanup of merged pull request database branches via GitHub Actions.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Neon is a serverless open-source PostgreSQL database. It separates storage and compute to offer features like "Scale to Zero", "Instant Branching", and "Bottomless Storage".
When to Use
- Serverless PostgreSQL: Modern PostgreSQL with decoupled storage and compute, scaling down to zero when idle to eliminate costs.
- Database Branching for Previews: Instantly branching production databases in milliseconds for CI/CD pipelines, staging, and pull requests.
- Autoscaling Relational Workloads: Automatically scaling compute CPU and RAM dynamically during traffic spikes without connection dropouts.
- Edge Computing & Serverless Functions: Connecting via WebSockets and HTTP drivers from Cloudflare Workers, Vercel, and AWS Lambda.
Quick Start
// Connect to Neon using the serverless driver over WebSockets / HTTP
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL);
async function getUsers() {
const users = await sql`SELECT id, name, email FROM users LIMIT 10`;
return users;
}Core Concepts
Separation of Compute and Storage Architecture
Stateless PostgreSQL compute nodes query a custom, distributed, multi-tenant storage engine backed by cloud object storage:
[ Stateless Postgres Compute Node ] ──Page Service Protocol──→ [ Distributed Storage Engine ]
│ (LSM Tree)
▼
[ Immutable Cloud S3 ]Copy-on-Write Database Branching
Creates instant, isolated point-in-time database clones using copy-on-write storage:
# Create a fresh database branch from production using Neon CLI
neon branch create --name pr-415-preview --from main
# Creates an isolated, fully functional Postgres instance in 500ms!Serverless Driver over WebSockets / HTTP
Bypasses TCP connection handshake overhead from serverless environments:
// Connect via Neon Serverless Driver (Vercel / Cloudflare Workers)
import { neon } from "@neondatabase/serverless";
const sql = neon(process.env.DATABASE_URL!);
const users =
await sql`SELECT id, email, created_at FROM users WHERE active = true LIMIT 10`;Common Patterns
Ephemeral Database Branching for CI/CD
Problem: Integration tests running against shared databases cause state collisions and flakiness.
Solution: Create a disposable copy-on-write branch for each PR or test run:
# Create instant branch from staging parent
BRANCH_INFO=$(neon branch create pr-tests-42 --from staging -o json)
BRANCH_CONN=$(echo $BRANCH_INFO | jq -r '.connection_uris[0].connection_uri')
# Run migrations and integration test suite against ephemeral branch
DATABASE_URL=$BRANCH_CONN npm run test:e2e
# Delete branch after test suite completes
neon branch delete pr-tests-42Best Practices
Do:
- Integrate Database Branching into GitHub Actions: Spin up isolated preview databases for each pull request; destroy them on merge.
- Use the Serverless HTTP Driver for Edge Functions: Prevent connection starvation using
@neondatabase/serverless. - Enable Autosuspend for Non-Production Branches: Configure dev branches to suspend after 5 minutes of inactivity to minimize costs.
- Leverage Connection Pooling: Connect via the pooled connection string (
-pooler) when connecting from serverless backends.
Don't:
- Open direct TCP connections from thousands of Lambda functions: Direct TCP exhausted Postgres connection limits; use the pooled endpoint.
- Keep preview branches alive indefinitely: Automate cleanup of merged pull request database branches via GitHub Actions.
- Omit query parameters in template strings: Always use tagged template literals (
sqlSELECT * FROM users WHERE id = ${id}``) to prevent SQLi.
Troubleshooting
| Error | Cause | Solution |
connection timeout on first request (cold start) | Compute was scaled to zero and requires ~500ms to spin up. | Use Neon Connection Pooler endpoint (-pooler domain suffix) or keep active compute. |
too many clients already | Connecting directly to Postgres compute from serverless functions. | Use the pooled connection string with PgBouncer enabled. |
Branch creation limit reached | Exceeded project branch limits on current subscription tier. | Automate deletion of merged or stale branches via Neon CLI in CI. |
References
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.

