Dotnet Roslyn Analyzers
These analyzers leverage Roslyn to inspect .NET code for potential issues and enforce coding standards, improving code quality and maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add dotnet-roslyn-analyzers npx -- -y @trustedskills/dotnet-roslyn-analyzers
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dotnet-roslyn-analyzers": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dotnet-roslyn-analyzers"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill leverages .NET Roslyn analyzers to automatically identify and flag potential code quality issues within C# projects. It helps enforce coding standards, detect common errors, and improve overall maintainability by providing real-time feedback during development. The skill can be used to analyze existing codebases or new projects from inception.
When to use it
- Code Reviews: Automate initial code review checks for style consistency and potential bugs before a human reviewer examines the code.
- New Project Setup: Enforce coding standards and best practices automatically as a new C# project is created.
- Refactoring Existing Code: Identify areas in an existing codebase that need improvement based on defined rulesets.
- Continuous Integration (CI): Integrate into CI pipelines to ensure code quality across all changes.
Key capabilities
- Automated code analysis
- Enforcement of coding standards
- Detection of potential errors and bugs
- Real-time feedback during development
Example prompts
- "Analyze this C# project for style violations."
- "Check this file for common .NET errors."
- "Run the recommended Roslyn analyzers on my codebase."
Tips & gotchas
- Requires a .NET SDK to be installed and configured.
- The effectiveness of the skill depends on the quality and relevance of the selected Roslyn analyzer rulesets.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.