# blazor-expert

Blazor reference skill for Claude Code covering Server, WebAssembly, and Hybrid models. Guides component structure, state flow, and C# forms.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 688 installs · ★ 23
- Author: markpitt
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/markpitt/claude-skills/tree/HEAD/skills/blazor-expert/SKILL.md
- Updated: 2026-02-19
- HTML: https://affpapa.org/en/nevibecode/skills/blazor-expert

## What it does

The skill equips AI agents with reference architectures for building interactive C# web interfaces via Blazor. It addresses all three core runtimes: Blazor Server running over SignalR, client-side WebAssembly, and Blazor Hybrid embedded inside MAUI, WPF, or WinForms.

Under the hood, guidance splits into six distinct areas with practical code patterns. These cover component lifecycles, two-way bindings via `EventCallback`, `EditForm` validation, and route parameters. It also details JS interop, list virtualization, and role checks using `AuthorizeView`.

Because Blazor Server relies on persistent SignalR connections and taxes server memory, selecting the wrong hosting model upfront creates latency issues.

## Install

### Claude Code (native platform)

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

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill blazor-expert -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill blazor-expert -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install markpitt/claude-skills blazor-expert
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill blazor-expert -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/markpitt/claude-skills --path skills/blazor-expert
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add markpitt/claude-skills --skill blazor-expert -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/markpitt/claude-skills/tree/HEAD/skills/blazor-expert/SKILL.md

## When to use it
- configure data entry validation using `EditForm` and DataAnnotations
- restrict page access via `[Authorize]` and `AuthorizeView`
- optimize re-renders using `ShouldRender` and the `@key` directive
- wire up parent-child component communication with `EventCallback`

## Example prompts
- Create an `EditForm` component with DataAnnotations validation and error summaries.
- Implement list virtualization to reduce rendering lag on large data sets.
- Configure route parameters with type constraints in a routable component.

## Similar
- [frontend-design](https://affpapa.org/en/nevibecode/skills/frontend-design.md) — skill · 1025790 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs
- [hyperframes](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes.md) — skill · 1200000 installs
- [hyperframes-cli](https://affpapa.org/en/nevibecode/skills/heygen-com-hyperframes-cli.md) — skill · 1300000 installs
- [webapp-testing](https://affpapa.org/en/nevibecode/skills/webapp-testing.md) — skill · 186758 installs

---
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
