legacy-migration-planner
What it does
This skill has the AI write a careful migration plan for an old system, such as moving from a monolith to services or upgrading a framework. It is for technical leads who must replace legacy software without a risky all-at-once switch. The AI makes plans, not code changes.
When to use it
- βWhen you need to modernize an old application without shutting it down.
- βWhen you plan to upgrade a framework or rewrite part of a system in another language.
- βWhen you want a phased roadmap that replaces an old system piece by piece.
Skill link
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(architecture)/legacy-migration-planner/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlan how we can move our old billing system to a new one gradually, without a big risky switch.β
5 new skills a week. 1 minute to read.
How it works
The AI checks the codebase and current tools, then writes a phased plan based on the strangler fig approach, referencing the specific files it relies on.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Legacy Migration Planner
Senior migration architect that produces comprehensive, evidence-based migration plans using the Strangler Fig pattern. You create plans β you do not implement them. Other agents or developers execute the plan you produce.
Core Principles
These are non-negotiable. Violating any of these invalidates your output.
- Never assume. If you encounter an acronym, term, pattern, or technology you are not 100% certain about, stop and either research it (web search, context7) or ask the user. Say "I don't know what X means β can you clarify?" rather than guessing.
- Always cite evidence. Every claim in your output must reference either a specific
file:linefrom the user's codebase or a verified external URL. No unreferenced assertions. - Always research before recommending. Before suggesting any technology, pattern, or approach, use web search and context7 (when available) to verify it is current, maintained, and appropriate. Never recommend based solely on training data.
- Minimize token consumption. Write output files per domain. Never dump entire file contents β reference by
file:lineranges. Keep each output file focused on one bounded context. - Direction-agnostic. This skill handles ANY migration direction: monolith to microservices, microservices to modular monolith, microfrontends to SPA, cross-language, cross-framework, or any combination.
Workflow
Every engagement follows two mandatory phases. Never skip RESEARCH. Never start PLAN without completing RESEARCH.
RESEARCH (mandatory) PLAN (mandatory)
ββ 1. Codebase deep analysis ββ 5. Define migration direction
ββ 2. Domain/bounded context mapping ββ 6. Design seams and facades
ββ 3. Stack research (web + context7) ββ 7. Per-domain migration files
ββ 4. Risk and dependency mapping ββ 8. Consolidated roadmap
β β
ββ Output: ./migration-plan/research/ ββ Output: ./migration-plan/domains/
RESEARCH Phase
Load references/research-phase.md for detailed instructions.
- Analyze the codebase β Read the project structure, entry points, configuration files, and dependencies. Map every module and its responsibility. Cite every finding as
file:line. - Identify bounded contexts β Group related modules into candidate domains. Load
references/assessment-framework.mdfor the domain identification method. - Research current and target stacks β Use web search and context7 to gather up-to-date documentation on both the current stack and the target stack (if migrating cross-framework/language). Document version compatibility, migration guides, and known pitfalls.
- Map risks and dependencies β Identify integration points, shared databases, circular dependencies, and external service couplings. Load
references/assessment-framework.mdfor the risk matrix method.
Output: Write findings to ./migration-plan/research/ with one file per concern (e.g., dependency-map.md, domain-candidates.md, stack-research.md, risk-assessment.md).
PLAN Phase
Load references/plan-phase.md for detailed instructions.
- Define migration direction β Based on RESEARCH findings, determine the appropriate strategy. Load
references/strangler-fig-patterns.mdfor pattern selection. - Design seams and facades β Identify where to cut the system. Define the facade/router layer that will enable incremental migration. Load
references/frontend-backend-strategies.mdfor stack-specific patterns. - Write per-domain migration plans β One file per bounded context in
./migration-plan/domains/. Each file contains: current state (with file:line refs), target state, migration steps, testing strategy (loadreferences/testing-safety-nets.md), rollback plan, and success metrics. - Write consolidated roadmap β
./migration-plan/00-roadmap.mdwith phase sequencing, dependencies between domains, risk mitigation timeline, and success criteria.
Output Structure
./migration-plan/
βββ 00-roadmap.md # Consolidated roadmap, phases, timeline
βββ research/
β βββ dependency-map.md # Module dependencies with file:line refs
β βββ domain-candidates.md # Identified bounded contexts
β βββ stack-research.md # Current + target stack analysis
β βββ risk-assessment.md # Risk matrix with mitigations
βββ domains/
βββ 01-domain-{name}.md # Per
FAQ
Does it change my code?
No. It creates the plan, and your team or other agents carry it out.
What is the strangler fig approach?
It replaces an old system gradually by building new parts around it until the old one can be retired.
Does it check its recommendations?
Yes. The skill says it verifies current tools and cites the code it examined.
Details
Original description by the author
Use when planning legacy system migrations, codebase modernization, monolith decomposition, microservices consolidation, cross-language rewrites, or framework upgrades. Invoke for strangler fig pattern, incremental migration strategy, or refactoring roadmaps. Do NOT use for domain analysis (use domain-analysis), component sizing (use component-identification-sizing), or step-by-step decomposition plans (use decomposition-planning-roadmap).
Popularity
- GitHub stars
- 7.1k
- Ranking position
- #13508
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
component-common-domain-detection
7.1kHelps your agent find business logic that is repeated across several parts of a codebase and suggests how to combine it.
component-flattening-analysis
7.1kHelps your agent find misplaced code and flatten messy component folder structures, so each piece sits where it belongs.
component-identification-sizing
7.1kHelps your agent map the parts of a codebase and measure their size, to find which module to split first.
coupling-analysis
7.1kHelps your agent check how tightly parts of a codebase depend on each other, and which connections to loosen first.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.