Stroustrup Cpp Style
This skill applies the renowned Stroustrup C++ coding style guidelines for cleaner, more readable, and maintainable C++ code.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add stroustrup-cpp-style npx -- -y @trustedskills/stroustrup-cpp-style
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"stroustrup-cpp-style": {
"command": "npx",
"args": [
"-y",
"@trustedskills/stroustrup-cpp-style"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill enforces coding style guidelines based on Bjarne Stroustrup's recommendations for C++. It ensures consistent formatting, naming conventions, and code structure to improve readability and maintainability. The skill promotes adherence to best practices in modern C++ development.
When to use it
- Code Reviews: Automatically check C++ code submissions against the Stroustrup style guide during pull requests or automated reviews.
- Educational Purposes: Help students learn and apply proper coding conventions when learning C++.
- Team Standardization: Enforce a consistent coding style across a development team working on C++ projects.
- Legacy Code Refactoring: Guide the refactoring of older C++ codebases to align with modern best practices.
Key capabilities
- Enforces Stroustrup's naming conventions.
- Ensures consistent formatting (indentation, spacing).
- Promotes adherence to modern C++ coding practices.
Example prompts
- "Check this C++ code for style violations according to the Stroustrup guidelines."
- "Refactor this function to conform to the Stroustrup C++ style guide."
- "Explain why this line of code is not compliant with the Stroustrup coding standards."
Tips & gotchas
This skill requires a working environment capable of parsing and analyzing C++ source code. It's most effective when integrated into an automated build or review pipeline to provide consistent feedback.
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.