db-migration SKILL.md skillA

This file is byte-identical to the first copy the registry indexed, one of 8 indexed copies. Same content hash, so the same checks give both the same grade.

db-migration from globalmpc/backendskills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add globalmpc/backendskills/db-migration@git:20261105.6131a31

Pins git:20261105.6131a31 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
globalmpc/backendskills
Path
bench/results/2026-11-04/checkout-with-2-20261104173809-13068/skills/db-migration/SKILL.md
Versions recorded
1
Latest version
git:20261105.6131a31, committed Nov 5, 2026
Size
4,661 bytes
Repository stars
25
License
MIT

Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data backfill, and any migration file.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Schema change

Examples are Postgres. Assume the table is large and the app is live: deploys are rolling, so the previous
version of the app keeps running against the new schema for a few minutes.

## 1. Expand, then contract: never rename or drop in the same deploy

Why: the version still running during the deploy queries the old name and fails until the deploy finishes.

```sql
-- Bad: the running version breaks the moment this migration lands
alter table customers rename column name to full_name;

-- Good, deploy 1: add the new column and fill it. Keep it in sync until every server runs the new code
-- (write both in the app, or use a trigger).
alter table customers add column full_name text;
update customers set full_name = name where full_name is null;  -- batch it on big tables (rule 4)
-- Deploy 2, once nothing reads the old column: drop name.
```

The same applies to dropping a table or column, and to narrowing a type. Adding is safe. Removing waits
for a later deploy.

## 2. Indexes on big tables are built concurrently

Why: a plain `create index` blocks every write to the table until it finishes, which can take minutes.

```sql
-- Bad
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add globalmpc/backendskills/db-migration@sha256:2a1e42884f653478

The line at the top of this page pins the label git:20261105.6131a31, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_vxksdxxw5yvxyr6a.svg)](https://markdownregistry.com/a/art_vxksdxxw5yvxyr6a)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Nov 5, 2026.

versioncommittedcommitsizeaudit
git:20261105.6131a31 latest2026-11-05 6131a31 4,661 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4661 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

globalmpc/backendskills · 25 stars · license MIT · pushed 2026-11-06 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_vxksdxxw5yvxyr6a
GET https://markdownregistry.com/api/v1/resolve?ref=globalmpc/backendskills/db-migration
GET https://markdownregistry.com/api/v1/blob/2a1e42884f6534788822c2ceff9275641b85a4003e235f69e86fd07649eff7e9

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from globalmpc/backendskills

api-endpoint SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104164959-6498/skills/api-endpoint/SKILL.md · Rules for HTTP API endpoints. Use when adding or changing any endpoint (route, request or response shape, status…
git:20261105.6131a31 · audit A · 25 stars
data-integrity SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104164959-6498/skills/data-integrity/SKILL.md · Rules for code that writes to the database where two requests, retries or jobs can run at once. Use for anything that…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104164959-6498/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
api-endpoint SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104173809-28998/skills/api-endpoint/SKILL.md · Rules for HTTP API endpoints. Use when adding or changing any endpoint (route, request or response shape, status…
git:20261105.6131a31 · audit A · 25 stars
data-integrity SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104173809-28998/skills/data-integrity/SKILL.md · Rules for code that writes to the database where two requests, retries or jobs can run at once. Use for anything that…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104173809-28998/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
api-endpoint SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261105081443-28376/skills/api-endpoint/SKILL.md · Rules for HTTP API endpoints. Use when adding or changing any endpoint (route, request or response shape, status…
git:20261105.6131a31 · audit A · 25 stars
data-integrity SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261105081443-28376/skills/data-integrity/SKILL.md · Rules for code that writes to the database where two requests, retries or jobs can run at once. Use for anything that…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261105081443-28376/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
api-endpoint SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-2-20261104164959-23336/skills/api-endpoint/SKILL.md · Rules for HTTP API endpoints. Use when adding or changing any endpoint (route, request or response shape, status…
git:20261105.6131a31 · audit A · 25 stars
data-integrity SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-2-20261104164959-23336/skills/data-integrity/SKILL.md · Rules for code that writes to the database where two requests, retries or jobs can run at once. Use for anything that…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-2-20261104164959-23336/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars

Every file in globalmpc/backendskills

Other files named db-migration

db-migration SKILL.md skill
a-pavithraa/springboot-skills-marketplace · plugins/springboot-architecture/skills/spring-boot-team-harness/assets/project-skills/db-migration/SKILL.md · Writes a Flyway database migration for this project following the team's rules for naming, editing and renaming, so…
git:20261023.b8e5633 · audit A · 80 stars
db-migration SKILL.md skill
nerds-odd-e/doughnut · .agents/skills/db-migration/SKILL.md · Database migration, Flyway, SQL migrations, schema changes, database versioning, migration files, squashing historical…
git:20260928.428ed03 · audit A · 50 stars
db-migration SKILL.md skill
byerlikaya/claude-starter-kit · kit/skills/db-migration/SKILL.md · Apply schema migrations safely: detect the tool, classify the change by risk, gate destructive ones behind approval…
git:20260926.aaa5dbc · audit A · 26 stars
db-migration SKILL.md skill
byerlikaya/claude-starter-kit · plugin/skills/db-migration/SKILL.md · Apply schema migrations safely: detect the tool, classify the change by risk, gate destructive ones behind approval…
git:20260926.aaa5dbc · audit A · 26 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-3-20261104164959-7407/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-3-20261104173809-29907/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261104173809-28998/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars
db-migration SKILL.md skill
globalmpc/backendskills · bench/results/2026-11-04/checkout-with-1-20261105081443-28376/skills/db-migration/SKILL.md · Rules for database schema changes. Use for any new table, column, index, constraint, enum or trigger, any data…
git:20261105.6131a31 · audit A · 25 stars

Browse by kind, by grade A, or by owner.