The postgres-patterns skill provides Claude with a comprehensive knowledge base for building, optimizing, and maintaining high-performance PostgreSQL databases. It equips Claude to suggest advanced indexing strategies—including GIN, BRIN, and partial indexes—while ensuring data integrity through correct type selection and Row Level Security (RLS). Whether you are designing a multi-tenant schema from scratch, troubleshooting slow queries with pg_stat_statements, or implementing complex queue processing patterns, this skill ensures your database architecture follows modern industry best practices to avoid common pitfalls like table bloat and unindexed foreign keys.
主な機能
01Production-Grade Schema Design and Data Type Recommendations
02Anti-Pattern Detection for Unindexed Keys and Slow Queries
03Comprehensive Indexing Guide (B-tree, GIN, BRIN, Partial, and Covering)
04Optimized Row Level Security (RLS) Policy Implementation
05Advanced SQL Patterns for Upserts, Pagination, and Queue Processing
06501 GitHub stars
ユースケース
01Implementing secure multi-tenant data access using optimized RLS policies.
02Refactoring slow-performing SQL queries and identifying missing database indexes.
03Architecting high-performance database schemas for new scalable applications.