loom-code-migration

Solid

Strategies and patterns for safe code migrations and upgrades. Use when upgrading frameworks, migrating between technologies, handling deprecations, planning incremental rollouts, or applying automated codemods.

API & Backend 53 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Code Migration ## Overview Move a codebase between versions, frameworks, technologies, or schemas while keeping it shippable and reversible at every step. Distinct from `/loom-refactoring` (behavior-preserving, internal) — a migration deliberately *changes* what runs, so it needs a parity harness and a rollback path. ## The mandate: never big-bang A big-bang cutover (rewrite in a branch, flip everything at once) fails because the blast radius equals the whole system, the parity gap is unmeasured until launch, and rollback means reverting weeks of work under fire. **Every migration step must be independently deployable and independently reversible.** If you can't ship the current step to prod and roll just it back, the step is too big. ## Canonical incremental playbook Every strategy below is an instance of this loop. Internalize the loop, not the individual recipes. ```text 1. PARITY HARNESS Pin current behavior: characterization/snapshot tests, or a live shadow-compare of old vs new. You cannot migrate safely what you cannot measure. 2. SEAM Insert an indirection point you can route through: branch-by-abstraction (interface), adapter, or strangler proxy. 3. BUILD NEW Implement the new path behind the seam. Old path still serves. 4. ROUTE Shift traffic incrementally behind a flag: shadow → canary(1%) → gradual(5→25→50→100%). Fallback to old on error. 5. VER...

Details

Author
cosmix
Repository
cosmix/loom
Created
8 months ago
Last Updated
today
Language
Rust
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

safe-migrations

Designs and executes compatibility-preserving migrations across APIs, schemas, frameworks, dependencies, protocols, storage, and infrastructure with baselines, coexistence, staged cutover, rollback or forward-fix paths, and explicit removal criteria. Use for deprecations, upgrades, data moves, contract changes, and replacing live implementations. Not for a local refactor with no external state or compatibility boundary.

88 Updated today
thiientv
Code & Development Solid

loom-refactoring

Restructures existing code to improve readability, maintainability, and performance without changing behavior. Use for extracting methods/classes, removing duplication, applying design patterns, improving organization, and reducing technical debt. Not for bug fixes (use loom-debugging) or new features.

53 Updated today
cosmix
API & Backend Listed

migration-playbook

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.

0 Updated 4 days ago
sardonyx0827