imgui-guide

imgui-guide is a skill for Claude Code from xonovex/platform. It costs 127 tokens per session (1,406 once invoked), scanned A, original, MIT.

A guide to designing and implementing immediate-mode graphical user interfaces, where the interface is rebuilt from application data each frame. It covers control IDs, focus, dragging, scaling, and preparing drawing data for the GPU.

In plain words
What is it for?
Use it when building or reviewing an immediate-mode GUI, including keyboard navigation, drag-and-drop, per-monitor scaling, and batched drawing.
Why use it?
It explains how to manage the small amount of state that an immediate-mode interface cannot recompute, avoiding unclear focus, ordering, and interaction bugs.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the xonovex-game-engine plugin — 11 skills shipped together

Good fit Use it when building or reviewing an immediate-mode GUI, including keyboard navigation, drag-and-drop, per-monitor scaling, and batched drawing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xonovex/platform/imgui-guide
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add xonovex/platform --skill imgui-guide
Clone the repo
git clone --depth 1 https://github.com/xonovex/platform

Made for: Claude Code.

Or install xonovex-game-engine, the plugin that ships this one along with the rest of its 11 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imgui-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/xonovex/platform/imgui-guide/github.svg)](https://agentmods.dev/skills/xonovex/platform/imgui-guide)
Your own site
<a href="https://agentmods.dev/skills/xonovex/platform/imgui-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/imgui-guide/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for imgui-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/xonovex/platform/imgui-guide"><img src="https://agentmods.dev/badge/skills/xonovex/platform/imgui-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.01406
Opus 5.5 $0.00051 $0.00562
Sonnet 5.5 $0.00025 $0.00281
Haiku 4.5 $0.00013 $0.00141

Measured 1mo ago against content hash 2eaa3eb417c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

imgui-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/runtime/plugin/plugin-game-engine/skills/imgui-guide/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Immediate-Mode GUI Guidelines

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.

Requirements

  • The UI is rebuilt every frame; widgets return their result inline (if (button(id, ...))), they are not retained objects.
  • A small per-frame and cross-frame state store holds only what immediate mode cannot recompute: hover, active, focus, drag, layout.

Essentials

  • One draw call - Pack all widgets into compact primitive buffers and synthesize vertices in the shader; encode clip and texture so no state switches are needed, see references/draw-batching.md
  • Stable unique IDs - Key hover, active, focus, drag, and tab order by per-control id: the substitute for retained widget objects, see references/ids-and-state.md
  • Frame delay resolves ordering - Immediate mode can't see later controls; defer hover/focus decisions one frame so the last-drawn control wins, see references/frame-delay.md
  • Process events in end_*(), consume by clearing - Trickle keyboard events through a responder chain; one event per frame, see references/events-and-focus.md
  • Drag-and-drop is a data operation - Hold a single global drag id; the drop is a data-model mutation, not UI plumbing, see references/drag-and-drop.md
  • Own DPI - Work in virtual coordinates, scale at the edges (vertex shader, rect conversion), key the font atlas by DPI, see references/dpi-scaling.md

Localization & Accessibility

  • Hash the source string as the key - Wrap visible text in 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.md
  • Build a side semantic tree while drawing - As each control is drawn, register its role/label/rect/state into a per-frame list, then expose that list to platform accessibility APIs and automation: immediate mode does not preclude a screen-reader-visible tree, see references/accessibility.md

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 63 lines · 127 tokens per session scan A 2eaa3eb417c7

Subscribe to this mod's changes

imgui-guide is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed 4d ago), licensed MIT. It adds 127 tokens to every session and 1,406 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-08.

Related

Other skills, from other repositories

frontend

Builds, styles, and polishes web UI and UX. Use for any frontend, page, component, styling, layout, animation, or visual-quality task, or when asked to make an interface look or feel a certain way.

code-yeongyu/lazycodex · 49 tokens

cli-anything-photoshop

A command-line tool that controls Adobe Photoshop through Windows automation. It can work with Photoshop documents, layers, selections, text, image adjustments, and exports.

yb2460/harness-anything · 43 tokens

ui-align

Visual-alignment workflow for a new UI need or a UI改进. Index-first (consult the ui-kit registry to avoid re-building an existing primitive), then implement, then run the screenshot harness to capture the component in light/dark against the live /ui-kit, then produce a ReportCard (screenshot assets side by side + a…

Prismer-AI/PrismerCloud · 128 tokens

design-review

Five-dimension design audit (frontend UI/UX · server data-model & flow · endpoint spec · daemon-runtime/SDK & local-cache-first · built-in skill/agent-role), executed by a NON-implementing agent. Every dimension gets a verdict; N/A only with a stated reason. A dimension the design silently skipped must be surfaced as…

Prismer-AI/PrismerCloud · 84 tokens

temps-design-system

Classify a console screen (list/record/form), build it on @temps-sdk/ds templates and the shared shadcn primitives in @temps-sdk/ui, and follow the console's status vocabulary and status colour rules. Use for any new or changed console UI in web/src, and when building or extending web/packages/ds itself.

gotempsh/temps · 72 tokens

antv-x6-editor

A skill for creating and troubleshooting interactive diagrams with AntV X6, a JavaScript engine for editors made of connected nodes and lines. It supports diagram types such as flowcharts, dependency graphs, entity-relationship diagrams, and organization charts.

antvis/chart-visualization-skills · 253 tokens