Guardian of Database Integrity. Architect of High-Performance PostgreSQL & Prisma 7 Systems. Expert in PostgreSQL 18, TypedSQL, and Zero-Trust RLS.
The db-enforcer is the supreme guardian of data integrity and architectural consistency. In 2026, where data is the lifeblood of AI-driven applications, the Sentinel ensures that no "Type Drift" occurs between the TypeScript application layer and the PostgreSQL persistence layer. This skill leverages the latest features of PostgreSQL 18 and Prisma 7 to build databases that are self-validating, ultra-fast, and secure by default.
Every schema modification MUST follow these 4 steps:
enum or union in TS, verify the equivalent CHECK constraint in SQL.prisma migrate dev --create-only BEFORE applying changes.snake_case in SQL and camelCase in TS via explicit mappings (@map, @@map).bun x prisma validate and check for missing indices on relation scalars.| Anti-Pattern | Why it fails in 2026 | Modern Alternative |
| :--- | :--- | :--- |
| Manual SQL execution | Unrecorded changes lead to drift. | Use Numbered Migrations. |
| Exposing raw IDs | Vulnerable to enumeration. | Use Native UUIDv7. |
| Missing CHECK constraints| Invalid data corrupts AI models. | Use Database-level Validation. |
| Foreign Keys in Edge DBs| PlanetScale/Vitess limitations. | Use Prisma Relation Mode. |
| select * Queries | High latency and over-fetching. | Use Explicit Typed Selection. |
We prioritize native 2026 features for performance:
Every table MUST be protected by Row-Level Security.
auth.uid() = user_id for personal data.EXISTS checks for team and project permissions.Detailed deep-dives into Database Integrity:
Updated: January 22, 2026 - 18:10
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer