# dotnet-blazor-patterns

The dotnet-blazor-patterns Claude Code skill covers Blazor project setup, hosting choices, and render modes. It applies to routing, prerendering, and streaming-render tasks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 104 installs · ★ 92 repo stars
- Author: wshaddix
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-blazor-patterns/SKILL.md
- Updated: 2026-02-27
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/dotnet-blazor-patterns

## What it does

The skill explains Blazor project setup, routing, and render-mode configuration. It compares Static SSR, InteractiveServer, InteractiveWebAssembly, InteractiveAuto, and Hybrid. Examples show how to set a mode for an app, page, or component.

For a Blazor Web App, the examples use `dotnet new blazor` with different `--interactivity` options. With InteractiveAuto or InteractiveWebAssembly, components that run in the browser belong in the `.Client` project. A child component cannot request a more interactive mode than its parent unless a render-mode boundary separates them.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-blazor-patterns -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/dotnet-blazor-patterns/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/dotnet-blazor-patterns/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-blazor-patterns -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/dotnet-blazor-patterns/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-blazor-patterns -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/dotnet-blazor-patterns/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install wshaddix/dotnet-skills skills/dotnet-blazor-patterns
```

2. **Manually: put the files in place**
- File: `.github/skills/dotnet-blazor-patterns/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-blazor-patterns -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/wshaddix/dotnet-skills --path skills/dotnet-blazor-patterns
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/dotnet-blazor-patterns/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add wshaddix/dotnet-skills --skill dotnet-blazor-patterns -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/wshaddix/dotnet-skills/tree/HEAD/skills/dotnet-blazor-patterns/SKILL.md

## When to use it
- choose a Blazor hosting model
- set a render mode for an app or page
- add routes with parameters and constraints
- create a Blazor Web App with a selected interactivity mode

## Example prompts
- Help me choose a hosting model for this Blazor app.
- Show how to use InteractiveWebAssembly for one component.
- Add a Blazor route with a category parameter and a type constraint.

## Similar
- [fluentui-blazor](https://affpapa.org/en/nevibecode/skills/fluentui-blazor.md) — skill · 9000 installs
- [use-igniteui-blazor](https://affpapa.org/en/nevibecode/skills/use-igniteui-blazor.md) — skill · 2500 installs
- [csharp-expert](https://affpapa.org/en/nevibecode/skills/csharp-expert.md) — skill · 2200 installs
- [blazor](https://affpapa.org/en/nevibecode/skills/blazor.md) — skill · 841 installs
- [blazor-expert](https://affpapa.org/en/nevibecode/skills/blazor-expert.md) — skill · 692 installs
- [playwright-blazor-testing](https://affpapa.org/en/nevibecode/skills/playwright-blazor-testing.md) — skill · 571 installs

From the same set: [wshaddix/dotnet-skills](https://affpapa.org/en/nevibecode/by/wshaddix/dotnet-skills.md) — 24 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
