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.

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.

agentmods
npx agentmods add skills/apexiq/skillsmith/cpp_expert
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00014 $0.00162
Sonnet 5 $0.00005 $0.00065
Haiku 4.5 $0.00003 $0.00032

Measured 2d ago against content hash ecdf7839321f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, 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 2d 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. 2d 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 5mo ago), licensed MIT. It adds 27 tokens to every session and 325 once invoked, about $0.0001 per session on Opus 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

subzeroclaw-contribute

Develop SubZeroClaw — the single-file 550-line C agentic runtime. Load this before changing src/subzeroclaw.c or src/test.c: it carries the anti-framework thesis (the goal is NOT to grow), the code map (the loop, config, the shell tool, async compaction), what will and won't be merged, and the build/test loop. To…

genlayerlabs/subzeroclaw · 100 tokens

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

boost-asio-pro

../../../engineering/boost-asio-pro/SKILL.md.

alirezarezvani/claude-skills · 0 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

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

c-code-style

Write, edit, or review C (and C-compatible header) code according to C coding style rules, then check and run clang-format to enforce formatting. Trigger on "write C code", "edit a .c/.h file", "review C code style", "format C code", "run clang-format", "check clang-format", "apply the C style guide".

MaJerle/c-code-style · 79 tokens