
Legacy Migration Planner
FreePlan legacy system migrations with evidence-based strategies.
Free · Opens the source repo
What Legacy Migration Planner does
The Legacy Migration Planner is designed for senior migration architects tasked with developing comprehensive migration plans for legacy systems. This skill focuses on producing detailed, evidence-based strategies using the Strangler Fig pattern, which allows for incremental migration of monolithic applications to modern architectures such as microservices. It is particularly useful for those involved in codebase modernization, framework upgrades, and cross-language rewrites.
The workflow is structured into two mandatory phases: Research and Plan. During the Research phase, the skill requires a deep analysis of the existing codebase, mapping of bounded contexts, and thorough research of both current and target technology stacks. This ensures that all recommendations are grounded in the specific context of the user's project, citing exact codebase references for clarity. The Plan phase then takes the insights gathered during Research to create actionable migration plans, outlining steps, risks, and success metrics for each domain.
This skill is particularly suited for developers and teams looking to modernize their applications without disrupting existing operations. By following a structured approach, it minimizes risks associated with migration and ensures that every step is backed by evidence and thorough analysis. It also provides a clear roadmap for implementation, making it easier for teams to execute the migration effectively.
However, it is important to note that this skill does not implement the migration itself; it solely focuses on planning. Therefore, users should be prepared to have developers or other agents execute the plans generated. Additionally, this skill is not suitable for domain analysis, component sizing, or detailed decomposition plans, which require different tools or skills.
When to use it
Use this skill when you need to develop a migration plan for legacy systems, particularly when transitioning to microservices or modern frameworks.
When not to use it
Avoid using this skill for domain analysis, component sizing, or detailed step-by-step decomposition plans, as it is focused solely on planning migrations.
What you can build with it
Planning a Monolith to Microservices Migration
Use this skill to develop a structured migration plan that outlines the steps needed to transition from a monolithic architecture to microservices.
Upgrading Legacy Frameworks
When upgrading outdated frameworks, this skill helps create a roadmap that details the necessary changes and testing strategies.
Cross-Language Rewrites
For projects requiring a rewrite in a different programming language, this skill provides a comprehensive plan that addresses risks and dependencies.
How to install Legacy Migration Planner
View source1. Install with the skills CLI
npx skills add tech-leads-club/agent-skills/legacy-migration-planner --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by tech-leads-clubLegacy 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-domain migration plan
├── 02-domain-{name}.md
└── ...
Reference Guide
Load references based on the current phase and need. Do not preload all references.
| Topic | Reference | Load When |
|---|---|---|
| Research methodology | references/research-phase.md | Starting RESEARCH phase |
| Plan methodology | references/plan-phase.md | Starting PLAN phase |
| Strangler Fig patterns | references/strangler-fig-patterns.md | Choosing migration pattern, designing seams |
| Assessment and risks | references/assessment-framework.md | Mapping dependencies, scoring risks, identifying domains |
| Testing strategies | references/testing-safety-nets.md | Designing safety nets for each domain |
| Stack-specific patterns | references/frontend-backend-strategies.md | Frontend or backend migration specifics |
Constraints
MUST DO
- Research every technology recommendation via web search before including it
- Use context7 for library documentation when available
- Cite
file:linefor every codebase observation - Ask the user when encountering unknown terms, acronyms, or ambiguous requirements
- Produce one output file per domain to keep context manageable
- Include rollback strategy for every migration step
- Validate that current stack versions match what is actually in the codebase (package.json, requirements.txt, etc.)
MUST NOT DO
- Guess the meaning of acronyms, internal terms, or business logic
- Recommend technologies without web search verification
- Write implementation code (this skill produces plans, not code)
- Assume migration direction without evidence from RESEARCH
- Skip the RESEARCH phase or combine it with PLAN
- Reference files or lines that were not actually read
- Include unreferenced claims in any output file
Frequently asked questions about Legacy Migration Planner
Similar skills
React Composition Patterns
Streamline your React component architecture with proven patterns.
Pester Should Migration
Easily convert Pester v5 assertions to v6 syntax.
Radix to Base UI Migration
Seamlessly migrate React components from Radix UI to Base UI.
Migrate Next.js to Vinext
Seamlessly transition your Next.js projects to Vinext.
WinUI 3 Migration Guide
Streamline your UWP to WinUI 3 migration process.
Refactor
Enhance code maintainability without altering behavior.
