
This sets up Neon's serverless driver for environments where traditional Postgres clients choke, like Vercel Edge Functions or AWS Lambda. You get two connection modes: HTTP for true edge/serverless (the recommended default) and WebSocket pooling for longer-lived Node.js processes. The skill checks your tsconfig for path aliases before generating imports, which is a nice touch that saves you from fixing them manually. It includes working API route examples and a connection validator script. If you're building on Next.js or deploying to the edge and need Postgres access, this handles the setup without the usual serverless database headaches.
$ npx -y skills add neondatabase/ai-rules --skill neon-serverless --agent claude-codeInstalls into .claude/skills of the current project.
Configures the Neon Serverless Driver for optimal performance in serverless and edge computing environments.
Not recommended for: Complex multi-statement transactions (use WebSocket Pool), persistent servers (use native PostgreSQL drivers), or offline-first applications.
When generating TypeScript/JavaScript code:
Sponsors