/xonovex-native:debugging-native-codefrom xonovex-native
Systematic debugging of native C/C++ crashes, memory corruption, leaks, and intermittent bugs using hypothesis-driven methods, sanitizers, and deterministic reproduction.
Ships in xonovex-native. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Systematic, hypothesis-driven debugging of native/low-level software, plus designing each class of bug out of existence. The cheapest bug is the one made impossible; the next cheapest is the one that trips a tripwire the instant it happens. Lifetime/ownership design lives in managing-memory, race correctness in writing-lock-free-code, and speed profiling in applying-data-oriented-design; this skill is about finding bugs and preventing classes of them.
eval-output.json (opens in a new tab)eval-trigger.json (opens in a new tab)moon.yml (opens in a new tab)references/bug-taxonomy.md (opens in a new tab)references/determinism-and-replay.md (opens in a new tab)references/instrumentation-and-checks.md (opens in a new tab)references/reproduction-and-bisection.md (opens in a new tab)references/scientific-debugging.md (opens in a new tab)sources.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
native-debugging, crash-analysis, memory-corruption, asan, ubsan, tsan, git-bisect
Other plugins' skills for the same job
npx claudepluginhub xonovex/platform --plugin xonovex-native8 skills in this plugin
/applying-data-oriented-designUse when making data layouts cache-friendly for performance-critical code, in any language. Triggers on SoA vs AoS or AoSoA, cache misses, hot/cold field splitting, component storage layout, batch processing, handles vs pointers, pointer chasing, even when the user doesn't say 'data-oriented' or 'cache'./managing-memoryUse when deciding how memory is allocated, owned, and freed in manual-memory code, in any language. Triggers on caller-provided buffers, arena, bump or linear allocators, object pools, free lists, virtual-memory reserve/commit, scratch allocators, object lifetimes, single ownership and borrowing, leaks, use-after-free, double-free, even when the user doesn't say 'memory' or 'allocator'./using-cmakeUse when writing or editing CMake builds for C or C++ projects on CMake 3.20+. Triggers on `CMakeLists.txt` and `*.cmake` files, adding targets, target_link_libraries, PUBLIC/PRIVATE/INTERFACE visibility, FetchContent, find_package, CTest, install rules, even when the user doesn't say 'CMake'./writing-c99Use when writing, editing, or reviewing plain C99 code such as libraries, CLI tools, and system utilities. Triggers on `.c`/`.h` files, designated initializers, fixed-width types, const-correctness, malloc/free, inline functions vs macros, string handling, error return codes, sanitizers, even when the user doesn't say 'C'./writing-c99-opinionatedUse when writing or editing systems or embedded C99 libraries with no hidden allocation, caller-provided buffers, and handle indices. Triggers on file naming that looks inconsistent, `.c`/`.h` files named `*_type.h`, `*_impl.h`, `*_soa.h` or `*_simde.h`, scalar/AoS/SoA/SIMD variants with parity tests, alignment macros, headers that include no headers, opaque handles, function-pointer plugin registries, hot-reloadable modules, and a C API for Lua, C#, Python or Rust FFI bindings, even when the user doesn't say 'opinionated'./writing-cross-platform-codeUse when porting native C or C++ software to another OS or to the web, or putting OS calls behind one platform layer. Triggers on scattered platform #ifdefs, function-pointer OS interfaces, porting to Linux, Emscripten/WebAssembly, emscripten_set_main_loop, ALLOW_MEMORY_GROWTH, WebGL or WebGPU from a Vulkan engine, /dev/input, evdev, gamepad hotplug, even when the user doesn't say 'portable'.