
neon-drizzle
Creates a fully functional Drizzle ORM setup with a provisioned Neon database. Installs dependencies, provisions database credentials, configures connections, generates schemas, and runs migrations. Results in working code that can immediately connect to and query the database. Use when creating new projects with Drizzle, adding ORM to existing applications, or modifying database schemas.
- Installs
- 984
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/neondatabase/ai-rules --skill neon-drizzle- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads neon-drizzle automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Neon Drizzle Integration
Comprehensive Drizzle ORM setup for Neon databases with guided workflows.
When to Use This Skill
- Setting up Drizzle in a new project (Next.js, Vite, Express, etc.)
- Integrating Drizzle into an existing application
- Creating or modifying database schemas
- Troubleshooting migration issues
Code Generation Rules
When generating TypeScript/JavaScript code:
- BEFORE generating import statements, check tsconfig.json for path aliases (compilerOptions.paths)
- If path aliases exist (e.g., "@/": ["./src/"]), use them (e.g., import { x } from '@/lib/utils')
- If NO path aliases exist or unsure, ALWAYS use relative imports (e.g., import { x } from '../../../lib/utils')
- Verify imports match the project's configuration
- Default to relative imports - they always work regardless of configuration
Available Guides
Each guide is a complete, self-contained walkthrough with numbered phases:
guides/new-project.md- Full setup from scratch (see: Table of Contents)guides/existing-project.md- Add Drizzle to running apps (see: Table of Contents)guides/schema-only.md- Schema creation and modification (see: Table of Contents)guides/troubleshooting.md- Debug common issues (organized by error type)
I'll automatically detect your context (package manager, framework, deployment target) and select the appropriate guide based on your request.
Quick Examples
Tell me what you're building - I'll handle the rest:
- "Setup Drizzle for my Next.js blog on Vercel" → Auto-detects Vercel + Next.js → HTTP adapter
- "Add Drizzle to my Express API" → Auto-detects Node.js server → WebSocket adapter
- "Create a users table with auth fields" → Loads schema guide → Generates schema
Reference Documentation
For deeper technical details (loaded on-demand):
references/adapters.md- HTTP vs WebSocket decision guidereferences/migrations.md- Migration patterns and troubleshootingreferences/query-patterns.md- Example queries and best practices
Templates & Scripts
templates/schema-example.ts- Multi-table schema with relationstemplates/drizzle-config.ts- Configuration examplesscripts/generate-schema.ts- Automated migration generationscripts/run-migration.ts- Programmatic migration runner
Related Skills
- neon-auth - Add authentication
- neon-js - Full SDK with auth + PostgREST-style data API
- neon-serverless - Connection setup without ORM
- neon-toolkit - Ephemeral databases for testing
- add-neon-docs - Add Neon best practices to your project (run after setup)
Workflow
I will:
- Detect your project context automatically
- Select and load the appropriate guide
- Follow the guide's phases sequentially
- Track progress using the guide's workflow checklist
- Load reference files only when needed
- Offer to add Neon best practices to your project docs
Ready to get started? Just describe what you're building!
FAQ
What does the neon-drizzle skill do?
Creates a fully functional Drizzle ORM setup with a provisioned Neon database. Installs dependencies, provisions database credentials, configures connections, generates schemas, and runs migrations. Results in working code that can immediately connect to and query the database. Use when creating new projects with Drizzle, adding ORM to existing applications, or modifying database schemas.
How do I install neon-drizzle?
Run npx skills add https://github.com/neondatabase/ai-rules --skill neon-drizzle in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/neon-drizzle/ (personal) or .claude/skills/neon-drizzle/ (project).
Which AI agents can use neon-drizzle?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is neon-drizzle safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains neon-drizzle?
It is published by neondatabase in neondatabase/ai-rules, and it is an official skill from the maker of the technology it covers. It has 984 recorded installs.
More from neondatabase/ai-rules
neon-serverless
neondatabase/ai-rules
Open the skill to read its SKILL.md instructions.
neon-auth
neondatabase/ai-rules
Open the skill to read its SKILL.md instructions.
neon-toolkit
neondatabase/ai-rules
Open the skill to read its SKILL.md instructions.
add-neon-docs
neondatabase/ai-rules
Open the skill to read its SKILL.md instructions.
Popular data & databases skills
supabase-postgres-best-practices
supabase/agent-skills
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the tests that verify them, indexes, triggers, database functions, queues and scheduled jobs (pgcron, pgmq), vector/semantic search (pgvector), and restoring dumps (pgrestore) or importing data. Also load it when diagnosing slow queries, high CPU, timeouts, EXPLAIN plans, connection exhaustion, locking, bloat, or rows visible to the wrong user or tenant. This is not just a performance guide — schema, migration, security, and SQL authoring tasks need these rules too, even for a one-column change or a single query.
prisma-client-api
prisma/skills
Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".
prisma-database-setup
prisma/skills
Deprecated compatibility name for prisma-orm-setup. Use only when a user or existing integration explicitly invokes prisma-database-setup; otherwise select prisma-orm-setup.
prisma-cli
prisma/skills
Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows. Covers prisma init, generate, migrate, db, dev, studio, and mcp. For setup, connection repair, or Prisma 8, use prisma-orm-setup; not the Prisma Platform CLI.
prisma-postgres
prisma/skills
Deprecated compatibility name for prisma-postgres-setup. Use only when a user or existing integration explicitly invokes prisma-postgres; otherwise select prisma-postgres-setup.
prisma-driver-adapter-implementation
prisma/skills
Required reference for Prisma ORM 7 SQL driver adapter work. Use when implementing or modifying adapters, adding database drivers, or touching SqlDriverAdapter, Transaction, savepoint, result mapping, or DriverAdapterError behavior. Covers current transaction lifecycle, optional savepoint hooks, original database-error preservation, and verification.