/ai-stuff:postgres-schema-designfrom ai-stuff
Performance-oriented PostgreSQL schema design and review: primary keys and UUIDs, column types, JSONB vs columns, constraints and foreign keys, index choice, update-heavy tables and MVCC bloat, partitioning, queues, pagination, counting, rollups, time-series, and multi-tenancy. Use when designing new Postgres tables, reviewing a schema or a migration's target shape, choosing indexes, or diagnosing a design-level performance problem. For how to apply a change to a live database without locking it, use postgres-safe-migrations.
Ships in ai-stuff. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Guidance distilled from 439 episodes of Scaling Postgres (2018–2026). The full reference, with evidence and episode citations, is design-guide.md. Read the sections that match the task, not the whole file.
postgres-safe-migrations for that.design-guide.md.postgres-safe-migrations.Keys and types
bigint identity or UUIDv7. Flag int/serial keys on tables that
will grow, and random UUIDv4 PKs.timestamptz, not timestamp.text (plus a CHECK if needed), not varchar(n).numeric, never float.Shape
Constraints
ON CONFLICT, not insert-then-catch.Indexes
Lifecycle
DELETE.count(*) over a
large set per request.Tenancy
tenant_id is on every table and leads tenant-scoped keys and indexes.What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/brainstormingYou MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./dispatching-parallel-agentsUse ONLY when the developer has explicitly told you to dispatch subagents — never infer or self-authorize it. Splits 2+ independent tasks across isolated subagents, assigns them cheap models, and polls at a per-harness cadence that preserves prompt cache (Claude Code vs Codex/opencode).Other plugins' skills for the same job
npx claudepluginhub pauldotsh/ai-stuff --plugin ai-stuff