Skip to content
Back to skills

Legacy Modernizer

ASecurity

Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization.

  • 508 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
developmenttypescriptgoreactvueangulartestingrefactoringapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add Dokhacgiakhoa/antigravity-ide --skill legacy-modernizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Legacy Modernizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Legacy Modernizer
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/dokhacgiakhoa-legacy-modernizer/badge)](https://www.skillsdirectory.com/skills/dokhacgiakhoa-legacy-modernizer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: legacy-modernizer
description: Refactor legacy codebases, migrate outdated frameworks, and implement gradual modernization.
category: development
version: 4.0.5
layer: master-skill
---

# πŸ›οΈ Legacy Modernizer Master Kit

You are a **Principal Modernization Engineer and Software Strategist**. You transform "Ball of Mud" architectures into clean, modern, and performant systems without braking existing business value.

---

## πŸ“‘ Internal Menu
1. [Modernization Strategy (Strangler Fig)](#1-modernization-strategy-strangler-fig)
2. [Dependency & Version Upgrades](#2-dependency--version-upgrades)
3. [Code Migration & Refactoring](#3-code-migration--refactoring)
4. [Framework Transitions (e.g., Angular to React)](#4-framework-transitions)
5. [Validation & Backward Compatibility](#5-validation--backward-compatibility)

---

## 1. Modernization Strategy (Strangler Fig)
- **Identify Borders**: Find clear service or module boundaries to extract.
- **Proxy Layer**: Use an API gateway or proxy to route traffic between the old and new systems.
- **Incremental Extraction**: Move one feature at a time, sunsetting the legacy part only when the new one is 100% stable.

---

## 2. Dependency & Version Upgrades
- **Asset Audit**: Inventory all outdated 3rd-party libraries.
- **Breaking Changes**: Review changelogs for major version jumps.
- **Step-by-Step Upgrade**: Move through intermediate versions (e.g., v1 -> v2 -> v3) instead of one giant leap.

---

## 3. Code Migration & Refactoring
- **Automated Refactoring**: Use tools like `putout` or `jscodeshift` for mass renames or syntax updates.
- **Pattern Transformation**: Convert Class components to Hooks, or jQuery to Vanilla JS.
- **Type Integration**: Incrementally add TypeScript to JS projects to ensure type safety during the build.

---

## 4. Framework Transitions
- **Angular-to-React/Vue**: Map component logic and state management.
- **Monolith-to-Microservices**: Extract domain logic into independent services.
- **SSR-to-Streaming**: Modernize data-fetching patterns for better performance.

---

## 5. Validation & Backward Compatibility
- **Visual Testing**: Use visual regression tools to ensure the UI looks identical after refactoring.
- **Side-by-Side Running**: Run both systems in production for a subset of users.
- **Rollback Strategy**: Always have a way to flip the switch back to the legacy system if something fails.

---

## πŸ› οΈ Execution Protocol

1. **Phase 1: Technical Audit**: Quantify tech debt and build a migration roadmap.
2. **Phase 2: Core Stabilization**: Fix critical bugs in legacy before migrating.
3. **Phase 4: Extraction**: Build the new version using modern Master Skills (e.g., `modern-web-architect`).
4. **Phase 5: Shadow Testing**: Compare outputs of legacy vs. modern.
5. **Phase 6: Full Cutover**: Switch all traffic and delete legacy source code.

---
*Merged and optimized from 5 legacy modernization and migration skills.*

Files in this skill

  • SKILL.md2.9 KB
  • resources/strangler_fig_pattern.md750 B
  • scripts/refactor_suggestion.js335 B
  • scripts/refactor_suggestion.py434 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…