PostgreSQL Table Design is a skill from Seth Hobson's agents collection that an agent loads when it designs or reviews a PostgreSQL schema. It is opinionated and Postgres-specific rather than generic SQL advice: identity columns over serial, TIMESTAMPTZ over timestamp, TEXT with a CHECK instead of varchar(n), NUMERIC instead of money, and JSONB with GIN indexes only for genuinely semi-structured attributes.
It lists the gotchas that catch people moving from other databases (foreign key columns are not indexed automatically, UNIQUE allows several NULLs unless NULLS NOT DISTINCT is used, unquoted identifiers are lowercased, sequences have gaps), explains when each index type fits (B-tree, composite with the leftmost-prefix rule, covering, partial, expression, GIN, GiST, BRIN), and when to partition a table by range, list or hash.
Worked CREATE TABLE examples show the rules applied, and a longer reference file holds the full type catalogue, workload patterns, extensions and live-schema-change advice. MIT licensed.