Agent skill

Cpp Pro

by davila7 in davila7/claude-code-templates

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms.

MITAuto-check passedDevelopment

Install Cpp Pro

skills CLI
$ npx skills add davila7/claude-code-templates --skill cpp-pro -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install davila7/claude-code-templates cpp-pro --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/davila7/claude-code-templates.git skills-src && mkdir -p .claude/skills && cp -r skills-src/cli-tool/components/skills/development/cpp-pro .claude/skills/cpp-pro && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cpp-pro
GitHub stars
32k
Used in
8 other repos
Token cost
~467 tokens
SKILL.md length
215 words
Files
7 (incl. references)
Skills in repo
477
Repo updated
First seen
Licence
MIT

At a glance

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms.

  • Works in 6 steps: Prefer stack allocation and RAII over… → Use smart pointers when heap allocation… → Follow the Rule of Zero/Three/Five → …
  • Tasks that involve Performance optimization
  • SKILL.md covers Use this skill when, Do not use this skill when, Instructions and Focus Areas, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cpp Pro is an agent skill from davila7/claude-code-templates. Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.

Its SKILL.md is about 470 tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including reference files (for example `references/build-tooling.md`, `references/concurrency.md` and `references/memory-performance.md`).

It sits in Development, covering Performance optimization. It works with C++. The repository describes itself as: CLI tool for configuring and monitoring Claude Code. The licence is MIT.

When your agent uses it

  • Tasks that involve Performance optimization

Example prompts

  • “/cpp-pro”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Prefer stack allocation and RAII over manual memory management
  2. Use smart pointers when heap allocation is necessary
  3. Follow the Rule of Zero/Three/Five
  4. Use const correctness and constexpr where applicable
  5. Leverage STL algorithms over raw loops
  6. Profile with tools like perf and VTune

What it can do on your machine

Read from SKILL.md and the folder at commit 14680ec. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cpp Pro loads about 467 tokens when it runs, and up to ~12k if it reads all its reference files. Until then it costs about 40 tokens; SKILL.md has 215 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~467
With references · SKILL.md plus every file in references/, read only if the agent opens them
~12k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from davila7/claude-code-templates at commit 14680ec, republished under its MIT licence (© davila7). 215 words, ~467 tokens.

Download SKILL.mdSave it as .claude/skills/cpp-pro/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
cpp-pro
description
Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Handles templates, move semantics, and performance optimization.
risk
unknown
source
community
date_added
2026-02-27

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

  1. Prefer stack allocation and RAII over manual memory management
  2. Use smart pointers when heap allocation is necessary
  3. Follow the Rule of Zero/Three/Five
  4. Use const correctness and constexpr where applicable
  5. Leverage STL algorithms over raw loops
  6. 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.

© davila7, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (references) in cli-tool/components/skills/development/cpp-pro of davila7/claude-code-templates.

  • SKILL.md
  • references/build-tooling.md
  • references/concurrency.md
  • references/memory-performance.md
  • references/modern-cpp.md
  • references/templates.md
  • resources/implementation-playbook.md

Open the folder on GitHubat commit 14680ec

Used in 8 other repositories

We found 21 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 8 other GitHub owners. This page covers the copy in davila7/claude-code-templates, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Cpp Pro next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cpp Pro compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cpp Pro this skilldavila7/claude-code-templates32k8 repos~467Automated safety check: PassMIT
ExecuTorch Binary Size Reductionpytorch/executorch5.1k—~793Automated safety check: PassCustom licence
Cppcrazyguitar/cppcheatsheet290—~1.8kAutomated safety check: PassMIT
x86 C and C++ Performance Patternsintel/intel-performance-skills332—~903Automated safety check: PassCustom licence
Ripwire Optimization Remarks Triageredhat-et/ripwire2.4k—~3.1kAutomated safety check: NotesApache-2.0
Interval Profiling Performance AnalyzerArabelaTso/Skills-4-SE253—~1.7kAutomated safety check: NotesApache-2.0

