本文へ移動
cccskills
無料GitHub で公開

migration-architect

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.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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 laravel-migration (or the framework-native equivalent) for tactical DDL once the plan is locked.

When to use

  • A schema change spans more than one deploy.
  • A change requires a dual-write or backfill window.
  • The migration touches multiple services, queues, or consumers whose order of update matters.
  • A column / table / API is being deprecated and the cycle needs shape (announce → soft-fail → hard-fail → remove).

Do NOT use when:

  • The change is a single additive migration safe in one deploy → route to laravel-migration (or framework-native equivalent).
  • The decision is whether to migrate at all → route to decision-record first.
  • The concern is data correctness during the migration → route to data-flow-mapper 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.

3. Pick a rollout shape

ShapeWhen to pick
Expand → migrate → contractSchema additive first, code switches reads, then drop old shape
Dual-write + backfillBoth shapes written for a window; backfill closes the gap
Strangler figNew path runs alongside old; traffic ramps over time
Big-bang cutoverRare; 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:

  • Trigger — what condition starts it.
  • Actions — DDL, code deploy, feature flag, traffic shift.
  • Reversibility — can we abort here, and how?
  • Exit gate — what proves we can move to the next phase (metric, sign-off, soak time).

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

5. Plan the deprecation cycle

For anything being removed:

  • Announce window — comms cadence, who is told.
  • Soft-fail window — log + warn, do not break.
  • Hard-fail window — return errors.
  • Removal — DDL drop, code delete.

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

  • The riskiest phase is the one with no rollback. Surface it explicitly even if the user did not ask.
  • Soak times in hours when interest is in days are a smell. Match the soak to the actual blast radius.

Do NOT

  • Do NOT write DDL — that is the framework-specific migration skill's job (→ laravel-migration for Laravel).
  • Do NOT collapse phases to "ship it" because the user is impatient; surface the risk and let the user decide.
  • Do NOT skip the deprecation cycle because nobody is using the old shape "for sure" — verify before skipping.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

event4u-app のスキルをすべて見る

このスキルの問題を報告する