SKILL-068 Data modeling and migrations Locked skill

Record versioning

Versioning is about content history, not actor events: capture an immutable snapshot on each change so you can always go back.

01

What this skill helps you build

Keep a full history of every edit to a record, then browse, diff, and restore any prior version.

The production takeaway

Versioning is about content history, not actor events: capture an immutable snapshot on each change so you can always go back.

02

Inside this skill

The full skill expands these implementation areas with decisions, edge cases, prompts, tests, and framework-specific code.

Data modeling and migrations
What this helps you build

A version history for your editable records: every time a document, page, post, or settings row changes, you keep an immutable snapshot of what it looked like. The result is a time

🔒
Data modeling and migrations
When to use this

Reach for record versioning whenever a record is edited over time and the previous states have value — for recovery, review, or trust: User authored content: documents, articles, w

🔒
Data modeling and migrations
The core idea

On every meaningful change to a record, write an immutable version row that captures the record's state at that moment. The live record holds the current state; the versions table

🔒
03

Unlock the full implementation

Paid access includes the complete skill body, implementation prompt, common mistakes, production checklist, and code examples where this skill includes them.