imgui
БесплатноБез исполняемых скриптовНе проверенDear ImGui is a C++ immediate-mode GUI library for building debug panels, tools and editors inside games, simulations and other real-time apps. Use when asked…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Dear ImGui — immediate-mode GUI for C++ tools and debug panels
Overview
In an immediate-mode GUI you do not create and store widget objects. Every frame you call functions such as ImGui::Button("Reset") between NewFrame() and Render(); the call draws the widget and returns true when it was clicked. Your own variables hold the state: ImGui::SliderFloat("Speed", &speed, 0.0f, 10.0f) edits speed directly. This makes it a very quick way to expose parameters, profiling numbers and tools of a running program.
Dear ImGui itself has no dependencies and does not talk to the GPU or the operating system. It produces vertex buffers and draw commands. Backends (files backends/imgui_impl_*.cpp) feed it input and draw its output: a platform backend (GLFW, SDL2/3, Win32, ...) and a renderer backend (OpenGL3, Vulkan, DirectX 9-12, Metal, WebGPU, ...). You copy the core files plus one backend pair into your project; there is no library to install.
This skill is written for release v1.93.0 (October 2026). The docking branch of the repository adds dockable windows and multi-viewports, but it is a separate branch; use the release tag unless the user asks for docking.
Instructions
Getting the sources
Pin a release tag so the core files and backends stay in sync:
git clone --depth 1 --branch v1.93.0 https://github.com/ocornut/imgui.git third_party/imgui
Core files (repository root): imgui.cpp, imgui_draw.cpp, imgui_tables.cpp, imgui_widgets.cpp, and imgui_demo.cpp (the demo window, very useful as a code reference; leave it out of release builds). Always compile the backend files from the same tag as the core, because they change together.
Building with GLFW + OpenGL3
Install GLFW and OpenGL development packages with your package manager (on Ubuntu libglfw3-dev and libgl1-mesa-dev; ask the user to run the sudo command). The official example examples/example_glfw_opengl3/ compiles these files plus imgui_demo.cpp:
cmake_minimum_required(VERSION 3.16)
project(tool_panel CXX)
set(CMAKE_CXX_STANDARD 17)
find_package(glfw3 REQUIRED)
find_package(OpenGL REQUIRED)
set(IMGUI_DIR ${CMAKE_SOURCE_DIR}/third_party/imgui)
add_library(imgui STATIC
${IMGUI_DIR}/imgui.cpp ${IMGUI_DIR}/imgui_draw.cpp
${IMGUI_DIR}/imgui_tables.cpp ${IMGUI_DIR}/imgui_widgets.cpp
${IMGUI_DIR}/backends/imgui_impl_glfw.cpp
${IMGUI_DIR}/backends/imgui_impl_opengl3.cpp)
target_include_directories(imgui PUBLIC ${IMGUI_DIR} ${IMGUI_DIR}/backends)
target_link_libraries(imgui PUBLIC glfw OpenGL::GL)
add_executable(tool_panel main.cpp)
target_link_libraries(tool_panel PRIVATE imgui)
The three phases: init, frame loop, shutdown
This is the structure of the official GLFW + OpenGL3 example (v1.93.0):
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include <GLFW/glfw3.h>
// after creating the GLFW window and making its GL context current:
IMGUI_CHECKVERSION();
ImGui::CreateContext();
ImGuiIO& io = ImGui::GetIO();
io.ConfigFlags |= ImGuiConfigFlags_NavEnableKeyboard;
ImGui::StyleColorsDark();
ImGui_ImplGlfw_InitForOpenGL(window, true); // true = install GLFW callbacks
ImGui_ImplOpenGL3_Init(nullptr); // nullptr = backend picks a default GLSL version; pass e.g. "#version 130" to force one
while (!glfwWindowShouldClose(window)) {
glfwPollEvents();
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
// ... build UI here ...
ImGui::Render();
glClear(GL_COLOR_BUFFER_BIT);
// ... draw your own scene here, before the UI ...
ImGui_ImplOpenGL3_RenderDrawData(ImGui::GetDrawData());
glfwSwapBuffers(window);
}
ImGui_ImplOpenGL3_Shutdown();
ImGui_ImplGlfw_Shutdown();
ImGui::DestroyContext();
Order matters: the renderer NewFrame comes first, then the platform one, then ImGui::NewFrame(). Shutdown runs in the reverse order of the init.
For another stack, pick the matching pair from backends/ (for example imgui_impl_sdl3.cpp + imgui_impl_sdlrenderer3.cpp, or imgui_impl_win32.cpp + imgui_impl_dx11.cpp) and copy the calls from the matching examples/example_*/main.cpp in the same tag. Do not invent backend function names.
Common widgets
ImGui::Begin("Simulation"); // window; always pair with End()
ImGui::Text("Frame time: %.2f ms", 1000.0f / io.Framerate);
ImGui::SliderFloat("Gravity", &gravity, 0.0f, 20.0f);
ImGui::DragFloat3("Camera", cam_pos, 0.1f); // float[3]
ImGui::Checkbox("Wireframe", &wireframe);
ImGui::Combo("Quality", &quality, quality_names, 3); // const char* const[]
if (ImGui::Button("Reset")) world.reset();
ImGui::SameLine();
ImGui::PlotLines("ms", frame_ms, 120, ring_offset, nullptr, 0.0f, 33.0f, ImVec2(0, 60));
ImGui::End();
Tables: `if (ImGui::BeginTable("entities", 3, ImGuiTableFlags_Borders)) { ImGui::TableSetupColumn("Id"); ...; ImGui::TableHeadersRow(); for (...) { ImGui:
Установить imgui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл imgui?
Dear ImGui is a C++ immediate-mode GUI library for building debug panels, tools and editors inside games, simulations and other real-time apps. Use when asked to "add a debug UI to my C++ app", "integrate Dear ImGui with GLFW and OpenGL", "add sliders and a live graph to my renderer", "fix ImGui widget ID conflicts", or "use ImGui fonts in version 1.92 or later". Covers setup with the bundled backends, the per-frame loop, common widgets and the pitfalls of immediate mode.
Как установить скилл imgui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл imgui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic