- Home
- Skills
- Code Quality & Review
- Safe Legacy Code Modernizer
More screenshots
Works with the AI Agents you already use
Safe Legacy Code Modernizer
Safe Legacy Code Modernizer migrates old code to a modern stack in small, reversible, verified steps — no big-bang rewrites, no silent behaviour changes, no production surprises.
$12.99
Safe Legacy Code Modernizer
Example session with this skill installed
Migrate this jQuery AJAX function to fetch async/await
- Read your context and instructions
- Compiled the safe legacy code
Migration report — src/api.js (loadUser)
- Scope: 1 function in 1 file (jQuery AJAX → fetch + async/await)
- Behaviour change: none (same URL, same success path, same error message)
- Tests: 2 passed, 0 failed (was 2 passed, 0 failed before migration)
- Risk: Low — single function, both paths covered by tests
- Rollback: restore the original file from backup, then re-run the tests
Diff (shown before applying, per Safety Rule 2)
-function loadUser(id) {
- $.ajax({
- url: API_BASE + '/users/' + id,
- method: 'GET',
- success: function (data) { renderUser(data); },
- error: function (xhr) { showError(xhr.statusText); }
- });
-}
+async function loadUser(id) {
- try {
- const response = await fetch(API_BASE + '/users/' + id);
- if (!response.ok) {
-
throw new Error(response.statusText); - }
- const data = await response.json();
- renderUser(data);
- } catch (error) {
- showError(error.message);
- }
+}
Next steps: the detector shows 2 patterns remaining in this file (var on line 1 and $.get in another function) — each is a separate one-file iteration, with its own diff, tests, and rollback.
Connects securely to your tools. The creator never sees your data.
About this skill
Safe Legacy Code Modernizer migrates old code to a modern stack in small, reversible, verified steps — no big-bang rewrites, no silent behaviour changes, no production surprises.
What it does:
- Detects legacy patterns automatically with the included Python script (var usage, callback hell, jQuery selectors, React Class Components, Python 2 print, AngularJS directives, document.write) — stdlib only, runs locally, no API key.
- Guides every migration through six phases: audit, green test baseline (minimum 60% coverage, or tests are written first), one-file-at-a-time migration, automated verification, manual review, and documentation with a rollback plan.
- Enforces hard safety rules: never more than one file per iteration without confirmation, always show the diff before applying, always ask before deleting old code, and stop on the first verification failure.
- Verifies every step on six layers — unit tests, integration tests, lint, type check, manual smoke test, performance regression — each with a clear GO / NO-GO.
- Produces a migration report per file: before/after, test result, and risk, so a tech lead can sign off on every step.
How it differs from other migration skills:
- Seven migration types, not one language: jQuery to React, Class Components to Hooks, Python 2 to 3, AngularJS to Angular, callbacks to async/await, var to const/let, and old APIs to new ones. Most similar skills cover Python refactoring only.
- A working detector, not just advice: the skill ships a tested script that finds the legacy code for you, instead of asking you to find it yourself.
- Safety is enforced, not suggested: the rules above are part of the skill, and the skill refuses to change five files at once or migrate below 60% coverage.
- Every step is verified and reversible: a rollback plan is written for every file before the next one starts.
- Tested end to end: detection, a full 6-phase migration, a refused 5-file request, and a verified rollback — all five scenarios passed.
The detector script needs Python 3.8+ and runs locally on your machine — no dependencies, no API key, no account, no network calls.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Requires existing test suite with minimum 60% coverage. Not for full architectural rewrites or changing business logic. One file per iteration limit.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 8 days ago
- Software
Python 3.8+
No API key, no account, no wallet needed. The detector script runs locally on your machine and only reads your code — it never sends anything anywhere.
Permissions
File Scopes
The skill only reads and edits source files in your own project, one file per iteration, and always shows the diff before applying it.