Cloud migration

From FerroxLabs/murage · View interactive version

Cloud migration is an AI agent skill from the GitHub repository FerroxLabs/murage. Structured workflow for migrating applications and infrastructure from on-premises or between cloud providers. Covers assessment, planning, migration execution, optimization, and governance to ensure a smooth transition with minimal business disruption and maximum cloud value. Use when the user want

How to use this skill

Skill file

Cloud Migration

Estimated time: 2-6 months

Cloud migration is a strategic undertaking that, when done well, delivers agility, scalability, and cost efficiency. When done poorly, it creates expensive, hard-to-manage cloud infrastructure that costs more than the on-premises systems it replaced. This workflow provides a structured approach: assess what you have, plan how to migrate it, execute the migration in waves, optimize for cloud-native benefits, and establish governance for ongoing management.

The workflow uses the industry-standard 6 R's framework for categorizing migration strategies: Rehost (lift-and-shift), Replatform (lift-and-reshape), Refactor (re-architect for cloud-native), Repurchase (replace with SaaS), Retire (decommission), and Retain (keep on-premises). Each application gets the migration strategy that matches its business value and technical complexity.

When to Use

Prerequisites

Before starting this workflow, ensure:

Steps

Step 1: Assess Current State (uses: risk-assessor)

identify migration risks and the AWS Architect skill (or equivalent for your target cloud) to assess cloud readiness. Catalog every application: technology stack, dependencies, data volume, traffic patterns, compliance requirements, and business criticality. Map the dependency graph: which applications depend on which databases, APIs, and shared services. Calculate current total cost of ownership (TCO) for baseline comparison. Identify high-risk applications (stateful, tightly coupled, legacy technology) that need special attention.

Step 2: Plan Migration Waves (uses: aws-architect)

classify each application using the 6 R's framework: Rehost, Replatform, Refactor, Repurchase, Retire, or Retain. Then organize applications into migration waves (batches of 3-7 applications migrated together). Wave 1 should be low-risk, non-critical applications to build team confidence and validate the migration process. Subsequent waves increase in complexity and criticality. Create a detailed plan for each wave: migration strategy, timeline, rollback procedure, success criteria, and team assignments.

Step 3: Set Up Cloud Foundation (uses: terraform-engineer)

build the cloud foundation as code: account structure (multi-account for production, staging, shared services), networking (VPC, subnets, security groups, VPN/Direct Connect to on-premises), IAM (roles, policies, SSO), and shared services (logging, monitoring, DNS). Use the Security Hardener skill to apply cloud security best practices from day one: CIS benchmarks, encryption defaults, IAM least privilege, and audit logging. This foundation must be solid before any application migration begins.

Step 4: Migrate Wave 1 (Validation Wave) (uses: docker-engineer)

containerize applications if replatforming. Use the Database Architect skill to plan database migration strategies (schema migration, data transfer, replication cutover). Use the Data Migration Specialist skill for zero-downtime data migration where required. Execute the migration: provision cloud infrastructure, migrate data, deploy application, validate functionality, switch traffic (DNS cutover or load balancer switch), and monitor. Keep the on-premises environment running as a rollback target for at least 2 weeks after cutover.

Step 5: Monitor and Optimize (uses: monitoring-engineer)

set up cloud-native monitoring for migrated applications. Compare performance metrics against the on-premises baseline. Use the Cloud Cost Optimizer skill to identify optimization opportunities: right-size instances, implement auto-scaling, convert to reserved instances for stable workloads, use spot instances for batch processing, and clean up unused resources. Cloud costs in the first month are often 2-3x the steady-state cost due to over-provisioning -- optimization brings costs down to target.

Step 6: Migrate Remaining Waves (uses: aws-architect)

Execute remaining migration waves, applying lessons learned from Wave 1. Each wave should be faster than the previous one as the team builds expertise and reuses infrastructure patterns. For applications classified as Refactor, design cloud-native deployments. For applications classified as Retire or Repurchase, coordinate decommission with the SaaS replacement timeline. Track progress against the overall migration plan and adjust wave composition as needed.

Step 7: Establish Cloud Governance (uses: cloud-cost-optimizer)

establish ongoing cost governance: budget alerts, cost allocation tags, monthly cost review process, and anomaly detection. Use the Security Hardener skill to establish security governance: automated compliance scanning, security baseline enforcement, IAM review cadence, and incident response procedures for cloud. Create guardrails (Service Control Policies, landing zone rules) that prevent common mistakes without blocking development.

Decision Points

Failure Handling

Expected Outcome

When this workflow is complete, the user will have:

  1. All planned applications are migrated within the timeline and budget
  2. Cloud costs are within 10% of projected estimates
  3. Application performance meets or exceeds on-premises baseline
  4. Zero data loss during migration
  5. Downtime during migration stays within agreed business windows
  6. Cloud governance prevents uncontrolled cost growth and security drift
  7. Team is self-sufficient in cloud operations within 3 months of migration

Output Format

CLOUD MIGRATION TRACKER
=======================

[ ] Step 1: Assess Current State
    Status: [pending/in-progress/complete]
[ ] Step 2: Plan Migration Waves
    Status: [pending/in-progress/complete]
[ ] Step 3: Set Up Cloud Foundation
    Status: [pending/in-progress/complete]
[ ] Step 4: Migrate Wave 1 (Validation Wave)
    Status: [pending/in-progress/complete]
[ ] Step 5: Monitor and Optimize
    Status: [pending/in-progress/complete]
[ ] Step 6: Migrate Remaining Waves
    Status: [pending/in-progress/complete]
[ ] Step 7: Establish Cloud Governance
    Status: [pending/in-progress/complete]

Timeline: ______ weeks
Overall Status: [IN PROGRESS / COMPLETE]

Adaptation notes:

Edge Cases

Example

Input: "I want to cloud migration and need a structured plan to follow step by step."

Output:

Step 1 (risk-assessor-aws-architect): Assess Current State -- produces concrete deliverables for this phase.

Step 2 (aws-architect-risk-assessor): Plan Migration Waves -- produces concrete deliverables for this phase.

Step 3 (terraform-engineer-security-hardener): Set Up Cloud Foundation -- produces concrete deliverables for this phase.

Step 4 (docker-engineer-database-architect-data-migration-specialist): Migrate Wave 1 (Validation Wave) -- produces concrete deliverables for this phase.

Step 5 (monitoring-engineer-cloud-cost-optimizer): Monitor and Optimize -- produces concrete deliverables for this phase.

Step 6 (aws-architect-docker-engineer-kubernetes-operator): Migrate Remaining Waves -- produces concrete deliverables for this phase.

Step 7 (cloud-cost-optimizer-security-hardener): Establish Cloud Governance -- produces concrete deliverables for this phase.

Result: User has a complete cloud migration plan with all deliverables produced, validated, and ready for implementation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.