PostgreSQL Patterns
Optimizes PostgreSQL schemas, indexing strategies, query performance, and Row Level Security policies based on Supabase best practices.
PostgreSQL Patterns provides an essential reference guide for designing performant, scalable, and secure PostgreSQL databases within Claude Code. Drawing from battle-tested Supabase best practices, this skill equips Claude with actionable patterns for index selection across B-tree, GIN, and BRIN types, schema type choices, efficient cursor pagination, and SKIP LOCKED job queue implementation. It also includes diagnostics for detecting missing foreign key indexes, slow queries via pg_stat_statements, and table bloat, making it invaluable for developers writing migrations, building RLS policies, and tuning SQL workloads.