migration-architect

4
0
Source

Migration Architect

Install

mkdir -p .claude/skills/migration-architect && curl -L -o skill.zip "https://mcp.directory/api/skills/download/3794" && unzip -o skill.zip -d .claude/skills/migration-architect && rm skill.zip

Installs to .claude/skills/migration-architect

About this skill

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

  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 migration
    • Enable zero-downtime migrations for large datasets

Service Migrations

Strangler Fig Pattern

  1. Intercept Requests: Route traffic through proxy/gateway
  2. Gradually Replace: Implement new service functionality incrementally
  3. Legacy Retirement: Remove old service components as new ones prove stable
  4. 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

  1. Dual Execution: Run both old and new services simultaneously
  2. Shadow Traffic: Route production traffic to both systems
  3. Result Comparison: Compare outputs to validate correctness
  4. Gradual Cutover: Shift traffic percentage based on confidence

Canary Deployment Pattern

  1. Limited Rollout: Deploy new service to small percentage of users
  2. Monitoring: Track key metrics (latency, errors, business KPIs)
  3. Gradual Increase: Increase traffic percentage as confidence grows
  4. Full Rollout: Complete migration once validation passes

Infrastructure Migrations

Cloud-to-Cloud Migration

  1. Assessment Phase

    • Inventory existing resources and dependencies
    • Map services to target cloud equivalents
    • Identify vendor-specific features requiring refactoring
  2. Pilot Migration

    • Migrate non-critical workloads first
    • Validate performance and cost models
    • Refine migration procedures
  3. Production Migration

    • Use infrastructure as code for consistency
    • Implement cross-cloud networking during transition
    • Maintain disaster recovery capabilities

On-Premises to Cloud Migration

  1. Lift and Shift

    • Minimal changes to existing applications
    • Quick migration with optimization later
    • Use cloud migration tools and services
  2. Re-architecture

    • Redesign applications for cloud-native patterns
    • Adopt microservices, containers, and serverless
    • Implement cloud security and scaling practices
  3. 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

  1. Row Count Validation

    • Compare record counts between source and target
    • Account for soft deletes and filtered records
    • Implement threshold-based alerting
  2. Checksums and Hashing

    • Generate checksums for critical data subsets
    • Compare hash values to detect data drift
    • Use sampling for large datasets
  3. Business Logic Validation

    • Run critical business queries on both systems
    • Compare aggregate results (sums, counts, averages)
    • Validate derived data and calculations

Reconciliation Patterns

  1. 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
    );
    
  2. 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

  1. Schema Rollback

    • Maintain schema version control
    • Use backward-compatible migrations when possible
    • Keep rollback scripts for each migration step
  2. Data Rollback

    • Point-in-time recovery using database backups
    • Transaction log replay for precise rollback points
    • Maintain data snapshots at migration checkpoints

Service Rollback

  1. 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
  2. Rolling Rollback

    • Gradually shift traffic back to previous version
    • Monitor system health during rollback process
    • Implement automated rollback triggers

Infrastructure Rollback

  1. Infrastructure as Code

    • Version control all infrastructure definitions
    • Maintain rollback terraform/CloudFormation templates
    • Test rollback procedures in staging environments
  2. 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

  1. Technical Risks

    • Data loss or corruption
    • Service downtime or degraded performance
    • Integration failures with dependent systems
    • Scalability issues under production load
  2. Business Risks

    • Revenue impact from service disruption
    • Customer experience degradation
    • Complian

Content truncated.

senior-architect

alirezarezvani

Comprehensive software architecture skill for designing scalable, maintainable systems using ReactJS, NextJS, NodeJS, Express, React Native, Swift, Kotlin, Flutter, Postgres, GraphQL, Go, Python. Includes architecture diagram generation, system design patterns, tech stack decision frameworks, and dependency analysis. Use when designing system architecture, making technical decisions, creating architecture diagrams, evaluating trade-offs, or defining integration patterns.

170129

content-creator

alirezarezvani

Create SEO-optimized marketing content with consistent brand voice. Includes brand voice analyzer, SEO optimizer, content frameworks, and social media templates. Use when writing blog posts, creating social media content, analyzing brand voice, optimizing SEO, planning content calendars, or when user mentions content creation, brand voice, SEO optimization, social media marketing, or content strategy.

11619

cold-email

alirezarezvani

When the user wants to write, improve, or build a sequence of B2B cold outreach emails to prospects who haven't asked to hear from them. Use when the user mentions 'cold email,' 'cold outreach,' 'prospecting emails,' 'SDR emails,' 'sales emails,' 'first touch email,' 'follow-up sequence,' or 'email prospecting.' Also use when they share an email draft that sounds too sales-y and needs to be humanized. Distinct from email-sequence (lifecycle/nurture to opted-in subscribers) — this is unsolicited outreach to new prospects. NOT for lifecycle emails, newsletters, or drip campaigns (use email-sequence).

3713

content-trend-researcher

alirezarezvani

Advanced content and topic research skill that analyzes trends across Google Analytics, Google Trends, Substack, Medium, Reddit, LinkedIn, X, blogs, podcasts, and YouTube to generate data-driven article outlines based on user intent analysis

10913

ceo-advisor

alirezarezvani

Executive leadership guidance for strategic decision-making, organizational development, and stakeholder management. Includes strategy analyzer, financial scenario modeling, board governance frameworks, and investor relations playbooks. Use when planning strategy, preparing board presentations, managing investors, developing organizational culture, making executive decisions, or when user mentions CEO, strategic planning, board meetings, investor updates, organizational leadership, or executive strategy.

8413

content-humanizer

alirezarezvani

Makes AI-generated content sound genuinely human — not just cleaned up, but alive. Use when content feels robotic, uses too many AI clichés, lacks personality, or reads like it was written by committee. Triggers: 'this sounds like AI', 'make it more human', 'add personality', 'it feels generic', 'sounds robotic', 'fix AI writing', 'inject our voice'. NOT for initial content creation (use content-production). NOT for SEO optimization (use content-production Mode 3).

359

You might also like

flutter-development

aj-geddes

Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.

643969

drawio-diagrams-enhanced

jgtolentino

Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.

591705

ui-ux-pro-max

nextlevelbuilder

"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."

318398

godot

bfollington

This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.

339397

nano-banana-pro

garg-aayush

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.

451339

fastapi-templates

wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

304231

Stay ahead of the MCP ecosystem

Get weekly updates on new skills and servers.