legacy-code-translator

legacy-code-translator is a skill for Cursor from roedyrustam/vibes-plug. It costs 42 tokens per session (2,047 once invoked), scanned A, original, MIT.

A step-by-step guide for understanding, translating, and modernising large old codebases. It focuses on preserving business rules while moving from older PHP, Python, or React code to newer technologies.

In plain words
What is it for?
Use it to plan legacy-code migrations, separate business logic from old frameworks, translate code between languages, and refactor outdated React components.
Why use it?
It reduces the risk of losing important behaviour or creating new bugs during a major code migration.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the vibes-plug plugin — 176 skills, 9 agents, 2 MCP servers shipped together

Good fit Use it to plan legacy-code migrations, separate business logic from old frameworks, translate code between languages, and refactor outdated React components.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/roedyrustam/vibes-plug/legacy-code-translator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add roedyrustam/vibes-plug --skill legacy-code-translator
Clone the repo
git clone --depth 1 https://github.com/roedyrustam/vibes-plug

Made for: Cursor.

Or install vibes-plug, the plugin that ships this one along with the rest of its 176 skills, 9 agents, 2 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for legacy-code-translator

README.md
[![agentmods](https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/legacy-code-translator/github.svg)](https://agentmods.dev/skills/roedyrustam/vibes-plug/legacy-code-translator)
Your own site
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/legacy-code-translator"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/legacy-code-translator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for legacy-code-translator

Your own site · 80×15
<a href="https://agentmods.dev/skills/roedyrustam/vibes-plug/legacy-code-translator"><img src="https://agentmods.dev/badge/skills/roedyrustam/vibes-plug/legacy-code-translator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.02047
Opus 5.5 $0.00017 $0.00819
Sonnet 5.5 $0.00008 $0.00409
Haiku 4.5 $0.00004 $0.00205

Measured 6d ago against content hash e0fb61ca2352, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

legacy-code-translator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/legacy-code-translator/SKILL.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Legacy Code Translator (Strangler Fig & Refactoring Engine)

English | Bahasa Indonesia


English

Orchestration & Integration

  • Upstream & Reverse Engineering: prd-architect (document reverse-engineered business rules into PRD.md), brainstorming, session-memory-manager.
  • AST & Codebase Intelligence: living-codebase-ast-graph (module dependencies & blast radius), scalability-clean-code (Clean Architecture boundaries), typescript-expert (strict type contracts).
  • Backend & Database Migration: database-orm-expert (legacy SQL to Prisma/Drizzle schemas), js-backend-expert (Bun/Hono targets), go-programming-expert / rust-programming-expert.
  • Testing & Anti-Slop Gates: autonomous-tdd-debugger (shadow execution comparison suites), anti-slop (zero truncation, no stubbed mocks), zero-tech-debt-auditor.

Description

A systematic, risk-mitigated engineering methodology for migrating large, business-critical legacy codebases (PHP 5/7, Python 2, jQuery, old React Class Components, AngularJS) to modern 2026 enterprise stacks (Next.js 15, TypeScript 5.8+, Bun, Rust, Go) without business downtime or regression. Employs the Strangler Fig pattern, Shadow Execution Harnesses, and AST-driven module decomposition to prevent context exhaustion and hallucinated logic.

Trigger Conditions

  • Large-scale framework migrations (e.g., PHP monolith -> Next.js + Bun/Hono microservices).
  • Translating legacy scripts across languages (e.g., Python 2/3 CPU-bound routines -> Rust/Go).
  • Refactoring sprawling React Class components (>1,000 lines) into modern hooks and Server Components.
  • Decoupling legacy database queries from direct presentation templates.

The 4-Phase Strangler Migration Protocol

┌────────────────────────────────────────────────────────┐
│ 1. MAP & ISOLATE (AST Boundary Definition)             │
│    Document I/O contracts in `migration_plan.md`       │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 2. SHADOW HARNESS IMPLEMENTATION                       │
│    Run legacy and new code in parallel; log diffs      │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 3. SIDE-BY-SIDE REFACTORING (Function-by-Function)     │
│    Maintain old file while building typed modern clone │
└───────────────────────────┬────────────────────────────┘
                            │
                            ▼
┌────────────────────────────────────────────────────────┐
│ 4. TRAFFIC CUTOVER & CLEANUP                           │
│    100% parity verified ──► Deprecate legacy file      │
└────────────────────────────────────────────────────────┘

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago Changed e0fb61ca2352
  2. 7d ago Changed · +1 lines e5cd60b0bf38
  3. 10d ago Changed · +76 lines b39b4a45aa8f
  4. 19d ago Changed ed9a457f6dcb
  5. 24d ago Changed 20dfdb132f27
  6. 25d ago Changed d6c0910681e1
  7. 27d ago Changed · -6 lines · +31 tokens per session 8743989125ed
  8. 29d ago Changed · +6 lines · -31 tokens per session b66ac5ed2bed
  9. 1mo ago Changed 84a66f397974
  10. 1mo ago First seen · 72 lines · 42 tokens per session scan A 7a59b954ddd5

Subscribe to this mod's changes

legacy-code-translator is a skill published in the GitHub repository roedyrustam/vibes-plug (115 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 2,047 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.