# Reversible Migrations

Plans schema, data or API migrations that can be rolled back and proven safe.

- Repository: https://github.com/JuliusBrussee/caveman (116680 stars)
- Category: Engineering
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add JuliusBrussee/caveman --skill migration -g -a claude-code -y`
Codex: `npx skills add JuliusBrussee/caveman --skill migration -g -a codex -y`
Cursor: `npx skills add JuliusBrussee/caveman --skill migration -g -a cursor -y`
Gemini CLI: `npx skills add JuliusBrussee/caveman --skill migration -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add JuliusBrussee/caveman`

## Description

Implement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and preservation proof.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Migration

Map current readers, writers, data shape, compatibility window, and ownership before editing.

- Define forward path and rollback path.
- Preserve existing data; make destructive steps explicit and separately authorized.
- Keep mixed-version operation safe where rollout can overlap.
- Sequence expand, migrate, verify, then contract when applicable.
- Make retries idempotent and partial failure observable.
- Verify old and new paths at required transition stages.

Stop after requested stage passes; do not perform later destructive contraction implicitly.

