data-contract-migrations SKILL.md skillA
data-contract-migrations from majiayu000/spellbook is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add majiayu000/spellbook/data-contract-migrations@git:20260626.97a677ePins git:20260626.97a677e in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- majiayu000/spellbook
- Path
skills/data-contract-migrations/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260626.97a677e, committed Jun 26, 2026
- Size
- 2,408 bytes
- Repository stars
- 290
- License
- MIT
Design and verify data contracts, schema changes, migrations, rollbacks, backfills, compatibility windows, tenant isolation, and API-to-database field mapping. Use when changing database schema, event payloads, persisted documents, analytics tables, multi-tenant data boundaries, or any user-visible data contract where silent fallback or undeclared fields would be dangerous.
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
# Data Contract Migrations ## Purpose Use this skill when data shape changes can break reads, writes, reports, tenants, or integrations. The goal is an explicit compatibility and migration plan, not just a SQL diff. ## Preflight Gather these facts before proposing changes: 1. Current schema, models, serializers, API contracts, and persisted samples. 2. Writers and readers of each field. 3. Migration tool and rollback support. 4. Data volume, tenant boundaries, and backfill cost. 5. Required zero-downtime or maintenance-window constraints. 6. Existing tests or fixtures that prove compatibility. If the current data does not contain a field, treat it as absent. Do not invent fallback fields. ## Migration Design Use expand-migrate-contract for production systems: 1. Expand: add nullable columns, new tables, new enum values, or versioned payloads without breaking old readers. 2. Dual-write or adapter: write both old and new forms when needed. 3. Backfill: migrate historical data with batching, checkpoints, and retry behavior. 4. Read switch: move readers to the new contract after verification. …
Read the whole file at its exact version.
How to install
mdr add majiayu000/spellbook/data-contract-migrations@sha256:bda25c39a77c8460The line at the top of this page pins the label git:20260626.97a677e, 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.
[](https://markdownregistry.com/a/art_o3kvi4k47egv5eft)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jun 26, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2408 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
majiayu000/spellbook · 290 stars · license MIT · pushed 2026-11-04 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_o3kvi4k47egv5eft GET https://markdownregistry.com/api/v1/resolve?ref=majiayu000/spellbook/data-contract-migrations GET https://markdownregistry.com/api/v1/blob/bda25c39a77c846064fe422629922d892670df4489b9b9fbcc36e544df4da0cd
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.