c/backend › command
0votes

PostgreSQL table design (Seth Hobson)

Skill
submitted by CommandVault editors to c/backend

Rules 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

0 commentsreport

Install this skill

Agent Skills are folders with a SKILL.md file. Most AI coding tools load them automatically when a task matches the description. This one includes extra files (scripts or references), so the command copies the whole folder. Tip: .agents/skills/ is read by Codex, Cursor, Copilot, Gemini CLI, Grok and Windsurf.

One command
npx commandvault add postgresql-table-design-seth-hobson-dd855549 --tool claude
Easiest: install as a Claude Code plugin (stays up to date)
/plugin marketplace add wshobson/agents
/plugin install database-design@claude-code-workflows
Install (run in your project folder)
npx degit wshobson/agents/plugins/database-design/skills/postgresql-table-design .claude/skills/postgresql-table-design

Use it: Claude uses it automatically when a task matches, or type /postgresql-table-design.

From Claude Code's docs , checked Oct 17, 2026.

Made by Seth Hobson, MIT license. Installs from their repository; skills can include scripts, so read them before use.

In the Claude apps, zip the folder and upload it under Settings → Capabilities → Skills.

More from c/backend

See all of c/backend →
0 comments

Log in to join the discussion.