/hera-godot:ui-theme-qafrom hera-godot
Finds and fixes undisciplined Godot Control-node UI by measuring spacing, type scale, colors, and WCAG contrast with the hera-godot CLI, then snapping theme tokens to a reference corpus. Reports inert containers and decorative nodes without changing them.
Ships in hera-godot. 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.
Mechanically remove statistical design defects from a live Godot editor, over
Control nodes. It does not redesign: it snaps theme tokens to a reference
corpus and never touches copy, information order, or layout structure.
Six areas, split by what they may do:
| areas | effect | |
|---|---|---|
| enforcing | spacing · type-scale · color · contrast | set theme_override_* (undoable) |
| report-only | containers · decoration | proposals in the report; no mutation |
The report-only pair would have to delete or re-parent nodes, which cannot be
decided mechanically — a node that looks decorative may be a divider, and
flattening a wrapper breaks the $Path/To/Node references scripts rely on. They
measure and surface; a human decides.
Why a pipeline, not one pass: one context holding every rule while fixing a large UI lets loud items crowd out quiet rules, which get silently dropped. So inspection and enforcement are split per area, and findings live in files. The orchestrator (this context) stays thin — it holds routing only; the detailed rules and findings live in the reference doc and the findings files.
Rules SSOT: references/ui-theme-areas.md. Values: references/reference-corpus.md. Read only the area section you are working; do not load all rules into one context.
hera-godot status — confirm one live editor (the live-editor skill covers
setup). If multiple, pass hera-godot --instance <pid> to every mutation.hera-godot guidance ui — respect the returned UI mode.hera-godot --ids scene tree (edited scene) — this
is the static surface the checks read.Dispatch one inspector per area (spacing, type-scale, color, contrast,
containers, decoration). Each:
references/ui-theme-areas.md,node get --props, eval --lang gdscript get_theme_color, game ui tree rects),findings-<area>.md using the schema (each item a check
predicate, never a status word).No mutation here. Inspectors snap replacement values to the corpus so the fix is carried in the finding, not invented later.
Merge the findings-*.md into one local HTML report and serve it:
python3 -m http.server <port> from the run folder, then hand the user
http://localhost:<port>/. Show measured values verbatim (distinct spacing
values, font-size ratios, contrast ratios). No artifact, no browser auto-open —
link only.
One area enforcer at a time, in order. containers and decoration are skipped
here — they enforce nothing. Each enforcing area:
findings-<area>.md + its area section,check from the live editor; applies the fix only where
the predicate is currently false (never trust the finding text),hera-godot node set <path> --prop "<theme_override…>" --value <v>
(undoable), snapping to the corpus rung/hex,Order = dependency order: spacing commits before type-scale, color
converges before contrast, and contrast runs last because it depends on the
final colours.
Dispatch fresh inspectors (not the enforcers) to recompute each enforcing
area's check predicates from source and write verify-<area>.md (true =
applied, false = missed). Any false re-enters step 3 for that area only. The
report-only areas have no check — they changed nothing, so there is nothing to
re-verify, and inventing a predicate that always passes would be a lie.
hera-godot run --current --wait, then hera-godot screenshot --runtime --analyze for a
before/after and a clipping/blank sanity gate (possible_clipping, nonblank).
hera-godot stop --wait. Render is confirmation, not measurement — the design facts
came from steps 1/3. Update the report in place.
check recomputed
from the live editor every time — never a stored "done". Enforcers fix only
false predicates; fresh re-inspectors recompute them.node set (Ctrl+Z survives). Copy, order, and layout are inviolable — which
is precisely why containers and decoration report instead of enforce.
Widening that would need an explicit opt-in flag, never a quiet default.node get / eval /
game ui tree; the screenshot analyzer is the confirmation gate, not a
measurement tool.Fast, mechanical, non-interactive. Ambiguous items are proposed in the report, not asked. Redesign-scale decisions (which accent, is this density right) are out of scope — surface them, do not silently pick.
Project-wide Theme construction is available through
resource create Theme <res://theme.tres> plus theme set, and
screenshot diff can locate before/after pixel changes. They complement this
skill but do not change its safe default: enforcement remains undoable per-node
theme overrides, while project-wide resource writes are persistent and not
undoable.
Automatic wholesale restyling remains out of scope. Hera can apply a style an
agent or user has already chosen, but this workflow does not invent taste or
silently replace the project's visual language. See the repo's
docs/UI_THEME_QA_DESIGN.md §11.1.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub notnull92/hera-agent-godot --plugin hera-godotOther plugins' skills for the same job