Zero-downtime migration planning, compatibility validation, and rollback strategy generation. Tools for system, database, and infrastructure migrations with minimal business impact. Use when planning a database migration, infrastructure cutover, system replacement, or any high-risk transition that needs explicit rollback paths.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Zero-downtime migration planning, compatibility validation, and rollback strategy generation. Tools for system, database, and infrastructure migrations with minimal business impact. Use when planning a database migration, infrastructure cutover, system replacement, or any high-risk transition that needs explicit rollback paths.
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
-- Example delta query for reconciliationSELECT'missing_in_target'as issue_type, source_id
FROM source_table s
WHERENOTEXISTS (
SELECT1FROM target_table t
WHERE t.id = s.id
)
UNIONALLSELECT'extra_in_target'as issue_type, target_id
FROM target_table t
WHERENOTEXISTS (
SELECT1FROM 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
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 stagemigration_validation:stage:testscript:-pythonscripts/compatibility_checker.py--before=old_schema.json--after=new_schema.json-pythonscripts/migration_planner.py--config=migration_config.json--validateartifacts:reports:-compatibility_report.json-migration_plan.json
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.