data-migration

data-migration is a skill for Claude Code, Codex from fmind/dot. It costs 24 tokens per session (807 once invoked), scanned A, original, MIT.

A guide for changing stored data formats, schemas, or archive versions while preserving existing information. A migration is the controlled process of moving old data to a new structure and being able to recover if it fails.

In plain words
What is it for?
Use it when changing database tables, file formats, or archived data that existing programs must still read. It helps plan version transitions, backfills, snapshots, validation, and recovery.
Why use it?
It prevents old data from being silently misread, lost, or made inaccessible after a software change. It also requires checking compatibility, backups, restoration, and rollback before the change is used.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing database tables, file formats, or archived data that existing programs must still read. It helps plan version transitions, backfills, snapshots, validation, and recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fmind/dot/data-migration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add fmind/dot --skill data-migration
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-migration

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/data-migration/github.svg)](https://agentmods.dev/skills/fmind/dot/data-migration)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/data-migration"><img src="https://agentmods.dev/badge/skills/fmind/dot/data-migration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/data-migration"><img src="https://agentmods.dev/badge/skills/fmind/dot/data-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 807 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.00807
Opus 5.5 $0.00010 $0.00323
Sonnet 5.5 $0.00005 $0.00161
Haiku 4.5 $0.00002 $0.00081

Measured 9d ago against content hash 99b4b414085e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-migration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/data-migration/SKILL.md · 39 lines

How it starts

The opening of the file, as written. The whole thing — 39 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Data Migration

Change persisted data while preserving its declared meaning and recovery path. django owns Django migration mechanics; production-readiness owns the launch decision, and duckdb owns ad-hoc analysis.

Workflow

  1. Inspect stored versions, reject unknown ones: inspect actual stored versions rather than inferring them from current code. Reject unsupported versions and malformed input with a recoverable error; do not silently reinterpret them.
  2. Choose the transition: use the project's migration engine for databases. For mixed deployed readers, expand compatibility, backfill, switch readers, then contract only after old readers are retired. For files or immutable archives, write a new versioned generation and retain the old one.
  3. Prepare recovery: take a consistent snapshot and prove it can be restored and read in isolation. Record disk needs, lock duration, the rollback cutoff, and treatment of writes after that cutoff. A schema downgrade is not necessarily data recovery.
  4. Implement resumably: use transactional units or atomic generation publication. Commit progress with the corresponding data, use stable identities, and make retries skip verified completed units. Bind checkpoints to input identity and migration version; reject a resume against changed input.
  5. Rehearse failures: use representative old data plus empty, malformed, Unicode, duplicate, and boundary-sized cases. Interrupt before and after data/checkpoint publication, resume, and compare with an uninterrupted result. Test a second invocation and old-reader compatibility where promised.
  6. Execute within scope: production mutation or intentional data loss requires its specific authority; prepare the migration diff, rehearsal results, duration, and recovery plan before requesting any missing approval. Preserve applied migration history.
  7. Verify and report: read the result through the application, check the declared invariants, inspect migration status, and report migrated, rejected, and unresolved units separately. Keep the old generation or backup until the retention decision is authorized.

Read the full file on GitHub · 39 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago Changed · -1 lines 99b4b414085e
  2. 11d ago Changed e0037ce761e6
  3. 12d ago Changed · +4 tokens per session 0f1c2a83aa96
  4. 29d ago Changed · +1 lines · -14 tokens per session 2355bc70ddee
  5. 1mo ago Changed · +2 lines · +2 tokens per session 3e237f8926f8
  6. 1mo ago First seen · 37 lines · 32 tokens per session scan A 7e5495f374cb

Subscribe to this mod's changes

data-migration is a skill published in the GitHub repository fmind/dot (11 stars, last pushed today), licensed MIT. It adds 24 tokens to every session and 807 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.

Related

Other skills, from other repositories

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

go-stack

Build Go projects, libraries, CLIs, TUIs, web apps, or ADK agents with the standard package layout and pinned tooling.

fmind/dotfiles · 31 tokens

python-stack

Build typed Python projects with uv, Ruff, ty, pytest, Litestar, and Typer. Use for packages, CLIs, web apps, tests, typing, or API verification.

fmind/dotfiles · 41 tokens

hugo

Canonical Hugo static-site stack with the Hextra docs theme — Hugo Modules, mise tasks, dprint, lefthook, and GitHub Pages deploy. Use for documentation sites, project docs, and static websites.

fmind/dotfiles · 46 tokens

k8s-local

Create and manage local Kubernetes clusters (k3d or kind) and deploy to them with kubectl, helm, helmfile, and skaffold. Use for local k8s cluster setup, dev loops, and debugging.

fmind/dotfiles · 50 tokens