What problem does it solve?
Provides practical patterns and guardrails for designing relational schemas, writing safe migrations, optimizing queries, and using ORMs to avoid common runtime and performance issues.
Core Features & Use Cases
- Schema and naming conventions: guidance on table/column naming, primary key strategies, audit columns, and when to denormalize.
- Safe migrations: forward-only migration patterns, multi-step deployment strategies, and tools for Prisma, Alembic, Knex, Goose, and Drizzle.
- Indexing and query tuning: index types, composite and partial indexes, covering indexes, EXPLAIN analysis, and pagination strategies.
- ORM best practices: ORM-specific patterns for Prisma, Drizzle, SQLAlchemy, and GORM to avoid N+1, manage transactions, and use raw SQL when necessary.
- Use Case: review a production schema to add a new non-null column with zero-downtime backfill and appropriate indexing to support a new query pattern.
Quick Start
Ask the database skill to review a schema and recommend safe, stepwise migrations and indexing changes to add a non-null field without downtime.