migration-planning

Plan and execute reversible database, code, and infrastructure migrations.

Updated May 7, 2025
One-click install
npx skills add https://github.com/enchantednatures/.dotfiles --skill migration-planning-enchantednatures
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-planning
Source: https://github.com/enchantednatures/.dotfiles/tree/main/.config/opencode/skills/migration-planning
Command: npx skills add https://github.com/enchantednatures/.dotfiles --skill migration-planning-enchantednatures

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Planning and executing migrations safely is difficult and error-prone; this skill provides a structured approach to design, test, and rollback migrations with minimal downtime.

Core Features & Use Cases

  • Structured migration lifecycle: assessment, preparation, execution, and validation
  • Supports database schema changes, data migrations, code migrations, and infrastructure migrations
  • Includes rollback and safety checks to minimize risk in production

Quick Start

Create a complete migration plan for a database schema change in staging with a rollback strategy.

Frequently Asked Questions about migration-planning

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I plan a database schema change with zero downtime?

Database schema migrations with zero downtime require a structured lifecycle covering assessment, preparation, execution, and validation phases. This approach enforces reversible rollout patterns, safety checks, and backups to minimize production risk.

What is a reversible migration and how does it work?

A reversible migration is a deployment pattern that includes a clear rollback plan to undo changes. It works by enforcing safety checks and backup strategies during infrastructure or code migrations, ensuring systems can return to their previous state safely.

Can I use this approach for both cloud and on-prem infrastructure upgrades?

Yes, this migration planning approach supports infrastructure upgrades across both cloud and on-prem environments. It applies structured risk assessment and validation techniques regardless of the underlying platform architecture.

What's the best way to create a rollback strategy for data migrations?

The best way to create a rollback strategy for data migrations is to build it into the preparation phase. This involves enforcing reversible rollout patterns, conducting thorough risk assessments, and testing backups before execution.

When should I perform a risk assessment before a code migration?

A risk assessment should be performed during the assessment phase before any code migration begins. This structured evaluation identifies potential production impacts and determines the necessary safety checks and rollback procedures.