neon-drizzle

Erstellt ein voll funktionsfähiges Drizzle ORM-Setup mit einer bereitgestellten Neon-Datenbank. Installiert Abhängigkeiten, stellt Datenbankanmeldeinformationen bereit, konfiguriert Verbindungen,…

npx skills add https://github.com/neondatabase/ai-rules --skill neon-drizzle

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!

Mehr Skills von neondatabase

claimable-postgres
neondatabase
Sofort einsatzbereite Postgres-Datenbanken für lokale Entwicklung, Demos, Prototyping und Testumgebungen. Kein Konto erforderlich. Datenbanken laufen nach 72 Stunden ab, sofern sie nicht an ein Neon-Konto gebunden werden.
neon
neondatabase
Überblick über die Neon-Plattform für Apps und Agents, einschließlich Postgres, Auth, Data API und der neuen Dienste: Object Storage, Compute Functions und AI Gateway. Verwenden, wenn "Neon" erwähnt wird, für einen Überblick über die Arbeit mit Neon und die ersten Schritte. Andernfalls sind die einzelnen Funktionen die Auslöser: "Object Storage" oder "S3-kompatibler Speicher", "Serverless Functions", "Background Jobs" oder "Code in der Nähe meiner Datenbank ausführen", "AI Gateway", "LLM Proxy", "Model Routing" oder "ein LLM aufrufen" →...
apidatabasedevelopment
plugin-manager
neondatabase
Verwalte die Plugin-Struktur und -Konfiguration für dieses Repository sowohl in Cursor als auch in Claude Code. Verwende dies beim Erstellen, Aktualisieren oder Überprüfen von Plugin-Ordnern…
skill-creator
neondatabase
Leitfaden zur Erstellung effektiver Skills. Dieser Skill sollte verwendet werden, wenn Benutzer einen neuen Skill erstellen (oder einen bestehenden Skill aktualisieren) möchten, der Claudes…
using-neon
neondatabase
Leitfäden und Best Practices für die Arbeit mit Neon Serverless Postgres. Behandelt den Einstieg, lokale Entwicklung mit Neon, Auswahl einer Verbindungsmethode, Neon…
neon-js-react
neondatabase
Richtet das vollständige Neon SDK mit Authentifizierung UND Datenbankabfragen in React-Apps (Vite, CRA) ein. Erstellt einen typisierten Client, generiert Datenbanktypen und konfiguriert…
postgres-best-practices
neondatabase
Best Practices und Richtlinien für die Arbeit mit Postgres. Behandelt Schema-Design, Indexierungsstrategien, Query-Optimierung, Migrationen und häufige Fallstricke. Verwenden…
neon-postgres-egress-optimizer
neondatabase
Führen Sie den Benutzer durch die Diagnose und Behebung von anwendungsseitigen Abfragemustern, die zu übermäßigem Datentransfer (Egress) aus seiner Postgres-Datenbank führen. Die meisten hohen Egress-Kosten entstehen dadurch, dass die Anwendung mehr Daten abruft, als sie tatsächlich nutzt.