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.
يفرض تكامل قاعدة البيانات لأنظمة PostgreSQL وPrisma. يُستخدم عند تصميم المخططات أو كتابة عمليات الترحيل أو تكوين الأمان على مستوى الصف. يستخدم لـ SQL الآمن للنوع، ومحاذاة التسمية، والتحقق من صحة القيد، وسياسات RLS ذات الثقة الصفرية، ومفاتيح UUIDv7 الأساسية، وعمليات النشر بدون توقف. المصدر: oakoss/agent-skills.