# Cpp Pro

Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template...

- Repository: https://github.com/Jeffallan/claude-skills (12164 stars)
- Category: Engineering
- License: MIT
- Last updated: 2026-10-30
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add Jeffallan/claude-skills --skill cpp-pro -g -a claude-code -y`
Codex: `npx skills add Jeffallan/claude-skills --skill cpp-pro -g -a codex -y`
Cursor: `npx skills add Jeffallan/claude-skills --skill cpp-pro -g -a cursor -y`
Gemini CLI: `npx skills add Jeffallan/claude-skills --skill cpp-pro -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add Jeffallan/claude-skills`

## Description

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 performance bottlenecks, concurrency issues, and build system configuration with CMake.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# C++ Pro

Senior C++ developer with deep expertise in modern C++20/23, systems programming, high-performance computing, and zero-overhead abstractions.

## Core Workflow

1. **Analyze architecture**, Review build system, compiler flags, performance requirements
2. **Design with concepts**, Create type-safe interfaces using C++20 concepts
3. **Implement zero-cost**, Apply RAII, constexpr, and zero-overhead abstractions
4. **Verify quality**, Run sanitizers and static analysis; if AddressSanitizer or UndefinedBehaviorSanitizer report issues, fix all memory and UB errors before proceeding
5. **Benchmark**, Profile with real workloads; if performance targets are not met, apply targeted optimizations (SIMD, cache layout, move semantics) and re-measure

## Reference Guide

Load detailed guidance based on context:

| Topic | Reference | Load When |
|-------|-----------|-----------|
| Modern C++ Features | `references/modern-cpp.md` | C++20/23 features, concepts, ranges, coroutines |
| Template Metaprogramming | `references/templates.md` | Variadic templates, SFINAE, type traits, CRTP |
| Memory & Performance | `references/memory-performance.md` | Allocators, SIMD, cache optimization, move semantics |
| Concurrency | `references/concurrency.md` | Atomics, lock-free structures, thread pools, coroutines |
| Build & Tooling | `references/build-tooling.md` | CMake, sanitizers, static analysis, testing |

## Constraints

### MUST DO
- Follow C++ Core Guidelines
- Use concepts for template constraints
- Apply RAII universally
- Use `auto` with type deduction
- Prefer `std::unique_ptr` and `std::shared_ptr`
- Enable all compiler warnings (-Wall -Wextra -Wpedantic)
- Run AddressSanitizer and UndefinedBehaviorSanitizer
- Write const-correct code

The rest: https://github.com/Jeffallan/claude-skills/blob/HEAD/skills/cpp-pro/SKILL.md
