← ClaudeAtlas

migration-playbooklisted

Structured playbook for safely executing migrations: upgrading a major dependency version, framework migrations (e.g. React 17→18, Next.js 12→14, Vue 2→3), API deprecations, replacing one library with another, large-scale refactors touching many call sites, and database schema changes. Use this skill whenever the word "migrate", "upgrade", "deprecate", or "replace" applies to something with more than a handful of affected sites — even if it looks straightforward. Migrations that skip the inventory step consistently produce incidents from the sites nobody knew existed.
sardonyx0827/dotfiles · ★ 0 · API & Backend · score 72
Install: claude install-skill sardonyx0827/dotfiles
# Migration Playbook A phased workflow for executing migrations safely. The core discipline: **inventory before strategy, safety net before execution, reviewable batches before merge.** Migrations fail not because the happy path is wrong, but because the affected surface was larger than expected, or the rollback story was never written. --- ## Phase 0: Inventory Enumerate every affected call site BEFORE changing a single line of production code. ```bash # Count and locate all usages of the thing being replaced grep -rn "oldImport\|OldAPI\|deprecated_fn" src/ --include="*.ts" | wc -l grep -rn "oldImport\|OldAPI\|deprecated_fn" src/ --include="*.ts" # For syntactic patterns, ast-grep gives structural matches ast-grep --pattern 'require("old-package")' --lang js # Categorize: how many usage *patterns* exist, not just raw sites? # e.g. "called with callback" vs "called with async/await" are two patterns ``` Read the official migration guide and CHANGELOG of the dependency **end-to-end** before writing code. Note every breaking change, removed API, and renamed option. Create a two-column table: old construct → new construct. Estimate blast radius: | Dimension | Low (<20 sites) | Medium (20-100) | High (>100) | | --------------- | --------------- | --------------- | ------------- | | Strategy | Big bang | Incremental | Codemod first | | Risk | Low | Medium | High | | Branch lifetime | Hours | Day