neon-drizzle

โดย neondatabase

สร้างการตั้งค่า Drizzle ORM ที่ทำงานได้อย่างสมบูรณ์พร้อมฐานข้อมูล Neon ที่เตรียมไว้ ติดตั้ง dependencies จัดเตรียมข้อมูลรับรองฐานข้อมูล กำหนดค่าการเชื่อมต่อ…

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!

Skills เพิ่มเติมจาก neondatabase

claimable-postgres
neondatabase
ฐานข้อมูล Postgres แบบทันทีสำหรับการพัฒนาในเครื่อง การสาธิต การสร้างต้นแบบ และสภาพแวดล้อมการทดสอบ ไม่ต้องมีบัญชี ฐานข้อมูลจะหมดอายุหลังจาก 72 ชั่วโมง เว้นแต่จะถูกอ้างสิทธิ์ไปยังบัญชี Neon
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
ตั้งค่า Neon SDK แบบสมบูรณ์พร้อมการตรวจสอบสิทธิ์และการค้นหาฐานข้อมูลในแอป React (Vite, CRA) สร้างไคลเอนต์แบบมีชนิด สร้างชนิดข้อมูลฐานข้อมูล และกำหนดค่า…
postgres-best-practices
neondatabase
แนวทางปฏิบัติและข้อแนะนำที่ดีที่สุดสำหรับการทำงานกับ Postgres ครอบคลุมการออกแบบ schema, กลยุทธ์การสร้าง index, การปรับแต่ง query, การทำ migration, และข้อผิดพลาดที่พบบ่อย ใช้…
neon-postgres-egress-optimizer
neondatabase
แนะนำผู้ใช้ในการวินิจฉัยและแก้ไขรูปแบบการค้นหาข้อมูลฝั่งแอปพลิเคชันที่ทำให้เกิดการถ่ายโอนข้อมูลมากเกินไป (egress) จากฐานข้อมูล Postgres ของพวกเขา ค่าใช้จ่าย egress ที่สูงส่วนใหญ่มาจากแอปพลิเคชันที่ดึงข้อมูลมากกว่าที่ใช้งานจริง