code-migrator

code-migrator is a skill for Claude Code, Codex from glincker/claude-code-marketplace. It costs 23 tokens per session (3,303 once invoked), scanned A, original, Apache-2.0.

A tool for updating older code to newer languages, frameworks, or design patterns. It supports migrations such as Python 2 to Python 3, JavaScript to TypeScript, Vue 2 to Vue 3, and monoliths to microservices.

In plain words
What is it for?
Use it to modernize language syntax, upgrade frameworks, convert architectural patterns, resolve related dependencies, generate tests, and assess migration risks.
Why use it?
It helps reduce the manual work involved in changing a legacy codebase while addressing dependencies, tests, and migration risks.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/glincker/claude-code-marketplace/code-migrator
Any agent
npx skills add glincker/claude-code-marketplace --skill code-migrator
Clone the repo
git clone --depth 1 https://github.com/glincker/claude-code-marketplace

Made for: Claude Code, Codex.

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 code-migrator

README.md
[![agentmods](https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/code-migrator.svg)](https://agentmods.dev/skills/glincker/claude-code-marketplace/code-migrator)
Your own site
<a href="https://agentmods.dev/skills/glincker/claude-code-marketplace/code-migrator"><img src="https://agentmods.dev/badge/skills/glincker/claude-code-marketplace/code-migrator.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,303 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00023 $0.03303
Opus 5 $0.00012 $0.01651
Sonnet 5 $0.00005 $0.00661
Haiku 4.5 $0.00002 $0.00330

Measured 3d ago against content hash 412b8989605a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

code-migrator scanned grade A with 1 finding 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. urllib → urllib.request (34 occurrences)
skills/development/code-migrator/SKILL.md · 535 lines

How it starts

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

Code Migrator

⚡ UNIQUE FEATURE: Automated legacy code modernization with AI-powered migration paths, dependency resolution, test generation, and risk analysis. Migrate between languages, frameworks, or architectural patterns with confidence.

What This Skill Does

Intelligently migrates codebases with minimal manual intervention:

Language Migrations

  • Python 2 → Python 3: Syntax, imports, unicode handling
  • JavaScript → TypeScript: Type inference and definitions
  • Java 8 → Java 17+: Modern language features
  • Angular.js → React/Vue: Complete framework migration
  • PHP 5 → PHP 8: Modernize deprecated features
  • Ruby 2 → Ruby 3: Update syntax and gems

Framework Upgrades

  • React Class → Hooks: Convert class components
  • Vue 2 → Vue 3: Composition API migration
  • Django 2 → Django 4: Settings and ORM updates
  • Rails 5 → Rails 7: Modern Rails patterns
  • Express 4 → Express 5: Route handlers, middleware

Architectural Migrations

  • Monolith → Microservices: Service extraction
  • REST → GraphQL: API transformation
  • Callback Hell → Async/Await: Promise modernization
  • MVC → Component-Based: Architecture refactoring

Why This Is Revolutionary

First migration skill with:

  • AI-powered analysis: Understands code context and intent
  • Risk assessment: Identifies high-risk changes
  • Incremental migration: Migrate module by module
  • Automated testing: Generates tests to verify migration
  • Rollback support: Safe migration with undo capability
  • Dependency resolution: Automatically updates imports and packages
  • Pattern recognition: Identifies and modernizes anti-patterns

Instructions

Phase 1: Migration Discovery & Analysis

  1. Identify Migration Type:

    Ask user:
    - What are you migrating FROM?
    - What are you migrating TO?
    - Full codebase or specific modules?
    - Any constraints or requirements?
    
  2. Analyze Current State:

    # Discover project structure
    Use Glob to find all source files
    Use Grep to identify:
    - Framework versions
    - Import patterns
    - Deprecated APIs
    - Code smells
    

Read the full file on GitHub · 535 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3d ago First seen · 535 lines · 23 tokens per session scan A 412b8989605a

Subscribe to this mod's changes

code-migrator is a skill published in the GitHub repository glincker/claude-code-marketplace (36 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 23 tokens to every session and 3,303 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

ghost

Expert in modernizing legacy assets and refactoring older systems for modern missions. Strangler fig pattern, incremental migration, and tech debt elimination.

Rikinshah787/clawarmy · 30 tokens

migrate-rename

Evolutionary file renaming with wrapper files. Enables renames without hard breaks — references are organically updated through usage.

ellmos-ai/skills · 28 tokens

Language Version Migrator

Ports a codebase across a breaking language or runtime version with compatibility shims, batched automated transforms, dual-runtime CI, and old-vs-new output diffing, ending in a flag-flip cutover with a rollback rule. Use when someone says "migrate us from Python 2 to 3", "we're jumping Node majors", "move to the…

SkillMedev/legacy-modernization · 169 tokens

Monolith Decomposer

Finds and validates one bounded-context seam to extract from a monolith - gated on coupling-graph, co-change, data-ownership, and transaction-boundary evidence - and sequences an incremental strangler-fig extraction plan. Use when someone asks "where should we cut this monolith", "is this module ready to extract as a…

SkillMedev/legacy-modernization · 151 tokens

Dependency Risk Audit

Audits third-party dependencies for exploitable CVEs, abandonment, license exposure, and supply-chain hygiene, and delivers a ranked findings report with a remediation order. Use when someone asks "is this package safe to add", "audit our dependencies", "npm audit is screaming, what actually matters", "can we use this…

SkillMedev/legacy-modernization · 150 tokens

TDD Expert

Drive development with strict Red-Green-Refactor discipline - write one failing test, write the minimum code to pass it, refactor on green - including test-list planning and a worked kata cycle. Use when someone asks "write this test-first", "do TDD on this feature", "help me practice red-green-refactor", "write a…

SkillMedev/legacy-modernization · 129 tokens