cpp-pro
Expert assistant for modern C++ development and performance optimization.
Install
mkdir -p .claude/skills/cpp-pro && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/832" && unzip -o skill.zip -d .claude/skills/cpp-pro && rm skill.zipInstalls to .claude/skills/cpp-pro
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.Key capabilities
- →Implement RAII and smart pointers
- →Apply move semantics and perfect forwarding
- →Utilize STL algorithms and containers
- →Configure CMakeLists.txt for C++ standards
- →Write unit tests with Google Test or Catch2
- →Profile performance with perf or VTune
How it works
The skill applies modern C++ standards and core guidelines to refactor code, prioritizing stack allocation and smart pointers over manual memory management. It validates outcomes through automated testing and performance profiling tools.
Inputs & outputs
When to use cpp-pro
- →Refactoring legacy code to modern standards
- →Implementing RAII patterns for memory safety
- →Optimizing C++ performance with STL algorithms
About this skill
Use this skill when
- Working on cpp pro tasks or workflows
- Needing guidance, best practices, or checklists for cpp pro
Do not use this skill when
- The task is unrelated to cpp pro
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
You are a C++ programming expert specializing in modern C++ and high-performance software.
Focus Areas
- Modern C++ (C++11/14/17/20/23) features
- RAII and smart pointers (unique_ptr, shared_ptr)
- Template metaprogramming and concepts
- Move semantics and perfect forwarding
- STL algorithms and containers
- Concurrency with std::thread and atomics
- Exception safety guarantees
Approach
- Prefer stack allocation and RAII over manual memory management
- Use smart pointers when heap allocation is necessary
- Follow the Rule of Zero/Three/Five
- Use const correctness and constexpr where applicable
- Leverage STL algorithms over raw loops
- Profile with tools like perf and VTune
Output
- Modern C++ code following best practices
- CMakeLists.txt with appropriate C++ standard
- Header files with proper include guards or #pragma once
- Unit tests using Google Test or Catch2
- AddressSanitizer/ThreadSanitizer clean output
- Performance benchmarks using Google Benchmark
- Clear documentation of template interfaces
Follow C++ Core Guidelines. Prefer compile-time errors over runtime errors.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
When not to use it
- →Tasks unrelated to C++ programming
- →Situations requiring tools outside the C++ scope
Limitations
- →Does not replace environment-specific validation or expert review
- →Requires explicit input of goals and constraints to function
How it compares
Unlike manual coding, this skill enforces specific C++ Core Guidelines and provides structured build and test configurations.
Compared to similar skills
cpp-pro side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| cpp-pro (this skill) | 18 | 4mo | No flags | Advanced |
| add-uint-support | 18 | 9mo | No flags | Intermediate |
| building | 1 | 2mo | Review | Intermediate |
| ispc-builtins | 1 | 6mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by sickn33
View all by sickn33 →You might also like
add-uint-support
pytorch
Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.
building
zilliztech
Use when building knowhere from source, configuring build options (CPU/GPU/DISKANN/ASAN), or troubleshooting compilation errors
ispc-builtins
ispc
Best practices for creating and modifying ISPC builtin files. Use when adding target-specific optimizations, implementing new builtin functions, or working with the hierarchical target system.
decomp-file
marijnvdwerf
Decompile a whole file (segment) in this Paperboy N64 project from top to bottom. Use when asked to decompile a .cpp/.c file end-to-end, "do the whole file", convert all of <file> from INCLUDE_ASM to C/C++, or migrate a segment. Complements the single-function `decomp` skill. Triggers on "decompile
cpp-pro
sleepyvani
Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques. Use when building or refactoring C++ code requiring concepts, ranges, coroutines, SIMD optimization, or careful memory management — or when addressing per
dev_unity_unreal
AllurinsX
dev_unity_unreal — an agent skill by AllurinsX.