database-migration

database-migration is a skill for Claude Code, Codex from DauQuangThanh/hanoi-rainbow. It costs 141 tokens per session (1,703 once invoked), scanned A, original, MIT.

A guide for moving a database between engines, versions, hosting platforms, or architectures. It covers both the database structure and the stored data.

In plain words
What is it for?
Use it to plan migrations such as MySQL to PostgreSQL, on-premises to a cloud database, schema changes, version upgrades, replication, and low- or zero-downtime cutovers.
Why use it?
Database moves can cause lost data, broken applications, or long outages if dependencies and downtime needs are not planned in advance.

Skill for Claude CodeCodex

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

Good fit Use it to plan migrations such as MySQL to PostgreSQL, on-premises to a cloud database, schema changes, version upgrades, replication, and low- or zero-downtime cutovers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dauquangthanh/hanoi-rainbow/database-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 DauQuangThanh/hanoi-rainbow --skill database-migration
Clone the repo
git clone --depth 1 https://github.com/DauQuangThanh/hanoi-rainbow

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dauquangthanh/hanoi-rainbow/database-migration"><img src="https://agentmods.dev/badge/skills/dauquangthanh/hanoi-rainbow/database-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 141 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,703 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.00141 $0.01703
Opus 5 $0.00071 $0.00851
Sonnet 5 $0.00028 $0.00341
Haiku 4.5 $0.00014 $0.00170

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

Security

Grade A, and why

database-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/database-migration/SKILL.md · 208 lines

How it starts

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

Database Migration

Provides comprehensive guidance for migrating databases between engines, versions, platforms, and architectures. Covers both schema and data migration with strategies for minimizing downtime and ensuring data integrity.

Migration Decision Tree

1. Identify Migration Type:

  • Same engine (PostgreSQL → PostgreSQL)? → Homogeneous migration
  • Different engine (Oracle → PostgreSQL)? → Heterogeneous migration
  • Version upgrade only? → In-place or dump/restore
  • Cloud migration? → Consider cloud-native tools

2. Assess Downtime Requirements:

  • Can tolerate hours of downtime? → Dump and restore
  • Need minimal downtime (minutes)? → Replication with cutover
  • Require zero downtime? → See zero-downtime-migration-strategies.md

3. Choose Migration Path:

Core Migration Workflow

Step 1: Assessment and Planning

Analyze Source Database:

  1. Document current database version, size, and complexity
  2. Identify dependencies (applications, services, integrations)
  3. Review schema: tables, indexes, constraints, triggers, procedures
  4. Assess data volume and growth rate
  5. Document current performance baselines

Define Requirements:

  • Migration type (homogeneous vs heterogeneous)
  • Acceptable downtime window
  • Data integrity requirements
  • Compliance and security requirements
  • Rollback criteria

Output: Migration plan with approach, timeline, and resources

Step 2: Environment Setup

Prepare Target Environment:

  1. Provision target database with appropriate sizing
  2. Configure network connectivity and security
  3. Set up monitoring and logging
  4. Create test and staging environments matching production

Prepare Migration Tools:

  • Native tools (pg_dump, mysqldump, SQL Server bcp)
  • Cloud provider tools (AWS DMS, GCP Database Migration Service)
  • Third-party tools (see tools-reference.md)

Read the full file on GitHub · 208 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. 9d ago First seen · 208 lines · 141 tokens per session scan A 15172ad7b822

Subscribe to this mod's changes

database-migration is a skill published in the GitHub repository DauQuangThanh/hanoi-rainbow (16 stars, last pushed 7mo ago), licensed MIT. It adds 141 tokens to every session and 1,703 once invoked, about $0.0007 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.