This skill provides production-grade architectural guidance and code generation for building type-safe backend applications with PostgreSQL (versions 17 and 18) and Drizzle ORM. It helps developers correctly model relational schemas, configure connection pooling (such as node-postgres, postgres.js, and PgBouncer), generate and apply migrations with drizzle-kit, and avoid common performance traps like N+1 query patterns and unindexed foreign keys. Additionally, it handles Drizzle API versioning compatibility (v0.x vs v1.0), transactions, Row-Level Security (RLS), JSONB indexing, and advanced PostgreSQL query optimization.
主な機能
01High-performance query construction and anti-pattern prevention (N+1, missing FK indexes)
02Drizzle version compatibility support across stable 0.x and 1.0 relational query APIs
03Type-safe schema modeling with PostgreSQL 17/18 native features and index optimization
04Robust connection pooling setup for node-postgres, postgres.js, and PgBouncer
0559 GitHub stars
06Seamless migration workflows using drizzle-kit generate, push, and migrate commands
ユースケース
01Defining relational database schemas with proper foreign keys, constraints, and timezone-aware timestamps
02Refactoring slow SQL queries and preventing N+1 execution bottlenecks with Drizzle relational queries
03Managing zero-downtime database migrations and schema introspection across development and production