PO

postgresql-table-design

Tool for architecting efficient, robust PostgreSQL schemas using industry best practices.

Install

mkdir -p .claude/skills/postgresql-table-design && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/52" && unzip -o skill.zip -d .claude/skills/postgresql-table-design && rm skill.zip

Installs to .claude/skills/postgresql-table-design

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use this skill when designing or reviewing a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features
174 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • →Validate normalization to 3NF standards
  • →Apply BIGINT IDENTITY patterns for primary keys
  • →Identify missing foreign key indexes
  • →Format table and column names to snake_case
  • →Configure UNIQUE constraints with NULLS NOT DISTINCT

How it works

Follows a strict checklist of PostgreSQL design rules to enforce consistency and performance at the schema level.

Inputs & outputs

You give it
Domain entity descriptions or table schema requirements
You get back
Validated DDL statements and schema design advice

When to use postgresql-table-design

  • →Create a new database schema
  • →Review schema for normalization issues
  • →Add optimized indexes to existing tables

About postgresql-table-design

Guides developers through PostgreSQL schema design, covering normalization, constraints, and specific PostgreSQL behaviors like foreign key indexing. It helps avoid common database pitfalls.

Design a PostgreSQL-specific schema. Covers best-practices, data types, indexing, constraints, performance patterns, and advanced features

When not to use it

  • →Designing NoSQL schemas
  • →Complex data warehousing tasks requiring star schema analysis

Limitations

  • →Requires manual confirmation for denormalization choices
  • →Does not check for existing data migration conflicts

How it compares

It enforces database-specific constraints like strict type coercion rather than suggesting generic ORM abstractions.

Compared to similar skills

postgresql-table-design side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
postgresql-table-design (this skill)306moNo flagsIntermediate
event-store-design54moNo flagsAdvanced
database-design68moReviewIntermediate
database-schema-designer68moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by wshobson

View all by wshobson →

Search skills

Search the agent skills registry