# Migrate legacy

> Migrate legacy is an open-source agent skill for developer tools. Guides an agent through a gated, phased upgrade of legacy .NET applications. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/phmatray/tagout/tree/main/plugins/tagout-migrate/skills/migrate-legacy
- **Repository:** https://github.com/phmatray/tagout
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** migrate-legacy
- **Collection:** https://github.com/phmatray/tagout
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through a seven-phase pipeline for upgrading a legacy application, running from read-only assessment through baseline builds, retargeting, remediation, optional modernization, verification and production delivery. Each phase ends in a gate that must pass before the next one starts, and the agent is told to stop rather than push past a failing gate.

All C# analysis and code changes are routed through the RoselineMCP Roslyn server, with mutations previewed before they are applied. The workflow asks for a migration branch, commits at each green gate, and produces a migration folder with an assessment, baseline, report and JSON data. It also includes resume logic for interrupted runs and a verdict that can stop the pipeline when the target is already modern.

The skill expects a .NET SDK 8 or newer, git, python3 and the RoselineMCP server. Context7, the GitHub CLI, Node and headless Chrome are listed as recommended tools. It is distributed as part of a Claude Code plugin marketplace.

## When your agent uses it

> Use when upgrading, migrating, or modernizing a legacy application — outdated target framework, out-of-support runtime, obsolete APIs, old packages, or legacy idioms. Triggers on "upgrade this app", "migrate to .NET 10", "modernize this codebase", "this project targets an old framework", « mets à niveau cette app », « migre vers .NET 10 », « modernise ce code legacy », /migrate, /migrate-assess, /migrate-verify. Drives a seven-phase, gate-verified pipeline (assessment → verified production) in which RoselineMCP performs all C# analysis and transformation.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout-migrate/skills/migrate-legacy)
- [License: MIT](https://github.com/phmatray/tagout/tree/HEAD/plugins/tagout-migrate/skills/migrate-legacy)

## Features

- **Gated phase pipeline:** Runs assessment, baseline, retarget, remediation, modernization, verification and delivery in order, halting at any red gate.
- **Roslyn-backed C# changes:** Routes all C# diagnostics and edits through the RoselineMCP server, with previews before mutations.
- **Migration artifacts:** Writes assessment, baseline and report files under a migration folder, with gate commits on a dedicated branch.
- **Resume after interruption:** Detects an in-progress migration from its folder and commits and re-enters at the next phase.
- **Remediation convergence check:** Stops remediation loops when two passes fail to reduce the error count and records the blockage.
- **Production delivery checks:** Covers CI, GitHub Pages deployment and verification of a deployed route with a screenshot.

## Good for

- Upgrade an old .NET app to a newer target framework
- Check whether a legacy codebase needs migrating before changing anything
- Replace obsolete APIs and outdated packages in a C# project
- Modernize an existing .NET codebase in gated, reviewable steps
- Re-run verification and report generation on a finished migration

## Install

### Claude Code

This skill ships in the `tagout-migrate` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add phmatray/tagout
/plugin install tagout-migrate@tagout-marketplace
```

Or copy only this skill to `~/.claude/skills/migrate-legacy`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/migrate-legacy &&
cp -R "$tmp/plugins/tagout-migrate/skills/migrate-legacy" ~/.claude/skills/migrate-legacy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/migrate-legacy` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/migrate-legacy` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/migrate-legacy &&
cp -R "$tmp/plugins/tagout-migrate/skills/migrate-legacy" ~/.agents/skills/migrate-legacy &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/migrate-legacy` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/migrate-legacy` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/migrate-legacy &&
cp -R "$tmp/plugins/tagout-migrate/skills/migrate-legacy" ~/.cursor/skills/migrate-legacy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/migrate-legacy` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/phmatray/tagout.git --path plugins/tagout-migrate/skills/migrate-legacy
```

Or copy the folder to `~/.gemini/skills/migrate-legacy` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/migrate-legacy`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/phmatray/tagout.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/migrate-legacy &&
cp -R "$tmp/plugins/tagout-migrate/skills/migrate-legacy" ~/.copilot/skills/migrate-legacy &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/migrate-legacy` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/phmatray/tagout.git
```

Then copy `tagout/plugins/tagout-migrate/skills/migrate-legacy` into your agent's skills folder as `migrate-legacy`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Migrate legacy starts?

It runs a preflight script that checks required tools, including the .NET SDK, git and python3, and requires the RoselineMCP server for any C# work.

### Does Migrate legacy change code without review?

Each RoselineMCP mutation runs in preview mode first, and the agent is instructed to inspect the diff before applying it.

### What happens if the app is already on a modern framework?

The assessment can return an ALREADY_MODERN verdict, which stops the pipeline after phase one and offers a verification run instead.

### Is Migrate legacy limited to .NET?

The C# path is built around RoselineMCP; for other ecosystems the same phase structure applies but the ecosystem's own tooling is used.

### How do I install Migrate legacy in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/migrate-legacy to use it in all your projects, or to .claude/skills/migrate-legacy in one project. Or install the tagout-migrate plugin, which includes it: /plugin marketplace add phmatray/tagout, then /plugin install tagout-migrate@tagout-marketplace.

### Does Migrate legacy run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Migrate legacy?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Migrate legacy?

The closest alternatives to Migrate legacy are Migrate to rust, Spec driven develop, Doc and modernize, Principle migrate callers then delete legacy APIS and Deprecation and migration.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Migrate to rust](https://ai-powered.com/skills/migrate-to-rust): Migrate to rust is an open-source agent skill for developer tools.
- [Spec driven develop](https://ai-powered.com/skills/spec-driven-develop): Spec driven develop is an open-source agent skill for developer tools.
- [Doc and modernize](https://ai-powered.com/skills/doc-and-modernize): Doc and modernize is an open-source agent skill for files and documents.
- [Principle migrate callers then delete legacy APIS](https://ai-powered.com/skills/principle-migrate-callers-then-delete-legacy-apis): Principle migrate callers then delete legacy APIS is an open-source agent skill for developer tools.
- [Deprecation and migration](https://ai-powered.com/skills/deprecation-and-migration): Deprecation and migration is an open-source agent skill for developer tools.
- [V3 Deep Integration](https://ai-powered.com/skills/v3-deep-integration): V3 Deep Integration is an open-source agent skill for developer tools.
- [Dotnet upgrade](https://ai-powered.com/skills/dotnet-upgrade): Dotnet upgrade is an open-source agent skill for developer tools.
- [Go modernize](https://ai-powered.com/skills/go-modernize): Go modernize is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/migrate-legacy
