/xonovex-game-engine:imgui-guidefrom xonovex-game-engine
Guides implementing immediate-mode GUIs: one draw call with compact buffers, stable IDs for state, frame-delayed ordering, keyboard focus/events, DPI scaling, localization, and screen-reader accessibility.
Ships in xonovex-game-engine. 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.
Architecture for an immediate-mode GUI: the UI is re-issued every frame from application data, controls are identified by id rather than retained objects, and the few things that must persist (hover, focus, drag, DPI) live in a small, deliberate state store. For how the resulting vertex/index data reaches the GPU, see gpu-rendering-guide.
if (button(id, ...))), they are not retained objects.LOCALIZE(...), resolve per frame through a swappable localizer that falls back to the source string, and audit coverage with a pseudo-localization mode, see references/localization.mdnext_hover, promote at frame end) so the topmost/last-drawn control wins.SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE) must run before any window is created, and DPI must be part of the font-atlas cache key or text renders blurry.// A button: stateless to issue, identified by a stable id; state lives in the ui context.
bool button(ui_o *ui, uint64_t id, rect_t r, const char *label) {
if (rect_contains(r, ui->mouse))
ui->next_hover = id; // resolved at frame end (last-drawn wins)
const bool clicked = ui->hover == id && ui->left_mouse_released;
draw_rect(ui->buffer, r, ui->hover == id ? COLOR_HOT : COLOR_NORMAL); // into shared primitive buffer
draw_text(ui->buffer, r, label);
return clicked;
}
SOURCES.md (opens in a new tab)eval-queries.json (opens in a new tab)evals.json (opens in a new tab)moon.yml (opens in a new tab)references/accessibility.md (opens in a new tab)references/dpi-scaling.md (opens in a new tab)references/drag-and-drop.md (opens in a new tab)references/draw-batching.md (opens in a new tab)references/events-and-focus.md (opens in a new tab)references/frame-delay.md (opens in a new tab)references/ids-and-state.md (opens in a new tab)references/localization.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub xonovex/platform --plugin xonovex-game-engine11 skills in this plugin
/asset-pipeline-guideUse when designing the asset pipeline of a tool or game engine, turning authored sources (FBX, glTF, PNG, WAV, shaders) into runtime-ready data: importers/compilers per asset type, a deterministic compile/cook step, content-addressed caching keyed by a hash of inputs and settings, dependency tracking so an edit reimports only what changed, platform-specific output, and live hot-reloading. Triggers on import, cook/bake, asset/build cache, reimport, dependency invalidation, file watcher, hot-reload of textures/meshes/materials, and 'why does changing one file rebuild everything', even when the user doesn't say 'asset pipeline'./audio-guideUse when building a low-level, real-time audio/sound system that does its own mixing: the OS audio callback / render thread, summing voices into the output buffer, sample-rate conversion and per-voice pitch, voice pools and stealing, and handing play/stop/parameter changes from the game thread to the audio thread. Triggers on audio underrun/dropout, clicks/pops, the audio callback can't lock or allocate, buffer size vs latency, resampling/interpolation, mixing gain/pan/clipping, fixed voice pools, even when the user doesn't say 'audio'.