Code Formatter
This Code Formatter skill automatically cleans and standardizes your code for improved readability 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 aidotnet-code-formatter npx -- -y @trustedskills/aidotnet-code-formatter
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"aidotnet-code-formatter": {
"command": "npx",
"args": [
"-y",
"@trustedskills/aidotnet-code-formatter"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill formats C# code to improve readability and adhere to coding standards. It automatically adjusts indentation, spacing, and line breaks within provided C# code snippets. The tool aims to produce clean, consistent code that is easier to understand and maintain.
When to use it
- Refactoring legacy C# codebases to improve clarity.
- Ensuring new code adheres to a specific coding style guide.
- Preparing C# code for submission or review by others.
- Automating the formatting process in CI/CD pipelines.
Key capabilities
- C# Code Formatting
- Automatic Indentation
- Spacing Adjustment
- Line Break Insertion
Example prompts
- "Format this C# code: [paste code here]"
- "Please reformat the following C# snippet to follow standard conventions: [paste code here]"
- "Can you clean up and format this C# class? [paste code here]"
Tips & gotchas
The skill requires valid C# code as input; invalid syntax may lead to unexpected results. The formatting is based on common C# coding standards, but customization options are not currently supported.
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.