milad-ahmd/agent-skills/migration-wizard
Claude Code and agent skill by milad-ahmd/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Plans and executes large codebase migrations incrementally and safely, such as JavaScript→TypeScript, Jest→Vitest, Next.js Pages→App Router, Vue 2→3, React class→hooks, CommonJS→ESM, or any framework or major-version upgrade, verifying each step with build and tests. Use when the user asks to migrate, convert, upgrade, or port a codebase or module.
Install
npx vskill@latest install milad-ahmd/agent-skills/migration-wizardSKILL.md
The same SKILL.md was published earlier as milad-ahmd/agent-skills/migration-wizard.
Migration Wizard
Big migrations fail when they're done as one giant PR. This skill migrates in small, verified steps.
1. Assess (read-only)
- Identify the from → to versions and find the official migration guide and codemods for them.
- Measure the scope by counting the affected files and APIs with search (
git grep -l "<old api>" | wc -l). - Make sure a safety net exists: the build, the type-check, the tests and CI. If there are no tests around critical paths, recommend adding characterization tests first (see the
test-gap-hunterskill). - Find blockers: dependencies that are incompatible with the target, custom build config, and monkey-patches.
2. Plan
Present a phased plan and wait for confirmation:
3. Execute
- Codemods first (official tools such as
@next/codemod,ts-migrate,vue-codemod,jscodeshift), then fix the rest by hand. - Order the work leaves first: modules with no internal dependents, then up the dependency graph.
- After every batch: build, type-check, lint and test. Stop at the first failure and fix it before continuing.
- One commit per phase or batch with a clear message, so each step is easy to review and revert.
- Keep old and new running side by side when possible (for example
allowJs, or both test runners) so the app stays shippable.
Recipe notes
- JS→TS: enable
allowJsandcheckJs: false, rename files leaves-first, and avoidany. Useunknownplus narrowing, and add// TODO(ts):where real types are needed later. Turn onstrictper directory at the end. - Pages→App Router: migrate route by route. Convert
getServerSideProps/getStaticPropsto server components andfetchcaching, and add"use client"only where hooks or events are needed. - CommonJS→ESM: set
"type": "module", add file extensions in relative imports, replace__dirnamewithimport.meta.url, and use dynamicimport()for conditional requires.
Rules
- Never change behaviour during a migration. Refactors go in separate commits.
- Don't delete the old setup until the new one passes everything in CI.
- At the end, report the files migrated, what was left behind and why, and the follow-up TODOs.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/migration-wizard/SKILL.md
Popularity
- Repository stars
- 5
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/milad-ahmd/agent-skills/migration-wizard)