← ClaudeAtlas

cpp-craftlisted

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.
rustcircle/c101 · ★ 0 · AI & Automation · score 65
Install: claude install-skill rustcircle/c101
# C++ craft Baseline: C++20 everywhere, C++23 where the toolchain supports it (GCC 14+, Clang 18+, MSVC 17.10+), C++26 features only behind a feature-test macro check. C++26 was finalized in 2026 and includes static reflection, contracts, `std::execution`, `std::simd`, `std::inplace_vector`, hardened standard library preconditions and erroneous behavior for uninitialized reads; trivial relocatability was removed. Compiler support lags: check the cppreference compiler-support page before using any C++26 feature, and guard with `__cpp_lib_*` / `__cpp_*` macros. Deep material: [UB catalogue with detectors](references/ub-catalogue.md) | [CMake presets, sanitizers, hardening, tests](references/build-sanitizers-testing.md) | [concurrency, memory model, coroutines](references/concurrency-coroutines.md) | [performance and SIMD](references/performance-simd.md) ## 1. Orient in a repo ```bash cmake --version; c++ --version ls CMakePresets.json CMakeUserPresets.json vcpkg.json conanfile.* .clang-tidy .clang-format 2>/dev/null grep -rnE 'CMAKE_CXX_STANDARD|cxx_std_' CMakeLists.txt cmake/ 2>/dev/null cmake --list-presets 2>/dev/null grep -rn 'fsanitize' CMake* cmake/ 2>/dev/null | head ``` Record: standard level, compilers in CI, package manager (vcpkg manifest, Conan 2, FetchContent), warnings policy, sanitizer jobs, test framework. If `compile_commands.json` is missing, configure with `-DCMAKE_EXPORT_COMPILE_COMMANDS=ON` so clang-tidy and clangd work. ## 2. The gate | Step | Comma