blazor
Skill15 starsChanged 42 days agoMITView on GitHub
Expert Blazor assistance covering WebAssembly, Server-Side Blazor, Razor components, and C# browser interactivity. Use when building interactive web UIs using C# instead of JavaScript.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Mindrally/skillstheir own version, first seen Oct 8, 2026
- AterDev/Perigon.CLItheir own version, first seen Sep 3, 2026
- Sorcha-Platform/Sorchatheir own version, first seen Jan 24, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Mindrally/skills★ 275same name
- AterDev/Perigon.CLI★ 54same name
- Sorcha-Platform/Sorcha★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository350 other files it gives its agents.
- airflowSkill
- catboostSkill
- claudeSkill
- comfyuiSkill
- cursor-aiSkill
- dalleSkill
- daskSkill
- dbtSkill
- deepseekSkill
- fastaiSkill
- geminiSkill
- github-copilotSkill
- huggingfaceSkill
- jaxSkill
- jupyterSkill
- kerasSkill
- langchainSkill
- lightgbmSkill
- llamaindexSkill
- llamaSkill
- matplotlibSkill
- midjourneySkill
- mistralSkill
- mlflowSkill
- nltkSkill
- numpySkill
- ollamaSkill
- openai-gptSkill
- opencvSkill
- pandasSkill
- perplexitySkill
- plotlySkill
- polarsSkill
- pytorchSkill
- raySkill
- scikit-learnSkill
- seabornSkill
- spacySkill
- sparkSkill
- stable-diffusionSkill
- tensorflowSkill
- vaexSkill
- weights-biasesSkill
- whisperSkill
- xgboostSkill
- api-gatewaySkill
- clean-architectureSkill
- cqrsSkill
- domain-driven-designSkill
- event-drivenSkill
- event-sourcingSkill
- graphqlSkill
- grpcSkill
- hexagonalSkill
- microservicesSkill
- modular-monolithSkill
- monolithSkill
- rest-apiSkill
- sagaSkill
- serverlessSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 130
Use @bind-Value and EventCallback conventions:
- Very specific: line 155
Use Virtualize<TItem> for rendering large lists to render only elements within the viewport.
- Distinctive: line 156
Keep state centralized in injected scoped services rather than sprawling across UI components.
- Very specific: line 160
Use synchronous blocking I/O calls (.Result) in component methods.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Blazor
Blazor enables full-stack web UI development using C# and .NET, offering flexible rendering architectures including Blazor Server, Blazor WebAssembly, and hybrid static server streaming.
When to Use
- Interactive Full-Stack Web Apps in C#: Building rich browser UIs without writing separate JavaScript codebases.
- Blazor Web App Unified Model (.NET 8/9): Mixing Server, WebAssembly, and Static Server-Side Rendering per component.
- Enterprise Internal Dashboards: Utilizing high-productivity component libraries (MudBlazor, Fluent UI Blazor).
- Offline Progressive Web Apps: Compiling C# directly into WebAssembly for client-side offline execution.
Quick Start
@page "/counter"
@rendermode InteractiveServer
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<p role="status">Current count: @currentCount</p>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}Core Concepts
Render Modes & Reactive Parameters
Declaring component interactivity per page or component:
@page "/counter"
@rendermode InteractiveServer
<PageTitle>Counter</PageTitle>
<div class="card p-4">
<h3>Current count: @currentCount</h3>
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
</div>
@code {
private int currentCount = 0;
[Parameter]
public int IncrementStep { get; set; } = 1;
private void IncrementCount()
{
currentCount += IncrementStep;
}
}Two-Way Binding & EventCallback
Passing events and state between parent and child components:
<!-- ChildComponent.razor -->
<div class="search-box">
<input value="@SearchTerm" @oninput="OnInputChanged" placeholder="Search..." />
</div>
@code {
[Parameter]
public string SearchTerm { get; set; } = string.Empty;
[Parameter]
public EventCallback<string> SearchTermChanged { get; set; }
private async Task OnInputChanged(ChangeEventArgs e)
{
var newValue = e.Value?.ToString() ?? string.Empty;
await SearchTermChanged.InvokeAsync(newValue);
}
}Dependency Injection & Cascading Authentication State
Accessing user security context in Blazor components:
@inject NavigationManager Navigation
@inject IOrderService OrderService
<AuthorizeView>
<Authorized>
<p>Welcome, @context.User.Identity?.Name!</p>
<button class="btn btn-success" @onclick="LoadOrders">Fetch Orders</button>
</Authorized>
<NotAuthorized>
<p>Please log in to view your orders.</p>
<a href="/login">Login</a>
</NotAuthorized>
</AuthorizeView>
@code {
private async Task LoadOrders()
{
var orders = await OrderService.GetUserOrdersAsync();
}
}Common Patterns
Two-Way Component Parameter Binding
Problem: Passing state down to child components while bubbling state modifications back up cleanly.
Solution:
Use @bind-Value and EventCallback conventions:
<!-- ChildComponent.razor -->
<input value="@Value" @oninput="OnInputChanged" />
@code {
[Parameter] public string Value { get; set; } = "";
[Parameter] public EventCallback<string> ValueChanged { get; set; }
private async Task OnInputChanged(ChangeEventArgs e)
{
await ValueChanged.InvokeAsync(e.Value?.ToString());
}
}
<!-- ParentComponent.razor: <ChildComponent @bind-Value="searchTerm" /> -->Best Practices
Do:
- Target the .NET 8/9 Blazor Web App unified project template with auto render modes (
InteractiveAuto). - Implement
IDisposableorIAsyncDisposableon components subscribing to C# events to avoid memory leaks. - Use
Virtualize<TItem>for rendering large lists to render only elements within the viewport. - Keep state centralized in injected scoped services rather than sprawling across UI components.
Don't:
- Use synchronous blocking I/O calls (
.Result) in component methods; useasync/await. - Pass large binary data over Blazor Server SignalR circuits; use dedicated streaming API endpoints.
- Trigger unnecessary
StateHasChanged()calls if standard event callbacks already trigger re-rendering.
Troubleshooting
| Error | Cause | Solution |
InvalidOperationException: Cannot provide a value for property ... | Missing @inject directive or service not registered in Program.cs. | Register service in builder.Services.AddScoped<MyService>(). |
Blazor circuit disconnected / reconnecting loop | Unhandled exception crashed the SignalR circuit on the server. | Wrap event handlers in try/catch and inspect server console logs. |
WASM: Out of memory during large data fetch | Large response payload deserialization exceeding WASM memory limits. | Paginate API responses or use streaming deserialization with System.Text.Json. |
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

