cpp

Featured

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 memory safety (that is rust).

AI & Automation 648 stars 89 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 98/100

Stars 20%
94
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Modern C++ Write, review, modernize, build, and debug C++ the way the C++ Core Guidelines intend: RAII for every resource, ownership made explicit through smart pointers and values, no undefined behavior by construction, and a target-based CMake build proven clean under sanitizers. Targets **C++20/23** for production today. C++23 is ISO/IEC 14882:2024; WG21 froze C++26's technical content on **2026-03-28** (ISO publication follows) — adopt C++26 features only behind confirmed compiler support. Compiler matrix: | Compiler | C++23 | C++26 | Flag | | --- | --- | --- | --- | | GCC | since 11 | since 14 (GCC 16.1 covers most of C++26) | `-std=c++23` / `-std=c++26` | | Clang | 13–18 progressively | in progress (Clang 23 dev) | `-std=c++23` / `-std=c++2c` | | MSVC | latest | partial | `/std:c++23` / `/std:c++latest` | Delegate: borrow-checker, `Result`/`Option`, cargo, ownership-via-compiler -> [`rust`](../rust/SKILL.md) — C++ buys safety with discipline (RAII + smart pointers + sanitizers); do not conflate the mechanisms. Language-agnostic threat modeling, authz, OWASP-class review -> [`secure-coding`](../secure-coding/SKILL.md); the C++-specific memory/UB controls (bounds, lifetime, integer overflow, format-string, sanitizers) stay **here**. Containerizing and shipping the binary -> [`deployment`](../deployment/SKILL.md); this skill stops at the CMake build + a sanitizer-CI note. ## Decision rules Apply these on every C++ edit: 1. **Rule of Zero first.** Manage resources ...

Details

Author
ericrisco
Repository
ericrisco/rsc-harness
Created
5 months ago
Last Updated
4 days ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

cpp-memory-raii

C++ resource and value semantics: rule of zero and five, RAII wrappers with custom deleters and std::out_ptr, ownership and parameter-passing tables, a move-semantics checklist, smart-pointer choice, std::expected vs exceptions with safety guarantees, dangling-lifetime pitfalls and std::pmr allocation control. Load when designing C++ classes or APIs, fixing leaks, or reviewing ownership.

0 Updated 1 weeks ago
rustcircle
AI & Automation Listed

sota-c-cpp

State-of-the-art C and C++ engineering rules that Claude applies when writing or auditing C/C++. Covers modern idioms (RAII, value semantics, smart pointers, C++23), memory safety (lifetimes, bounds, sanitizers, hardening flags), undefined behavior, security (SEI CERT C/C++, MISRA, integer/buffer/format-string, injection), concurrency (C/C++ memory model, atomics, data races), build/tooling/CI (CMake, clang-tidy, cppcheck, ASan/UBSan/TSan, vcpkg/Conan, supply chain), and performance. Trigger keywords - C, C++, RAII, smart pointer, unique_ptr, shared_ptr, undefined behavior, UB, buffer overflow, use-after-free, sanitizer, ASan, UBSan, TSan, valgrind, CMake, clang-tidy, cppcheck, MISRA, CERT C, memory safety, std::thread, atomics, std::move. Use for BOTH building C/C++ libraries/systems and reviewing or auditing them. Owns firmware's LANGUAGE layer; does NOT own its SYSTEMS layer — ISRs, DMA coherency, MMIO, RTOS scheduling, priority inversion, WCET, linker scripts — unowned library-wide.

29 Updated today
martinholovsky
AI & Automation Listed

cpp-craft

Modern C++ (C++20, C++23, C++26) expertise pack covering RAII and value semantics, move semantics, templates and concepts, constexpr, ranges, coroutines, the memory model and atomics, an undefined-behavior catalogue, sanitizers (ASan, UBSan, TSan), CMake presets, Catch2 and GoogleTest, and performance and SIMD. Load when writing, reviewing, debugging or optimizing C++ code or its CMake build.

0 Updated 1 weeks ago
rustcircle