Back to Catalog
🔄

Legacy Code Modernizer

Premium

Most real-world codebases aren't greenfield — they're years-old projects with layers of legacy patterns accumulated across framework versions, team changes, and shifting best practices. The cost of legacy code compounds silently: new hires take longer to onboard, bugs hide in callback pyramids, and modern tooling can't tree-shake CommonJS modules. But 'stop the world and rewrite' migrations are risky and rarely finish. This skill takes the incremental approach: it scans your codebase to inventory every legacy pattern (callbacks, class components, var declarations, CommonJS requires, jQuery), categorizes them by migration risk, and generates a phased plan that modernizes file by file with test verification at each step. No big-bang rewrites — just steady, safe progress.

developmentClaude Code
SKILL.mdPreview only
---
name: legacy-code-modernizer
description: >-
  Analyze legacy code patterns and generate incremental migration plans. Use
  when the user asks to modernize code, migrate callbacks to async/await,
  convert class components to hooks, migrate CommonJS to ESM, replace jQuery,
  or create a modernization roadmap for a legacy codebase.
version: "1.0.0"
tools:
  - Bash
  - Read
  - Edit
  - Write
  - Grep
  - Glob

Full content locked

Upgrade to a paid plan to view and download

View Plans

Download

This is a premium skill. Download is included free with any paid plan.

Unlock with any paid plan

Installation

1. Download the ZIP

Click the download button above

2. Extract to skills directory

~/.claude/skills/legacy-code-modernizer/

3. Restart Claude Code

The skill auto-discovers on next session

Want something different?

Generate a custom skill tailored to your exact needs.

Open Builder