The postgres-patterns skill provides Claude with a comprehensive knowledge base for designing and managing PostgreSQL databases efficiently. Drawing from Supabase best practices, it guides the creation of optimized indexes, proper data type selection, and performance-driven query patterns like cursor pagination and UPSERTs. This skill also prioritizes database security through Row Level Security (RLS) implementation and provides diagnostic tools to identify anti-patterns such as table bloat or missing foreign key indexes. It is an essential resource for developers using Claude Code to build scalable, secure, and production-ready backend infrastructures.
主な機能
01Indexing strategy optimization for B-tree, GIN, and BRIN types
0261 GitHub stars
03Performance tuning via anti-pattern detection and slow query analysis
04Advanced schema design including covering and partial indexes
05Efficiency patterns for cursor pagination and transactional queue processing
06Secure Row Level Security (RLS) policy implementation and optimization
ユースケース
01Implementing secure multi-tenant architectures using RLS policies
02Troubleshooting slow performance and managing database table bloat
03Writing high-performance database migrations and complex SQL queries