/code-migrate
Migrate code from one framework version, library, or pattern to another.
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/code-migrate
Context preview
What this command does when you run it.
Migrate code from one framework version, library, or pattern to another.
Command definition
code-migrate.mdname: code-migrate
description: Migrate code from one framework version, library, or pattern to another.
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.
Read more
name: code-migrate description: Migrate code from one framework version, library, or pattern to another.
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.
The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.
Repo: rohitg00/awesome-claude-code-toolkit
Other commands on rohitg00-claude-code-toolkit.
- /adr
Write an Architecture Decision Record documenting a significant technical decision.
Open command - /design-review
Conduct a structured design review of a module, feature, or system component.
Open command - /diagram
Generate Mermaid diagrams from codebase analysis or description.
Open command - /migrate
Plan and execute a framework or library migration incrementally.
Open command - /plan
Create a structured implementation plan for the requested feature or change.
Open command - /refactor
Perform a systematic refactoring of the specified code area.
Open command

