PostgreSQL Best Practices & Optimization
Optimizes PostgreSQL performance and security through expert schema design, indexing strategies, and query best practices.
The postgres-patterns skill equips Claude Code with a comprehensive library of PostgreSQL best practices, largely based on Supabase's production-grade standards. It provides instant access to optimized indexing strategies—including B-tree, GIN, and BRIN—alongside guidance on data types, Row Level Security (RLS), and advanced query patterns like cursor pagination and task queues. This skill is essential for developers looking to reduce database latency, prevent common anti-patterns like unindexed foreign keys, and ensure their database schema is scalable and secure from the start.
主な機能
01Automated anti-pattern detection for unindexed foreign keys and table bloat.
02Performance tuning templates for system-level PostgreSQL configuration.
03Security-first Row Level Security (RLS) implementation templates.
0420 GitHub stars
05Optimized SQL patterns for UPSERT, cursor pagination, and queue processing.
06Comprehensive indexing cheat sheet for B-tree, GIN, and BRIN types.
ユースケース
01Designing high-performance database schemas for new applications.
02Troubleshooting and optimizing slow-running SQL queries.
03Implementing fine-grained access control with secure RLS policies.