wshobson avatar

Postgresql Table Design

PostgreSQL Table Design provides guidance on schema design best practices for PostgreSQL databases, covering primary keys, normalization, data types, indexing strategies, constraints, and PostgreSQL-specific behaviors. It serves database architects and developers who need to design or review PostgreSQL schemas by helping them avoid common pitfalls like missing foreign key indexes, premature denormalization, and misunderstandings about PostgreSQL's MVCC storage model and type coercion rules. The skill solves the problem of creating maintainable, performant database schemas that follow PostgreSQL conventions and leverage its specific features effectively.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
20
skills.sh installs
28.7K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill postgresql-table-design --agent claude-code

Installs into .claude/skills of the current project.

Files

PostgreSQL Table Design

When to Use

  • Designing a new PostgreSQL schema, or reviewing one before it ships.
  • Choosing column types, keys, constraints, or indexes for PostgreSQL specifically.
  • Deciding whether and how to partition a large table, or how to store semi-structured data.
  • Planning a schema change on a live database without downtime.

The rules and decision points for a PostgreSQL schema. The full data-type catalog, workload patterns (update-heavy, insert-heavy, upsert, schema evolution), extensions, JSONB indexing, and worked DDL examples are in references/details.md; open it when a section below points there.

Core Rules

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Backend & APIs, Debugging, Design & UI/UX, Databases

More from wshobson/agents

All 174
1wshobson avatardatabase-migrationwshobson/agentsExecute database migrations across ORMs and platforms with zero-downtime strategies, data transformation, and rollback procedures. Use when migrating databases,18Kskills.sh installs
2github avatarpostgresql-code-reviewgithub/awesome-copilotPostgreSQL-specific code review assistant focusing on PostgreSQL best practices, anti-patterns, and unique quality standards. Covers JSONB operations, array usa12.8Kskills.sh installs
3elevenlabs avatarsetup-api-keyelevenlabs/skillsGuides users through setting up an ElevenLabs API key for ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tool11.9Kskills.sh installs
4github avataraspnet-minimal-api-openapigithub/awesome-copilotCreate ASP.NET Minimal API endpoints with proper OpenAPI documentation9.2Kskills.sh installs
5affaan-m avatarapi-designaffaan-m/everything-claude-codeapi design6.9Kskills.sh installs
6binance avataronchain-pay-open-apibinance/binance-skills-hubBinance Onchain Pay enables users to buy cryptocurrency with fiat (e.g., EUR, USD) or send existing crypto from their Binance account directly to any external o6Kskills.sh installs