Migration architect

From event4u-app/agent-config · View interactive version

Migration architect is an AI agent skill from the GitHub repository event4u-app/agent-config. When shaping a non-trivial migration — rollout phases, dual-write windows, cutover sequencing, deprecation cycles — hands off to the framework-specific migration skill for DDL once locked.

How to use this skill

Skill file

migration-architect

Shape the rollout strategy for a migration before any DDL or

code is written. Plans phases, dual-write windows, cutover

sequencing, deprecation cycles, and cross-service coordination.

Hands off to CODE0

(or the framework-native equivalent) for tactical DDL once the plan is locked.

When to use

whose order of update matters.

shape (announce → soft-fail → hard-fail → remove).

Do NOT use when:

route to CODE0 (or framework-native equivalent).

CODE0 first.

CODE0, which owns relational modeling.

CODE0 and feed

findings back here.

Procedure

1. Anchor on the goal

Write one sentence: *"State X must become state Y across systems Z

without breaking consumers W."* If you cannot, the migration is not

ripe — stop.

2. Identify the participating systems

List every service, queue, batch job, third-party consumer, and

client that reads or writes the affected schema. A system you

forget is a cutover surprise. The census is required, not recalled:

app side via CODE0,

catalog side plus the six-question compatibility set via

CODE0.

3. Pick a rollout shape

| Shape | When to pick |

|---|---|

| Expand → migrate → contract | Schema additive first, code switches reads, then drop old shape |

| Dual-write + backfill | Both shapes written for a window; backfill closes the gap |

| Strangler fig | New path runs alongside old; traffic ramps over time |

| Big-bang cutover | Rare; only when downtime is acceptable AND coordination cost is trivial |

State why the shape fits — not just which one was picked.

4. Sequence the phases

For each phase, list:

(metric, sign-off, soak time).

A phase without an exit gate is a wish; reject.

5. Plan the deprecation cycle

For anything being removed:

Each window has a duration and a metric that justifies moving on.

Output format

Migration Architect
Goal:     <one sentence>
Systems:  <list>
Shape:    expand-migrate-contract | dual-write | strangler | big-bang
Reason:   <why this shape>

Phases:
  1. <name>  Trigger: <cond>  Exit: <gate>  Reversible: yes | costly | no
       Actions: ...
  2. ...

Deprecation cycle (if any):
  Announce <duration>  →  soft-fail <duration>  →  hard-fail <duration>  →  remove

Next: /laravel-migration (or framework-native equivalent) for the DDL of phase 1

Gotcha

explicitly even if the user did not ask.

the soak to the actual blast radius.

Do NOT

(→ CODE0 for Laravel).

surface the risk and let the user decide.

shape "for sure" — verify before skipping.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.