scenario-godot-ui
Use when building or fixing game UI in Godot 4.7: main menu, settings screen, HUD (health bar, ammo, minimap frame), Control layout, containers, anchors…
от scenario-labs★ 4 422 звезды на GitHub
Установить scenario-godot-ui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Godot UI (UI developer)
Target: Godot 4.7.2.stable, macOS Apple Silicon.
Expert level here means one layout proven, by numbers and images, from a 1080x2400 phone in portrait
to a 3840x2160 monitor, in every language, with mouse, pad and screen reader. The stretch transform
scales, containers place, one Theme built in code styles, and nothing ships before a layout matrix
and a contact sheet say so. If a sibling skill named here is missing from your available skills,
load it with skill_get (Scenario MCP) or ask the user to install it
(https://github.com/scenario-labs/skills#install); unattended, proceed from tool schemas and flag
the gap.
REQUIRED BACKGROUND: scenario-godot-expert (channels, review loop, 6.3 traps).
Stance (the expert delta)
- Pick the base size for the extremes, not for 1080p. A square base (720x720) with
canvas_items+expandand Handheld Orientationsensorgives one scale for portrait and landscape (docs, Multiple resolutions). Measured: 1.5x on a 1080x2400 phone in both orientations, 3x on 4K. A 1152x648 base gives a 0.9375x canvas on the same phone and three undersized buttons [added, measured]. Godotneers' 1920x1080 base (1_OFJLyqlXI) suits desktop only. - Containers place, anchors pin. Sizing is a negotiation: the minimum size is the floor, Expand
claims leftover space, Fill uses it (Godotneers 1_OFJLyqlXI 00:35:00, Karto 5Hog6a0EYa0
00:14:39). Measured in a 400 px HBox: Expand without Fill leaves the claimed space empty (sibling
pushed to x 380); Fill or a stretch ratio without Expand changes nothing; ratios are summed, 1:3
gives 96 and 290 of 386 px (Karto 00:15:45). Anchor presets are relative to the parent;
set_anchors_preset()alone keeps the old offsets (a 50x50 child stays 50x50 on FULL_RECT), so useset_anchors_and_offsets_preset()(Karto 00:05:24, measured). A corner element also needs its grow direction, or longer text grows off screen [added, measured 1462 px wide in a 1152 px canvas]. - The look lives in one Theme resource built in code, with type variations instead of per-node overrides (docs, Theme type variations). StyleBoxes are shared Resources: an override reused on two nodes changes both (Karto 00:19:00).
- Focus is explicit. Nothing has focus at scene start, so
ui_downdoes nothing until something callsgrab_focus()(docs, Controller navigation; measured). Keep a menu stack that disables covered panels and returns focus to the opener (Mostly Mad Productions ecJZipjUj6k 00:08:57). - The current selection is the highest-contrast element on screen, body text comes first, two or three fonts at most, and the outro is faster than the intro (Rawb Herb, GodotCon 2025, sjmAD1ZLBcE 00:31:42, 00:21:34, 00:55:38).
- Text is keys, never literals. Named placeholders with
format(),tr_n()for plurals, context for identical English, auto translate disabled on dynamic text (docs, Internationalizing games). Fonts get fallbacks, not remaps. - HUD is passive and signal-driven. Its root and wrappers ignore the mouse; values change on
signals, not in
_process(consensus of 1_OFJLyqlXI, Yuw7CK5H8eA, f90ieBOoIYQ). A new string reshapes (200 labels: 1.1 to 1.5 ms of CPU per frame); assigning the identical string is an early-out, so the cost is the changed text, not the assignment [added, measured]. In-place array mutations never call a setter (0 calls afterappend, 1 after reassigning), so state arrays emit their own signal (NoBSGodot Yuw7CK5H8eA 00:05:06, measured). - Verify at device sizes headless, then look. Headless,
root.sizetakes any size and applies the project stretch, so a layout matrix runs in seconds; a windowed capture then renders each device with the notch drawn in [added, measured].
Establish first
| Input | Changes | Default if nobody says |
|---|---|---|
| Platforms and orientations | base size, orientation, touch target size | phone portrait + landscape, desktop to 4K: base 720x720, canvas_items, expand, orientation 6 (sensor) |
| Art style | stretch mode and scale mode | vector or high-res: canvas_items + fractional; pixel art: viewport, base 640x360, integer, Exclusive Fullscreen (docs) |
| Input devices | focus work, rebind screen, touch sizes | mouse, keyboard, pad, touch |
| Languages | fonts, RTL, Text Server Data on export | en plus one long (de), one CJK (ja), one RTL (ar) for te |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/critique.md
- references/expert-notes.md
- references/gui-paths.md
- references/procedures.md
- references/sources.md
- scripts/agentkit/ui/examples/build_g7.gd
- scripts/agentkit/ui/hud_bar.gd
- scripts/agentkit/ui/menu_stack.gd
- scripts/agentkit/ui/safe_area.gd
- scripts/agentkit/ui/ui_audit.gd
- scripts/agentkit/ui/ui_capture.gd
- scripts/agentkit/ui/ui_focus.gd
- scripts/agentkit/ui/ui_layout.gd
- scripts/agentkit/ui/ui_rebind.gd
- scripts/agentkit/ui/ui_selftest.gd
- scripts/agentkit/ui/ui_settings.gd
- scripts/agentkit/ui/ui_stretch.gd
- scripts/agentkit/ui/ui_theme.gd
- scripts/gd_ui.py
FAQ
Что делает скилл scenario-godot-ui?
Use when building or fixing game UI in Godot 4.7: main menu, settings screen, HUD (health bar, ammo, minimap frame), Control layout, containers, anchors, themes in code, 'UI scales wrong on phones', 'text too small on 4K', notch or safe area, stretch mode and aspect, gamepad or keyboard menu navigation, focus lost, input rebinding screen, localization (CSV, PO, tr_n plurals, Arabic RTL, CJK fonts, pseudolocalization), screen reader accessibility, UI scale slider, or clicks not reaching the game.
Как установить скилл scenario-godot-ui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-godot-ui запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…