What problem does it solve? Existing PostgreSQL code often hides antipatterns like unindexed JSONB queries, inefficient array operations, wrong data types, and missing Row Level Security that only surface as production incidents. This Skill audits existing SQL, migrations, and PL/pgSQL functions against PostgreSQL-specific best practices and returns a structured verdict with paste-ready fixes. ## Core Features & Use Cases - PostgreSQL-specific review areas: Audits JSONB indexing and operators, array operations, schema design (CITEXT, ENUM, domains, TIMESTAMPTZ), custom types, extensions, and trigger functions. - Security and privilege checks: Verifies Row Level Security policies, granular GRANT statements, and confirms no user input is concatenated into SQL (JPQL, derived queries, or bound native parameters only). - Structured output: Delivers a verdict (Approved, Correction needed, or Rejected), a severity-ranked findings table with evidence, and corrected SQL ready to paste. - Use Case: Before merging a Flyway migration in backend/src/main/resources/db/migration/, ask for a review and receive findings such as a missing GIN index on a JSONB containment query plus the exact CREATE INDEX statement to fix it. ## Quick Start Review this PostgreSQL migration for antipatterns, JSONB indexing, and RLS security before I merge it.