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.
git clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsnpx agentmods add skills/pledgeandgrow/pledge-skills/cppWrote 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.
[](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/cpp)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 |
What ships with it
29 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- advanced-topics.md 14 KB
- basics-syntax.md 21 KB
- c-compat.md 19 KB
- chrono.md 6.5 KB
- classes-objects.md 27 KB
- concurrency.md 15 KB
- control-structures.md 6.6 KB
- coroutines.md 10.0 KB
- exceptions.md 9.1 KB
- functions.md 10 KB
- getting-started.md 7.3 KB
- idioms-patterns.md 15 KB
- io.md 18 KB
- keywords-reference.md 16 KB
- memory.md 15 KB
- metaprogramming.md 11 KB
- modules.md 4.3 KB
- numerics.md 15 KB
- operators.md 10 KB
- stl-algorithms.md 15 KB
- stl-containers.md 16 KB
- stl-regex.md 9.7 KB
- stl-strings.md 16 KB
- stl-utilities.md 20 KB
- templates.md 13 KB
- testing.md 9.3 KB
- types.md 16 KB
- variables.md 11 KB
- whats-new.md 17 KB
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.
- 1mo ago First seen · 143 lines · 472 tokens per session scan A e6b6d5295b82
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.
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.
cpp_expert
Modern C++ specialist (C++17/20/23). Smart pointers, move semantics, and generic programming.
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".
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.
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…
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.