programming/cpp-patterns/SKILL.md
Modern C++ patterns and best practices for readable, safe, maintainable C++ code: RAII, ownership, error handling, API design, concurrency basics, and build/tooling hygiene. Use when writing or reviewing C++ (C++20+) code.
npx skillsauth add aeondave/malskill cpp-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill is for day-to-day modern C++: safety, clarity, and maintainable APIs.
If you’re focused on test writing/tooling, use cpp-testing.
new/delete.std::unique_ptr for exclusive ownership; std::shared_ptr only when shared ownership is required.std::expected-style returns vs status codes.string_view, iterator invalidation)const correctness is consistentexplicitLoad on demand:
references/ownership-raii.md — ownership rules, RAII patterns, smart pointers, lifetimereferences/core-guidelines.md — distilled C++ Core Guidelines pointersreferences/api-design.md — interface design, value semantics, error strategyreferences/concurrency.md — jthread, mutex, atomic, condition_variable, stop_token, race detectionreferences/tooling-build.md — compiler warnings, sanitizers, static analysis, binary inspection (MinGW/objdump, MSVC/dumpbin, Linux tools), CMake hygienedevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.