code-migrate

code-migrate is a command for Claude Code from rohitg00/awesome-claude-code-toolkit. It costs 19 tokens per session (355 once invoked), scanned A, original, Apache-2.0.

A command for moving code from one framework version, library, or programming pattern to another. It identifies affected code, applies the needed changes, and runs tests during the migration.

In plain words
What is it for?
Use it for framework upgrades, library replacements, and changes such as class components to hooks or callbacks to async/await. It also updates configuration, dependencies, and type definitions when needed.
Why use it?
It helps manage breaking changes, such as removed APIs, changed imports, and deprecated patterns, without relying on a file-by-file search alone.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the migrate-tool plugin — 2 commands shipped together

Good fit Use it for framework upgrades, library replacements, and changes such as class components to hooks or callbacks to async/await. It also updates configuration, dependencies, and type definitions when needed.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/rohitg00/awesome-claude-code-toolkit/code-migrate
About the project

Awesome Claude Code Toolkit is a curated collection of extensions and configuration for Claude Code, including agents, skills, commands, plugins, hooks, rules, templates, MCP configurations, and companion apps. It is for Claude Code users who want ready-made workflows and integrations for different development tasks. The catalogue add-ons are selected components from this toolkit.

rohitg00/awesome-claude-code-toolkit · 2,598 stars · on GitHub

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.

Clone the repo
git clone --depth 1 https://github.com/rohitg00/awesome-claude-code-toolkit

Made for: Claude Code.

Or install migrate-tool, the plugin that ships this one along with the rest of its 2 commands.

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-migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/code-migrate/github.svg)](https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/code-migrate)
Your own site
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/code-migrate"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/code-migrate/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 code-migrate

Your own site · 80×15
<a href="https://agentmods.dev/commands/rohitg00/awesome-claude-code-toolkit/code-migrate"><img src="https://agentmods.dev/badge/commands/rohitg00/awesome-claude-code-toolkit/code-migrate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 355 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.
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.00019 $0.00355
Opus 5 $0.00010 $0.00178
Sonnet 5 $0.00004 $0.00071
Haiku 4.5 $0.00002 $0.00036

Measured 5d ago against content hash 4a74c3a8c762, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

code-migrate 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 5d 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.

plugins/migrate-tool/commands/code-migrate.md · 51 lines

What it actually says

Migrate code from one framework version, library, or pattern to another.

Steps

  1. Identify the migration scope:
    • Framework upgrade (React 17 to 18, Next.js 13 to 14, Django 4 to 5).
    • Library replacement (Moment to Day.js, Express to Fastify).
    • Pattern change (class components to hooks, callbacks to async/await).
  2. Research breaking changes and migration guides for the target version.
  3. Scan the codebase for affected patterns:
    • Deprecated API usage.
    • Changed import paths.
    • Removed features needing alternatives.
  4. Generate a migration plan with ordered steps.
  5. Apply changes file by file:
    • Update imports and require statements.
    • Refactor deprecated patterns to new equivalents.
    • Update configuration files.
    • Update type definitions if applicable.
  6. Update package.json or equivalent with new versions.
  7. Run tests after each major change to catch regressions early.

Format

Migration: <from> -> <to>
Files affected: <N>

Changes:
  - <pattern>: <N> occurrences updated
  - <import>: <N> files updated

Breaking changes handled:
  - <change>: <how it was resolved>

Verification: tests <pass/fail>

Rules

  • Apply changes incrementally, not all at once.
  • Run tests after each change category to isolate regressions.
  • Keep a log of all changes for review.
  • Do not upgrade transitive dependencies without testing compatibility.
  • Preserve existing functionality; migration should be behavior-preserving.
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. 5d ago First seen · 51 lines · 19 tokens per session scan A 4a74c3a8c762

Subscribe to this mod's changes

code-migrate is a command published in the GitHub repository rohitg00/awesome-claude-code-toolkit (2,598 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 19 tokens to every session and 355 once invoked, about $0.0001 per session on Opus 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.