Add convert-blazor-server-to-webapp skill#207
Conversation
Add a new skill to guide agents through converting pre-.NET 8 Blazor Server apps to the .NET 8+ Blazor Web App model. The skill covers: - Replacing AddServerSideBlazor/MapBlazorHub with AddRazorComponents/MapRazorComponents - Converting _Host.cshtml to an App.razor root component - Creating Routes.razor from the old App.razor - Replacing blazor.server.js with blazor.web.js - Adding UseAntiforgery middleware - Migrating CascadingAuthenticationState to a service - Optional improvements like MapStaticAssets Includes 4 eval scenarios: basic conversion, auth state migration, prerendering-disabled case, and a negative test for already-converted apps.
There was a problem hiding this comment.
Pull request overview
Adds a new .NET skill and accompanying eval coverage to help agents migrate pre-.NET 8 Blazor Server apps to the .NET 8+ Blazor Web App hosting model (AddRazorComponents/MapRazorComponents, App.razor root, Routes.razor, blazor.web.js, antiforgery, auth state migration).
Changes:
- Introduces the
convert-blazor-server-to-webappskill documentation with a step-by-step migration workflow and pitfalls. - Adds 4 eval scenarios covering: basic conversion, CascadingAuthenticationState migration, prerendering-disabled preservation, and an “already converted” case.
- Updates CODEOWNERS to assign ownership for the new skill and tests (and fixes indentation on two existing entries).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| tests/dotnet/convert-blazor-server-to-webapp/eval.yaml | Adds eval scenarios/assertions/rubrics for the new migration skill. |
| plugins/dotnet/skills/convert-blazor-server-to-webapp/SKILL.md | Adds the skill guidance for performing the Blazor Server → Blazor Web App conversion. |
| .github/CODEOWNERS | Adds owners for the new skill/test directories; normalizes two existing lines’ indentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/evaluate |
Skill Validation Results
Model: claude-opus-4.6 | Judge: claude-opus-4.6 |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
/evaluate |
|
@halter73 We should move this OUT of dotnet plugin and establish |
|
/evaluate |
|
Should this be in a aspnetcore plugin set vs plain dotnet? |
|
dotnet-aspnet plugin 👍 |
Move the Blazor Server migration skill out of the generic dotnet plugin and into a dedicated dotnet-aspnet plugin, per review feedback. - Create plugins/dotnet-aspnet/ with plugin.json - Move SKILL.md and eval.yaml to the new plugin structure - Register dotnet-aspnet in marketplace.json - Update CODEOWNERS with dotnet-aspnet section - Add dotnet-aspnet to README.md plugins table Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
I moved it into a new |
Add a new skill to guide agents through converting pre-.NET 8 (and later) Blazor Server apps to the .NET 8+ Blazor Web App model. The skill covers:
Includes 4 eval scenarios: basic conversion, auth state migration, prerendering-disabled case, and a negative test for already-converted apps.
This was helpful when working on bartonjs/apireview.net#4