/xonovex-native:writing-c99-opinionatedfrom xonovex-native
Applies opinionated C99 conventions for systems/embedded libraries: caller-owned memory, data-oriented layouts, implementation variants (scalar/AoS/SoA/SIMD), opaque handles, hot-reloadable modules, and FFI-friendly APIs.
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.
Apply caller-owned memory, data-oriented layouts, and explicit builders to systems C99. Apply writing-c99 for the shared language foundation.
const-correctness, designated initializers (ZII), inline-over-macros, compound literals, fixed-width types, value-oriented APIs, and baseline error/return patterns, follow writing-c99-Werror for correctness but relax the unused-symbol family for libraries, keep an ASan/UBSan debug build, run static analysis, see references/build-warnings-policy.md_* suffixes + parity tests; layout rationale in applying-data-oriented-design, see references/implementation-variants.md*_type.h, *_impl.h, *_aos.h, *_soa.h, *_simde.h, see references/file-naming.md-Werror on the unused-symbol family is wrong: header reflection/mapping tables and interface-mandated parameters are surface a TU may not reference. Relax -Wno-unused-{parameter,variable,but-set-variable,function}, keep -Wunused-value and correctness warningsC_STANDARD 99 still selects the GNU dialect while C_EXTENSIONS is on: set C_EXTENSIONS OFF, then define _XOPEN_SOURCE=700 or the required _POSIX_C_SOURCE value before headers when using POSIX APIsstatic inline in a header gives each TU its own internal-linkage copy (safe, but bloats if the compiler never inlines it); a plain inline definition has external linkage and needs exactly one TU to emit the external definition: don't mix the two storage classes for the same functionunsigned overflow is defined; signed overflow is undefined behavior, never rely on signed wrap_Alignas, alignas, alignof, and aligned_alloc are C11 facilities, not strict C99; use a guarded implementation extension and posix_memalign only after exposing its POSIX declarationstrlen/strcmp/strtok can repeatedly rescan the same terminator and become O(n²): apply the length-carrying views from writing-c99eval-output.json (opens in a new tab)eval-trigger.json (opens in a new tab)moon.yml (opens in a new tab)references/alignment.md (opens in a new tab)references/build-warnings-policy.md (opens in a new tab)references/composability.md (opens in a new tab)references/cross-language-api.md (opens in a new tab)references/file-naming.md (opens in a new tab)references/hot-reload.md (opens in a new tab)references/implementation-variants.md (opens in a new tab)references/physical-design.md (opens in a new tab)references/plugin-architecture.md (opens in a new tab)references/safety-validations.md (opens in a new tab)references/testing-patterns.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
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'./debugging-native-codeUse when finding the cause of a crash, memory corruption, leak, or intermittent bug in native C or C++ code, or making a class of bug impossible by design. Triggers on segfaults, access violations, use-after-free, callstacks, .dmp crash dumps, freed-memory fill patterns (0xdddddddd), heisenbugs, 'works on my machine', git bisect, minimal repro, assertions, ASan/UBSan/TSan, determinism, record/replay, even when the user doesn't say 'debugging'./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-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'.