blazor-component-design

blazor-component-design is a skill for Claude Code, Codex from andresharpe/dotbot. It costs 53 tokens per session (666 once invoked), scanned A, original, MIT.

Guidance for building Blazor components, which are reusable parts of a .NET web interface, in server-based or WebAssembly applications. It covers inputs, events, component lifecycle, parent-child communication, and rendering performance.

In plain words
What is it for?
Use it when creating or refactoring Blazor components, connecting component hierarchies, handling cascading values and event callbacks, or improving list and render behaviour.
Why use it?
It helps components receive data correctly, notify their parent components, update at the right time, and avoid unnecessary screen redraws. It also recommends separating complex logic from the visual markup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or refactoring Blazor components, connecting component hierarchies, handling cascading values and event callbacks, or improving list and render behaviour.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresharpe/dotbot/blazor-component-design
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.

Any agent
npx skills add andresharpe/dotbot --skill blazor-component-design
Clone the repo
git clone --depth 1 https://github.com/andresharpe/dotbot

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresharpe/dotbot/blazor-component-design/github.svg)](https://agentmods.dev/skills/andresharpe/dotbot/blazor-component-design)
Your own site
<a href="https://agentmods.dev/skills/andresharpe/dotbot/blazor-component-design"><img src="https://agentmods.dev/badge/skills/andresharpe/dotbot/blazor-component-design/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for blazor-component-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresharpe/dotbot/blazor-component-design"><img src="https://agentmods.dev/badge/skills/andresharpe/dotbot/blazor-component-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 666 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found 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.00053 $0.00666
Opus 5.5 $0.00021 $0.00266
Sonnet 5.5 $0.00011 $0.00133
Haiku 4.5 $0.00005 $0.00067

Measured 3mo ago against content hash 5251e1f41f4e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

blazor-component-design 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 3mo 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.

content/stacks/dotnet-blazor/recipes/skills/blazor-component-design/SKILL.md · 77 lines

How it starts

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

Blazor Component Design

Design and implement Blazor components following project conventions.

Workflow

  1. Define component parameters — identify inputs, event callbacks, and cascading values
  2. Implement render logic — keep .razor lean, extract complex logic to code-behind
  3. Wire parent-child communication — use EventCallback<T> for upward data flow
  4. Handle lifecycle — implement OnInitializedAsync, OnParametersSetAsync as needed
  5. Optimize rendering — add @key for lists, ShouldRender() for expensive components

Component Structure

@* ItemCard.razor *@
<div class="item-card" @key="Item.Id">
    <h3>@Item.Name</h3>
    <p>@Item.Description</p>
    <button @onclick="HandleSelect">Select</button>
</div>

@code {
    [Parameter, EditorRequired]
    public ItemDto Item { get; set; } = default!;

    [Parameter]
    public EventCallback<ItemDto> OnSelected { get; set; }

    private async Task HandleSelect() => await OnSelected.InvokeAsync(Item);
}

Code-Behind Pattern

// ItemList.razor.cs
public partial class ItemList : ComponentBase, IDisposable
{
    [Inject] private IItemService ItemService { get; set; } = default!;
    [Parameter] public string? FilterCategory { get; set; }

    private List<ItemDto> _items = new();

    protected override async Task OnParametersSetAsync()
    {
        _items = await ItemService.GetItemsAsync(FilterCategory);
    }

    public void Dispose() { /* unsubscribe from events */ }
}

Best Practices

  • Parameters over cascading values — explicit data flow is easier to trace and debug
  • EventCallback<T> for parent-child communication — never mutate parent state directly
  • Code-behind for components with logic — keeps .razor focused on markup
  • @key directive on list items — prevents DOM thrashing on re-renders
  • IDisposable when subscribing to events, timers, or injected services with subscriptions
  • [EditorRequired] on mandatory parameters — catches missing bindings at compile time

Read the full file on GitHub · 77 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. 3mo ago First seen · 77 lines · 53 tokens per session scan A 5251e1f41f4e

Subscribe to this mod's changes

blazor-component-design is a skill published in the GitHub repository andresharpe/dotbot (56 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 666 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

blazor-component-design compared with skills from other repositories

blazor-component-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
blazor-component-designandresharpe/dotbotSkill563mo agoMITA53Claude Code, Codex
memorix-mini-skillsAVIDS2/memorixSkill9584d agoApache-2.0A30Claude Code
memorix-troubleshootingAVIDS2/memorixSkill9584d agoApache-2.0A36Claude Code
memorix-sessionsAVIDS2/memorixSkill9584d agoApache-2.0A31Claude Code
video-perceptionjordanrendric/claude-video-visionSkill1.6k1mo agoMITA51Claude Code
hedgehogskyf0xx/hedgehogSkill50todayMITA0Claude Code
pr-writingskyf0xx/hedgehogSkill50todayMITA107Claude Code