agentleFS
MicrosoftKnown publishermicrosoft/fluentui-blazor/AGENTS.md

fluentui-blazor

AGENTS.md4.8k starsChanged 4 months agoMITView on GitHub

This file provides context and instructions for AI coding agents working on the Microsoft Fluent UI Blazor components library. This is a .NET Blazor component library that provides Fluent UI design system components for Blazor applications. The library wraps Microsoft's official Fluent UI Web Components and provides additional components leveraging the Fluent Design System. Unit tests are in tests/Core/Components/ mirroring the component structure in src/Core/Components/. Follow Conventional Commits:

  • Installs packages

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 2 mentionsFeb 2026: 0 mentionsMar 2026: 1 mentionApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 2 mentionsJul 2026: 2 mentionsAug 2026: 1 mentionSep 2026: 5 mentionsOct 2026: 8 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the microsoft/fluentui-blazor repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about microsoft/fluentui-blazor

The biggest 5 of 39 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 39

Talked about on GitHub and Bluesky (39 times).

On GitHub · 36

31 more on GitHub
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

11 rules. About 1 is common, 6 are distinctive, and 4 are very specific to this project.

  • ≈1

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Test file naming: {ComponentName}Tests.cs

    line 84
  2. Very specific:

    Test method naming: {MethodName}_{Scenario}_{ExpectedBehavior}

    line 85
  3. Distinctive:

    Always add or update tests when modifying components

    line 86
  4. Distinctive:

    Run all tests before submitting a PR

    line 87
  5. Distinctive:

    Use C# latest language features

    line 100
  6. Distinctive:

    Follow Microsoft C# coding conventions

    line 101
  7. Very specific:

    Run all unit tests: dotnet test tests/Core/Components.Tests.csproj

    line 130
  8. Very specific:

    Ensure the build passes: dotnet build Microsoft.FluentUI-v5.sln

    line 131
  9. Distinctive:

    Update documentation if needed

    line 132
  10. Distinctive:

    If you encounter NPM authentication issues (E401):

    line 154
  11. Common:

    Do not commit sensitive data or credentials

    line 179

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

This file provides context and instructions for AI coding agents working on the Microsoft Fluent UI Blazor components library.

Project Overview

This is a .NET Blazor component library that provides Fluent UI design system components for Blazor applications. The library wraps Microsoft's official Fluent UI Web Components and provides additional components leveraging the Fluent Design System.

  • Main Package: Microsoft.FluentUI.AspNetCore.Components
  • Target Framework: .NET 8+
  • License: MIT
  • Language: C# with Razor components
  • Documentation: https://www.fluentui-blazor.net

Repository Structure

src/
├── Core/                           # Main component library
├── Core.Scripts/                   # TypeScript/JavaScript for web components
└── Extensions/                     # Additional packages (EF adapter, OData, etc.)

tests/
├── Core/                           # Unit tests (bUnit)
└── Integration/                    # Integration tests

examples/
├── Demo/                           # Demo application
└── Samples/                        # Sample projects

Setup Commands

Prerequisites

  • .NET 8 SDK or later
  • Node.js 22.x (for Core.Scripts project)
  • Visual Studio 2026 (recommended on Windows)

Build Commands

# Build the entire solution
dotnet build Microsoft.FluentUI-v5.slnx

# Build only the core component library
dotnet build src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj

# Build the demo application
dotnet build examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj

# Clean the solution
dotnet clean Microsoft.FluentUI-v5.slnx

# Restore packages
dotnet restore Microsoft.FluentUI-v5.slnx

Run the Demo

# Run demo application
dotnet run --project examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj

# Watch mode (hot reload)
dotnet watch run --project examples/Demo/FluentUI.Demo/FluentUI.Demo.csproj

Testing Instructions

Running Tests

# Run all unit tests
dotnet test tests/Core/Components.Tests.csproj

# Run specific test
dotnet test tests/Core/Components.Tests.csproj --filter "FullyQualifiedName~TestClassName"

Unit Test Guidelines

  • Tests use bUnit for Blazor component testing
  • Tests use Verify for snapshot testing
  • Test file naming: {ComponentName}Tests.cs
  • Test method naming: {MethodName}_{Scenario}_{ExpectedBehavior}
  • Always add or update tests when modifying components
  • Run all tests before submitting a PR

Test File Location

Unit tests are in tests/Core/Components/ mirroring the component structure in src/Core/Components/.

Code Style Guidelines

C# Conventions

  • Nullable: Enabled (<Nullable>enable</Nullable>)
  • Warnings as Errors: Enabled (<TreatWarningsAsErrors>true</TreatWarningsAsErrors>)
  • Code Style: Enforced in build (<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>)
  • Use C# latest language features
  • Follow Microsoft C# coding conventions

Component Development

  • Components are in src/Core/Components/
  • Each component should have its own folder
  • Include: .razor file, .razor.cs code-behind (if needed), .razor.css styles (if needed)
  • Expose design tokens for customization
  • Ensure accessibility compliance

Razor Component Pattern

// Example component structure
public partial class FluentComponentName : FluentComponentBase
{
    [Parameter]
    public string? Property { get; set; }

    [Parameter]
    public EventCallback<T> OnEvent { get; set; }
}

PR Guidelines

Before Submitting

  1. Rebase your branch from the target branch (do NOT use git merge)
  2. Run all unit tests: dotnet test tests/Core/Components.Tests.csproj
  3. Ensure the build passes: dotnet build Microsoft.FluentUI-v5.sln
  4. Update documentation if needed

Commit Messages

Follow Conventional Commits:

  • feat: - New feature
  • fix: - Bug fix
  • docs: - Documentation changes
  • chore: - Maintenance tasks
  • refactor: - Code refactoring
  • test: - Adding or updating tests

PR Checklist

  • Tests added/updated for changes
  • Changes have been tested locally
  • Documentation updated if needed
  • Follows project coding standards

NPM/JavaScript Setup (Core.Scripts)

If you encounter NPM authentication issues (E401):

cd src/Core.Scripts

# Install vsts-npm-auth
npm install -g vsts-npm-auth --registry https://registry.npmjs.com --always-auth false

# Get authentication token
vsts-npm-auth -config .npmrc -force

# Install packages
npm install

Important Files

  • Directory.Build.props - Central versioning and build configuration
  • Directory.Packages.props - Central package version management
  • .github/CODEOWNERS - Code ownership (@vnbaaij @dvoituron)
  • docs/contributing.md - Contribution guidelines
  • docs/unit-tests.md - Detailed unit testing documentation

Security Considerations

  • Do not commit sensitive data or credentials
  • Review the SECURITY.md file for security policies
  • Report security vulnerabilities through proper channels (not public issues)

Contributing Workflow

This repository uses a fork-based contribution model:

  1. Fork the repository from microsoft/fluentui-blazor
  2. Clone your fork locally
  3. Create a feature branch from the target branch (dev)
  4. Make changes and commit following conventional commit guidelines
  5. Push to your fork
  6. Create a Pull Request targeting the upstream repository microsoft/fluentui-blazor

Remote Configuration

# Add upstream remote (if not already configured)
git remote add upstream https://github.com/microsoft/fluentui-blazor.git

# Fetch upstream changes
git fetch upstream

# Rebase your branch on upstream
git rebase upstream/dev

Additional Resources

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.