Use Claude Code to plan and run a legacy stack migration
An engineer used Claude Code to map, split, and execute a multi-repo migration while keeping each step tied to docs, tickets, and review.
- What they did
- The engineer prepared layered CLAUDE.md files, then gave Claude Code the old repos, read-only access to MySQL and PostgreSQL, and a reference build. Claude first drafted the migration design, while separate reviewer agents checked it from different angles. After that, it created 19 Jira tickets, each with its own design and plan, and worked through them one at a time in separate git worktrees with CI watched in a loop.
- How it went
- In about 15 work days, the effort produced around 50 tickets and 580 passing tests. The end state had more than 95% API coverage and no bugs or security issues at QA handoff. AI review found only about 30% to 40% of the problems, and the Jira MCP could not connect tickets together.
- Tips
- This setup depends on strong context files and very careful human review of each design before execution. Watch for tooling limits: the Confluence MCP silently cut off pages above roughly 5KB and overwrote two large docs, and the Bedrock token bill came to close to $5,000.
Try it yourself with Claude Code
I want help migrating [legacy product] from [current architecture] to [target architecture]. First, read the repos and produce a phased migration plan with risks, dependencies, and test strategy. Then help me break the work into tickets, one phase at a time. For each ticket, draft a short design and execution plan, then stop and ask for my approval before you change code, run any irreversible step, merge anything, or touch any live data. Work from [reference implementation or constraints] and keep me updated on tests, CI status, and anything that could block the migration.
Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.
Get 3 agent uses like this every morning
With the day's top AI news. Free, and one click to unsubscribe.
Related agent uses
Review a pull request with staged sub-agents
Use parallel checks and a validation pass to review a branch or PR before you decide what to fix.
Test an iOS app and collect bugs automatically
Use Claude Code to drive an iOS app through its accessibility tree, visit screens, and return a structured bug report.
Try a local search layer for code lookup
ColGrep-Agent-2B runs locally and helps Claude Code sift search hits and open files to find code with less effort.
Set up Claude Code to manage Tangled issues
They built a Tangled MCP server so Claude Code could check branches and handle issues for repos in owner/repo form.
Monitor account caps and move chats across tools
teivz built a local app that watches Codex and Claude Code account usage and shifts a chat to another account when one reaches its cap.
Move WordPress posts into MDX files
Pauline used Claude Code to pull a WordPress archive into MDX and sort it into year folders.