C++ Pro gives Claude a working method for high-performance C++ code. It reviews the build system and compiler flags, designs interfaces with concepts, implements with RAII and constexpr, then checks quality with sanitizers and static analysis.
Performance work is measured: benchmark with real workloads, apply targeted changes such as SIMD, cache layout or move semantics, and measure again.
What You Get
- Header files with interfaces and constrained templates
- Implementation files when needed
- CMakeLists.txt updates
- A test file that demonstrates usage
- A short explanation of design decisions and performance characteristics
Common Use Cases
- Constraining templates with C++20 concepts
- Wrapping a C resource in an RAII class
- Fixing memory errors found by sanitizers
- Speeding up a hot path with SIMD or better cache layout
- Configuring CMake builds with warnings and sanitizers
What Makes It Unique
Verification is built into the workflow: sanitizer reports must be fixed before moving on, and unmet performance targets lead to targeted changes and a new measurement. Reference files cover modern features, templates, memory and performance, concurrency and build tooling.
Under The Hood
The skill is a SKILL.md with five reference files and no scripts. It tells the agent to build the project and run sanitizers, static analysis and benchmarks, so it executes shell commands and compiler tools on your machine and writes C++ and CMake files in your project. It does not fetch web pages or call outside APIs.