← Files Vibe CodingARCHIVED FILE

skills/vibe-docs/references/migration-refactor-plan.md

1.46 KB · Oct 3, 2026 · 06:36 UTC

↓ Download file

# Migration & Refactor Plan

## Operation

Analyze and return an actionable brief in the current conversation. Planning does not create a new assistant task or edit product code. Carry the full requested objective into the plan; separate independent work without silently discarding it.

## Goal

Produce an implementation-ready migration or refactor plan that preserves behavior, data, compatibility, rollout safety, and rollback or forward-fix options. Do not edit product code.

## Plan

Use repository evidence to define current owner/contract and target owner/contract. Enumerate affected callers, readers/writers, schemas/data, generated artifacts, runtime configuration, deployments, and operators. Select an expand/migrate/contract, adapter, dual-read/write, moved-resource, versioned API/event, or other repository-native transition only when required.

Every step must have entry criteria, acceptance, validation, observability, and rollback/forward-fix. Keep unrelated cleanup outside the migration.

- Ground every step in exact `path:line[-line]` evidence and identify the authoritative owner of each moved invariant.
- Separate mechanical moves from behavior changes; do not hide product changes inside cleanup.
- Define compatibility windows, migration ordering, generated artifacts, tests, observability, deploy gates, rollback limits, and forward-fix when rollback is unsafe.
- Split independent work only when owner, rollout, rollback, and validation are truly separable.

SHA-256: 50f33d05c1fb9a5c75b2b76c578491fa1faa9adacee157989aac97922a751c08