Dotnet best practices vs Roslyn analyzers
Dotnet best practices is an open-source agent skill for developer tools. Roslyn analyzers is an open-source agent skill for developer tools.
- Dotnet best practices is best for review a c# class for missing xml documentation and naming issues.
- Roslyn analyzers is best for write a roslyn analyzer that flags a specific api call and offers a code fix.
- What it is
- Dotnet best practices is an open-source agent skill for developer tools.Roslyn analyzers is an open-source agent skill for developer tools.
- Best for
- Review a C# class for missing XML documentation and naming issuesWrite a Roslyn analyzer that flags a specific API call and offers a code fix
- Kind
- SkillSkill
- Pricing
- Open sourceOpen source
- Platforms
- Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, GooseClaude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- GitHub stars
- 41.3K41.3K
- Last commit
- Nov 2026Nov 2026
- License
- MITMIT
- Open source
- Good for
- Review a C# class for missing XML documentation and naming issues; Add dependency injection and null checks to a .NET service; Write MSTest unit tests with FluentAssertions and Moq for a handlerWrite a Roslyn analyzer that flags a specific API call and offers a code fix; Build an incremental source generator that emits code from attributed classes; Add xUnit tests for a diagnostic covering positive, negative and fix cases
What Dotnet best practices does
XML documentation guidance
Asks for XML comments on public types and members, including parameter and return descriptions.
Dependency injection rules
Covers constructor injection, null checks, service lifetimes and interface-based design.
Async and error handling
Guides use of async/await, ConfigureAwait, specific exceptions and structured logging.
Testing conventions
Specifies MSTest with FluentAssertions and Moq, AAA layout and null-parameter tests.
Configuration and localization
Recommends strongly typed settings with validation and ResourceManager-based messages.
Semantic Kernel guidance
Outlines kernel setup, model settings and structured output for AI operations in .NET.
What Roslyn analyzers does
Operation-based analyzer design
Steers rules toward the narrowest IOperation or symbol actions, with concurrency and generated-code settings made explicit.
Incremental generator pipelines
Covers IIncrementalGenerator provider graphs, immutable models, and tests that confirm cached and selective recomputation.
Robust symbol matching
Resolves named types and members from the compilation and compares normalized symbols instead of display strings.
Analyzer test harness guidance
Describes positive, negative, code-fix and fix-all tests using inline markup and the Roslyn testing packages.
Compatibility dependency pinning
Explains pinning Roslyn and its transitive closure to an oldest supported host, with dependency-bot exclusions.
Analyzer packaging and versioning
Covers unique per-commit assembly versions and placing analyzer assets under analyzers/dotnet in NuGet packages.
Dotnet best practices vs Roslyn analyzers: questions
Is Dotnet best practices or Roslyn analyzers cheaper?
Both are open source. Compare current plans on each official site.
What is the difference between Dotnet best practices and Roslyn analyzers?
Dotnet best practices is an open-source agent skill for developer tools. Roslyn analyzers is an open-source agent skill for developer tools.
