Add authentication and authorization to a Blazor Web App, accounting for the app's render mode. USE WHEN the user needs [Authorize] on pages, AuthorizeView, role or policy-based access, login/logout Identity pages, or AuthenticationStateProvider. Also USE WHEN auth state is null after WebAssembly loads, SignInManager throws in an interactive component, <NotAuthorized> content never renders in static SSR, or HttpContext.User is null in an interactive component. DO NOT USE for general component au
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/9/2026
What it changes
Passed 22 of 22 test cases with the skill, and 13 of 22 without it.
Without skill59%
With skill100%
Checks it passed that the model alone missed
Sets SerializeAllClaims option to true
Includes HttpContext cascading parameter in App.razor
Calls AddAuthenticationStateSerialization with options callback
and 13 more in the full report
9 fixed13 passed either way0 still failing0 broke
Pass-rate lift
+41 pp
Tokens
+17%
Agent turns
0%
Response time
-45%
Model gemini-3.6-flashMeasured 8/9/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 9
Prompt
We want to display 'Welcome Admin' when an admin user views a component, and a login hyperlink for everyone else. What component wrapper should we use?
What was checked, without and with the skill
Checked
Without skill
With skill
Uses AuthorizeView component with Authorized and NotAuthorized templates
Missed
Passed
case-11 · gemini-3.6-flash · 8/9/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md191 linessingle file
Configure Auth
Step 1 — Read AGENTS.md
Read AGENTS.md at the workspace root for the project's interactivity mode and scope before making changes.
The App.razor component must use AuthorizeRouteView and conditionally apply the render mode so that pages excluded from interactive routing render statically.