migration-wizard
Skill5 starsChanged 15 days agoMITView on GitHub
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.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- milad-ahmd/migration-wizardword for word, first seen Nov 8, 2026
- bobmatnyc/claude-mpmtheir own version, first seen May 22, 2026
Other versions2 projects use a version of this.
Word for word · 1
- milad-ahmd/migration-wizard★ 0100% same
Edited · 0
None found.
Wrote their own version · 1
- bobmatnyc/claude-mpm★ 149same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- docs/llms.txtllms.txt
- a11y-fixerSkill
- ad-copy-generatorSkill
- agent-guardrailsSkill
- agent-memory-keeperSkill
- ai-slop-detectorSkill
- api-to-sdkSkill
- app-store-optimizerSkill
- architecture-doctorSkill
- brand-voice-guideSkill
- bug-detectiveSkill
- changelog-from-gitSkill
- codebase-explainerSkill
- codebase-time-machineSkill
- commit-craftSkill
- competitor-spySkill
- content-repurposerSkill
- cost-cutterSkill
- demo-recorderSkill
- dependency-doctorSkill
- dockerize-anythingSkill
- durable-agent-workflowsSkill
- e2e-flow-testerSkill
- email-campaign-writerSkill
- env-secrets-guardSkill
- gh-actions-auditorSkill
- hook-generatorSkill
- incident-commanderSkill
- influencer-outreachSkill
- instagram-growth-managerSkill
- landing-page-roasterSkill
- launch-post-writerSkill
- meeting-notes-to-ticketsSkill
- merge-conflict-resolverSkill
- plan-grillerSkill
- prompt-injection-scannerSkill
- pr-reviewer-proSkill
- readme-glow-upSkill
- roast-my-githubSkill
- screenshot-to-componentSkill
- seo-blog-writerSkill
- skill-creator-proSkill
- skill-finderSkill
- skills-doctorSkill
- social-analytics-reporterSkill
- social-media-calendarSkill
- social-media-managerSkill
- sql-optimizerSkill
- startup-idea-validatorSkill
- tdd-loopSkill
- terse-modeSkill
- test-gap-hunterSkill
- tiktok-viral-creatorSkill
- ui-tasteSkill
- youtube-script-writerSkill
- youtube-seo-optimizerSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Make sure a safety net exists: the build, the type-check, the tests and CI.
- Distinctive: line 36
After every batch: build, type-check, lint and test.
- Very specific: line 38
Keep old and new running side by side when possible (for example allowJs, or both test runners) so the app stays shippable.
- Distinctive: line 48
Never change behaviour during a migration.
- Distinctive: line 49
Don't delete the old setup until the new one passes everything in CI.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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:
## Migration plan: Jest → Vitest (142 test files)
Phase 0: Prep: add vitest, config, keep jest running in parallel
Phase 1: Run official codemod / mechanical changes (jest.fn → vi.fn)
Phase 2: Migrate leaf modules (utils, no mocks) — 60 files
Phase 3: Modules with module mocks / timers — 70 files
Phase 4: Special cases (snapshots, custom env) — 12 files
Phase 5: Remove jest, update CI & docs
Rollback: each phase is a separate commit; revert phase N without affecting N-13. 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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

