Enforce database design and migration standards when working with database schemas, queries, migrations, or ORM configurations. Use this skill whenever the user creates or modifies Prisma schemas, Entity Framework models, SQLAlchemy models, Django models, raw SQL, database indexes, migration files, seed data, or data backfill scripts. Also applies when discussing query optimization, N+1 problems, connection pooling, naming conventions, or zero-downtime migrations -- even if the user doesn't explicitly mention 'database standards'.
When this skill triggers, follow these steps:
Always read the database standards document first: