dotnet-blazor

Provide Blazor architecture patterns, render-mode guidance, and anti-patterns for .NET 6+ projects.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-blazor-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-blazor
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-blazor
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-blazor-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Blazor developers often struggle with consistent architecture, state management, render-mode decisions, and avoiding common anti-patterns across server, WebAssembly, and hybrid hosting. This skill provides a consolidated guide to design patterns, performance tips, and security considerations for Blazor apps.

Core Features & Use Cases

  • Component patterns for reusable UI and state handling, including smart vs presentational components and templated/generic components.
  • Render mode guidance (Static, InteractiveServer, InteractiveWebAssembly, InteractiveAuto) and prerender/hydration strategies.
  • Antipatterns and best practices covering JS interop, data flow, and error handling to promote robust, maintainable apps.

Quick Start

Seed your Blazor project with recommended patterns and render-mode guidance to ensure maintainability and performance.

Frequently Asked Questions about dotnet-blazor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right Blazor render mode for my application?▼

Blazor render mode selection depends on your hosting model, requiring guidance across Static, InteractiveServer, InteractiveWebAssembly, and InteractiveAuto to properly balance prerendering, hydration, and performance.

What are common Blazor anti-patterns for state management and component design?▼

Common Blazor anti-patterns involve improper state management, poorly structured smart versus presentational components, and inefficient data flow, which degrade maintainability and rendering performance across server and WebAssembly projects.

How do I implement secure JavaScript interop in Blazor?▼

Secure JavaScript interop in Blazor requires following specific best practices and anti-pattern guidance to ensure robust error handling and safe boundaries between .NET and JavaScript execution.

Does this Blazor architecture guidance apply to WebAssembly and hybrid projects?▼

Yes, this Blazor architecture guidance applies directly to server-side, WebAssembly, and hybrid hosting models, addressing reusable component design and state management within .NET 6+ projects.

How do I optimize Blazor prerendering and hydration strategies?▼

Optimizing Blazor prerendering involves applying specific render-mode guidance and hydration strategies to prevent common rendering anti-patterns and improve overall application performance.