CP

cpp-expert

Provides expert-level C++ code reviews focused on correctness, modern idioms, and portability.

Install

mkdir -p .claude/skills/cpp-expert && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12761" && unzip -o skill.zip -d .claude/skills/cpp-expert && rm skill.zip

Installs to .claude/skills/cpp-expert

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Review Yuzu C++ source changes for C++23 correctness, idiomatic standard-library use, ABI boundaries, threading primitives, and cross-compiler portability across GCC, Clang, MSVC, and Apple Clang. Use for any governance Gate 3 review when `.cpp`, `.hpp`, or `.h` files change.
276 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • Review C++23 correctness
  • Check idiomatic standard-library use
  • Validate ABI boundaries
  • Ensure cross-compiler portability
  • Flag undefined behavior

How it works

This skill reviews C++ source changes against C++23 standards, idiomatic usage, ABI boundaries, and cross-compiler portability.

Inputs & outputs

You give it
C++ source changes in .cpp, .hpp, or .h files
You get back
Findings with severity and concrete fixes, ending with PASS or BLOCKED

When to use cpp-expert

  • Reviewing C++23 features and template usage
  • Ensuring ABI boundary safety for plugins
  • Checking cross-compiler compatibility
  • Identifying use-after-move or ODR hazards

About this skill

C++ Expert

Use this skill for general C++ language review. Pair it with cpp-safety for ownership and lifetime proof; this skill covers correctness, idiom, portability, and ABI shape.

Review Focus

  • Load docs/cpp-conventions.md before reviewing C++ source changes.
  • Check std::expected, std::string_view, std::span, std::format, templates, concepts, move semantics, and concurrency primitives for correct C++23 use.
  • Check plugin ABI boundaries: no C++ types, exceptions, or unstable ownership contracts cross sdk/include/yuzu/plugin.h.
  • Check cross-compiler behavior against the supported matrix: GCC 13+, Clang 18+, MSVC 19.38+, and Apple Clang 15+.
  • Flag undefined behavior, use-after-move, ODR hazards, narrowing conversions, missing includes, non-portable extensions, and unnecessary copies on hot paths.

Output

Return findings first, with severity BLOCKING, SHOULD, or NICE, each grounded in file:line and a concrete fix. End with PASS or BLOCKED.

When not to use it

  • When the task is for ownership and lifetime proof
  • When the task is not a governance Gate 3 review

Limitations

  • It does not cover ownership and lifetime proof
  • It is specific to Yuzu C++ source changes
  • It is for governance Gate 3 reviews

How it compares

This skill provides a focused review on C++ correctness, idiom, portability, and ABI shape, complementing ownership and lifetime proof skills.

Compared to similar skills

cpp-expert side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
cpp-expert (this skill)02moNo flagsAdvanced
code-coverage-with-gcov154moReviewIntermediate
qt-cpp-review03moReviewAdvanced
dev_unity_unreal06moNo flagsAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry