Skip to content

Guide · Agent skill

How to use the Fluent UI Blazor Guide agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The fluentui-blazor skill is a guide that teaches an AI agent how to use Microsoft's Fluent UI Blazor component library (the Microsoft.FluentUI.AspNetCore.Components NuGet package) in Blazor apps. This page is for C# developers who want the agent to write Fluent UI code that follows the library's rules. After following it, you will know how to install the skill, how to ask for help in plain language, and what the skill does and does not do.

Fluent UI Blazor Guidegithub/awesome-copilot · MIT

Quick start

  1. 1Download the ZIP. Download the fluentui-blazor skill ZIP from this page and unzip it.
  2. 2Place the folder. Copy the fluentui-blazor folder into ~/.claude/skills/ for personal use, or into .claude/skills/ in your project. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills instead.
  3. 3Confirm your project. Make sure you have a Blazor app and the Microsoft.FluentUI.AspNetCore.Components package, version 4.
  4. 4Ask in plain language. Describe the Fluent UI component or problem you have, naming components such as FluentDataGrid or FluentToast.
  5. 5Review the output. Check that providers are in the root layout, services are registered in Program.cs, and bindings follow the Items and OptionText pattern.
  6. 6Build and test. Run your build and check the UI in the browser before committing the changes.

What is an agent skill, and what does this one do?

An agent skill is a folder of instructions that an AI agent can load when a task matches it. This skill is named fluentui-blazor and is built around a SKILL.md file plus reference files on setup, layout and navigation, the data grid, and theming.

Once installed, the agent knows the required setup steps, service registrations, provider components, icon package usage, and the right data-binding patterns for components such as FluentDataGrid, FluentDialog, FluentToast and FluentSelect. The guidance is meant to stop common mistakes, such as using the wrong binding style or leaving out a provider, which causes service calls to fail silently.

  • Adds the required providers such as FluentToastProvider and FluentDialogProvider to the root layout.
  • Registers services with AddFluentUIComponents in Program.cs.
  • Uses strongly-typed icons from the Icons package instead of string names.
  • Uses Items, OptionText and OptionValue for FluentSelect-style components instead of InputSelect patterns.
  • Shows the dialog service and toast service patterns instead of toggling FluentDialog visibility.

Install the fluentui-blazor skill

Download the skill ZIP from this page and unzip it. To make it available to Claude Code, put the unzipped fluentui-blazor folder in ~/.claude/skills/ for your user account, or in .claude/skills/ inside a specific project if you want it to apply only to that project.

If you use the Claude apps instead, upload the ZIP under Settings → Capabilities → Skills.

  • Personal install: place the folder in ~/.claude/skills/.
  • Project install: place the folder in .claude/skills/ inside your project.
  • Claude apps: upload the ZIP under Settings → Capabilities → Skills.

Check that your project meets the requirements

The skill assumes you have .NET and a Blazor application. It guides use of the core NuGet package Microsoft.FluentUI.AspNetCore.Components, version 4. The Icons package, Microsoft.FluentUI.AspNetCore.Components.Icons, is optional but needed if you want the icon classes the skill describes.

If you do not yet have the core package, the skill's setup steps show the command to add the icons package. Add the core package to your project in the way you normally manage NuGet packages.

  • A .NET project with a Blazor application (Blazor Server or Blazor WebAssembly).
  • Microsoft.FluentUI.AspNetCore.Components, version 4 (required).
  • Microsoft.FluentUI.AspNetCore.Components.Icons (optional, for icons).
dotnet add package Microsoft.FluentUI.AspNetCore.Components.Icons

Trigger the skill with natural requests

You do not need a special command. Describe what you are building in plain language and mention Fluent UI or a Fluent component by name. The skill's description lists components such as FluentButton, FluentDataGrid, FluentDialog, FluentToast, FluentNavMenu, FluentTextField, FluentSelect, FluentAutocomplete and FluentDesignTheme, and it also covers troubleshooting missing providers, JS interop issues and theming.

