🛠️ 移行Architect
既存のシステムやデータを、クラウドなどの新しい環境
📜 元の英語説明(参考)
Migration Architect
🇯🇵 日本人クリエイター向け解説
既存のシステムやデータを、クラウドなどの新しい環境
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o migration-architect.zip https://jpskill.com/download/5056.zip && unzip -o migration-architect.zip && rm migration-architect.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/5056.zip -OutFile "$d\migration-architect.zip"; Expand-Archive "$d\migration-architect.zip" -DestinationPath $d -Force; ri "$d\migration-architect.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
migration-architect.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
migration-architectフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-18
- 同梱ファイル
- 12
💬 こう話しかけるだけ — サンプルプロンプト
- › Migration Architect を使って、最小構成のサンプルコードを示して
- › Migration Architect の主な使い方と注意点を教えて
- › Migration Architect を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] migration-architect
マイグレーションアーキテクト
ティア: POWERFUL
カテゴリ: エンジニアリング - マイグレーション戦略
目的: ダウンタイムゼロのマイグレーション計画、互換性検証、およびロールバック戦略の生成
概要
マイグレーションアーキテクトスキルは、ビジネスへの影響を最小限に抑えながら、複雑なシステムマイグレーションを計画、実行、検証するための包括的なツールと方法論を提供します。このスキルは、実績のあるマイグレーションパターンと自動化された計画ツールを組み合わせることで、システム、データベース、およびインフラストラクチャ間の移行を確実に成功させます。
主要な機能
1. マイグレーション戦略計画
- 段階的マイグレーション計画: 複雑なマイグレーションを、明確な検証ゲートを持つ管理可能なフェーズに分割します。
- リスク評価: 実行前に潜在的な障害点と緩和戦略を特定します。
- タイムライン見積もり: マイグレーションの複雑さとリソースの制約に基づいて、現実的なタイムラインを生成します。
- ステークホルダーコミュニケーション: コミュニケーションテンプレートと進捗ダッシュボードを作成します。
2. 互換性分析
- スキーマ進化: データベーススキーマの変更について、後方互換性の問題を分析します。
- API バージョニング: REST/GraphQL API およびマイクロサービスインターフェースにおける破壊的変更を検出します。
- データ型検証: データ形式の不一致と変換要件を特定します。
- 制約分析: 参照整合性とビジネスルールの変更を検証します。
3. ロールバック戦略の生成
- 自動化されたロールバック計画: 各マイグレーションフェーズについて、包括的なロールバック手順を生成します。
- データリカバリスクリプト: 特定時点のデータ復元手順を作成します。
- サービスロールバック: トラフィック管理を伴うサービスバージョンロールバックを計画します。
- 検証チェックポイント: 成功基準とロールバックトリガーを定義します。
マイグレーションパターン
データベースマイグレーション
スキーマ進化パターン
-
Expand-Contract パターン
- Expand: 既存のスキーマと並行して新しいカラム/テーブルを追加します。
- Dual Write: アプリケーションが古いスキーマと新しいスキーマの両方に書き込みます。
- Migration: 履歴データを新しいスキーマにバックフィルします。
- Contract: 検証後、古いカラム/テーブルを削除します。
-
Parallel Schema パターン
- 既存のスキーマと並行して新しいスキーマを実行します。
- フィーチャーフラグを使用してスキーマ間でトラフィックをルーティングします。
- 並行システム間のデータ整合性を検証します。
- 確信度が高い場合に切り替えます。
-
Event Sourcing Migration
- マイグレーションウィンドウ中にすべての変更をイベントとしてキャプチャします。
- 整合性のために新しいスキーマにイベントを適用します。
- ロールバックシナリオのためにリプレイ機能を有効にします。
データマイグレーション戦略
-
Bulk Data Migration
- Snapshot アプローチ: メンテナンスウィンドウ中に完全なデータコピーを行います。
- Incremental Sync: 変更追跡を伴う継続的なデータ同期を行います。
- Stream Processing: リアルタイムのデータ変換パイプラインです。
-
Dual-Write パターン
- マイグレーション中にソースシステムとターゲットシステムの両方に書き込みます。
- 書き込み失敗に対する補償パターンを実装します。
- 整合性が重要な場合は分散トランザクションを使用します。
-
Change Data Capture (CDC)
- データベースの変更をターゲットシステムにストリーミングします。
- マイグレーション中に結果整合性を維持します。
- 大規模なデータセットのダウンタイムゼロマイグレーションを可能にします。
サービスマイグレーション
Strangler Fig パターン
- Intercept Requests: プロキシ/ゲートウェイを介してトラフィックをルーティングします。
- Gradually Replace: 新しいサービス機能を段階的に実装します。
- Legacy Retirement: 新しいコンポーネントが安定していると証明されたら、古いサービスコンポーネントを削除します。
- Monitoring: 移行全体を通してパフォーマンスとエラー率を追跡します。
graph TD
A[Client Requests] --> B[API Gateway]
B --> C{Route Decision}
C -->|Legacy Path| D[Legacy Service]
C -->|New Path| E[New Service]
D --> F[Legacy Database]
E --> G[New Database]
Parallel Run パターン
- Dual Execution: 古いサービスと新しいサービスの両方を同時に実行します。
- Shadow Traffic: 本番トラフィックを両方のシステムにルーティングします。
- Result Comparison: 出力を比較して正確性を検証します。
- Gradual Cutover: 確信度に基づいてトラフィックの割合をシフトします。
Canary Deployment パターン
- Limited Rollout: 新しいサービスを少数のユーザーにデプロイします。
- Monitoring: 主要なメトリクス(レイテンシ、エラー、ビジネス KPI)を追跡します。
- Gradual Increase: 確信度が高まるにつれてトラフィックの割合を増やします。
- Full Rollout: 検証が完了したらマイグレーションを完了します。
インフラストラクチャマイグレーション
Cloud-to-Cloud Migration
-
Assessment Phase
- 既存のリソースと依存関係をインベントリします。
- サービスをターゲットクラウドの同等物にマッピングします。
- リファクタリングが必要なベンダー固有の機能を特定します。
-
Pilot Migration
- まず非クリティカルなワークロードをマイグレーションします。
- パフォーマンスとコストモデルを検証します。
- マイグレーション手順を洗練させます。
-
Production Migration
- 一貫性のために Infrastructure as Code を使用します。
- 移行中にクロスクラウドネットワーキングを実装します。
- ディザスタリカバリ機能を維持します。
On-Premises to Cloud Migration
-
Lift and Shift
- 既存のアプリケーションへの変更を最小限に抑えます。
- 後で最適化を行う迅速なマイグレーションです。
- クラウドマイグレーションツールとサービスを使用します。
-
Re-architecture
- クラウドネイティブパターン向けにアプリケーションを再設計します。
- マイクロサービス、コンテナ、サーバーレスを採用します。
- クラウドのセキュリティとスケーリングプラクティスを実装します。
-
Hybrid Approach
- 機密データをオンプレミスに保持します。
- コンピューティングワークロードをクラウドにマイグレーションします。
- 環境間の安全な接続を実装します。
マイグレーションのためのフィーチャーフラグ
プログレッシブフィーチャーロールアウト
# Example feature flag implementation
class MigrationFeatureFlag:
def __init__(self, flag_name, rollout_percentage=0):
self.flag_name = flag_name
self.rollout_percentage = rollout_percentage
def is_enabled_for_user(self, user_id):
hash_value = hash(f"{self.flag_name}:{user_id}")
return (hash_value % 100) < self.rollout_percentage
def gradual_rollout(self, target_ 📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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
Migration Patterns
Database Migrations
Schema Evolution Patterns
-
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
-
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
-
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
-
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
-
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
-
Change Data Capture (CDC)
- Stream database changes to target system
- Maintain eventual consistency during migration
- Enable zero-downtime migrations for large datasets
Service Migrations
Strangler Fig Pattern
- Intercept Requests: Route traffic through proxy/gateway
- Gradually Replace: Implement new service functionality incrementally
- Legacy Retirement: Remove old service components as new ones prove stable
- Monitoring: Track performance and error rates throughout transition
graph TD
A[Client Requests] --> B[API Gateway]
B --> C{Route Decision}
C -->|Legacy Path| D[Legacy Service]
C -->|New Path| E[New Service]
D --> F[Legacy Database]
E --> G[New Database]
Parallel Run Pattern
- Dual Execution: Run both old and new services simultaneously
- Shadow Traffic: Route production traffic to both systems
- Result Comparison: Compare outputs to validate correctness
- Gradual Cutover: Shift traffic percentage based on confidence
Canary Deployment Pattern
- Limited Rollout: Deploy new service to small percentage of users
- Monitoring: Track key metrics (latency, errors, business KPIs)
- Gradual Increase: Increase traffic percentage as confidence grows
- Full Rollout: Complete migration once validation passes
Infrastructure Migrations
Cloud-to-Cloud Migration
-
Assessment Phase
- Inventory existing resources and dependencies
- Map services to target cloud equivalents
- Identify vendor-specific features requiring refactoring
-
Pilot Migration
- Migrate non-critical workloads first
- Validate performance and cost models
- Refine migration procedures
-
Production Migration
- Use infrastructure as code for consistency
- Implement cross-cloud networking during transition
- Maintain disaster recovery capabilities
On-Premises to Cloud Migration
-
Lift and Shift
- Minimal changes to existing applications
- Quick migration with optimization later
- Use cloud migration tools and services
-
Re-architecture
- Redesign applications for cloud-native patterns
- Adopt microservices, containers, and serverless
- Implement cloud security and scaling practices
-
Hybrid Approach
- Keep sensitive data on-premises
- Migrate compute workloads to cloud
- Implement secure connectivity between environments
Feature Flags for Migrations
Progressive Feature Rollout
# Example feature flag implementation
class MigrationFeatureFlag:
def __init__(self, flag_name, rollout_percentage=0):
self.flag_name = flag_name
self.rollout_percentage = rollout_percentage
def is_enabled_for_user(self, user_id):
hash_value = hash(f"{self.flag_name}:{user_id}")
return (hash_value % 100) < self.rollout_percentage
def gradual_rollout(self, target_percentage, step_size=10):
while self.rollout_percentage < target_percentage:
self.rollout_percentage = min(
self.rollout_percentage + step_size,
target_percentage
)
yield self.rollout_percentage
Circuit Breaker Pattern
Implement automatic fallback to legacy systems when new systems show degraded performance:
class MigrationCircuitBreaker:
def __init__(self, failure_threshold=5, timeout=60):
self.failure_count = 0
self.failure_threshold = failure_threshold
self.timeout = timeout
self.last_failure_time = None
self.state = 'CLOSED' # CLOSED, OPEN, HALF_OPEN
def call_new_service(self, request):
if self.state == 'OPEN':
if self.should_attempt_reset():
self.state = 'HALF_OPEN'
else:
return self.fallback_to_legacy(request)
try:
response = self.new_service.process(request)
self.on_success()
return response
except Exception as e:
self.on_failure()
return self.fallback_to_legacy(request)
Data Validation and Reconciliation
Validation Strategies
-
Row Count Validation
- Compare record counts between source and target
- Account for soft deletes and filtered records
- Implement threshold-based alerting
-
Checksums and Hashing
- Generate checksums for critical data subsets
- Compare hash values to detect data drift
- Use sampling for large datasets
-
Business Logic Validation
- Run critical business queries on both systems
- Compare aggregate results (sums, counts, averages)
- Validate derived data and calculations
Reconciliation Patterns
-
Delta Detection
-- Example delta query for reconciliation SELECT 'missing_in_target' as issue_type, source_id FROM source_table s WHERE NOT EXISTS ( SELECT 1 FROM target_table t WHERE t.id = s.id ) UNION ALL SELECT 'extra_in_target' as issue_type, target_id FROM target_table t WHERE NOT EXISTS ( SELECT 1 FROM source_table s WHERE s.id = t.id ); -
Automated Correction
- Implement data repair scripts for common issues
- Use idempotent operations for safe re-execution
- Log all correction actions for audit trails
Rollback Strategies
Database Rollback
-
Schema Rollback
- Maintain schema version control
- Use backward-compatible migrations when possible
- Keep rollback scripts for each migration step
-
Data Rollback
- Point-in-time recovery using database backups
- Transaction log replay for precise rollback points
- Maintain data snapshots at migration checkpoints
Service Rollback
-
Blue-Green Deployment
- Keep previous service version running during migration
- Switch traffic back to blue environment if issues arise
- Maintain parallel infrastructure during migration window
-
Rolling Rollback
- Gradually shift traffic back to previous version
- Monitor system health during rollback process
- Implement automated rollback triggers
Infrastructure Rollback
-
Infrastructure as Code
- Version control all infrastructure definitions
- Maintain rollback terraform/CloudFormation templates
- Test rollback procedures in staging environments
-
Data Persistence
- Preserve data in original location during migration
- Implement data sync back to original systems
- Maintain backup strategies across both environments
Risk Assessment Framework
Risk Categories
-
Technical Risks
- Data loss or corruption
- Service downtime or degraded performance
- Integration failures with dependent systems
- Scalability issues under production load
-
Business Risks
- Revenue impact from service disruption
- Customer experience degradation
- Compliance and regulatory concerns
- Brand reputation impact
-
Operational Risks
- Team knowledge gaps
- Insufficient testing coverage
- Inadequate monitoring and alerting
- Communication breakdowns
Risk Mitigation Strategies
-
Technical Mitigations
- Comprehensive testing (unit, integration, load, chaos)
- Gradual rollout with automated rollback triggers
- Data validation and reconciliation processes
- Performance monitoring and alerting
-
Business Mitigations
- Stakeholder communication plans
- Business continuity procedures
- Customer notification strategies
- Revenue protection measures
-
Operational Mitigations
- Team training and documentation
- Runbook creation and testing
- On-call rotation planning
- Post-migration review processes
Migration Runbooks
Pre-Migration Checklist
- [ ] Migration plan reviewed and approved
- [ ] Rollback procedures tested and validated
- [ ] Monitoring and alerting configured
- [ ] Team roles and responsibilities defined
- [ ] Stakeholder communication plan activated
- [ ] Backup and recovery procedures verified
- [ ] Test environment validation complete
- [ ] Performance benchmarks established
- [ ] Security review completed
- [ ] Compliance requirements verified
During Migration
- [ ] Execute migration phases in planned order
- [ ] Monitor key performance indicators continuously
- [ ] Validate data consistency at each checkpoint
- [ ] Communicate progress to stakeholders
- [ ] Document any deviations from plan
- [ ] Execute rollback if success criteria not met
- [ ] Coordinate with dependent teams
- [ ] Maintain detailed execution logs
Post-Migration
- [ ] Validate all success criteria met
- [ ] Perform comprehensive system health checks
- [ ] Execute data reconciliation procedures
- [ ] Monitor system performance over 72 hours
- [ ] Update documentation and runbooks
- [ ] Decommission legacy systems (if applicable)
- [ ] Conduct post-migration retrospective
- [ ] Archive migration artifacts
- [ ] Update disaster recovery procedures
Communication Templates
Executive Summary Template
Migration Status: [IN_PROGRESS | COMPLETED | ROLLED_BACK]
Start Time: [YYYY-MM-DD HH:MM UTC]
Current Phase: [X of Y]
Overall Progress: [X%]
Key Metrics:
- System Availability: [X.XX%]
- Data Migration Progress: [X.XX%]
- Performance Impact: [+/-X%]
- Issues Encountered: [X]
Next Steps:
1. [Action item 1]
2. [Action item 2]
Risk Assessment: [LOW | MEDIUM | HIGH]
Rollback Status: [AVAILABLE | NOT_AVAILABLE]
Technical Team Update Template
Phase: [Phase Name] - [Status]
Duration: [Started] - [Expected End]
Completed Tasks:
✓ [Task 1]
✓ [Task 2]
In Progress:
🔄 [Task 3] - [X% complete]
Upcoming:
⏳ [Task 4] - [Expected start time]
Issues:
⚠️ [Issue description] - [Severity] - [ETA resolution]
Metrics:
- Migration Rate: [X records/minute]
- Error Rate: [X.XX%]
- System Load: [CPU/Memory/Disk]
Success Metrics
Technical Metrics
- Migration Completion Rate: Percentage of data/services successfully migrated
- Downtime Duration: Total system unavailability during migration
- Data Consistency Score: Percentage of data validation checks passing
- Performance Delta: Performance change compared to baseline
- Error Rate: Percentage of failed operations during migration
Business Metrics
- Customer Impact Score: Measure of customer experience degradation
- Revenue Protection: Percentage of revenue maintained during migration
- Time to Value: Duration from migration start to business value realization
- Stakeholder Satisfaction: Post-migration stakeholder feedback scores
Operational Metrics
- Plan Adherence: Percentage of migration executed according to plan
- Issue Resolution Time: Average time to resolve migration issues
- Team Efficiency: Resource utilization and productivity metrics
- Knowledge Transfer Score: Team readiness for post-migration operations
Tools and Technologies
Migration Planning Tools
- migration_planner.py: Automated migration plan generation
- compatibility_checker.py: Schema and API compatibility analysis
- rollback_generator.py: Comprehensive rollback procedure generation
Validation Tools
- Database comparison utilities (schema and data)
- API contract testing frameworks
- Performance benchmarking tools
- Data quality validation pipelines
Monitoring and Alerting
- Real-time migration progress dashboards
- Automated rollback trigger systems
- Business metric monitoring
- Stakeholder notification systems
Best Practices
Planning Phase
- Start with Risk Assessment: Identify all potential failure modes before planning
- Design for Rollback: Every migration step should have a tested rollback procedure
- Validate in Staging: Execute full migration process in production-like environment
- Plan for Gradual Rollout: Use feature flags and traffic routing for controlled migration
Execution Phase
- Monitor Continuously: Track both technical and business metrics throughout
- Communicate Proactively: Keep all stakeholders informed of progress and issues
- Document Everything: Maintain detailed logs for post-migration analysis
- Stay Flexible: Be prepared to adjust timeline based on real-world performance
Validation Phase
- Automate Validation: Use automated tools for data consistency and performance checks
- Business Logic Testing: Validate critical business processes end-to-end
- Load Testing: Verify system performance under expected production load
- Security Validation: Ensure security controls function properly in new environment
Integration with Development Lifecycle
CI/CD Integration
# Example migration pipeline stage
migration_validation:
stage: test
script:
- python scripts/compatibility_checker.py --before=old_schema.json --after=new_schema.json
- python scripts/migration_planner.py --config=migration_config.json --validate
artifacts:
reports:
- compatibility_report.json
- migration_plan.json
Infrastructure as Code
# Example Terraform for blue-green infrastructure
resource "aws_instance" "blue_environment" {
count = var.migration_phase == "preparation" ? var.instance_count : 0
# Blue environment configuration
}
resource "aws_instance" "green_environment" {
count = var.migration_phase == "execution" ? var.instance_count : 0
# Green environment configuration
}
This Migration Architect skill provides a comprehensive framework for planning, executing, and validating complex system migrations while minimizing business impact and technical risk. The combination of automated tools, proven patterns, and detailed procedures enables organizations to confidently undertake even the most complex migration projects.
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (17,016 bytes)
- 📎 assets/database_schema_after.json (9,304 bytes)
- 📎 assets/database_schema_before.json (5,782 bytes)
- 📎 assets/sample_database_migration.json (2,413 bytes)
- 📎 assets/sample_service_migration.json (4,889 bytes)
- 📎 README.md (11,789 bytes)
- 📎 references/data_reconciliation_strategies.md (47,395 bytes)
- 📎 references/migration_patterns_catalog.md (19,602 bytes)
- 📎 references/zero_downtime_techniques.md (31,881 bytes)
- 📎 scripts/compatibility_checker.py (42,506 bytes)
- 📎 scripts/migration_planner.py (27,098 bytes)
- 📎 scripts/rollback_generator.py (50,122 bytes)