Skip to content
Back to skills

Schema Migrations

ASecurity

Evolve a live schema without downtime or data loss.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
development

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add Andersseen/agentyx --skill schema-migrations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Migrations?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema Migrations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andersseen-schema-migrations/badge)](https://www.skillsdirectory.com/skills/andersseen-schema-migrations)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema-migrations
description: Evolve a live schema without downtime or data loss.
---

# Schema migrations

A migration runs once against real data that cannot be recreated. Treat it with more care than the
code that prompted it.

## Make migrations additive first

Add columns and tables before anything reads them, and remove old structures only after nothing
references them. During deployment both versions of the application run at once.

## Expand, migrate, contract

Add the new shape, backfill it, switch reads and writes over, then drop the old shape in a later
release. Attempting all three at once forces downtime and leaves no safe point to stop.

## Backfill in batches

Update large tables in bounded chunks with pauses between them. A single statement over millions of
rows holds locks and can stall the application entirely.

## Keep them reversible

Provide a tested rollback, or design the change so the previous version still works against the new
schema. A migration you cannot undo turns a small mistake into an incident.

## Test against production-like data

Verify on a realistic copy for both correctness and duration. Migrations that finish instantly in
development regularly run for hours in production.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…