migration-planning

migration-planning is a skill for Claude Code, Codex from orlando-japan/claude-code-setting. It costs 37 tokens per session (949 once invoked), scanned A, original, MIT.

A plan for changing a live system in reversible stages: add the new parts, move usage to them, then remove the old parts. It covers database schemas, APIs, frameworks, and infrastructure.

In plain words
What is it for?
Use it before non-trivial migrations, such as renaming database columns, changing APIs, or replacing infrastructure.
Why use it?
It reduces the risk of breaking a running system and keeps rollback possible during the change.

Skill for Claude CodeCodex

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

Good fit Use it before non-trivial migrations, such as renaming database columns, changing APIs…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orlando-japan/claude-code-setting/migration-planning
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 orlando-japan/claude-code-setting --skill migration-planning
Clone the repo
git clone --depth 1 https://github.com/orlando-japan/claude-code-setting

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 migration-planning

README.md
[![agentmods](https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/migration-planning.svg)](https://agentmods.dev/skills/orlando-japan/claude-code-setting/migration-planning)
Your own site
<a href="https://agentmods.dev/skills/orlando-japan/claude-code-setting/migration-planning"><img src="https://agentmods.dev/badge/skills/orlando-japan/claude-code-setting/migration-planning.svg" alt="Measured on agentmods" 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 949 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.00949
Opus 5 $0.00018 $0.00475
Sonnet 5 $0.00007 $0.00190
Haiku 4.5 $0.00004 $0.00095

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

Security

Grade A, and why

migration-planning 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 6d 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.

templates/extra/skills/migration-planning/SKILL.md · 89 lines

How it starts

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

Migration planning

A migration is a sequence of reversible steps that gets you from A to B without breaking the world in between. The hard part is not the destination — it's what runs during the transition.

The expand / migrate / contract pattern

This is the core template. It applies to schemas, APIs, config, infra, almost everything.

  1. Expand. Introduce the new thing alongside the old. Both exist; nothing yet depends on the new.
  2. Migrate. Gradually shift reads, writes, and callers to the new thing. Dual-write, dual-read if needed. Verify equivalence under load.
  3. Contract. Once nothing uses the old thing, remove it.

Rollback is possible at any step. Skipping expand or mashing expand + contract = no rollback.

Schema migrations specifically

Safe changes (can ship without coordination)

  • Adding a nullable column.
  • Adding a new table.
  • Adding a non-unique index (CONCURRENTLY if Postgres).
  • Widening a column (e.g., VARCHAR(50) → VARCHAR(200)).
  • Adding a check constraint marked NOT VALID, then validating later.

Breaking changes (need expand/migrate/contract)

  • Renaming a column → add new, dual-write, migrate data, switch reads, drop old.
  • Changing a column type → add new column, backfill, switch reads, drop old.
  • Dropping a column → stop writes, wait for all deploys, then drop.
  • Adding NOT NULL to an existing column → add as nullable, backfill, add NOT NULL constraint as NOT VALID, validate, enforce.
  • Adding a unique constraint → add unique index concurrently, then promote.

Dangerous patterns

  • ALTER TABLE on large tables without CONCURRENTLY → locks, downtime.
  • DROP COLUMN while old code still reads it → crashes.
  • NOT NULL + default for 50M rows in one statement → locks for minutes.
  • Renames → the worst. Almost always cheaper to keep the old name.

API migrations

  • Add v2 alongside v1. Don't touch v1.
  • Dual-call from callers when safe, compare outputs, migrate reads.
  • Deprecate with a date. Sunset on day N + 90, not "eventually."
  • Remove only after zero traffic for N days (measure, don't guess).

Read the full file on GitHub · 89 lines

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. 6d ago First seen · 89 lines · 37 tokens per session scan A d77bcbb81500

Subscribe to this mod's changes

migration-planning is a skill published in the GitHub repository orlando-japan/claude-code-setting (2 stars, last pushed 3mo ago), licensed MIT. It adds 37 tokens to every session and 949 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-08-31.