What problem does it solve? Slow queries, missing indexes, and unsafe schema or Row Level Security designs are hard to catch during development. This Skill provides a static reference of PostgreSQL patterns so reviews of schemas, migrations, and queries follow proven indexing, data type, and security practices. ## Core Features & Use Cases - Index Selection Guidance: Cheat sheets map query patterns (equality, range, JSONB containment, full-text search) to the right index type such as B-tree, GIN, or BRIN. - Schema and Data Type Patterns: Reference tables for choosing IDs, timestamps, money, and string types, plus composite, covering, and partial index examples. - Anti-Pattern Detection Queries: Ready-made catalog queries to find unindexed foreign keys, slow statements via pg_stat_statements, and tables with high dead-tuple counts. - Use Case: While writing a migration that adds an orders table, use this Skill to confirm the composite index column order, add an optimized RLS policy, and verify no foreign keys are missing indexes. ## Quick Start Ask the AI to review your PostgreSQL schema or slow query using the postgres patterns skill and suggest indexes, data types, and RLS improvements.