Files
magnus919_agent-skills/migration-engineering
Magnus HedemarkGitHubfactory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
9d6bddad61 test: add lifecycle evaluation corpus for new product and production skills (#232)
* test(evals): scope claims to harness model fixtures and revision

Append the neckbeard claims-scoping sentence to one representative
expected_output per per-skill manifest so every corpus member states
VAL-EVL-032 scope (harness, model, fixtures, revision under test).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* test(product-lifecycle): upgrade integrated launch trajectory

Add an explicit launch-decision assertion to the new-product lifecycle
case so the integrated product-launch scenario terminates in a launch
decision recorded as a lifecycle evidence-ledger entry (VAL-CRP-010),
and scope its expected_output claims per VAL-EVL-032.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* test(production-excellence): add integrated migration reconciliation failure case

Add integrated-migration-reconciliation-failure: the production-excellence
gate model returns No-go on a reconciliation mismatch, records the failure
evidence, produces a rollback/roll-forward decision with an accountable
owner, and does not proceed to launch (VAL-CRP-012).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* test(agent-production-operations): add privacy boundary escalation case

Add integrated-privacy-boundary-escalation (VAL-CRP-015): the runtime
control plan halts a cross-boundary EU PII trace export before any data
processing, names the privacy boundary, and escalates to jurisdiction-
specific legal review and a human operator. Also add a tool-authority-
health handoff assertion to the read-only contract case (VAL-CRP-016).

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

* test(lifecycle-evals): add lifecycle evaluation corpus

Add the #204 corpus home: run tooling (run-corpus.sh, fake adapter only),
programmatic coverage validator (validate-corpus-coverage.py), machine-
readable coverage index + human-readable coverage matrix, regression-
detection and fixture/source notes, the bounded discovery brief, and a
one-snapshot committed set of fake-adapter per-trial run artifacts with
harness/model/date scoping fields.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>

---------

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
2026-08-02 20:13:36 -04:00
..

Migration Engineering — Safe cross-system migrations

Why Install This Skill

Every production system changes. Schemas evolve, data moves between stores, APIs get new versions, services shift between platforms. Each of these changes crosses a system boundary, and each one risks data loss, downtime, or broken consumers if done without a method.

Migration Engineering gives your agent a coherent method for planning and executing safe migrations regardless of technology. It covers the full lifecycle — compatibility design, dual-running, backfills, reconciliation, cutover, recovery, deprecation, and cleanup — and it distinguishes between reversible and irreversible steps so you never assume a false safety net.

After installing this skill, your agent can produce a complete migration plan with compatibility windows, reconciliation strategies, cutover procedures, recovery paths (rollback, roll-forward, restore, and irreversible), observability signals, and ownership assignments — then route implementation details to the right specialist skill.

What You Get

Directory entry What it provides
SKILL.md Core migration workflow: classify the migration type, design the expand/contract sequence, plan backfill and reconciliation, define cutover and recovery paths, plan deprecation and cleanup, verify and close. Includes structured planning fields (reconciliation, correctness evidence, observability, customer impact, ownership) and a specialist routing table.
README.md This file — human-facing overview of what the skill does and how to use it.
references/discovery-brief.md Bounded survey of existing migration-adjacent material across the catalog and a clear definition of what migration-engineering owns vs. hands off.
references/compatibility-patterns.md Detailed patterns for forward and backward compatibility by migration type.
references/recovery-classification.md Deep reference on the four recovery paths — rollback, roll-forward, restore, irreversible — with decision rules and examples.
templates/migration-plan.md Fillable template for a complete migration plan covering all structured fields.
templates/compatibility-matrix.md Template for building a compatibility matrix across consumers and migration phases.
templates/reconciliation-plan.md Template for designing a reconciliation strategy with completeness, accuracy, timeliness, and consistency dimensions.
templates/cutover-and-recovery-record.md Template for recording cutover procedures, recovery paths per step, and irreversible-step acknowledgments.
evals/evals.json Five output-quality evaluation cases: additive schema change, backfill with reconciliation, API version migration, irreversible cutover, and reconciliation failure.

Quick Start

  1. Identify the migration type: schema, data, API, infrastructure/service, or a combination.
  2. Load the skill: your agent reads SKILL.md and follows the core workflow.
  3. The agent produces a migration plan using the templates, starting with the migration plan template.
  4. Route implementation details to the specialist skills named in the routing table (api-design-and-evolution, data-engineering, platform-engineering, release-engineering, site-reliability-engineering, implementation-planning).

Triggers

Load this skill when:

  • A schema change must not break existing readers or writers (zero-downtime DDL).
  • A data migration between stores or representations needs dual-running and reconciliation.
  • An API version migration needs a compatibility window and deprecation timeline.
  • Infrastructure or services need to move between platforms or environments.
  • A cross-system change requires cutover planning, rollback design, or irreversible-step acknowledgment.
  • A migration's recovery strategy needs to distinguish rollback, roll-forward, restore, and irreversible paths.

Do not load this skill when:

  • The change is a single-system quick fix with no cross-boundary coordination.
  • You need tool-specific instructions for a particular database, API gateway, or platform.
  • The change is an in-place refactor or code rewrite with no data or interface migration.
  • You are writing a release pipeline or deployment automation — route to release-engineering.
  • You are debugging a production incident — route to site-reliability-engineering.

Requirements

  • No runtime dependencies, API keys, or external services.
  • The skill expects a migration scope that crosses at least one system boundary.
  • Templates use markdown and work with any text editor or agent.