Home / Market / migration guide

migration guide

migration-guide

claude-command★ 347030 dlgithubMITInstall in CosmosUpstream Source

Documentation & Preview

--- allowed-tools: Read, Write, Edit, Bash argument-hint: [migration-type] | framework | database | cloud | architecture | --version-upgrade description: Create comprehensive migration guides with step-by-step procedures, validation, and rollback strategies

---

Migration Guide Generator

Create comprehensive migration guide: $ARGUMENTS

Current System Analysis

Task

Generate systematic migration guide with comprehensive safety measures: $ARGUMENTS

  1. Migration Scope Analysis
  1. Impact Assessment
  1. Prerequisites and Requirements
  1. Pre-Migration Preparation
  1. Step-by-Step Migration Process

Example for Framework Upgrade:

   ## Step 1: Environment Setup
   1. Update development environment
   2. Install new framework version
   3. Update build tools and dependencies
   4. Configure IDE and tooling
   
   ## Step 2: Dependencies Update
   1. Update package.json/requirements.txt
   2. Resolve dependency conflicts
   3. Update related libraries
   4. Test compatibility
   
   ## Step 3: Code Migration
   1. Update import statements
   2. Replace deprecated APIs
   3. Update configuration files
   4. Modify build scripts
  1. Breaking Changes Documentation

Example Breaking Change:

   ### Removed: `oldMethod()`
   **Before:**

const result = library.oldMethod(param1, param2);

   
   **After:**

const result = library.newMethod({ param1: param1, param2: param2 });

   
   **Rationale:** Improved type safety and extensibility
  1. Configuration Changes
  1. Database Migration (if applicable)
  1. Testing Strategy
  1. Performance Considerations
  1. Security Updates
  1. Deployment Strategy
  1. Common Issues and Troubleshooting
    ## Common Migration Issues
    
    ### Issue: Import/Module Resolution Errors
    **Symptoms:** Cannot resolve module 'old-package'
    **Solution:** 
    1. Update import statements to new package names
    2. Check package.json for correct dependencies
    3. Clear node_modules and reinstall
    
    ### Issue: API Method Not Found
    **Symptoms:** TypeError: oldMethod is not a function
    **Solution:** Replace with new API as documented in step 3
  1. Team Communication and Training
  1. Tools and Automation
  1. Timeline and Milestones
    ## Migration Timeline
    
    ### Phase 1: Preparation (Week 1-2)
    - [ ] Environment setup
    - [ ] Team training
    - [ ] Development environment migration
    
    ### Phase 2: Development (Week 3-6)
    - [ ] Core application migration
    - [ ] Testing and validation
    - [ ] Performance optimization
    
    ### Phase 3: Deployment (Week 7-8)
    - [ ] Staging deployment
    - [ ] Production deployment
    - [ ] Monitoring and support
  1. Risk Mitigation
  1. Post-Migration Tasks
  1. Validation and Testing
  1. Documentation Updates

Migration Types and Specific Considerations:

Framework Migration (React 17 → 18):

Database Migration (MySQL → PostgreSQL):

Cloud Migration (On-premise → AWS):

Architecture Migration (Monolith → Microservices):

Remember to: