What problem does it solve? Writing efficient PostgreSQL queries and schemas requires knowing which index types, data types, and patterns fit each situation, and mistakes like unindexed foreign keys or wrong data types cause slow queries and maintenance pain. ## Core Features & Use Cases - Index Selection Guide: Cheat sheet mapping query patterns to the correct index type (B-tree, GIN, BRIN, composite, covering, partial). - Data Type Reference: Guidance on choosing correct types such as bigint for IDs, timestamptz for timestamps, and numeric for money. - Anti-Pattern Detection: Ready-to-run SQL queries that find unindexed foreign keys, slow queries via pg_stat_statements, and table bloat. - Use Case: When designing a new orders table, use this Skill to pick the right composite index for status-plus-date queries, apply an optimized RLS policy, and configure connection limits and timeouts. ## Quick Start Ask the AI to review your PostgreSQL schema or SQL query using the postgres-patterns skill and suggest indexes, data types, and security improvements.