id: "support-prerendering"
kind: "skill"
name: "support-prerendering"
title: "Support Prerendering"
description: "Make interactive Blazor components work correctly with prerendering. USE FOR fixing duplicate data loads, UI flicker during prerender-to-interactive handoff, null references during prerender, persisting state across prerender, disabling prerendering, excluding pages from interactive routing, or detecting whether a component is currently prerendering. DO NOT USE for choosing which render mode to use (see create-blazor-project) or general component authoring (see author-component)."
category: "design"
source:
  repository: "dotnet/skills"
  path: "plugins/dotnet-blazor/skills/support-prerendering/SKILL.md"
  commit: "4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab"
  url: "https://github.com/dotnet/skills/tree/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-blazor/skills/support-prerendering"
license:
  spdx: "MIT"
  from: "SKILL.md frontmatter"
  redistributable: true
stars: 6298
updated_at: "2026-11-19T21:19:36Z"
score: 0.8709
rank: 72
files_count: 1
bytes: 7342
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:42:31Z"
  model: "claude-sonnet-5-5"
  score: 0.8709
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.8467
    smoke: "not_run"
    popularity: 0.5279
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 5
    scope: 5
    instructions: 4
    safety: 5
    injection: 5
    references: 4
    overall: 8
    verdict: "feature"
    rationale: "The description is specific, with clear USE FOR and DO NOT USE lists. The scope is one coherent job, Blazor prerendering. The instructions are concrete: [PersistentState] with the ??= guard, the PersistentComponentState API, disabling prerender at component, instance and app level, ExcludeFromInteractiveRouting, RendererInfo and client-service fixes. Nothing is risky and there is no injection. The AGENTS.md step and the sibling skills it names (create-blazor-project, author-component) are not in the file list, a minor reference gap. The @key example is thin."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: []
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "chat-mcp"
    status: "full"
    reasons: ["ok"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 7342
    sha256: "ba0f2ed0908b1dc6fe30d04600ffd88d79bd2e693f58103fb9bd6b66126024ed"
    url: "https://raw.githubusercontent.com/dotnet/skills/4e03bfdade5d1f9b7d1c2e95f64e31d1cb7af5ab/plugins/dotnet-blazor/skills/support-prerendering/SKILL.md"
alternates: []
icon: "https://versatile.sh/avatars/dotnet.png"
