neon-drizzle

작성자: neondatabase

완전한 기능을 갖춘 Drizzle ORM 설정을 프로비저닝된 Neon 데이터베이스와 함께 생성합니다. 종속성을 설치하고, 데이터베이스 자격 증명을 프로비저닝하며, 연결을 구성하고,…

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!

neondatabase의 다른 스킬

claimable-postgres
neondatabase
로컬 개발, 데모, 프로토타이핑 및 테스트 환경을 위한 즉시 사용 가능한 Postgres 데이터베이스입니다. 계정이 필요하지 않습니다. 데이터베이스는 Neon 계정에 클레임되지 않으면 72시간 후에 만료됩니다.
neon
neondatabase
Neon 플랫폼 개요: Postgres, Auth, Data API, 그리고 새로운 서비스인 Object Storage, Compute Functions, AI Gateway를 포함한 앱 및 에이전트 지원. "Neon"이 언급될 때마다 Neon 사용 방법과 시작 가이드 개요로 활용. 개별 기능은 다음 트리거로 연결: "object storage" 또는 "S3-compatible storage", "serverless functions", "background jobs", 또는 "run code near my database", "AI gateway", "LLM proxy", "model routing", 또는 "call an LLM" →...
apidatabasedevelopment
plugin-manager
neondatabase
이 저장소의 Cursor와 Claude Code 전반에 걸쳐 플러그인 구조와 구성을 관리합니다. 플러그인 폴더를 생성, 업데이트 또는 검토할 때 사용하세요…
skill-creator
neondatabase
효과적인 스킬을 생성하기 위한 가이드입니다. 이 스킬은 사용자가 Claude의 기능을 확장하는 새로운 스킬을 만들거나 기존 스킬을 업데이트하려 할 때 사용해야 합니다.
using-neon
neondatabase
Neon Serverless Postgres 작업을 위한 가이드 및 모범 사례. 시작하기, Neon을 사용한 로컬 개발, 연결 방법 선택, Neon…
neon-js-react
neondatabase
React 앱(Vite, CRA)에서 인증 및 데이터베이스 쿼리를 포함한 전체 Neon SDK를 설정합니다. 타입화된 클라이언트를 생성하고, 데이터베이스 타입을 생성하며, 구성합니다…
postgres-best-practices
neondatabase
Postgres 작업을 위한 모범 사례와 지침입니다. 스키마 설계, 인덱싱 전략, 쿼리 최적화, 마이그레이션 및 일반적인 함정을 다룹니다. 사용…
neon-postgres-egress-optimizer
neondatabase
사용자가 Postgres 데이터베이스에서 과도한 데이터 전송(이그레스)을 유발하는 애플리케이션 측 쿼리 패턴을 진단하고 수정하도록 안내합니다. 대부분의 높은 이그레스 비용은 애플리케이션이 실제 사용하는 데이터보다 더 많은 데이터를 가져오기 때문에 발생합니다.