# cpp-pro

Guides Claude Code to write modern C++ using RAII, smart pointers, and STL algorithms. Useful when building high-performance applications.

- skill · `type=skill` · Claude Code · 70 installs
- Author: davila7
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/cpp-pro
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/cpp-pro

## What it 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.

## Install

### Claude Code (native platform)

1. **claude-code-templates**
```bash
npx claude-code-templates@latest --skill development/cpp-pro
```

2. **Skills CLI (Vercel)**
```bash
npx skills add davila7/claude-code-templates --skill cpp-pro -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/cpp-pro/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/cpp-pro/

### Codex

**Manually: put the files in place**
- File: `.agents/skills/cpp-pro/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

**Manually: put the files in place**
- File: `.cursor/skills/cpp-pro/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install davila7/claude-code-templates cpp-pro
```

2. **Manually: put the files in place**
- File: `.github/skills/cpp-pro/SKILL.md`

### Gemini CLI

**Platform CLI**
```bash
gemini skills install https://github.com/davila7/claude-code-templates --path cli-tool/components/skills/development/cpp-pro
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/cpp-pro/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/davila7/claude-code-templates/tree/HEAD/cli-tool/components/skills/development/cpp-pro

## When to use it
- 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
- 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.

## Similar
- [migrate-to-shoehorn](https://affpapa.org/en/nevibecode/skills/migrate-to-shoehorn.md) — skill · 475388 installs
- [write-swift](https://affpapa.org/en/nevibecode/skills/write-swift.md) — skill · 119300 installs
- [megacave](https://affpapa.org/en/nevibecode/skills/megacave.md) — skill · 25400 installs
- [find-docs](https://affpapa.org/en/nevibecode/skills/find-docs.md) — skill · 9400 installs
- [typescript-advanced-types](https://affpapa.org/en/nevibecode/skills/typescript-advanced-types.md) — skill · 92169 installs
- [smart-explore](https://affpapa.org/en/nevibecode/skills/smart-explore.md) — skill · 7300 installs

## Other versions with the same name
- [cpp-pro · jeffallan](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-cpp-pro.md) — 5300 installs

From the same set: [davila7/claude-code-templates](https://affpapa.org/en/nevibecode/by/davila7/claude-code-templates.md) — 804 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
