Skip to content
legacy-modernizer logo

🏛️ Legacy Modernizer Master Kit

legacy-modernizer

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

SKILL.md

Full skill instructions

🏛️ 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)
  2. Dependency & Version Upgrades
  3. Code Migration & Refactoring
  4. Framework Transitions (e.g., Angular to React)
  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.

🧠 Knowledge Modules (Fractal Skills)

1. strangler_fig_pattern

More skills from Dokhacgiakhoa

langchain-architecture logo
Dokhacgiakhoa/antigravity-ide

langchain-architecture

Design LLM applications using the LangChain framework with agents, memory, and tool integration patterns. Use when building LangChain applications, implementing AI agents, or creating complex LLM workflows.

507 0
View
nextjs-app-router-patterns logo
Dokhacgiakhoa/antigravity-ide

nextjs-app-router-patterns

Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching. Use when building Next.js applications, implementing SSR/SSG, or optimizing React Server Components.

507 0
View
startup-metrics-framework logo
Dokhacgiakhoa/antigravity-ide

startup-metrics-framework

This skill should be used when the user asks about "key startup

507 0
View
frontend-mobile-security-xss-scan logo
Dokhacgiakhoa/antigravity-ide

frontend-mobile-security-xss-scan

You are a frontend security specialist focusing on Cross-Site Scripting (XSS) vulnerability detection and prevention. Analyze React, Vue, Angular, and vanilla JavaScript code to identify injection poi

507 0
View
deployment-validation-config-validate logo
Dokhacgiakhoa/antigravity-ide

deployment-validation-config-validate

You are a configuration management expert specializing in validating, testing, and ensuring the correctness of application configurations. Create comprehensive validation schemas, implement configurat

507 0
View

This skill should be used when the user asks to "test for XSS vulnerabilities", "perform cross-site scripting attacks", "identify HTML injection flaws", "exploit client-side injection vulnerabilities", "steal cookies via XSS", or "bypass content security policies". It provides comprehensive techn...

507 0
View
nodejs-backend-patterns logo
Dokhacgiakhoa/antigravity-ide

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

507 0
View
projection-patterns logo
Dokhacgiakhoa/antigravity-ide

projection-patterns

Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing query performance in event-sourced systems.

507 0
View
backend-architect logo
Dokhacgiakhoa/antigravity-ide

backend-architect

Expert backend architect specializing in scalable API design,

507 0
View
seo-content-planner logo
Dokhacgiakhoa/antigravity-ide

seo-content-planner

Creates comprehensive content outlines and topic clusters for SEO.

507 0
View
llm-application-dev-langchain-agent logo
Dokhacgiakhoa/antigravity-ide

llm-application-dev-langchain-agent

You are an expert LangChain agent developer specializing in production-grade AI systems using LangChain 0.1+ and LangGraph.

507 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View