cpp-pro · davila7 — Claude Code skill: what it does, how to install
Guides Claude Code to write modern C++ using RAII, smart pointers, and STL algorithms. Useful when building high-performance applications.
npx claude-code-templates@latest --skill development/cpp-proWhat cpp-pro does
This skill guides the agent toward modern C++ conventions spanning standards from C++11 up to C++23. It prioritizes stack allocation, smart pointers such as unique_ptr, and move semantics over manual memory management. Raw loops get replaced with standard library algorithms, while error detection focuses on compile-time checks and constexpr.
The assistant supplies structured CMakeLists.txt files, headers with #pragma once, and unit test configurations using Google Test or Catch2. Generated solutions aim for clean execution under AddressSanitizer and ThreadSanitizer, alongside Google Benchmark suites. For extended patterns, the skill references resources/implementation-playbook.md. The guidelines will fail on legacy toolchains lacking at least C++11 support.
What it helps with
- replace raw memory allocations with RAII and smart pointers
- convert imperative loops into standard STL algorithms
- configure CMakeLists.txt with modern C++ standards and flags
- generate unit tests with Catch2 or Google Test alongside memory sanitizers
Example prompts for the agent
- Refactor this resource wrapper using move semantics and the Rule of Five.
- Create a thread-safe queue in C++20 using atomics and concepts.
- Generate a CMakeLists.txt file with Google Benchmark targets for this parser.
How to install cpp-pro
1claude-code-templates
npx claude-code-templates@latest --skill development/cpp-pro2Skills CLI (Vercel)
npx skills add davila7/claude-code-templates --skill cpp-pro -a claude-code3Manually: put the files in place
~/.claude/skills/cpp-pro/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/cpp-pro/
Manually: put the files in place
.agents/skills/cpp-pro/SKILL.mdFor all projects use ~/.agents/skills/
Manually: put the files in place
.cursor/skills/cpp-pro/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install davila7/claude-code-templates cpp-pro2Manually: put the files in place
.github/skills/cpp-pro/SKILL.mdPlatform CLI
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/cpp-proManually: put the files in place
.devin/skills/cpp-pro/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about cpp-pro
How do I install cpp-pro in Claude Code?
Run npx claude-code-templates@latest --skill development/cpp-pro in your terminal.
Which C++ language standards are covered?
The skill covers modern language specifications from C++11 through C++23.
Which testing frameworks does cpp-pro support?
It prepares test suites for Google Test or Catch2, runs performance benchmarks with Google Benchmark, and verifies code using AddressSanitizer and ThreadSanitizer.
Similar skills
All skills for Programming languages →cpp-pro by other authors comes first.