cpp-docs

cpp-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 472 tokens per session (2,019 once invoked), scanned A, original, MIT.

A reference guide to C++, a compiled programming language used for applications where control over memory, speed, and system resources matters.

In plain words
What is it for?
Use it when writing or reviewing C++ code, choosing types and control structures, designing classes, handling memory ownership, and building projects with tools such as CMake, Make, GCC, Clang, or MSVC.
Why use it?
It puts language rules and practical details about compilers and build tools together, reducing the need to look across many references.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./build/myapp.

Good fit Use it when writing or reviewing C++ code, choosing types and control structures, designing classes, handling memory ownership, and building projects with tools such as CMake, Make, GCC, Clang, or MSVC.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skills
agentmods
npx agentmods add skills/pledgeandgrow/pledge-skills/cpp

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-docs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/cpp"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/cpp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 472 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,019 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.00472 $0.02019
Opus 5.5 $0.00189 $0.00808
Sonnet 5.5 $0.00094 $0.00404
Haiku 4.5 $0.00047 $0.00202

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

Security

Grade A, and why

cpp-docs 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.

skills/cpp/SKILL.md · 143 lines

How it starts

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

C++ Expert (C++26)

Official Documentation: https://en.cppreference.com/w/

Quick Reference

Topic File
Installation, compilers (GCC, Clang, MSVC), build systems (CMake, Make), compiler flags, tooling getting-started.md
Basic syntax, comments, main function, preprocessor directives, translation units, linkage basics-syntax.md
Fundamental types, type modifiers, type inference (auto, decltype), type conversion, narrowing types.md
Variables, scope, storage duration, qualifiers (const, constexpr, constinit, volatile, mutable), references variables.md
Operators (arithmetic, comparison, logical, bitwise, member access, ternary, spaceship), operator overloading operators.md
Control structures (if/else, switch, while, do-while, for, range-for, break, continue, goto) control-structures.md
Functions, overloading, default arguments, lambda expressions, constexpr/consteval/constinit, function pointers functions.md
Classes, constructors, destructors, copy/move semantics, RAII, rule of 0/3/5, access specifiers, inheritance, virtual functions, polymorphism, abstract classes, friend, nested classes classes-objects.md
Function templates, class templates, variadic templates, template specialization, CTAD, concepts templates.md
Smart pointers (unique_ptr, shared_ptr, weak_ptr), raw pointers, references, new/delete, allocators, PMR memory.md
Exceptions (try/catch/throw, noexcept, exception hierarchy, RAII and exceptions, error codes) exceptions.md
STL containers (vector, array, deque, list, forward_list, map, multimap, unordered_map, set, stack, queue, priority_queue, span, flat_map) stl-containers.md
STL algorithms (sort, find, transform, accumulate, partition, etc.), iterators, ranges, views stl-algorithms.md
Strings (string, string_view, char_traits, C strings, formatting) stl-strings.md
Utilities (pair, tuple, optional, variant, any, function, bind, reference_wrapper, source_location) stl-utilities.md
Concurrency (thread, jthread, mutex, lock_guard, unique_lock, shared_mutex, condition_variable, future/promise, async, latch, barrier, counting_semaphore, atomic, memory order, stop_token) concurrency.md
I/O (iostream, fstream, stringstream, format, print, println, file system) io.md
Chrono (duration, time_point, clock, calendar, time zone, formatting) chrono.md
Numerics (complex, random, valarray, ratio, numeric limits, math functions, special math) numerics.md
Coroutines (co_await, co_yield, co_return, task, generator, promise_type) coroutines.md
Regular expressions (std::regex, regex_match, regex_search, regex_replace, ECMAScript syntax, iterators) stl-regex.md
Modules (export, import, module interface, module partition, header units), headers modules.md
Metaprogramming (type traits, constexpr, consteval, concepts, SFINAE, fold expressions, compile-time programming) metaprogramming.md
Idioms and patterns (RAII, Rule of 0/3/5, CRTP, Pimpl, NVI, type erasure, copy-and-swap, value categories, ODR, ADL, design patterns) idioms-patterns.md
C standard library compatibility (C headers, C I/O, C memory, C strings, signals, assertions, errno, locale, wide chars) c-compat.md
Testing and benchmarking (Google Test, Catch2, doctest, Google Benchmark, mocks, fuzzing, CMake integration) testing.md
Keywords, operators, escape sequences, standard library headers, predefined macros, attributes, integer type ranks keywords-reference.md
Advanced topics (contracts, named requirements, freestanding, SIMD, reflection, evaluation order, debugging, safe reclamation, inplace_vector, hive) advanced-topics.md
C++26/23/20/17/14/11 new features and migration whats-new.md

Read the full file on GitHub · 143 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. 1mo ago First seen · 143 lines · 472 tokens per session scan A e6b6d5295b82

Subscribe to this mod's changes

cpp-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 472 tokens to every session and 2,019 once invoked, about $0.0019 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-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_expert

Modern C++ specialist (C++17/20/23). Smart pointers, move semantics, and generic programming.

ApexIQ/skillsmith · 27 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

readable-cpp

Readable C/C++/Rust/CUDA code rules inspired by The Art of Readable Code. Use when writing, reviewing, or refactoring C, C++, Rust, or CUDA code. Enforces short functions, flat control flow, clear naming, readable structure, and idiomatic patterns.

crazyguitar/cppcheatsheet · 63 tokens

cpp

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. Use for: C/C++ questions, C/C++ interview preparation, modern language features, RAII/memory management, templates/generics, CUDA…

crazyguitar/cppcheatsheet · 0 tokens

rust-expert

Expert-level Rust development with ownership, lifetimes, async, error handling, and production-grade patterns. Use when the user mentions systems programming, memory safety, concurrency, or Cargo, or when the task involves Ownership and Borrowing, Type System, Async Programming, or Web Development.

personamanagmentlayer/pcl · 60 tokens