microsoft/fluentui-blazor/csharp-naming-conventions

Claude Code and agent skill by microsoft/fluentui-blazor

Trust tier 1
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

C# and .NET naming conventions, coding best practices, layout rules, unit testing, and Blazor component guidelines. Use when writing, reviewing, or refactoring C# / .NET / Blazor code or writing unit tests with xUnit and bUnit.

Install

npx vskill@latest install microsoft/fluentui-blazor/csharp-naming-conventions

SKILL.md

The same SKILL.md was published earlier as microsoft/fluentui-blazor/csharp-naming-conventions.

C# Naming Conventions and Best Practices

Comprehensive coding guidelines for .NET and C# developments, covering naming, layout, code patterns, unit testing, and Blazor conventions. Prioritized by impact to guide automated code generation and review.

When to Apply

Reference these guidelines when:

  • Writing new C# / .NET code
  • Reviewing or refactoring existing C# code
  • Naming classes, methods, variables, properties, or parameters
  • Formatting and laying out source files
  • Working with async/await patterns
  • Writing if/else, string, exception, or conversion logic
  • Writing or reviewing unit tests (xUnit, bUnit)
  • Building Blazor components and pages
  • Organizing project file structures

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Naming & CasingCRITICALnaming-
2Code Layout & FormattingHIGHlayout-
3Code PatternsHIGHcode-
4Unit TestingHIGHtesting-
5Blazor ConventionsMEDIUM-HIGHblazor-

Quick Reference

1. Naming & Casing (CRITICAL)
  • naming-casing - Pascal case and Camel case conventions for all C# identifiers
  • naming-files - File organization: one class per file, namespace matches folder
  • naming-items - Explicit, unabbreviated, English-only names without prefixes
  • naming-async - Postfix async methods with Async, eliding guidelines
2. Code Layout & Formatting (HIGH)
3. Code Patterns (HIGH)
4. Unit Testing (HIGH)
5. Blazor Conventions (MEDIUM-HIGH)

How to Use

Use the linked rule files above for detailed explanations and code examples. Each rule file contains:

  • Brief explanation of why it matters
  • Correct code examples
  • Incorrect patterns to avoid (when applicable)
  • References to external guidelines

Security

  • Security scanPassedPattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
4,840
Repository forks
485
7-day trend score
42

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/microsoft/fluentui-blazor/csharp-naming-conventions/badge)](https://verified-skill.com/skills/microsoft/fluentui-blazor/csharp-naming-conventions)

Something wrong with this skill or its page? Tell us.