| name | migration-playbook-methodology |
| description | 跨 vendor migration playbook 寫作方法論:6 維 diff dimension audit (schema / operational / paradigm / components / application change / data topology) + 6 type 結構模板 (Type A phased translation / Type B drop-in / Type C operational hybrid / Type D parallel streams / Type E paradigm shift / Type F topology re-layout) + Stage 0 variant 規劃 (含 multi-element planning) + 4-reviewer audit pattern + Self-aware limitation。觸發詞:migration playbook、cross-vendor migration、Type A B C D E F、diff dimension audit、data topology audit、stage 0 variant、multi-element variant planning、migration 結構、cross-vendor process、Type F re-layout、major version upgrade、re-sharding、partition redesign、policy-driven migration、acquisition consolidation、compliance evidence migration。Trigger when writing migration playbook / cross-vendor process content. |
| license | MIT |
| metadata | {"version":"1.0.0","category":"writing-methodology"} |
Migration Playbook Methodology
Cross-vendor migration playbook 寫作方法論 — 從 30 篇 migration / process content(6 個 dogfood batch)抽出的 audit / structure / discipline 框架。
跟 single feature deep article methodology 對照、migration playbook 是 不同 content category:
- Single feature deep article:6-section(problem → concept → config → failure → capacity → integration)、200-400 行、focused on how to implement / debug feature X
- Migration playbook:6 種結構模板(依 diff dimension)、200-400 行 / 篇、focused on how to move from A to B
適用情境
- 跨 vendor process content:A vendor → B vendor、A version → B version、cluster topology re-layout、compliance-driven migration
- 6+ 種 type 任一:高 schema 差 / drop-in compatible / operational redesign / multi-tool 拆分 / paradigm shift / topology re-layout
- 品質高於速度:完整 audit + structure + 5-case 故障演練、約 2-3 小時 / 篇
不適用:
- Pure vendor doc 翻譯:寫在 vendor docs / posts、不寫 migration playbook
- 同 vendor major version upgrade(PostgreSQL 14 → 17):結構接近 deep article + upgrade audit、不是 5 type — 例外見 漏類
- 臨時 PoC / spike:簡短決策文件即可
- 容量重新規劃 / re-sharding:已涵蓋於 Type F、見「6 type 結構模板」段
- Acquisition / merger consolidation:source / target 同產品、要處理 identity / RBAC / 歷史資料合併、6 type 不覆蓋
三大支柱
| 支柱 | 意義 |
|---|
| 6 維 diff dimension audit | 寫前判主導維度、選對應 type 結構;不靠直覺套既有模板 |
| 6 type 結構模板 | Type A-F 對應不同 source/target 差異組合、結構模板隨 type 變動 |
| Stage 0 variant 規劃 + 4-reviewer audit | 寫批量內容前主動準備 framing variant 避免 cadence collapse、寫後跑 multi-axis review |
6 維 diff dimension audit
寫 migration playbook 前先跑:
Step 1: 列 6 維度
- Schema / API
- Operational model
- Abstraction / paradigm
- Number of components (1 vs N)
- Application change
- Data topology(sharding / partition / replication / region / co-location)
Step 2: 對每維度評 High / Medium / Low
Step 3: 找主導差異維度(不是「最大」、是「讀者最關心」、audience-dependent heuristic)
Step 4: 對映常見 type
- Schema = High(其他 Low) → Type A phased rule translation
- 全 Low / 全 Medium → Type B drop-in
- Operational = High(其他 Low) → Type C operational hybrid
- Components = High → Type D parallel streams
- Paradigm = High → Type E paradigm shift
- Topology = High(其他 Low) → Type F topology re-layout
Step 5: 處理多重歸類(多軸 High)
- 主結構選讀者最關心的維度
- 多數情境優先序: Schema > Paradigm > Operational > Topology > Components
- 其他高維度抽出獨立段補充、不強迫單一 type 標籤
Step 6: 確認不在已知漏類內
- 同 vendor major version upgrade / 政策合規驅動 / acquisition consolidation 不適用 6 type
- 漏類處理見 [漏類補充](#漏類補充)
Step 7: 評估候選軸(current open question)
- Identity / Consistency / Residency 是否獨立軸?
- 累積 3-5 case / 軸後才 commit 升 7-9 維 audit
- 詳見 [principles/axis-candidate-evaluation](references/principles/axis-candidate-evaluation.md)
詳細 6 type 對映 + 漏類處理見 principles/six-dimension-audit-framework。
6 type 結構模板
每 type 對應不同 anatomy、200-400 行:
| Type | 主導維度 | Anatomy(章節骨架) | 行數 | 週期 |
|---|
| A | Schema / API | 6-phase phased translation | 11-12 | 4-9 個月 |
| B | 無顯著差異 | 6-section + compatibility audit prefix | 7-8 | 1-4 週 |
| C | Operational | Hybrid (4-phase 含 audit + drop-in cutover) | 11-12 | 6-12 週 |
| D | Components 拆分 | Parallel migration streams | 10-11 | 2-4 個月 |
| E | Paradigm | Partial + 混合架構 | 10-11 | 不收斂 |
| F | Data topology | 機制 + execution flow per-step(可拆 3 sub-type:F-table-internal / F-cluster-internal / F-multi-region;後者需 parallel run) | 7-9 | 1 天-2 週 |
詳細 anatomy 規格在 six-dimension-audit-framework 對映 type;個別 dogfood 篇是 anatomy 實證、不額外維護 anatomy doc。
Stage 0 variant 規劃
寫批量 migration playbook(≥ 3 同類檔)必須做 Stage 0 variant 規劃、避免 cadence collapse。Variant 規劃要 cover 多個 element axis(entry / driver framing / audit / case / closing)、不只 entry framing。
10 種 entry framing variant(A-J):
- Variant A: 標準 6-section「問題情境」開頭
- Variant B: 痛點宣告 case-led「為什麼 X 越跑越慢」
- Variant C: 概念反向定義「X 不是 Y、是 Z」
- Variant D: 對照表 / 矩陣 / 決策表開頭
- Variant E: lifecycle-driven 結構標題
- Variant F: meta-reflection「為什麼這篇不套 N 種 type」
- Variant G: paradox「字面 migration 不成立」/「same protocol, different contract」
- Variant H: cost / bill 拆解開頭
- Variant I: reviewer / question 回應
- Variant J: code-led example sample
對 N 篇主題、選 N 種不同 entry variant、寫前完成設計。
10 種 driver framing variant(α-κ)+ 5 個 element axis 完整規劃:見 multi-element-variant-planning(第六輪 audit dogfood 揭露 entry-only 規劃 leaves driver framing 5/5 collapse)。
詳細 cadence dogfood evidence + variant 準備見 stage-0-variant-discipline。
4-reviewer audit pattern
寫完批量後、跑 4 reviewer 平行 background 審查、各覆蓋不同軸:
- Reviewer A:寫作規範 + 字句層(AGENTS.md 八原則 / emoji / 裸 URL / MD036 / MD026)
- Reviewer B:概念邊界 + 跨檔一致性(術語 / 數字 / cross-link / hierarchy)
- Reviewer C:案例引用準確性 + 數據準確性(行數 / 章節數 / 工作量 % / 死鏈)
- Reviewer D:自一致性 + 邏輯漏洞 + 反例搜尋(結構性質疑、最深的批判)
每 reviewer 用 background Agent + 各自 prompt、寫獨立 output file、主 context 只接精煉彙整摘要。prompt 範本目前內嵌在 dogfood 過程的 Agent 呼叫、未抽出獨立 reference 檔(避免 over-spec)。
Self-aware limitation 模式
第二輪 / 第三輪 audit 後、reviewer D 通常揭露 結構性質疑;採 Phase 3a meta-acknowledgment 而非 Phase 3b substantive restructure:
- Phase 3a:在卡內承認 limitation、列 trigger 給未來累積樣本後重評估
- Phase 3b:跑既有內容 retroactive audit、重審 type / axis(樣本不足時延後)
詳見 principles/self-aware-limitation-pattern。
漏類補充
6 type 是 current best understanding、不是窮盡分類。已知漏類(不適用 6 type):
- 同 vendor major version upgrade(PG 14 → 17 / Kafka 3 → 4):結構走 deep article + upgrade audit
- 政策 / 合規驅動:driver 在外部、資料層仍走 Type A-F;audit 重點是 evidence collection
- Acquisition / merger consolidation:source / target 同產品、處理 identity / RBAC / 歷史資料合併
未來累積更多 case 後可能浮現第 7-9 type(identity / consistency / residency 候選)、或對 6 type 重構。Type 集合是 open、不是 closed。
模組執行的觸發路由
當使用者要寫 migration playbook:
- 判主題形狀:cross-vendor 切換 / 同 vendor upgrade / topology re-layout / compliance-driven
- 跑 6 維 diff dimension audit(不能跳)
- 找主導差異維度 + 對映 type
- 批量寫 ≥ 3 篇 時做 Stage 0 variant 規劃
- 按 type anatomy 寫、補真實 config / 5 case / capacity / integration
- 跨檔 cadence audit(每篇前 + 整批後)
- 批量完成後跑 4-reviewer audit
- Reviewer D 揭露結構性質疑時走 Phase 3a meta-acknowledgment
跟其他 skill 的關係
反覆陷阱(必須主動防範)
20 篇 migration / process content 跑出來的陷阱:
- 直覺套 6 phase 模板:drop-in / paradigm shift 套 phased 結構失真;先跑 audit 才選 type
- 「為什麼遷:X / Y / Z driver」cadence collapse:被動寫作下相似主題自然 collapse;Stage 0 variant 規劃必須主動
- 多軸 High 強塞單一 type 標籤:用「Type X/Y 混合」標示是維度組合、按主導維度選主結構 + 高維度獨立段
- 「最大維度」沒處理 tie:兩維度 High 用優先序判讀、非 tie-breaking
- 工作量 % 包裝成 measured value:用 hedge 詞(「主要工作量塊」「明顯多於其他維度」)、不亂寫 %
- N=1 sample 互引強化「N=多」假象:3 篇 axis 候選驗證互引強化、實際 evidence weight 仍是 N=1
- 「擴張不是重構」修辭:擴 audit 維度時實質 retroactively 暴露既有分類不完整、是 silent grandfathering、不該假裝清白
- Variant 規劃只 cover entry framing(第六輪 audit dogfood 揭露):5/5 章節 2 都 collapse 到「為什麼遷:X / Y / Z 三條 driver」格式;Stage 0 規劃必須 cover 5 個 element axis(entry / driver framing / audit presentation / case enumeration / closing CTA)、詳見 multi-element-variant-planning
Self-aware limitation:本 skill meta-audit(2026-05-19 第 1 輪)
第 1 輪 meta-audit 揭露 6 項結構性質疑、按 self-aware-limitation-pattern 處理為 meta-acknowledgment、不立即 substantive restructure:
- Multi-element collapse skill 自陷:本 skill 寫的時候 variant 規劃 narrow 在 entry framing、忽略其他 element axis;第六輪 batch 5/5 driver framing collapse 是 skill 設計盲點。本輪補 multi-element-variant-planning 卡修補。
- Limitation 累積跨「documented but not action」threshold:累計 30+ 條 limitation / 反模式、超出 self-aware-limitation-pattern 自查清單 ≤ 8 條建議;表示 framework 結構不穩、Phase 3b restructure 應該考慮。
- Phase 3a / 3b 切換 threshold 是錯誤 binary:自查條件「同 limitation 連續 3 輪」抓不到「異種 limitation 累積」;需要 partial Phase 3b 概念。
- 6 type 「open framework」name 已 stale:Type F sub-type 浮現、Type B/F 重疊;name「6 type」是 current snapshot、不該當穩定 framework。
- 6 維 audit ↔ 候選軸 interim usage protocol 缺:寫 Vault → AWS Secrets Manager 時應用 6 維 audit 還是 7 維?卡內未明示。
- 跟 case-first-module-workflow 高度重疊:兩 skill 共用「批量寫作 + reviewer audit」結構;未來可能抽 common skill。
下一輪 trigger(累積到觸發 Phase 3b restructure):
- Multi-element collapse 在新批次 再現(即使加 multi-element-variant-planning 卡後)— 表示 element axis 列法本身 不夠
- 30+ limitation 中 同類議題 重複出現 ≥ 3 次 — 跨輪 audit 中 結構性質疑 措辭從「考慮」升到「必須」
- 新 type 浮現(第 7 type 候選累積 ≥ 3 case)— framework 名「6 type」明顯誤導
- case-first-module-workflow 跟本 skill 共用結構獨立浮現第 3 次 — 抽 common skill trigger
Version: 1.0.0