Sub-Agent Migration Assistant Command banner
derek-opdee derek-opdee

Sub-Agent Migration Assistant Command

Development community intermediate

Description

Assists with framework, library, and pattern migrations by analyzing code, creating migration plans, and safely implementing changes using specialized agents.

Installation

Terminal
claude install-skill https://github.com/derek-opdee/subagent-example-script

README

Sub-Agent Migration Assistant Command

Assists with framework, library, and pattern migrations by analyzing code, creating migration plans, and safely implementing changes using specialized agents.

Command Syntax

sub-agent-migration-assistant --from  --to  [options]

# Aliases
@migrate --from  --to  [options]
@migration-assistant [options]
@sama --from  --to  [options]

Parameters

    undefined

Examples

# React version migration
@migrate --from react@17 --to react@18 --safe-mode

# Pattern migration
@migrate --pattern class-to-hooks src/components/

# Laravel upgrade
@migrate --from laravel@8 --to laravel@10 --incremental

# Database migration
@migrate --from mysql@5.7 --to mysql@8.0 --dry-run

Supported Migrations

Frontend Migrations

    undefined

Backend Migrations

    undefined

Database Migrations

    undefined

Agent Orchestration

Stage 1: Analysis Agents (Parallel)

Agent 1: Deprecation Scanner

Scan for deprecated features in [TARGET] for [FROM_VERSION]

Tasks:
1. API Changes:
   - Deprecated methods
   - Removed functions
   - Changed signatures
   - Renamed properties
   - Modified behaviors

2. Syntax Changes:
   - Old syntax patterns
   - Deprecated operators
   - Changed keywords
   - Legacy patterns
   - Outdated imports

3. Dependencies:
   - Incompatible packages
   - Version conflicts
   - Deprecated dependencies
   - Breaking changes
   - Peer dependencies

4. Framework Specific:
   - React: Legacy lifecycle
   - Laravel: Deprecated facades
   - Vue: Options API usage
   - WordPress: Deprecated hooks

Return:
- Deprecation list with locations
- Breaking changes summary
- Required updates list
- Risk assessment
- Migration complexity

Agent 2: Compatibility Analyzer

Analyze compatibility requirements for migration

Tasks:
1. Dependency Tree:
   - Package compatibility
   - Version constraints
   - Transitive dependencies
   - Lock file analysis
   - Conflict resolution

2. Code Patterns:
   - Feature usage
   - API compatibility
   - Polyfil