Similar skills

  • Measures and shrinks the ExecuTorch runtime binary by building a size test, analyzing it with bloaty and landing each reduction as its own pull request.

    5.1k GitHub stars~793 tokensUpdated today
    DevelopmentAuto-check passed
  • Cpp

    crazyguitar/cppcheatsheet

    Comprehensive C/C++ programming reference covering everything from C11-C23 and C++11-C++23, system programming, CUDA GPU computing, debugging tools, Rust interop, and advanced topics.

    290 GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • x86 C and C++ Performance Patterns

    intel/intel-performance-skills

    Official

    Spots and fixes known x86 C and C++ performance problems from source or profiler output, such as false sharing, missing restrict and narrow SIMD.

    332 GitHub stars~903 tokensUpdated 9 days ago
    DevelopmentAuto-check passed
  • Contributor guide for reading clang optimization remarks while editing ripwire's own C++, deciding between a source change and a build change such as LTO or PGO.

    2.4k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check: notes
  • Profile programs at the function/method level to identify performance hotspots, bottlenecks, and optimization opportunities.

    253 GitHub stars~1.7k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes
  • Latency Instrumentation

    nwjs/chromium.src

    Surgically injects trace macros (TRACEEVENT) into Chromium C++ files to expose "black box" latency gaps, resolves headers, and compiles the browser using a self-healing loop.

    160 GitHub stars~1.2k tokensUpdated 4 days ago
    DevelopmentAuto-check passed

More from davila7/claude-code-templates

All 477 skills in this repo
  • Perplexity Web Search

    davila7/claude-code-templates

    Runs web-grounded searches through Perplexity's Sonar models over OpenRouter for current events, recent literature and cited facts beyond the model's training cutoff.

    32k GitHub starsUsed in 12 repos~3.5k tokens
    Auto-check: notes
  • Neuropixels Data Analysis

    davila7/claude-code-templates

    Analyzes Neuropixels recordings from SpikeGLX or Open Ephys through preprocessing, drift correction, Kilosort4 spike sorting, quality metrics and curation.

    32k GitHub starsUsed in 10 repos~2.8k tokens
    Auto-check passed
  • Scientific Venue Templates

    davila7/claude-code-templates

    Supplies LaTeX templates and formatting rules for journals, conferences, posters, and grant proposals, then can check a draft against them.

    32k GitHub starsUsed in 9 repos~5.1k tokens
    Auto-check: notes
  • Brand Voice Content Creator

    davila7/claude-code-templates

    Analyzes a brand's existing writing to lock in a consistent voice, then builds SEO blog posts and platform-specific social content around it.

    32k GitHub starsUsed in 3 repos~1.9k tokens
    Auto-check passed
  • CAPA Officer

    davila7/claude-code-templates

    Guides corrective and preventive action (CAPA) work in a quality management system, from initiation and root cause analysis through effectiveness verification.

    32k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Fda Consultant Specialist

    davila7/claude-code-templates

    Senior FDA consultant and specialist for medical device companies including HIPAA compliance and requirement management.

    32k GitHub starsUsed in 1 repo~2.7k tokens
    Auto-check passed

Works with

Categories

Questions about Cpp Pro

What does Cpp Pro do?

Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms. Cpp Pro is an agent skill from davila7/claude-code-templates. Write idiomatic C++ code with modern features, RAII, smart pointers, and STL algorithms.

When should I use Cpp Pro?

Cpp Pro fits situations like: tasks that involve Performance optimization.

How do I install Cpp Pro in Claude Code?

Run `npx skills add davila7/claude-code-templates --skill cpp-pro -a claude-code`. Or copy the skill folder (cli-tool/components/skills/development/cpp-pro in davila7/claude-code-templates) into .claude/skills/cpp-pro in your project. Claude Code loads it when a task matches its description.

How do I install Cpp Pro in Codex?

Run `npx skills add davila7/claude-code-templates --skill cpp-pro -a codex`. Or copy the skill folder (cli-tool/components/skills/development/cpp-pro in davila7/claude-code-templates) into .agents/skills/cpp-pro in your project. Codex loads it when a task matches its description.

Can I use Cpp Pro in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add davila7/claude-code-templates --skill cpp-pro -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cpp-pro, .gemini/skills/cpp-pro, .github/skills/cpp-pro and .opencode/skills/cpp-pro in your project.

What does Cpp Pro need to run?

SKILL.md names no scripts, command-line tools or credentials: Cpp Pro is instructions for the agent only.

Does Cpp Pro access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cpp Pro safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cpp Pro use?

Cpp Pro is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cpp Pro use?

About 467 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.

What are the alternatives to Cpp Pro?

Skills that share tags, products or a category with Cpp Pro: ExecuTorch Binary Size Reduction (pytorch/executorch, 5.1k stars), Cpp (crazyguitar/cppcheatsheet, 290 stars), x86 C and C++ Performance Patterns (intel/intel-performance-skills, 332 stars) and Ripwire Optimization Remarks Triage (redhat-et/ripwire, 2.4k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cpp Pro?

davila7 (a GitHub user) maintains it in davila7/claude-code-templates, which has 32,463 GitHub stars. The repository holds 477 skills in this directory. The repository was last updated on October 8, 2026.

Source: davila7/claude-code-templates on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.