<< All versions

Skill v1.0.1

Automated scan100/100
vouchington/vouchington-tooling/postgres-schema-design

+7 new

──Details
PublishedNovember 4, 2026 at 02:20 AM
Content Hashsha256:0570e1ff4820b06d...
Git SHAab1b78902272
Bump Typepatch
Compare with v1.0.0
──Files
Files (1 file, 1.5 KB)
SKILL.md1.5 KBactive
SKILL.md · 27 lines · 1.5 KB

name: postgres-schema-design description: Design PostgreSQL names, relations, history, work queues, and cursors. metadata: version: "1.0.1"


PostgreSQL schema design

Read applicable AGENTS.md and the repository's local database adapter when present. Local policy overrides these portable conventions.

  • Names explain the stored thing; read naming when naming schema objects.
  • Columns say their type and FK target; finite sets use enums or lookup tables.
  • Joined identities use foreign keys; read relations before modeling references.
  • Split differing shapes, share identical values, and keep history documents as JSON.
  • Use canonical table shapes for revisions, changes, work, and cursors.
  • Default to finite retention for everything except user content; see table shapes.
  • Reuse parameterized trigger functions instead of copying bodies.
  • Comment every table, column, and view; document reviewed exceptions explicitly.

For query shape, read performance patterns. For partition lifecycle, use UUIDv7 partitioning. For how jobs choose, cap, and resume over work-item and cursor tables, read bounded iteration. Consumer policy owns lifecycle, retention, migration strategy, and enforcement configuration.

← v1.0.0All versionsv1.0.2 →