This skill provides specialized guidance for designing robust, scalable PostgreSQL schemas within Claude Code. It automates the selection of optimal data types, implements advanced indexing strategies (B-tree, GIN, GiST), and enforces data integrity through proper constraints. Users can leverage this skill to handle complex requirements such as Row-Level Security (RLS), table partitioning for large-scale data, and JSONB optimization, while avoiding common PostgreSQL 'gotchas' like case-sensitivity issues and non-indexed foreign keys.
主な機能
01Declarative partitioning strategies for high-volume time-series data
0237,718 GitHub stars
03Advanced indexing strategies for B-tree, GIN, GiST, and BRIN
04Implementation of Row-Level Security (RLS) for secure multi-tenancy
05Expert data type selection including TIMESTAMPTZ, JSONB, and Vector types
06Strict enforcement of normalization and schema integrity rules
ユースケース
01Implementing fine-grained database access control at the row level
02Designing a new relational database for a scalable SaaS application
03Migrating and optimizing legacy schemas to use modern PostgreSQL features