Be specific about your goal. A request that names the component and the problem gets better code than a general request.

  • "Add a FluentDataGrid of customers with sortable Name and Email columns."
  • "My FluentToast messages never show up. Why?"
  • "Set up Fluent UI in my Blazor Server app and register the services."
  • "Replace this InputSelect with a FluentSelect bound to my Country list."
  • "Show a confirmation dialog with the Fluent dialog service before deleting a row."

Example: a Fluent select and a data grid

For a select, the skill expects Items, OptionText and OptionValue, with @bind-SelectedOption for single selection. It warns against wrapping options in <option> tags with @bind-Value, which is the InputSelect pattern.

For a data grid, the skill says columns are child components, not properties. You use PropertyColumn, TemplateColumn or SelectColumn inside FluentDataGrid. Ask the agent to build a grid and it should produce that structure.

<FluentSelect Items="@countries" OptionText="@(c => c.Name)" OptionValue="@(c => c.Code)" @bind-SelectedOption="@selectedCountry" Label="Country" />

Safety notes: scripts and network

According to the skill's listing, this skill does not run scripts and does not use the network. It consists of instructions and reference files that guide the agent's code. The code the agent writes still runs in your own project, so review it as you would any other code change.

The skill's guidance says not to add manual script or link tags for the core library, because the library loads its CSS and JS automatically. If the agent suggests adding them, check the suggestion against the official setup.

  • Runs scripts: no.
  • Uses network: no.
  • Licence: MIT.
  • Review generated code and run your build and tests before committing.

Tips for better results

Tell the agent your hosting model. The skill says the service lifetime differs: Scoped is the default for Blazor Server and interactive apps, and Singleton is for Blazor WebAssembly standalone. Transient throws NotSupportedException.

If a toast, dialog or theme does not appear, mention that in your request. The skill covers missing providers, JS interop issues and theming, and it notes that design tokens must be set in OnAfterRenderAsync, not OnInitialized.

  • Name your Blazor hosting model (Server or WebAssembly).
  • Mention the exact component and the symptom.
  • Ask for the required providers when using toasts, dialogs, message bars or tooltips.
  • Do not use this skill for MudBlazor or Radzen projects, because their component APIs differ.

What people use it for

  • Setting up Fluent UI for the first time in a Blazor Server app, including service registration and providers.
  • Building a FluentDataGrid with sortable property columns and action buttons.
  • Replacing InputSelect code with FluentSelect or FluentAutocomplete bindings.
  • Adding confirmation, success or error dialogs through the dialog service.
  • Debugging why toasts or dialogs do not appear in a Fluent UI app.

Frequently asked questions

Is the fluentui-blazor skill free?

The skill is released under the MIT licence, as listed on this page. Check the licence file in the source repository for the full terms.

What do I need to use the fluentui-blazor skill?

You need .NET and a Blazor application that uses the Microsoft.FluentUI.AspNetCore.Components NuGet package, version 4. The Icons package is optional and only needed for icon usage.

Where do I put the skill so Claude can use it?

Unzip the downloaded folder into ~/.claude/skills/ for personal use, or into .claude/skills/ in a project. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.

Why do my FluentToast messages not appear?

The skill says service-based components need their provider in the root layout, and without it service calls fail silently. Add FluentToastProvider to MainLayout.razor or your equivalent root layout, and check that AddFluentUIComponents is called in Program.cs.

Does this skill work with MudBlazor or Radzen?

No. The skill covers Microsoft Fluent UI Blazor only, and the component APIs of other libraries such as MudBlazor or Radzen differ.

Does the skill run code or connect to the internet?

According to the listing, it runs no scripts and uses no network. It provides guidance that the agent uses while writing code.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you are a C# developer building Blazor Server or Blazor WebAssembly apps with Fluent UI, especially if you are setting it up for the first time or chasing missing toasts, dialogs or theme issues. Pick a different option if your project uses MudBlazor, Radzen or any non-.NET front end, since this guidance covers only Fluent UI Blazor and its NuGet packages.

Download the skill