
author-component
Create or review Blazor components (.razor files) with correct architecture
by dotnetFree
Description
author-component is an agent skill from the dotnet/skills collection, listed on skills.sh. It guides an AI coding agent when it creates or reviews Blazor components in .razor files, for components that do not involve JavaScript interop. The core rules it sets out are that data flows down through [Parameter] properties and events flow up through EventCallback<T>, that parameters are never mutated but copied to a private field in OnParametersSet, and that every component handles loading, empty, loaded and error states. It also covers @key on repeated elements in loops, IReadOnlyList<T> for collection parameters, and generic RenderFragment<TItem> templates for things like row layouts. The skill warns against required and init parameters that trigger the BL0007 warning. A skill is a SKILL.md file of instructions that an agent loads only when a task calls for it, so the agent follows the same component patterns each time. The listing shows it as free, and its source is public on GitHub.…
Highlights
- Parameter and EventCallback data flow rules for Blazor
- Handles loading, empty, loaded and error states
- Generic RenderFragment templates for reusable layouts
- Avoids required and init parameters that cause BL0007
Ratings & Reviews
No ratings yet
Be the first to rate author-component.
People also visit

plan-ui-change
Plan complex Blazor UI features by decomposing them into focused components

csharp-developer
Building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps

support-prerendering
Make interactive Blazor components work correctly with prerendering
author-component FAQ
What does the author-component skill do?
It guides an AI agent that writes or reviews Blazor components in .razor files. It keeps the agent to the patterns the skill lists, such as one-way parameter flow, EventCallback events and explicit handling of each data state.
How do I install it?
Run: npx skills add https://github.com/dotnet/skills --skill author-component
Which kind of Blazor components is it for?
New components that do not involve JavaScript interop. The skill's usage note says so.
Does it cover reusable templates?
Yes. It shows how to declare generic RenderFragment<TItem> parameters, for example a row template that a parent component fills in.
Is it free?
The listing shows it as free. The skill is published in a public GitHub repository.
What do the security audits say?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best author-component alternatives?
Popular alternatives to author-component include plan-ui-change, use-js-interop and coordinate-components. See all author-component alternatives











