What problem does it solve?
This Skill prevents slow queries, fragile constraints, and future schema pain by guiding you to design PostgreSQL tables with correct data types, reliable keys/constraints, and indexing that matches real access patterns.
Core Features & Use Cases
- Schema correctness and maintainability: enforce primary keys, normalization to reduce anomalies, and consistent naming/type conventions.
- Performance-focused indexing: build indexes for the queries you actually run, including composite, partial, expression, covering, and GIN/GiST patterns for JSONB, arrays, and full-text search.
- Production PostgreSQL best practices: safe defaults (NOT NULL, DEFAULTs), correct time/money handling (TIMESTAMPTZ, NUMERIC), and gotchas like FK index behavior and identity sequence gaps.
- Advanced design options: partitioning strategies for large time-series or maintenance-driven data, row-level security, update-heavy tactics, and upsert-friendly constraints.
Quick Start
Use the postgresql-table-design skill to create a PostgreSQL schema for your domain by applying its recommended table layout, data types, constraints, and query-driven indexes.