blazor

blazor is a skill for Claude Code, Codex from FortiumPartners/ensemble. It costs 18 tokens per session (5,452 once invoked), scanned A, a copy of skills, MIT.

A reference for building web applications with Blazor, Microsoft's .NET framework for creating interactive user interfaces. It covers server-run and browser-run Blazor applications with .NET 8 or later.

In plain words
What is it for?
Use it when building internal tools, public web apps, progressive web apps, or offline-capable interfaces with Blazor.
Why use it?
It gives coding guidance for choosing between Blazor hosting models and using Microsoft Fluent UI components.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also installed under .codex/.

Part of the ensemble-codex plugin — 40 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/fortiumpartners/ensemble/blazor
Any agent
npx skills add FortiumPartners/ensemble --skill blazor
Clone the repo
git clone --depth 1 https://github.com/FortiumPartners/ensemble

Made for: Claude Code, Codex.

Or install ensemble-codex, the plugin that ships this one along with the rest of its 40 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for blazor

README.md
[![agentmods](https://agentmods.dev/badge/skills/fortiumpartners/ensemble/blazor.svg)](https://agentmods.dev/skills/fortiumpartners/ensemble/blazor)
Your own site
<a href="https://agentmods.dev/skills/fortiumpartners/ensemble/blazor"><img src="https://agentmods.dev/badge/skills/fortiumpartners/ensemble/blazor.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,452 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00018 $0.05452
Opus 5 $0.00009 $0.02726
Sonnet 5 $0.00004 $0.01090
Haiku 4.5 $0.00002 $0.00545

Measured 6d ago against content hash 22dbd3843fca, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

blazor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

95% identical to skills — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

packages/codex/.codex/skills/blazor/SKILL.md · 1,070 lines

How it starts

The opening of the file, as written. The whole thing — 1,070 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Blazor Framework - Quick Reference (SKILL.md)

Version: 1.0.0 Target: .NET 8.0+ with Blazor Server/WebAssembly UI Library: Microsoft Fluent UI Blazor Components Purpose: Fast lookup for common Blazor patterns and best practices


1. Blazor Hosting Models

Blazor Server

Characteristics:

  • Server-side rendering with SignalR connection
  • Stateful connection to server required
  • Small initial download (~2MB), fast startup
  • UI events sent to server via SignalR

Setup:

// Program.cs
builder.Services.AddServerSideBlazor();
app.MapBlazorHub();
app.MapFallbackToPage("/_Host");

Use Cases: Internal apps, intranet, enterprise applications


Blazor WebAssembly

Characteristics:

  • Client-side execution in browser via WebAssembly
  • Full .NET runtime in browser
  • Larger initial download (~10MB), but offline capable
  • No server connection after initial load

Setup:

// Program.cs (Client)
builder.Services.AddBlazorWebAssembly();
await builder.Build().RunAsync();

Use Cases: Public-facing apps, PWAs, offline-first applications


Render Modes (.NET 8+)

@* Server-side with SignalR *@
@rendermode InteractiveServer

@* Client-side WebAssembly *@
@rendermode InteractiveWebAssembly

@* Auto: Server initially, then WebAssembly after download *@
@rendermode InteractiveAuto

@* Static: Server-side rendering without interactivity *@
@rendermode @(new Microsoft.AspNetCore.Components.Web.RenderMode.Static)

2. Component Architecture

Basic Component Structure

@page "/counter"
@using MyApp.Services

<h3>@Title</h3>
<p>Current count: @currentCount</p>
<button @onclick="IncrementCount">Click me</button>

@code {
    [Parameter]
    public string Title { get; set; } = "Counter";

    [Parameter]
    public EventCallback<int> OnCountChanged { get; set; }

    private int currentCount = 0;

    private async Task IncrementCount()
    {
        currentCount++;
        await OnCountChanged.InvokeAsync(currentCount);
    }
}

Read the full file on GitHub · 1,070 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 1,070 lines · 18 tokens per session scan A 22dbd3843fca

Subscribe to this mod's changes

blazor is a skill published in the GitHub repository FortiumPartners/ensemble (11 stars, last pushed 1mo ago), licensed MIT. It adds 18 tokens to every session and 5,452 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to skills, differing in 6 lines, and is treated as a copy.

Related

Other skills, from other repositories

agent-csharp-reviewer

Expert C# code reviewer specializing in .NET conventions, async patterns, security, nullable reference types, and performance. Use for all C# code changes. MUST BE USED for C# projects.

KunanonJ/ai-skills-hub · 45 tokens

laravel-actions

Build, refactor, and troubleshoot Laravel Actions using lorisleiva/laravel-actions. Use when implementing reusable action classes (object/controller/job/listener/command), converting service classes/controllers/jobs into actions, orchestrating workflows via faked actions, or debugging action entrypoints and wiring.

coollabsio/coolify · 62 tokens

review-pending-pr-reviews

Review, grill, edit, and post pending PR review drafts saved by /review-pr (or its batch/cron runners). Lists drafts that have not yet been posted, walks the maintainer through each finding, then posts, closes, or discards. Use when the user says "post my pending reviews", "what reviews are waiting", "go through the…

nrwl/nx · 93 tokens

migrate-dotnet8-to-dotnet9

Migrate a .NET 8 project to .NET 9 and resolve all breaking changes. USE FOR: upgrading TargetFramework from net8.0 to net9.0, fixing build errors after updating the .NET 9 SDK, resolving behavioral changes in .NET 9 / C# 13 / ASP.NET Core 9 / EF Core 9, replacing BinaryFormatter (now always throws), resolving…

dotnet/skills · 176 tokens

template-validation

Validates custom dotnet new templates for correctness before publishing. Catches missing fields, parameter bugs, shortName conflicts, constraint issues, and common authoring mistakes that cause templates to fail silently. USE FOR: checking template.json files for errors before publishing or testing, diagnosing why a…

dotnet/skills · 131 tokens

template-comparison

Compares two or more dotnet new templates side by side to help users choose between them based on parameters, feature support, frameworks, and classifications. USE FOR: deciding between similar templates (webapi vs webapp, blazor vs blazorwasm, console vs worker), producing a side-by-side comparison of parameters and…

dotnet/skills · 123 tokens