.NET Code Formatter (MCAF)
Standardizes .NET codebases using the dotnet format CLI to enforce style, fix analyzer issues, and ensure CI compliance.
The mcaf-dotnet-format skill integrates the first-party .NET SDK formatting tools directly into the Claude Code environment. It automates the application of code style, whitespace, and analyzer fixes based on your project's .editorconfig file, ensuring consistent code quality across solutions. Beyond simple formatting, it provides structured workflows for setting up CI-ready verification checks, bootstrapping missing SDK tools, and managing potential conflicts with other formatters like CSharpier, making it an essential utility for professional .NET development.
Key Features
01132 GitHub stars
02Detects and bootstraps missing .NET SDK formatting tools
03Automates dotnet format for whitespace, style, and analyzer fixes
04Synchronizes code style based on repo-specific .editorconfig files
05Manages tool ownership conflicts between dotnet format and CSharpier
06Implements CI-safe verification using the --verify-no-changes flag
Use Cases
01Automating the setup of formatting checks within a GitHub Actions or Azure DevOps pipeline
02Mass-resolving style drifts and analyzer violations according to project-specific guidelines
03Ensuring consistent code style across a large .NET solution before submitting a pull request