Generates a three-layer safety net (HTTP parity, Playwright flow tests, characterization tests) before migrating a .NET Framework app to .NET 10. Records old app behavior and verifies the new app matches, with an accepted-differences log.
Ships in .NET Pack (legacy .NET Framework + Migration Pack to .NET 10). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before a single line moves to .NET 10, prove what the old app does today. Then every migrated slice is checked against that proof. No green parity test, no route switch.
Three layers, cheapest first:
| Layer | Catches | Tool |
|---|---|---|
| HTTP parity | status codes, redirects, content type, the data on GET pages and API responses | xUnit + HttpClient + AngleSharp, record/verify |
| Flow parity | postback flows: add to cart, checkout, save a form, edit a grid row | xUnit + Microsoft.Playwright |
| Characterization | business rules in plain C# (pricing, discounts, rounding) | xUnit golden master |
The solution, and migration/migration-assessment.json if it exists (it lists every page, endpoint and the quirks worth locking). Read Web.config and the route setup to build the URL list.
Create tests/<Solution>.ParityTests/scenarios.json. One entry per URL a user or client hits, including the unhappy paths:
[
{ "id": "home", "method": "GET", "path": "/", "compare": "html", "select": "main" },
{ "id": "product-1", "method": "GET", "path": "/Product.aspx?id=1", "compare": "html", "select": "main" },
{ "id": "product-missing", "method": "GET", "path": "/Product.aspx?id=99999", "compare": "status" },
{ "id": "api-products", "method": "GET", "path": "/api/products", "accept": "application/json", "compare": "json" },
{ "id": "api-orders-anon", "method": "GET", "path": "/api/orders/mine", "compare": "status+location" },
{ "id": "admin-anon", "method": "GET", "path": "/Admin/Products.aspx", "compare": "status+location" }
]
compare: status, status+location, html (normalized text of the select element), json (normalized JSON), bytes-type (content type + non-empty body, for images and files).references/normalization.md and add page-specific ignore rules (ignore selectors) for timestamps, random ids, ads.Create an xUnit project targeting net10.0 with references/ParityTests.cs and references/Normalizer.cs as the starting point (adapt namespaces, keep the logic). Packages: xunit, xunit.runner.visualstudio, Microsoft.NET.Test.Sdk, AngleSharp.
Modes, set with environment variables:
| Variable | Meaning |
|---|---|
PARITY_MODE=record | call PARITY_BASE_URL, normalize, write baseline/<id>.txt |
PARITY_MODE=verify (default) | call PARITY_BASE_URL, normalize, compare with baseline/<id>.txt |
PARITY_BASE_URL | the old app when recording, the YARP host / new app when verifying |
Recording once against the old app means the old app doesn't have to run forever - the baseline is in git.
For each flow that changes state (add to cart, update quantities, apply a coupon, checkout, admin edit), write one Playwright test that drives the UI by visible labels and roles, not by WebForms ids (ctl00$MainContent$... won't exist in the new app). Assert what the user sees: cart count, line totals, the total, the confirmation message. Template: references/FlowTests.cs. Packages: Microsoft.Playwright, then pwsh bin/Debug/net10.0/playwright.ps1 install chromium once.
Use the same test against both apps by switching PARITY_BASE_URL. If the markup changes, put stable data-testid attributes into the NEW pages and keep a small selector map per app in the test.
For pure logic (a PriceCalculator, a tax rule, an import parser): generate many inputs, run the CURRENT code, save the outputs as the golden master, and assert the same outputs forever. Include the weird cases on purpose and mark them // QUIRK: <what> - they are the behaviors a rewrite "fixes" by accident. Template: references/CharacterizationTests.cs. While the library is still net48, the test project targets net48 (runs on Windows); once the library multi-targets, add net10.0.
Prove the tests bite: change one line of the logic on purpose, run, see red, undo.
Create migration/accepted-differences.md. Every time old and new legitimately differ (401 instead of 302, JSON instead of XML, a fixed rounding bug), the test gets an entry with: scenario id, old behavior, new behavior, why, who approved it, date. A test may only be relaxed when a person approved the entry - never by the agent alone.
baseline/.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
.NET, C#, Playwright
12 skills in this plugin
/adonet-data-access-auditor(.NET) Audit and fix classic ADO.NET data-access code (SqlConnection / SqlCommand / SqlDataReader / DataSet) on .NET Framework. Use this skill whenever the user shares raw ADO.NET code, a DAL / repository built on SqlCommand, stored-proc calls, string-concatenated SQL, or mentions SQL injection, parameterized queries, connection leaks, "using / Dispose", reading the same column multiple times, transactions, or "why does my old data layer leak connections / is it safe". Always use this skill for classic ADO.NET review instead of answering from memory; it applies a fixed security + correctness + performance checklist and rewrites the code./aspnet-mvc-webapi-migrator(.NET) Migrate ASP.NET MVC 5 and Web API 2 code to ASP.NET Core on .NET 10, one controller at a time - actions, routes, filters, model binding, IHttpActionResult, child actions, OutputCache, bundling - plus the app plumbing around them - Global.asax, IHttpModule, IHttpHandler/.ashx, HttpContext.Current, Newtonsoft.Json formatters and XML content negotiation. Use this skill whenever the user wants to "migrate this controller", "Web API 2 to ASP.NET Core", "MVC 5 to .NET 10", "replace Global.asax", "convert this HTTP module to middleware", "port this .ashx handler", or is moving endpoints one by one in a strangler-fig migration. Always use this skill for MVC/Web API migrations instead of answering from memory; it keeps routes, status codes and payloads identical and proves it with parity tests./dotnet-pack:migration-safety-netfrom .NET Pack (legacy .NET Framework + Migration Pack to .NET 10)
npx claudepluginhub stefanthecode/ai-for-developers --plugin dotnet-packOther plugins' skills for the same job