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.
Erzwingt die Datenbankintegrität für PostgreSQL- und Prisma-Systeme. Verwenden Sie diese Option, wenn Sie Schemata entwerfen, Migrationen schreiben oder die Sicherheit auf Zeilenebene konfigurieren. Verwendung für typsicheres SQL, Namensausrichtung, Einschränkungsvalidierung, Zero-Trust-RLS-Richtlinien, UUIDv7-Primärschlüssel und Bereitstellungen ohne Ausfallzeiten. Quelle: oakoss/agent-skills.