Skip to content
Back to skills

Data And Schema Migration

ASecurity

Use when changing a persisted schema or format - a database table, a config-file schema, or a serialized on-disk format that existing data already uses.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 23, 2026
ai-agentsapidatabase

Works with

  • api

Security analysis

A100/100

Scanned November 23, 2026

npx -y skills add Kushagrabainsla/north --skill data-and-schema-migration --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data And Schema Migration?

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

Security grade badge for Data And Schema Migration
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kushagrabainsla-data-and-schema-migration/badge)](https://www.skillsdirectory.com/skills/kushagrabainsla-data-and-schema-migration)

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: data-and-schema-migration
description: "Use when changing a persisted schema or format - a database table, a config-file schema, or a serialized on-disk format that existing data already uses."
---
# Data and schema migration

> **Old data must still load after the change.**

## Use this when
- You are altering a DB schema, a stored file/serialization format, or a persisted config shape that live data uses.

## Do NOT use for
- Code-level API/symbol renames (use `deprecation-and-migration`).

## Procedure
1. Never mutate or drop an existing column/field in place - add new, backfill, then switch reads to it.
2. Provide an upgrade path: a migration step, or read-old / write-new logic that tolerates both shapes.
3. Make the migration idempotent and safe to re-run.
4. Test loading PRE-EXISTING data through the new code.
5. Ensure a rollback or backup exists before destructive steps.

## Done when
- Old and new data both load correctly, the migration is idempotent, and a rollback/backup exists.

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.