data-migration-plan

data-migration-plan is a skill for Claude Code, Codex from The-AI-Directory-Company/agents-and-skills. It costs 37 tokens per session (1,578 once invoked), scanned A, original, MIT.

A staged plan for moving or reshaping existing data from one database design to another. It uses steps such as copying data, backfilling missing records, switching readers and writers, and verifying the result.

In plain words
What is it for?
Use it to plan data moves with integrity checks, rollback triggers, dependency reviews, and a controlled final cutover.
Why use it?
It helps prevent data loss and service interruptions when tables, columns, relationships, or storage systems change.

Skill for Claude CodeCodex

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

Good fit Use it to plan data moves with integrity checks, rollback triggers, dependency reviews, and a controlled final cutover.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/the-ai-directory-company/agents-and-skills/data-migration-plan
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 The-AI-Directory-Company/agents-and-skills --skill data-migration-plan
Clone the repo
git clone --depth 1 https://github.com/The-AI-Directory-Company/agents-and-skills

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-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/data-migration-plan/github.svg)](https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/data-migration-plan)
Your own site
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/data-migration-plan"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/data-migration-plan/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-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/the-ai-directory-company/agents-and-skills/data-migration-plan"><img src="https://agentmods.dev/badge/skills/the-ai-directory-company/agents-and-skills/data-migration-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,578 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.00037 $0.01578
Opus 5 $0.00018 $0.00789
Sonnet 5 $0.00007 $0.00316
Haiku 4.5 $0.00004 $0.00158

Measured 9d ago against content hash bbbf23f3d293, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

data-migration-plan 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-plan/SKILL.md · 124 lines

How it starts

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

Data Migration Plan

Before you start

Gather the following from the user. If any is missing, ask before proceeding:

  1. Current schema — Tables, columns, relationships, and storage engine. Include indexes and constraints.
  2. Target schema — The desired end state. What changes: renamed columns, split tables, new relationships, type changes?
  3. Data volume — Row counts for affected tables, total size on disk, and growth rate.
  4. Downtime tolerance — Zero-downtime required? Maintenance window available? If so, how long?
  5. Rollback requirements — How quickly must you revert? Is data loss during rollback acceptable? What is the point-of-no-return?

If the user says "just rename a column," push back: What reads from this column? Are there cached references? Is the column in any API contract, event payload, or downstream ETL?

Migration plan template

Use the following structure. Every phase includes explicit entry criteria, steps, and exit criteria.

Pre-Migration Assessment

Before writing any migration code:

  • Catalog every service, job, and query that reads or writes the affected tables
  • Identify foreign key dependencies and cascade behavior
  • Measure current query performance on affected tables (baseline P50/P99)
  • Estimate migration duration: run the backfill query against a production-sized replica
  • Confirm backup and restore procedures work — test the restore, not just the backup

Phase 1: Dual-Write

Goal: New writes go to both old and new schema without affecting reads.

  1. Deploy schema changes additively (new columns, new tables) — never drop or rename yet
  2. Update write paths to populate both old and new locations
  3. Add logging to confirm dual-write consistency (compare old vs. new on every write)
  4. Integrity check: Query for rows where old and new values diverge. Count must be zero before proceeding.

Rollback trigger: If dual-write error rate exceeds 0.1%, disable new write path and revert deployment.

Read the full file on GitHub · 124 lines

Files

What ships with it

5 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 First seen · 124 lines · 37 tokens per session scan A bbbf23f3d293

Subscribe to this mod's changes

data-migration-plan is a skill published in the GitHub repository The-AI-Directory-Company/agents-and-skills (2 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 1,578 once invoked, about $0.0002 per session on Opus 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-03.