PostgreSQL table design (Seth Hobson)
SkillRules and gotchas for designing or reviewing a PostgreSQL schema.
Gives Claude PostgreSQL-specific rules for keys, data types, constraints, indexes and partitioning: identity columns, TIMESTAMPTZ, NUMERIC for money, indexing foreign keys by hand, and which types to avoid. It lists Postgres behaviors that catch people out, such as unique constraints allowing multiple NULLs and gaps in sequences. A reference file holds the full type catalog, workload patterns, JSONB indexing and worked DDL examples.
Try asking:
- "Review this schema for a multi-tenant orders table before we ship it"
- "Design Postgres tables for users, teams and invitations"
- "Should this events table be partitioned, and how?"
Source: wshobson/agents · MIT · by Seth Hobson

Log in to join the discussion.