Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
How it works
Ask it something hard.
📎 ai-skill-for-c-plus-plus.txtLOADED ✓
This worker thread crashes on shutdown with a use-after-free. Here is the class; fix it and set up an ASan build in CMake.
CLAUDE · WITH THIS SKILLYou get: the cause in one line (the thread outlives its owner because the destructor never joins it) -> the class rewritten with std::jthread and std::stop_token so shutdown is cooperative and joins automatically -> a std::scoped_lock around the shared queue with a one-line reason for the memory order on the stop flag -> a CMake preset with -fsanitize=address,undefined and -Wall -Wextra -Werror -> a GoogleTest case that starts and stops the worker 1000 times -> the C++20 and compiler versions assumed and the single next command: build the sanitizer preset and rerun the failing test.
Questions before you buy? A person answers, usually the same day: hello@kissmyskills.com
// the file itself
Read it before you buy it.
The first lines of the file your AI will read, exactly as delivered. Nothing rewritten for the page.
Use the name Once the file is loaded, talk to it by name: “Serge, check this page.” That is what the name is for. It also keeps several skills apart in one chat.
// the skill your AI runs on
You are a senior C++ developer working as the user's pair programmer across C++11 through C++23, RAII and ownership, CMake, and AddressSanitizer. You have been activated to write, review and debug code that is correct first and fast second.
KissMySkills.com | Install: paste this whole file into Claude Projects (Project instructions), a custom GPT (Instructions), a Gemini Gem, or your AI's system prompt. Then just ask questions the way you normally would. You are a senior C++ developer acting as the user's pair programmer. You know modern C++ (C++11 through C++23), the standard library, CMake and compilers, sanitizers and debuggers, and how C++ is used in systems code, games, embedded and finance. You optimise for code that is correct first (no undefined behaviour, clear ownership), then fast, and readable to the next person. You are a helper inside the language, not a job-role persona: you write, review, explain and debug C++ alongside the user. Tone: direct, practical, code first, one-line reason when a choice matters. · Ownership and lifetime: RAII, unique_ptr, shared_ptr, weak_ptr, rule of zero/three/five, move semantics, std::move versus std::forward, copy elision, dangling references from temporaries, string_view and span lifetime rules. · Templates: value categories, perfect forwarding, auto and decltype, variadics and fold expressions, constexpr, if constexpr, concepts and requires (C++20), why concepts replace SFINAE. · Standard library: vector, array, map, unordered_map, std::ranges views, algorithms, std::optional, std::variant with std::visit, std::expected (C++23), std::chrono, std::format (C++20), <filesystem>. · Concurrency: std::jthread with std::stop_token, std::mutex, std::scoped_lock, std::condition_variable, std::atomic and memory orders, data races as undefined behaviour. · Undefined behaviour hot spots: signed overflow, out-of-bounds access, use after free, uninitialised reads, strict aliasing, ODR violations, references to locals. · Build tooling: CMake (targets, target_link_libraries, FetchContent, presets, find_package), GCC, Clang and MSVC flags (-Wall -Wextra -Werror, /W4, -std=c++20), vcpkg and Conan, compile_commands.json. · Diagnostics: AddressSanitizer, UBSan, ThreadSanitizer, Valgrind, gdb/lldb, clang-tidy, reading template errors from the first "required from here" line. · Testing: GoogleTest, Catch2, Google Benchmark. · Style: the Core Guidelines, const correctness, noexcept, [[nodiscard]], enum class, no raw new/delete. · Ask for the C++ standard (-std=) and compiler with version when features depend on it. · Ask for the platform and build system when setup or linking is involved. · Ask for the exact compiler or linker error and surrounding code when debugging.
76 lines · .txt · instant download
// what's inside
What's inside this skill
Modern C++ with RAII, smart pointers, concepts, ranges and constexpr
Reviews ordered by severity: UB and lifetime bugs before style
Template and linker errors isolated to the one line that matters
CMakeLists.txt, sanitizer builds and GoogleTest or Catch2 targets
Systems, game, embedded, finance and HPC developers who write C++ every day and want a second reviewer on every change.
// two ways to get it
Use it inside your AI, or download it once.
Library plan
This skill and 2,500+ others, inside your chat
$9/mocancel anytime, or $59 a year
All 2,500+ skills, prompt packs and agents, loaded the moment you ask
Nothing to download or paste: connect once in Claude, ChatGPT, Claude Code or Cursor
New skills every week and 10 catalog files a month to download
Trademarks of their respective owners. KissMySkills is not affiliated with or endorsed by them.
// ask your assistant
Or let your AI set up this skill for you.
Go to kissmyskills.com/pages/connector and set up the "AI Skill for C++" skill (handle: ai-skill-for-c-plus-plus) for me
Paste it into Claude, ChatGPT, Claude Code, Cursor or Codex. Your AI walks you through connecting KissMySkills (about 3 minutes, 7-day free trial) and loads the skill. What your AI will read →
What you're actually buying
This Claude/ChatGPT skill gives you a C++ AI pair programmer for daily work in the language: it writes modern C++ with clear ownership, RAII and smart pointers, isolates the real message inside a template error wall, reviews your code for undefined behaviour and lifetime bugs before style, writes CMakeLists.txt with targets, warnings and FetchContent, sets up GoogleTest or Catch2, and tells you which sanitizer flags to build with when something crashes.
It knows move semantics, value categories, templates and concepts, ranges, std::optional, variant and expected, threads, jthread, atomics and memory orders, the Core Guidelines, GCC, Clang and MSVC flags, vcpkg and Conan, clang-tidy, AddressSanitizer and UBSan. It does not compile, run or profile your program; it writes and reviews, and you build and run to confirm.
Works the same way in Claude, ChatGPT and Gemini. One purchase, download the file, install in under 2 minutes, then paste the error, the crash report or the code you want reviewed. Pairs with Casimir, Embedded Systems Developer, the persona skill; this one is the helper inside C++.
// how to install
Under 2 minutes
Four steps. Any AI chat.
01
Download the file
After checkout, the download link lands in your inbox. Save the .txt file anywhere on your device.
02
Open your AI chat
Any AI chat you already use: Claude, ChatGPT, Gemini, Grok, Copilot or another.
03
Paste the prompt
Open the .txt file, copy the prompt section and paste it into Claude or ChatGPT - or add it to a Project so it is always there.
04
Start working
Your AI is now configured as a specialist. Ask it anything inside its domain.
No technical knowledge required.
With Library there is nothing to download. Connect your AI once, then ask for any skill by name.
It makes Claude or ChatGPT act as a C++ AI pair programmer. It writes modern C++ classes and functions with clear ownership, reviews your code for undefined behaviour, lifetime and thread-safety bugs, isolates compiler and linker errors, modernises legacy C++98 code, writes CMakeLists.txt and test targets, and guides crash debugging with sanitizers and gdb or lldb.
Does it compile, run or profile my C++ for me?+
No. The skill does not execute cmake, the compiler, sanitizers or benchmarks. It writes and reviews the C++ code, gives the exact build and sanitizer flags, and tells you what to run next, marking any assumption about your C++ standard and compiler so you can confirm on your machine.
Which C++ standards and compilers does it cover?+
It covers C++11 through C++23, including concepts, ranges, std::format, jthread and std::expected, with GCC, Clang and MSVC. It asks which standard and compiler your project uses before relying on a newer feature, and it says when a C++ feature such as modules still has limited compiler support.
Can it find undefined behaviour in my C++ code?+
Yes, that is the first thing it looks for in a review: dangling references, use after free, signed overflow, data races, out-of-bounds access, ODR problems and order-of-evaluation traps. It states plainly when C++ code has undefined behaviour even if it happens to work, and pairs the fix with AddressSanitizer or UBSan flags to confirm.
Ready to give your AI a specialist?
This one and 2,500+ others, inside Claude, ChatGPT, Claude Code, Codex or Cursor. Cancel anytime.