Enforces data integrity and architectural consistency between the TypeScript application layer and the PostgreSQL persistence layer. Prevents type drift by ensuring CHECK constraints mirror TypeScript types, migrations are generated before applying changes, and Row-Level Security protects every table.
When to use: Schema design, migration planning, RLS policy authoring, Prisma model mapping, constraint auditing, zero-downtime deployments.
When NOT to use: Application-level business logic, frontend state management, non-PostgreSQL databases. For full RLS auditing, performance tuning, and compliance validation, use the database-security skill instead.
Hace cumplir la integridad de la base de datos para los sistemas PostgreSQL y Prisma. Úselo al diseñar esquemas, escribir migraciones o configurar la seguridad a nivel de fila. Úselo para SQL con seguridad de tipos, alineación de nombres, validación de restricciones, políticas RLS de confianza cero, claves primarias UUIDv7 e implementaciones sin tiempo de inactividad. Fuente: oakoss/agent-skills.