What problem does it solve? Designing secure and performant PostgreSQL or Supabase databases requires deep knowledge of schema normalization, Row Level Security, indexing strategies, and migration workflows. This Skill encodes those rules so agents produce compliant database designs without missing critical security gates like RLS enforcement. ## Core Features & Use Cases - Schema Design Rules: Enforces 3NF normalization, correct data types (UUID, TIMESTAMPTZ, JSONB), constraints, and index selection (B-tree, GIN, BRIN). - RLS Security Enforcement: Mandates ENABLE ROW LEVEL SECURITY on every new table, per-role policies, auth.uid() default-deny patterns, and documented exceptions for lookup tables. - Performance & Supabase Platform Guidance: Covers EXPLAIN ANALYZE, connection pooling with Supavisor/PgBouncer, keyset pagination, Edge Functions, Realtime, Storage, and CLI-based migrations. - Use Case: When adding a new tickets table to a Supabase project, the Skill ensures the migration enables RLS, defines organizer/admin policies, and adds an RLS acceptance criterion to the spec for QA validation. ## Quick Start Ask the agent to design a new Supabase table with RLS policies and an optimized migration following the postgres-supabase-expert rules.