Csharp Style Guide
This C# Style Guide helps ensure consistent and readable code by applying best practices, improving maintainability and collaboration.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add csharp-style-guide npx -- -y @trustedskills/csharp-style-guide
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"csharp-style-guide": {
"command": "npx",
"args": [
"-y",
"@trustedskills/csharp-style-guide"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enforces C# coding style guidelines. It automatically checks code for adherence to common conventions, including formatting, naming, and best practices. The goal is to improve code readability, maintainability, and consistency across projects.
When to use it
- Code Reviews: Automate the initial pass of a code review to identify stylistic issues before focusing on logic errors.
- New Project Setup: Ensure all new C# code adheres to the project's defined style guide from the outset.
- Refactoring Existing Code: Apply consistent formatting and naming conventions during large-scale refactoring efforts.
- Team Collaboration: Enforce a shared coding standard across development teams, reducing conflicts and improving collaboration.
Key capabilities
- Formatting enforcement (whitespace, indentation)
- Naming convention checks (variables, methods, classes)
- Best practice recommendations based on common C# style guides
Example prompts
- "Check this C# code for style violations."
- "Format the following C# code according to standard conventions."
- "Analyze this C# class and suggest improvements to its naming and structure."
Tips & gotchas
- The skill relies on a pre-defined set of C# style guidelines. Customization options may be limited or unavailable depending on the implementation.
- Ensure the AI agent has access to the relevant C# code files for analysis.
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.