Upgrade a framework across a monorepo, one package at a time
The agent reads the migration guide, upgrades packages in dependency order, runs tests after each step, and leaves a reviewable commit per package.
- Agent
- Claude Code
- Difficulty
- Advanced
- Setup time
- About 15 min to set up
- Published
How it works
Give the agent the target version and the official migration guide.
It maps the dependency order of packages in the repo.
It upgrades one package, runs its tests, and commits.
It reports anything it could not migrate automatically.
The prompt
Replace anything in [brackets] with your own details.
Upgrade this monorepo from React Router 6 to 7 using the official migration guide. Work package by package in dependency order. After each package: run its type check and tests, fix failures, and commit with a message that lists what changed. If a change needs a product decision, stop and write it to MIGRATION_NOTES.md instead of guessing.Reported result
A planned two-sprint migration done in three days.
As reported by the source. Results depend on your setup and data.