neon-drizzle
This skill sets up Drizzle ORM with Neon PostgreSQL databases by automating dependency installation, database provisioning, configuration, schema generation…
Identity proven by GitHub's verified organisation badge (neondatabase)
- Agents
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
- License
- MIT (permissive)
- Pin
- 1ceaf89pinned Oct 9, 2026
- Context cost
- about 750 tokenswhen the skill loads
- GitHub stars
- 86on neondatabase/ai-rules
- Scripts
- 6 scripts
What it does
“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.”
Generated summary from the skill's own text
This skill sets up Drizzle ORM with Neon PostgreSQL databases by automating dependency installation, database provisioning, configuration, schema generation, and migrations. It detects your project context (Next.js, Express, Vite, etc.) and follows guided workflows to produce immediately functional database connections and code.
When to use it
- Creating new projects that need database connectivity with Drizzle
- Adding ORM to existing applications running on Node.js or edge runtimes
- Creating or modifying database schemas and running migrations
- Setting up Neon PostgreSQL specifically for TypeScript or JavaScript applications
When not to
- Projects using other ORMs like Prisma or TypeORM
- Databases other than Neon PostgreSQL
- Applications needing only raw SQL without an ORM layer
Install
These commands install from the publisher's repository and need no account.
skills CLI
npx skills add neondatabase/ai-rules --skill neon-drizzleInstalls from the repository's default branch, which may have changed since the commit we checked.
GitHub CLI 2.90 or later
gh skill install neondatabase/ai-rules neon-drizzle@1ceaf89a4e0acfbaf152ac2e85d45afd55f49c0fInstalls the commit we checked (1ceaf89).
Copy by hand
Download the folder at 1ceaf89 and put it in .claude/skills/neon-drizzle for Claude Code and in .agents/skills/neon-drizzle for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.
Claude Code plugin
/plugin install neon@claude-plugins-officialThe publisher's plugin in Claude's official marketplace. It may hold more than this skill, and we have not pinned it.
Copy for your agent
A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.
Prompt
Install the agent skill "neon-drizzle" by Neon. Source, pinned to commit 1ceaf89a4e0acfbaf152ac2e85d45afd55f49c0f: https://github.com/neondatabase/ai-rules/tree/1ceaf89a4e0acfbaf152ac2e85d45afd55f49c0f/neon-plugin/skills/neon-drizzle 1. Download that folder at exactly this commit. Do not use the default branch. 2. Copy every file unchanged, keeping the folder structure, into .claude/skills/neon-drizzle/ for Claude Code and .agents/skills/neon-drizzle/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist. 3. Do not edit the files, and do not run any script in the folder unless I ask you to. 4. When you are done, list the files you copied and where you put them. Listing and checks: https://www.agentnative.dev/skills/neon/neon-drizzle
SKILL.md at the pin
---
name: neon-drizzle
description: 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.
allowed-tools: ["bash", "write", "read_file"]
---
# 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 guide
- `references/migrations.md` - Migration patterns and troubleshooting
- `references/query-patterns.md` - Example queries and best practices
## Templates & Scripts
- `templates/schema-example.ts` - Multi-table schema with relations
- `templates/drizzle-config.ts` - Configuration examples
- `scripts/generate-schema.ts` - Automated migration generation
- `scripts/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:
1. Detect your project context automatically
2. Select and load the appropriate guide
3. Follow the guide's phases sequentially
4. Track progress using the guide's workflow checklist
5. Load reference files only when needed
6. Offer to add Neon best practices to your project docs
Ready to get started? Just describe what you're building!
From neondatabase/ai-rules at 1ceaf89, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.
View SKILL.md on GitHub at 1ceaf89Files
- SKILL.md3.5 KB · d5055c7c4bfb
- guides/
- existing-project.md11 KB · 162aceb4fc28
- new-project.md9.3 KB · 36ff4754b8a5
- schema-only.md10 KB · c5f3e657f9b2
- troubleshooting.md11 KB · a979f9483626
- references/
- adapters.md11 KB · a0bd8efb5588
- migrations.md13 KB · 52fdf640eb88
- query-patterns.md14 KB · 118f6a6e8384
- scripts/
- generate-schema.ts2.8 KB · d5789693192f
- run-migration.ts4.4 KB · 6a5a3f1c50e3
- templates/
- db-http.ts177 B · a513bd67ea87
- db-websocket.ts517 B · 7bfe3bb5b0b4
- drizzle-config.ts2.2 KB · d1e93a195120
- schema-example.ts6.3 KB · 980aa5fd5366
14 files, 100 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.
Skill folder on GitHub at 1ceaf89More from Neon
neon
Neon is a cloud backend platform providing Postgres, auth, object storage, serverless functions, and an AI gateway with branching, zero-scale compute, and…
Claude Code, Codex, Cursor +4 · about 8.5K tokens · pinned 6 days ago
neon-ai-gateway
The Neon AI Gateway provides a single API endpoint and credential to access frontier and open-source LLMs from multiple providers (OpenAI, Anthropic, Google…
Claude Code, Codex, Cursor +4 · about 4.9K tokens · pinned 6 days ago
neon-auth
This skill adds Better Auth-based login to new apps using Neon's managed authentication system, where users and sessions live in a Postgres schema.
Claude Code, Codex, Cursor +4 · about 2.9K tokens · pinned 6 days ago
neon-functions
Neon Functions deploys long-running Node.js HTTP handlers to your Neon database branch, injecting DATABASE_URL and hosting stateful workloads like AI agents…
Claude Code, Codex, Cursor +4 · about 11.9K tokens · pinned 6 days ago
neon-object-storage
Neon Object Storage provides S3-compatible file storage that branches with your Neon Postgres database, keeping files and database rows in sync across…
Claude Code, Codex, Cursor +4 · about 3.3K tokens · pinned 6 days ago
neon-postgres
This skill guides agents on working with Postgres databases on Neon, covering connection setup, pooled vs direct connections, schema migrations, branching…
Claude Code, Codex, Cursor +4 · about 4K tokens · pinned 6 days ago
Related in Data and databases
vercel-storage
This skill guides agents through Vercel's storage ecosystem, including Blob for file uploads, Global Config for edge-accessible configuration, and Marketplace…
by VercelOfficial publisher
Claude Code, Codex, Cursor +3 · about 3.4K tokens · pinned 6 days ago
neon-postgres-branches
This skill helps users create and manage Neon PostgreSQL branches for testing and development.
by NeonOfficial publisher
Claude Code, Codex, Cursor +4 · about 3.2K tokens · pinned 6 days ago
neon-serverless
Configures the Neon Serverless Driver for database connectivity in serverless and edge environments like Vercel Edge Functions, AWS Lambda, and Cloudflare…
by NeonOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 680 tokens · pinned 6 days ago
neon-toolkit
This skill automates creation and cleanup of temporary Neon databases for testing and CI/CD pipelines using the Neon Toolkit API.
by NeonOfficial publisher
Contains scripts
Claude Code, Codex, Cursor +3 · about 640 tokens · pinned 6 days ago
netlify-database
This skill enables agents to set up and manage zero-config managed Postgres databases on Netlify via the @netlify/database package.
by NetlifyOfficial publisher
Claude Code, Codex, Cursor +4 · about 4.7K tokens · pinned 6 days ago
data-table-manager
This skill manages n8n Data Tables through creation, import, querying, and mutation operations.
by n8nOfficial publisher
Claude Code, Codex, Cursor +3 · about 2.1K tokens · pinned 6 days ago