migration

migration is a skill for Claude Code from rtazima/claude-proj-blueprint. It costs 47 tokens per session (983 once invoked), scanned A, original, MIT.

A workflow guide for changing a database's structure, such as adding a column or creating a table. It uses migrations, which are tracked scripts that apply and undo database changes.

In plain words
What is it for?
Use it to assess schema changes, create the forward and rollback scripts, test applying and undoing them, and document risky destructive changes.
Why use it?
It helps make database changes reviewable, reversible, and safer for systems that are already running. It also calls for extra planning when a change could delete data or interrupt queries.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to assess schema changes, create the forward and rollback scripts, test applying and undoing them, and document risky destructive changes.

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

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/migration/github.svg)](https://agentmods.dev/skills/rtazima/claude-proj-blueprint/migration)
Your own site
<a href="https://agentmods.dev/skills/rtazima/claude-proj-blueprint/migration"><img src="https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/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 migration

Your own site · 80×15
<a href="https://agentmods.dev/skills/rtazima/claude-proj-blueprint/migration"><img src="https://agentmods.dev/badge/skills/rtazima/claude-proj-blueprint/migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 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.00047 $0.00983
Opus 5.5 $0.00019 $0.00393
Sonnet 5.5 $0.00009 $0.00197
Haiku 4.5 $0.00005 $0.00098

Measured 3mo ago against content hash 2b9be881c778, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 3mo 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.

.claude/skills/migration/SKILL.md · 101 lines

How it starts

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

Migration

Guide safe database schema changes: assess impact, generate up+down migration, verify reversibility, and create ADR for destructive changes.

Rules

  1. Every schema change is a migration — never alter the DB manually
  2. Up AND down — every migration must be reversible (unless explicitly documented why not)
  3. Zero-downtime by default — no changes that lock tables or break running queries
  4. ADR for destructive changes — DROP, column type change, or data loss requires an ADR
  5. Test the migration — run up, verify, run down, verify, run up again
  6. One concern per migration — don't mix schema changes with data migrations
  7. Follow naming convention — [SPEC] (e.g., YYYYMMDDHHMMSS_description.sql)

Risk Assessment

Before creating any migration, classify the risk:

Risk Examples Required
🟢 Low Add nullable column, add index, create table Migration + tests
🟡 Medium Add NOT NULL column with default, rename column, add constraint Migration + tests + team review
🔴 High Drop column/table, change column type, data migration Migration + tests + ADR + rollback plan

Workflow

Phase 1: Assess

  1. Read the PRD/requirement that drives the schema change
  2. Check docs/specs/versioning/ for migration naming and strategy
  3. Check docs/specs/data-architecture/ for modeling conventions
  4. List ALL changes needed (don't discover them mid-migration)
  5. Classify risk level (🟢/🟡/🔴) for each change

Phase 2: Design

For each change, document:

Change: [what is changing]
Risk: [🟢/🟡/🔴]
Up: [SQL or ORM operation]
Down: [reverse operation]
Zero-downtime: [yes/no — if no, explain why and what the plan is]
Data impact: [rows affected estimate, if relevant]

Phase 3: Generate

  1. Create migration file following naming convention: [SPEC]
  2. Write the up migration
  3. Write the down migration (rollback)
  4. If data migration is needed, separate it from schema migration

Read the full file on GitHub · 101 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. 3mo ago First seen · 101 lines · 47 tokens per session scan A 2b9be881c778

Subscribe to this mod's changes

migration is a skill published in the GitHub repository rtazima/claude-proj-blueprint (24 stars, last pushed 6mo ago), licensed MIT. It adds 47 tokens to every session and 983 once invoked, about $0.0002 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-08-30.

Related

migration compared with skills from other repositories

migration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
migrationrtazima/claude-proj-blueprintSkill246mo agoMITA47Claude Code
architecture-paradigm-cqrs-esathola/claude-night-marketSkill358todayMITA33Claude Code
architecture-paradigm-space-basedathola/claude-night-marketSkill358todayMITA32Claude Code
java-persistencemakifbaysal/tasktrooperSkill123todayApache-2.0A42Claude Code, Codex
cis-aws-database-3.1CyberStrikeus/CyberStrikeSkill3.8ktodayAGPL-3.0A17Claude Code, Codex
backend-event-sourcingj4flmao/agent-skillsSkill4613d agoMITA68Claude Code, Codex
backend-cqrs-patternsj4flmao/agent-skillsSkill4613d agoMITA61Claude Code, Codex