PostgreSQL Patterns & Best Practices

•
323
•

Optimizes PostgreSQL databases with production-ready patterns for indexing, schema design, and security based on Supabase best practices.

This skill provides Claude with a comprehensive reference for PostgreSQL development, covering everything from performance-oriented indexing strategies and data type selection to advanced Row Level Security (RLS) policies and anti-pattern detection. Based on Supabase's proven architectural standards, it helps developers write more efficient SQL, design scalable schemas, and implement secure data access layers. It is particularly useful when performing database migrations, troubleshooting slow queries, or architecting backend services within the Claude Code environment.

主要功能

01323 GitHub stars
02Optimized SQL patterns for Upserts, Cursor Pagination, and Job Queues
03Production-grade configuration templates for connection limits and timeouts
04Comprehensive indexing guide covering B-tree, GIN, BRIN, and composite indexes
05Performance-tuned Row Level Security (RLS) policy templates
06Anti-pattern detection for unindexed foreign keys and table bloat

使用场景

01Troubleshooting and optimizing slow-running SQL queries or migrations
02Designing secure multi-tenant database schemas with optimized RLS
03Implementing high-performance indexing for JSONB and time-series data