Official agent skill

Code Migration

by anthropics in anthropics/code-migration-kit-with-claude-code

Run a large-scale language migration with the six-step process: create the map and the rules, stress-test the rules, translate everything, compile, run it, match behavior.

OfficialCustom licenceAuto-check passedDevelopment

Install Code Migration

skills CLI
$ npx skills add anthropics/code-migration-kit-with-claude-code --skill code-migration -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install anthropics/code-migration-kit-with-claude-code code-migration --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/anthropics/code-migration-kit-with-claude-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skill .claude/skills/code-migration && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-migration
GitHub stars
742
Token cost
~983 tokens
SKILL.md length
477 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Custom licence

At a glance

Run a large-scale language migration with the six-step process: create the map and the rules, stress-test the rules, translate everything, compile, run it, match behavior.

  • Works in 5 steps: Feasibility and judge signed off, no… → Step 1 signed off: confirm the HUMAN has… → Stress test signed off: confirm… → …
  • The user wants to migrate
  • SKILL.md covers Routing and Constant behaviors
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Code Migration is an agent skill from anthropics/code-migration-kit-with-claude-code, published by the product's own GitHub organization. Run a large-scale language migration with the six-step process: create the map and the rules, stress-test the rules, translate everything, compile, run it, match behavior. Use when the user wants to migrate, port, or rewrite a codebase from one language to another ("migrate this to Rust", "port our Python CLI to TypeScript", "should we rewrite this in Go?"), or asks for a migration feasibility assessment. Not for incremental JS→TS adoption — that needs no machinery — or single-file conversions.

Its SKILL.md is about 980 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code migrations, Load testing and Document parsing. It works with Python, Rust and TypeScript. The repository describes itself as: Prompts, templates, and scripts for running large-scale language migrations with Claude Code.

When your agent uses it

  • The user wants to migrate
  • Rewrite a codebase from one language to another (migrate this to Rust
  • Port our Python CLI to TypeScript
  • Should we rewrite this in Go?)

Example prompts

  • “migrate this to Rust”
  • “port our Python CLI to TypeScript”
  • “should we rewrite this in Go?”
  • “/code-migration”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Feasibility and judge signed off, no map/rules: run Step 1 — adapt a
  2. Step 1 signed off: confirm the HUMAN has installed
  3. Stress test signed off: confirm migration/manifest.tsv exists
  4. Translation queue empty: Step 4 via prompts/05-survey-build.md
  5. Step 6 done-gate passed (both counts documented — README Step 6): run

What it can do on your machine

Read from SKILL.md and the folder at commit cf91c9d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Migration loads about 983 tokens when it runs. Until then it costs about 129 tokens; SKILL.md has 477 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~129
When it runs · the whole SKILL.md, loaded when a task matches
~983

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 477 words (~983 tokens).

“You are orchestrating a language migration using the Claude Code Migration Kit. [kit path]/README.md defines the process; [kit path]/CLAUDE.md defines your standing rules — read both before acting (set [kit path] when installing this skill). The standing rules override convenience…”

— opening of SKILL.md by anthropics, Custom licence
name
code-migration

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skill of anthropics/code-migration-kit-with-claude-code.

Open the folder on GitHubat commit cf91c9d

Compare with similar skills

Code Migration next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Migration this skillanthropics/code-migration-kit-with-claude-code742—~983Automated safety check: PassCustom licence
jscpd Code Migration Trackerkucherenko/jscpd6.3k—~5kAutomated safety check: PassMIT
RustPython Stdlib UpgradeRustPython/RustPython22k—~876Automated safety check: PassMIT
Cross-Language Coding Standardszereight/gitlab-mcp2k1 repos~1.4kAutomated safety check: PassMIT
Dbgtheodo-group/debug-that158—~1.9kAutomated safety check: PassMIT
Coding Agentmastra-ai/mastra29k—~2.3kAutomated safety check: PassCustom licence

Similar skills

  • Measures a code port between languages or frameworks with jscpd's function-level comparison, porting tests before code and tracking what is left unmatched.

    6.3k GitHub stars~5k tokensUpdated today
    DevelopmentAuto-check passed
  • RustPython Stdlib Upgrade

    RustPython/RustPython

    Upgrades a Python standard library module from CPython into RustPython with update_lib, then triages and marks the tests that still fail.

    22k GitHub stars~876 tokensUpdated today
    DevelopmentAuto-check passed
  • Shared reference for naming, function size, complexity and error handling rules that reviewer agents apply across TypeScript, Python, Go, Rust, Java, C# and Swift.

    2k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~1.9k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Coding Agent

    mastra-ai/mastra

    Authoring playbook for building agents that write, edit, review, or refactor code.

    29k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Strict Programming Practices

    code-yeongyu/oh-my-openagent

    Applies strict, type-first coding rules for Python, Rust, TypeScript and Go, loading the matching language reference before the agent writes or edits any code.

    70k GitHub stars~9.5k tokensUpdated today
    DevelopmentAuto-check passed

Categories

Questions about Code Migration

What does Code Migration do?

Run a large-scale language migration with the six-step process: create the map and the rules, stress-test the rules, translate everything, compile, run it, match behavior. Code Migration is an agent skill from anthropics/code-migration-kit-with-claude-code, published by the product's own GitHub organization. Run a large-scale language migration with the six-step process: create the map and the rules, stress-test the rules, translate everything, compile, run it, match behavior.

When should I use Code Migration?

Code Migration fits situations like: the user wants to migrate; rewrite a codebase from one language to another (migrate this to Rust; port our Python CLI to TypeScript; should we rewrite this in Go?).

How do I install Code Migration in Claude Code?

Run `npx skills add anthropics/code-migration-kit-with-claude-code --skill code-migration -a claude-code`. Or copy the skill folder (skill in anthropics/code-migration-kit-with-claude-code) into .claude/skills/code-migration in your project. Claude Code loads it when a task matches its description.

How do I install Code Migration in Codex?

Run `npx skills add anthropics/code-migration-kit-with-claude-code --skill code-migration -a codex`. Or copy the skill folder (skill in anthropics/code-migration-kit-with-claude-code) into .agents/skills/code-migration in your project. Codex loads it when a task matches its description.

Can I use Code Migration in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add anthropics/code-migration-kit-with-claude-code --skill code-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-migration, .gemini/skills/code-migration, .github/skills/code-migration and .opencode/skills/code-migration in your project.

What does Code Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Migration is instructions for the agent only. Our summary lists: Python 3.

Does Code Migration access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Migration safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Migration use?

Code Migration has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Code Migration use?

About 983 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Migration?

Skills that share tags, products or a category with Code Migration: jscpd Code Migration Tracker (kucherenko/jscpd, 6.3k stars), RustPython Stdlib Upgrade (RustPython/RustPython, 22k stars), Cross-Language Coding Standards (zereight/gitlab-mcp, 2k stars) and Dbg (theodo-group/debug-that, 158 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Migration?

anthropics (a GitHub organization, an official publisher) maintains it in anthropics/code-migration-kit-with-claude-code, which has 742 GitHub stars. The repository was last updated on July 8, 2026.

Source: anthropics/code-migration-kit-with-claude-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.