Cpp Include Sorter
This tool automatically sorts C++ source code includes for optimal compilation speed and readability, improving build efficiency.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add cpp-include-sorter npx -- -y @trustedskills/cpp-include-sorter
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"cpp-include-sorter": {
"command": "npx",
"args": [
"-y",
"@trustedskills/cpp-include-sorter"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill sorts C++ include statements alphabetically. It helps to organize and standardize header files, improving code readability and maintainability within C++ projects. The tool automatically arranges includes based on project dependencies.
When to use it
- When refactoring a large C++ codebase with many include directives.
- To enforce consistent formatting across a team of developers working on the same project.
- Before submitting code for review, ensuring clean and organized header files.
- During automated build processes to maintain code quality standards.
Key capabilities
- Alphabetical sorting of C++ includes
- Automatic dependency-based ordering (implied)
- Code formatting standardization
Example prompts
- "Sort the include statements in
my_project/src/main.cpp." - "Organize the header files in
my_projectalphabetically by include order." - “Reformat includes for consistency within
path/to/headerfile.h”
Tips & gotchas
This skill assumes you have a C++ project structure and source code available. The effectiveness of dependency-based ordering relies on the accuracy of your project's build system or include relationships.
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.