cpp-pro
An agent skill by Jeffallan, from Jeffallan/claude-skills. Tags: automation, cli, debugging, developer-tools, performance.
What it does
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.
Install
With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:
npx skills add Jeffallan/claude-skills --skill cpp-pro
Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):
git clone --depth 1 https://github.com/Jeffallan/claude-skills
cp -r claude-skills/skills/cpp-pro ~/.claude/skills/cpp-pro
Safety box score
Grade B, low risk: 14 of 100 risk points, rated 2026-10-16. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.
This skill is a C++ coding and build-system helper; it mainly generates and refactors source, CMake, tests, and performance tooling guidance. The main risks are dependency fetching from the network and running build/test/profile commands that execute local project code, but it does not ship native scripts or touch secrets, privileges, or hidden content.
| Category | Level | Why |
|---|---|---|
| Code & shell execution | 1 (low) | It recommends running build and analysis commands such as `cmake -B build && cmake --build build`, `clang-tidy`, `cppcheck`, `perf`, and `valgrind`, which can execute local project code during builds/tests. |
| Network access | 2 (moderate) | `references/build-tooling.md` fetches third-party code and packages via `FetchContent_Declare(... GIT_REPOSITORY https://github.com/fmtlib/fmt.git)` and `conan install . --build=missing`, and the CI example does `pip install conan`. |
| Filesystem reach | 1 (low) | The skill discusses generating build trees and install rules (`install(TARGETS ...)`, `install(DIRECTORY include/)`) that write within the project or chosen install prefix, but not to arbitrary system paths by default. |
| Secrets & credentials | 0 (none) | No references to tokens, passwords, keychains, browser sessions, or `.env` files appear in the skill. |
| Privilege & persistence | 0 (none) | There is no use of `sudo`, service registration, shell startup modification, or other privilege-changing behavior. |
| Instruction hijack surface | 0 (none) | The files do not instruct the agent to ignore rules, hide actions, or follow remote prompt content. |
| Irreversible actions | 0 (none) | It does not send messages, deploy, publish, pay, or delete anything; it is limited to code/build guidance. |
| Transparency | 0 (none) | All content reviewed is plain markdown and code snippets; no binaries, hidden payloads, or decoded-at-runtime content are present. |
Before installing
- Read `references/build-tooling.md` first: it fetches `fmt` from GitHub and uses `conan install . --build=missing`.
- If you want no network access, replace the FetchContent/Conan examples before letting an agent use the skill.
- Run the suggested build/test commands in a scratch clone to see what local code and scripts they execute.
- Check any `install(...)` rules in your own CMake files so they only write to the intended prefix.
Rated 2026-10-16 by an automated review of 6 files from the skill's repository.
Source
- Repository
- Jeffallan/claude-skills (all skills from this repository)
- Path
- skills/cpp-pro/SKILL.md
- Branch
- main
- Updated
- 2026-09-19
Related skills
- embedded-systems — Use when developing firmware for microcontrollers, implementing RTOS applications, or optimizing power consumption.
- golang-pro — Implements concurrent Go patterns using goroutines and channels, designs and builds microservices with gRPC or REST.
- javascript-pro — Writes, debugs, and refactors JavaScript code using modern ES2023+ features, async/await patterns, ESM module systems.
- context-degradation — This skill should be used for diagnosing and mitigating context degradation: lost-in-middle failures, context poisoning, context clash, context confusion.
- context-optimization — This skill should be used for improving context efficiency: context budgeting, observation masking, prefix or KV-cache strategy, partitioning.
- reasoning-trace-optimizer — Debug and optimize AI agents by analyzing reasoning traces, context degradation, tool confusion, instruction drift, repeated task failures.