blazor

Provide Blazor framework guardrails and best practices for C# development.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill blazor-ar4mirez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: blazor
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/blazor
Command: npx skills add https://github.com/ar4mirez/samuel --skill blazor-ar4mirez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guardrails, patterns, and best practices for developing Blazor applications, ensuring maintainability, performance, and adherence to modern C#/.NET standards.

Core Features & Use Cases

  • Component Development: Guidance on component structure, lifecycle, and communication.
  • Hosting Models: Best practices for WebAssembly, Server, and .NET 8 Interactive Web Apps.
  • Data Binding & Forms: Secure and efficient form handling with validation.
  • State Management: Patterns for managing application state effectively.
  • Use Case: When building a new Blazor component, consult this Skill for optimal lifecycle management, parameter handling, and event callbacks to ensure it's robust and performant.

Quick Start

Use the blazor skill to generate a new Blazor component with proper lifecycle and parameter handling.

Frequently Asked Questions about blazor

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

FAQPage Schema
What are the best practices for Blazor component lifecycle and parameter handling?

Blazor component lifecycle best practices involve optimal parameter handling and event callbacks. Following these patterns ensures components are robust, performant, and maintainable across WebAssembly and Server hosting models.

How do I manage state in a Blazor WebAssembly application?

State management in Blazor WebAssembly requires specific patterns to maintain application state effectively. Implementing these guardrails ensures data consistency and performance across interactive web apps.

Does this Blazor development guide support .NET 8 and C# 12 features?

Yes, these Blazor development patterns support .NET 8+ and C# 12+. The guardrails cover modern .NET 8 Interactive Web Apps, ensuring AI-assisted development adheres to current C# standards.

How do I implement secure data binding and forms validation in Blazor?

Secure data binding and forms validation in Blazor are implemented using efficient form handling patterns. These guardrails ensure secure input processing and robust validation across component interactions.

What is the best way to optimize Blazor performance with SignalR?

Optimizing Blazor performance with SignalR involves applying specific framework guardrails. These patterns cover real-time communication efficiency, routing, and security to enhance overall application responsiveness.

When should I use Blazor Server versus Blazor WebAssembly for my application?

Choosing between Blazor Server and WebAssembly depends on your hosting model requirements. This guide provides best practices for both models, plus .NET 8 interactive patterns, to determine the optimal architecture.