role-cpp-engineer

role-cpp-engineer is a skill for Claude Code from saemihemma/lead-producer-oss. It costs 48 tokens per session (635 once invoked), scanned A, original, MIT.

A C++ code-review guide covering modern C++ standards, resource ownership, memory safety, const correctness, value semantics, and testing. C++ is a programming language where careful resource management is especially important.

In plain words
What is it for?
Use it when writing or reviewing C++ code, checking smart-pointer and object-lifetime choices, assessing templates, or reviewing CMake, GoogleTest, and sanitizer setup.
Why use it?
It helps find leaks, unsafe ownership, unnecessary manual memory management, and weak tests before they cause failures. It also checks whether the code uses current C++ practices appropriately.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when writing or reviewing C++ code, checking smart-pointer and object-lifetime choices, assessing templates, or reviewing CMake, GoogleTest, and sanitizer setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saemihemma/lead-producer-oss/role-cpp-engineer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saemihemma/lead-producer-oss --skill role-cpp-engineer
Clone the repo
git clone --depth 1 https://github.com/saemihemma/lead-producer-oss

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for role-cpp-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-cpp-engineer/github.svg)](https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-cpp-engineer)
Your own site
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-cpp-engineer"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-cpp-engineer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for role-cpp-engineer

Your own site · 80×15
<a href="https://agentmods.dev/skills/saemihemma/lead-producer-oss/role-cpp-engineer"><img src="https://agentmods.dev/badge/skills/saemihemma/lead-producer-oss/role-cpp-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 635 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00048 $0.00635
Opus 5.5 $0.00019 $0.00254
Sonnet 5.5 $0.00010 $0.00127
Haiku 4.5 $0.00005 $0.00064

Measured 2mo ago against content hash 4f663c37cc5f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

role-cpp-engineer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/role-cpp-engineer/SKILL.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

C++ Engineer

Use When

  • Reviewing or writing C++ code
  • Assessing memory safety, ownership, or resource management
  • Evaluating build system, sanitizer, or test infrastructure for C++

Do NOT Use When

  • Problem is architecture-level, not language-level
  • Code is C (not C++) — different idioms apply

What You Own

  • Modern C++ idiom enforcement (RAII, Rule of Zero/Five, value semantics)
  • Memory safety: no raw new/delete, smart pointer discipline
  • Const correctness and immutability by default
  • Template and generic programming quality
  • Build and test infrastructure (CMake/CTest, GoogleTest/GoogleMock)

Working Method

  1. Check C++ standard level and whether modern features are used appropriately.
  2. Verify RAII: all resources tied to object lifetime, no manual memory management.
  3. Inspect ownership: unique_ptr for exclusive, shared_ptr only when genuinely shared, no raw owning pointers.
  4. Check const correctness, value semantics, and move semantics.
  5. Verify sanitizers (ASan, UBSan, TSan) are in CI and test coverage is measured.
  6. Produce quality verdict with highest-risk issues first.

Key Idioms

  • Prefer std::make_unique/std::make_shared over raw new
  • Accept non-owning parameters by const& or view types (std::string_view, std::span)
  • Return by value (rely on RVO/NRVO)
  • Use std::optional for maybe-values, std::expected (C++23) for expected failures
  • Prefer constexpr for compile-time computation
  • Use structured bindings for multi-return
  • Mandatory clang-format before commit

Testing Standards

  • Framework: GoogleTest + GoogleMock, integrated via CMake/CTest
  • Run: cmake --build build && ctest --test-dir build --output-on-failure
  • Coverage: cmake -DCMAKE_CXX_FLAGS="--coverage" with lcov
  • Sanitizers in CI: -fsanitize=address,undefined minimum; add thread sanitizer for concurrent code
  • RED-GREEN-REFACTOR cycle applies

Default Output

C++ REVIEW
==========
Standards: C++ version, modern feature usage, idiom compliance
Safety: RAII, ownership, const correctness, sanitizer coverage
Quality Risks: memory leaks, undefined behavior, missing tests
Recommendation: highest-leverage fixes

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 61 lines · 48 tokens per session scan A 4f663c37cc5f

Subscribe to this mod's changes

role-cpp-engineer is a skill published in the GitHub repository saemihemma/lead-producer-oss (2 stars, last pushed 2mo ago), licensed MIT. It adds 48 tokens to every session and 635 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

cpp-coding-standards

C++ coding standards based on the C++ Core Guidelines (isocpp.github.io). Use when writing, reviewing, or refactoring C++ code to enforce modern, safe, and idiomatic practices.

affaan-m/ECC · 48 tokens

frama-c-proofreader

Verify and proofread C code with ACSL using this repository's Frama-C MCP workflow, Frama-C WP static proof, EVA alarms, and optional E-ACSL runtime checks. Use when asked to run Frama-C, check ACSL contracts, explain WP goals, inspect EVA alarms, validate C annotations, or state what a C proof does and does not…

sysprog21/frama-c-mcp · 82 tokens

ia-c-systems

C patterns for systems code, libraries, and native extensions: module layout, function decomposition, status-enum errors, memory safety, undefined behavior, and performance measurement. Use when writing, reviewing, refactoring, or debugging C, working with malloc lifetimes, buffer overflows, sanitizers, or Valgrind…

iliaal/whetstone · 84 tokens

code-reviewer

A code-review procedure for Python, JavaScript, and Go programs. It checks security, performance, maintainability, naming, error handling, and testing.

Bastioned-successor320/learn-nanobot · 21 tokens

review-ocaml

Two-phase review of an OCaml project. Use when the user asks to review an OCaml codebase, audit its module interfaces, restructure or redocument .mli files, or hunt for redundancy, dead code and optimisation opportunities across implementations. Phase one reads only dune and .mli files to judge the public interfaces…

avsm/ocaml-claude-marketplace · 84 tokens

qt-cpp-review

Invoke when the user asks to review, check, audit, or look over Qt6 C++ code — or suggest before committing. Runs deterministic linting (60+ rules) then deep-analysis agents (scaled to the size of the change) covering model contracts, ownership, threading, API correctness, error handling, and performance. Reports only…

TheQtCompanyRnD/agent-skills · 92 tokens