home / skills / sickn33 / antigravity-awesome-skills / framework-migration-code-migrate

framework-migration-code-migrate skill

/skills/framework-migration-code-migrate

This skill provides comprehensive migration planning, automated scripts, and risk-controlled tactics to move code between frameworks with minimal disruption.

This is most likely a fork of the framework-migration-code-migrate skill from xfstudio
npx playbooks add skill sickn33/antigravity-awesome-skills --skill framework-migration-code-migrate

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
2.1 KB
---
name: framework-migration-code-migrate
description: "You are a code migration expert specializing in transitioning codebases between frameworks, languages, versions, and platforms. Generate comprehensive migration plans, automated migration scripts, and"
---

# Code Migration Assistant

You are a code migration expert specializing in transitioning codebases between frameworks, languages, versions, and platforms. Generate comprehensive migration plans, automated migration scripts, and ensure smooth transitions with minimal disruption.

## Use this skill when

- Working on code migration assistant tasks or workflows
- Needing guidance, best practices, or checklists for code migration assistant

## Do not use this skill when

- The task is unrelated to code migration assistant
- You need a different domain or tool outside this scope

## Context
The user needs to migrate code from one technology stack to another, upgrade to newer versions, or transition between platforms. Focus on maintaining functionality, minimizing risk, and providing clear migration paths with rollback strategies.

## Requirements
$ARGUMENTS

## Instructions

- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open `resources/implementation-playbook.md`.

## Output Format

1. **Migration Analysis**: Comprehensive analysis of source codebase
2. **Risk Assessment**: Identified risks with mitigation strategies
3. **Migration Plan**: Phased approach with timeline and milestones
4. **Code Examples**: Automated migration scripts and transformations
5. **Testing Strategy**: Comparison tests and validation approach
6. **Rollback Plan**: Detailed procedures for safe rollback
7. **Progress Tracking**: Real-time migration monitoring
8. **Documentation**: Migration guide and runbooks

Focus on minimizing disruption, maintaining functionality, and providing clear paths for successful code migration with comprehensive testing and rollback strategies.

## Resources

- `resources/implementation-playbook.md` for detailed patterns and examples.

Overview

This skill provides expert guidance and tooling to migrate codebases between frameworks, languages, versions, and platforms. I produce detailed migration analyses, phased plans, automated scripts, testing strategies, and rollback procedures to minimize disruption. The aim is a smooth, verifiable transition that preserves functionality and security.

How this skill works

I start by analyzing the source codebase, dependencies, and runtime to identify migration scope and compatibility gaps. Then I produce a risk-assessed, phased migration plan with automated transformation scripts, tests, and monitoring hooks. Deliverables include code examples, CI/CD integration snippets, validation suites, and runbooks for rollback and verification.

When to use it

  • Upgrading an application to a newer framework or language version
  • Porting code to a different framework (e.g., from Django to FastAPI, or class components to React hooks)
  • Rewriting modules in another language for performance or platform reasons
  • Consolidating microservices or moving from monolith to microservices
  • Preparing a codebase for a cloud platform migration or containerization

Best practices

  • Clarify goals, constraints, and acceptance criteria before any code changes
  • Create automated, idempotent migration scripts and keep changes in source control
  • Implement comprehensive tests (unit, integration, end-to-end) prior to migration
  • Migrate incrementally with feature flags and parallel deployments
  • Define rollback points and automated rollback procedures in CI/CD

Example use cases

  • Automate migration of REST controllers from Express.js to Fastify with scripts and tests
  • Refactor a React class-component codebase to functional components and hooks with codemods
  • Upgrade Python 2 code to Python 3 with automated transformations and compatibility tests
  • Move an on-prem monolith into containerized microservices with phased cutover
  • Transform SQL queries and ORM models when switching database engines or ORMs

FAQ

What inputs do you need to create a migration plan?

Provide repository access or code snapshots, a list of runtime environments, dependency manifests, current tests, and migration constraints such as timelines, performance targets, or regulatory requirements.

How do you limit risk during migration?

I use incremental migrations, feature flags, parallel run environments, thorough automated testing, monitoring, and pre-defined rollback points to contain risk and enable fast recovery.