Skip to content
Back to skills

Migrations

ASecurity

Add or change a database column without breaking existing rows

  • 292 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsdatabase

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add shep-ai/shep --skill migrations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Migrations?

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

Security grade badge for Migrations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shep-ai-migrations/badge)](https://www.skillsdirectory.com/skills/shep-ai-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: migrations
description: Add or change a database column without breaking existing rows
---

1. Add the column as nullable in its own migration.
2. Backfill existing rows in the same migration, in batches.
3. Only then add the NOT NULL constraint and the default.
4. Run the migration twice against a copy of the database; it must be idempotent.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.