Dotnet Best Practices
Ensures C# code adheres to GitHub's recommended .NET coding standards and best practices for 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-best-practices npx -- -y @trustedskills/dotnet-best-practices
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"dotnet-best-practices": {
"command": "npx",
"args": [
"-y",
"@trustedskills/dotnet-best-practices"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The dotnet-best-practices skill provides guidance on implementing industry-standard practices for .NET development. It covers areas such as code structure, performance optimization, security measures, and testing strategies to help developers build robust and maintainable applications.
When to use it
- When refactoring legacy .NET code to improve readability and maintainability
- When setting up new projects and looking for standardized templates or guidelines
- When preparing for code reviews and wanting to ensure adherence to best practices
- When optimizing application performance in production environments
Key capabilities
- Code structure recommendations for clean, modular design
- Performance optimization techniques for .NET applications
- Security best practices for handling sensitive data and authentication
- Testing strategies including unit testing, integration testing, and CI/CD pipelines
Example prompts
- "What are the top 5 security best practices when building a .NET web API?"
- "How can I optimize the performance of my ASP.NET Core application?"
- "Can you provide a template for organizing a large-scale .NET solution?"
Tips & gotchas
- Ensure your project is using up-to-date .NET SDK versions to take full advantage of modern best practices.
- Some recommendations may require adjustments based on specific project requirements or team conventions.
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 |
🏢 Official
Published by the company or team that built the technology.