Chuyển đến nội dung
Skillpedia
API và máy chủ (backend)29k · #9592

migration-architect

Skill này làm gì

Skill này giúp lên kế hoạch di chuyển cơ sở dữ liệu, schema, dịch vụ và dữ liệu với thời gian ngừng hoạt động ít nhất có thể. Skill dành cho kỹ sư phải chuyển một hệ thống mà không làm hỏng trải nghiệm người dùng.

Khi nào nên dùng

  • ✓Khi bạn định chuyển một cơ sở dữ liệu hoặc thay đổi schema trên một hệ thống đang chạy.
  • ✓Khi bạn cần một cuộc di chuyển không làm người dùng bị gián đoạn.
  • ✓Khi bạn muốn có kế hoạch hoàn tác phòng trường hợp di chuyển gặp sự cố.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/migration-architect/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/skills/migration-architect/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Lên kế hoạch di chuyển không gián đoạn bảng users của chúng tôi sang schema mới, kèm kế hoạch hoàn tác.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill chia việc chuyển thành các giai đoạn có điểm kiểm tra, kiểm tra xem phiên bản cũ và mới có thể hoạt động cùng nhau không, rồi tạo script để hoàn tác từng bước.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Migration Architect

Tier: POWERFUL
Category: Engineering - Migration Strategy
Purpose: Zero-downtime migration planning, compatibility validation, and rollback strategy generation

Overview

The Migration Architect skill provides comprehensive tools and methodologies for planning, executing, and validating complex system migrations with minimal business impact. This skill combines proven migration patterns with automated planning tools to ensure successful transitions between systems, databases, and infrastructure.

Core Capabilities

1. Migration Strategy Planning

  • Phased Migration Planning: Break complex migrations into manageable phases with clear validation gates
  • Risk Assessment: Identify potential failure points and mitigation strategies before execution
  • Timeline Estimation: Generate realistic timelines based on migration complexity and resource constraints
  • Stakeholder Communication: Create communication templates and progress dashboards

2. Compatibility Analysis

  • Schema Evolution: Analyze database schema changes for backward compatibility issues
  • API Versioning: Detect breaking changes in REST/GraphQL APIs and microservice interfaces
  • Data Type Validation: Identify data format mismatches and conversion requirements
  • Constraint Analysis: Validate referential integrity and business rule changes

3. Rollback Strategy Generation

  • Automated Rollback Plans: Generate comprehensive rollback procedures for each migration phase
  • Data Recovery Scripts: Create point-in-time data restoration procedures
  • Service Rollback: Plan service version rollbacks with traffic management
  • Validation Checkpoints: Define success criteria and rollback triggers

Quick Start — plan → check compatibility → generate rollback

All paths relative to this skill folder; sample inputs in assets/, expected shapes in expected_outputs/.

# 1. Generate the migration plan from a spec (copy assets/sample_database_migration.json)
python3 scripts/migration_planner.py --input migration_spec.json --format json -o migration_plan.json

# 2. Check schema/API compatibility — exits non-zero unless fully compatible (CI gate)
python3 scripts/compatibility_checker.py --before assets/database_schema_before.json --after assets/database_schema_after.json --type database --format json -o compatibility.json

# 3. Generate the rollback runbook from the plan
python3 scripts/rollback_generator.py --input migration_plan.json --format both -o rollback_runbook

Outputs chain: migration_plan.json (phases, risks, estimated_duration_hours) feeds step 3; compatibility.json reports overall_compatibility plus breaking_changes_count / potentially_breaking_count.

Gate: the migration is not approved until (a) compatibility_checker exits 0 (overall_compatibility: compatible) or every breaking/potentially-breaking item is explicitly accepted by the owner in writing, and (b) a rollback runbook exists for every phase in the plan. Re-run both checks after any schema revision.

Migration Patterns

Database Migrations

Schema Evolution Patterns

  1. Expand-Contract Pattern

    • Expand: Add new columns/tables alongside existing schema
    • Dual Write: Application writes to both old and new schema
    • Migration: Backfill historical data to new schema
    • Contract: Remove old columns/tables after validation
  2. Parallel Schema Pattern

    • Run new schema in parallel with existing schema
    • Use feature flags to route traffic between schemas
    • Validate data consistency between parallel systems
    • Cutover when confidence is high
  3. Event Sourcing Migration

    • Capture all changes as events during migration window
    • Apply events to new schema for consistency
    • Enable replay capability for rollback scenarios

Data Migration Strategies

  1. Bulk Data Migration

    • Snapshot Approach: Full data copy during maintenance window
    • Incremental Sync: Continuous data synchronization with change tracking
    • Stream Processing: Real-time data transformation pipelines
  2. Dual-Write Pattern

    • Write to both source and target systems during migration
    • Implement compensation patterns for write failures
    • Use distributed transactions where consistency is critical
  3. Change Data Capture (CDC)

    • Stream database changes to target system
    • Maintain eventual consistency during
Câu hỏi thường gặp

Nó có giúp được với thay đổi API không?

Có, nó có thể kiểm tra các thay đổi API và giao diện xem có khác biệt gây lỗi, cũng như thay đổi cơ sở dữ liệu.

Script hoàn tác là gì?

Đó là script đảo ngược một bước di chuyển, để bạn quay về trạng thái trước nếu có gì thất bại.

Nó có tự chạy di chuyển không?

Nó lên kế hoạch và tạo script; đội của bạn vẫn xem xét và chạy chúng.

Chi tiết

Mô tả gốc của tác giả

Use before planning any database, schema, service or data migration, especially zero-downtime ones. Generates a phased plan, a compatibility check and rollback scripts with migration_planner.py, compatibility_checker.py and rollback_generator.py.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9592
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự