cpp_expert

cpp_expert is a skill for Claude Code, Codex from ApexIQ/skillsmith. It costs 27 tokens per session (325 once invoked), scanned A, original, MIT.

A set of guidelines for writing modern C++ using safer resource management, smart pointers, move operations, templates, and the standard library.

In plain words
What is it for?
Use it when designing or reviewing C++17, C++20, or C++23 code, especially ownership, performance, generic programming, and resource-lifetime decisions.
Why use it?
C++ gives developers direct control over memory and other resources, which can cause leaks, crashes, and expensive copies when handled carelessly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing or reviewing C++17, C++20, or C++23 code, especially ownership, performance, generic programming, and resource-lifetime decisions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/apexiq/skillsmith/cpp_expert
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 ApexIQ/skillsmith --skill cpp_expert
Clone the repo
git clone --depth 1 https://github.com/ApexIQ/skillsmith

Made for: Claude Code, Codex.

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 cpp_expert

README.md
[![agentmods](https://agentmods.dev/badge/skills/apexiq/skillsmith/cpp_expert/github.svg)](https://agentmods.dev/skills/apexiq/skillsmith/cpp_expert)
Your own site
<a href="https://agentmods.dev/skills/apexiq/skillsmith/cpp_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/cpp_expert/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 cpp_expert

Your own site · 80×15
<a href="https://agentmods.dev/skills/apexiq/skillsmith/cpp_expert"><img src="https://agentmods.dev/badge/skills/apexiq/skillsmith/cpp_expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 325 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.00027 $0.00325
Opus 5.5 $0.00011 $0.00130
Sonnet 5.5 $0.00005 $0.00065
Haiku 4.5 $0.00003 $0.00032

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

Security

Grade A, and why

cpp_expert 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 1mo 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.

src/skillsmith/templates/.agent/skills/cpp_expert/SKILL.md · 36 lines

What it actually says

C++ Expert

Professional guidelines for modern C++ development.

Philosophy

  • Modern C++: Use C++11/14/17/20/23 features to write safer and more expressive code.
  • Performance: High-performance systems with fine-grained control over hardware.
  • Resource Management: Strict adherence to RAII and smart pointers.

Patterns

  • RAII: Always manage resources (memory, file handles, locks) through object lifetimes.
  • Move Semantics: Use std::move and move constructors to avoid expensive copies.
  • Templates: Generic programming and metaprogramming for type-safe, reusable code.
  • STL: Maximize usage of the Standard Template Library (containers, algorithms).

Best Practices

  • Smart Pointers: Prefer std::unique_ptr by default, std::shared_ptr only when ownership is shared.
  • Const Correctness: Use const everywhere possible to prevent unintended mutations.
  • No Raw New/Delete: Use std::make_unique and std::make_shared instead of raw new.
  • Auto: Use auto for complex iterator types but prefer explicit types for clarity in business logic.
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. 1mo ago First seen · 36 lines · 27 tokens per session scan A ecdf7839321f

Subscribe to this mod's changes

cpp_expert is a skill published in the GitHub repository ApexIQ/skillsmith (5 stars, last pushed 6mo ago), licensed MIT. It adds 27 tokens to every session and 325 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

cpp-expert

Expert-level C++ development with modern C++20/23, STL, memory management, and performance. Use when the user mentions C++, C++20, C++23, the STL, templates, or performance, or when the task involves Modern C++ Features, Memory Management, Ranges and Views, or Coroutines.

personamanagmentlayer/pcl · 70 tokens

cpp-docs

Comprehensive C++26 reference covering all language features: basic syntax, fundamental types, type inference (auto, decltype), variables, storage duration, operators (arithmetic, comparison, logical, bitwise, member access, ternary, spaceship), control structures (if, switch, while, for, range-for), functions…

pledgeandgrow/pledge-skills · 472 tokens

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

holoscan-module-lifecycle

Develop external Holoscan Modules with the Holoscan CLI and use them in Holoscan applications: scaffold, test, Python bindings, DEB/WHEEL packaging, and clean-consumer proof.

NVIDIA/skills · 47 tokens

cuopt-numerical-optimization-api

LP, MILP, and QP (beta) with cuOpt — Python, C, and CLI. Use when the user is solving LP, MILP, or QP with any cuOpt interface.

NVIDIA/skills · 51 tokens

cpp

Use when writing, reviewing, modernizing, building, or debugging C++ - RAII and resource lifetime, smart-pointer ownership, move semantics and the Rule of Zero/Five, target-based CMake with FetchContent, and killing undefined behavior with ASan/UBSan/TSan plus clang-tidy. NOT borrow-checker / Result-Option / cargo…

ericrisco/rsc-harness · 81 tokens