Modern Csharp Coding Standards
This skill suggests modern C# coding standards for improved code quality, readability, and maintainability in your backend projects.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add modern-csharp-coding-standards npx -- -y @trustedskills/modern-csharp-coding-standards
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"modern-csharp-coding-standards": {
"command": "npx",
"args": [
"-y",
"@trustedskills/modern-csharp-coding-standards"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
Enforces modern C# coding standards, including formatting conventions, naming rules, and best practices for clean, maintainable code. It supports the latest language features and aligns with industry guidelines to ensure consistency across projects.
When to use it
- Refactoring legacy C# codebases to follow current best practices
- Ensuring team members adhere to a unified coding style in collaborative projects
- Automating code reviews or pre-commit checks for C# files
- Preparing code for open-source contributions or public repositories
Key capabilities
- Enforces consistent naming conventions (e.g., PascalCase for types, camelCase for parameters)
- Applies modern formatting rules aligned with .NET and Roslyn guidelines
- Supports language features from recent C# versions (e.g., records, pattern matching)
- Integrates with code analysis tools like Roslyn analyzers
Example prompts
- "Format this C# class to follow modern coding standards."
- "Check if this method adheres to current C# best practices."
- "Enforce naming conventions for all public properties in this file."
Tips & gotchas
- Ensure your project is targeting a recent version of the .NET SDK for full compatibility.
- Custom rules may require configuration files or integration with tools like StyleCop or Roslyn analyzers.
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.