neon-drizzle

Configures Drizzle ORM with provisioned Neon databases, schemas, and migrations.

2|1|Updated Jun 9, 2026
One-click install
npx skills add https://github.com/zester4/zilmate --skill neon-drizzle-zester4
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: neon-drizzle
Source: https://github.com/zester4/zilmate/tree/main/.agents/skills/neon-drizzle
Command: npx skills add https://github.com/zester4/zilmate --skill neon-drizzle-zester4

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires drizzle-orm, @neondatabase/serverless, drizzle-kit, dotenv, ws, and includes scripts (resource) and references (resource) components.

What problem does it solve? Setting up Drizzle ORM with a Neon Postgres database involves many error-prone steps: provisioning credentials, choosing the right connection adapter, configuring environment loading, and running migrations. This Skill automates the entire workflow so you end up with working code that can immediately query the database. ## Core Features & Use Cases - Guided Setup Workflows: Step-by-step guides for new projects, existing applications, and schema-only changes, with automatic detection of your package manager, framework, and deployment target. - Adapter Selection: Automatically chooses between the HTTP adapter (Vercel, Edge, serverless) and WebSocket adapter (Express, Node.js servers) based on your environment. - Schema & Migration Automation: Generates type-safe schemas with relations, creates migration files, and runs them against your Neon database with built-in troubleshooting. - Use Case: Tell it "Setup Drizzle for my Next.js blog on Vercel" and it provisions a Neon database, installs dependencies, writes the connection config, generates a blog schema with users and posts, and applies the migrations. ## Quick Start Set up Drizzle ORM with a Neon database for my Next.js project, including a users table and migrations.

Frequently Asked Questions about neon-drizzle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Drizzle ORM with a Neon database?

Install drizzle-orm and @neondatabase/serverless, provision a Neon database to get a DATABASE_URL connection string, create a drizzle.config.ts with explicit dotenv loading, define your schema, then run drizzle-kit generate and migrate to apply tables.

Should I use the HTTP or WebSocket adapter with Neon and Drizzle?

Use the HTTP adapter for serverless and edge environments like Vercel, Cloudflare Workers, and AWS Lambda. Use the WebSocket adapter for long-lived Node.js servers like Express or Fastify when you need transactions, prepared statements, and connection pooling.

Can I add Drizzle to a project that already uses another ORM?

Yes, Drizzle can coexist with Prisma, TypeORM, or other ORMs. Create an isolated src/drizzle directory, use it for new tables first, then gradually mirror existing tables and migrate queries over time without disrupting current functionality.

Why does drizzle-kit migrate fail with 'url: undefined'?

This happens because drizzle-kit runs as a separate process and does not inherit environment variables automatically. Fix it by adding dotenv config with an explicit path like config({ path: '.env.local' }) at the top of drizzle.config.ts before exporting the configuration.

Does the Neon HTTP adapter support database transactions?

No, the HTTP adapter does not support transactions, prepared statements, or streaming. Use batch operations for multiple writes, or switch to the WebSocket adapter with a connection pool if your application requires atomic transactions.

How do I rename a column in Drizzle without losing data?

Drizzle generates renames as a drop plus add, which deletes data. After running drizzle-kit generate, manually edit the migration SQL to use ALTER TABLE RENAME COLUMN instead, then apply the migration normally.