ui-accessibility
Skill1 starsChanged yesterdayApache-2.0View on GitHub
Use when building or reviewing a Godot game's menus, HUD, dialogs or settings screens, for any resolution or aspect ratio, a gamepad alone, a screen reader, low vision, colour blindness or motion sensitivity.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- JetBrains/intellij-communitytheir own version, first seen Nov 26, 2026
- dmoreq/precepttheir own version, first seen Nov 15, 2026
- dmoreq/agent-grimoiretheir own version, first seen Nov 8, 2026
- DetachHead/rebasedtheir own version, first seen Oct 8, 2026
- thakur698/universal-ui-skillstheir own version, first seen Oct 5, 2026
- jscott3201/yet-more-skillstheir own version, first seen Sep 7, 2026
Used with
Projects with it also use python-performance.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
justanestaSkillpython-performance
Python performance profiling and optimization. Use this skill when code is slow, comparing implementations, or need to improve performance. Covers profiling tools (cProfile, line_profiler, memory_profiler), optimization strategies, numba, and when to use C extensions.
Also in 3 projects that use this
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- JetBrains/intellij-community★ 21ksame name
- DetachHead/rebased★ 6.6ksame name
- thakur698/universal-ui-skills★ 5same name
- jscott3201/yet-more-skills★ 4same name
- dmoreq/agent-grimoire★ 0same name
- dmoreq/precept★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- algorithmsSkill
- animationSkill
- anti-cheatSkill
- asset-pipelineSkill
- automation-hooksSkill
- calendarSkill
- cameraSkill
- console-certSkill
- debug-toolsSkill
- determinismSkill
- game-aiSkill
- game-audioSkill
- game-dataSkill
- game-designSkill
- game-juiceSkill
- game-planSkill
- game-playtestSkill
- gameSkill
- game-telemetrySkill
- godot-addonsSkill
- godot-diagnoseSkill
- godot-editor-bridgeSkill
- godot-export-releaseSkill
- godot-pitfallsSkill
- godot-shaders-vfxSkill
- godot-test-loopSkill
- inputSkill
- kit-reviewSkill
- kitSkill
- legalSkill
- llmSkill
- localizationSkill
- lookSkill
- mathSkill
- mobile-webSkill
- moddingSkill
- multiplayerSkill
- narrativeSkill
- new-gameSkill
- patternsSkill
- performanceSkill
- procgenSkill
- progressionSkill
- release-readinessSkill
- retroSkill
- savesSkill
- serversSkill
- steamSkill
- store-pageSkill
- typographySkill
- ui-flowsSkill
- verify-before-doneSkill
- weekly-reviewSkill
- xrSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 1 is distinctive, and 7 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Every menu works with a keyboard alone and with a gamepad alone, through Godot's focus and the ui_* actions.
- Very specific: line 24
When a screen opens, GrabFocus() on the likely choice.
- Very specific: line 33
Every popup and sub-menu closes on ui_cancel and gives focus back to the control that opened it.
- Distinctive: line 54
Never colour alone: selected, locked, disabled, error, rarity and team states also get an icon, shape, pattern or word.
- Very specific: line 86
Use real controls (Button, CheckBox, HSlider, OptionButton, TabContainer), not ones drawn by hand.
- Very specific: line 91
Leave accessibility/general/accessibility_support on Auto.
- Very specific: line 133
Every setting survives a restart (ConfigFile under user://).
- Very specific: line 154
Add-ons that cover part of this (docs/addons.md, read from their repositories, none run on 4.7.2): GATO (MPL-2.0.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Accessible menus and UI (WCAG 2.2, read for games)
W3C's WCAG 2.2 is written for web pages; most of it describes problems game menus have too. These are its level A and AA
rules for Godot UI, plus the AAA ones that cost little, tightened where Microsoft's game-specific Xbox Accessibility
Guidelines (XAG) are stricter, plus what the Game Accessibility Guidelines add. Every criterion, with what it means in a game and why, is in
${CLAUDE_PLUGIN_ROOT}/docs/wcag-ui.md. Cite the criterion number when you report a problem, so the user can look it up.
Gamepad and keyboard (2.1.1, 2.1.2, 2.4.3, 2.4.7, 3.2.1)
- Every menu works with a keyboard alone and with a gamepad alone, through Godot's focus and the
ui_*actions. Godot 4.7's default
ui_acceptandui_cancelhave no gamepad button: a pad can move focus but not press or go back. Add Joypad Button 0 (A) toui_acceptand Button 1 (B) toui_cancelin Project Settings > Input Map, or at start-up:InputMap.ActionAddEvent("ui_accept", new InputEventJoypadButton { ButtonIndex = JoyButton.A }); InputMap.ActionAddEvent("ui_cancel", new InputEventJoypadButton { ButtonIndex = JoyButton.B });- When a screen opens,
GrabFocus()on the likely choice. Focus moves in visual order; setFocusNeighbor*where a container guesses wrong. Grids do not loop. A linear menu loops from last to first only with a cue on the wrap, a sound unlike the step sound and a rumble; without one a player who cannot see never knows they are back at the top, so stop at the ends instead (Godot's own navigation does). Offer the setting (XAG 112). A short click on every focus move lets the steps be counted. Tested:${CLAUDE_PLUGIN_ROOT}/examples/csharp/game/Controls/LinearMenu.cs(Karen Stevens,${CLAUDE_PLUGIN_ROOT}/docs/gdc/aaa-gaming-while-blind.md). - The same items in the same order every time: nothing that appears only sometimes (an ad, a promotion, an event mode) shifts what follows and breaks the count of presses a blind player memorised. An unavailable item stays, disabled.
- A dialog takes focus on its first control and keeps it inside until closed; every submenu has a constant way back.
- Every popup and sub-menu closes on
ui_canceland gives focus back to the control that opened it. - The theme's
focusstylebox is never empty: at least a 2 px outline at 1080p, 3:1 against the unfocused look. ScrollContainer.FollowFocus = true, so the focused item is never scrolled out of view or left under a popup (2.4.11).- Moving focus only moves focus: it never applies a setting or opens a screen.
Seeing it (1.4.1, 1.4.3, 1.4.4, 1.4.5, 1.4.11, 2.5.8)
- Text size at launch, as body height (ascender to descender): at least 26 px at 1080p on console and TV, 18 px on PC (XAG 101). A sans-serif option, and a plain alternative to stylised fonts.
Contrast: text 4.5:1, including disabled text at 3:1; only large text (36 px on PC, 52 px on console, at 1080p, XAG 102) may drop to 3:1; focus rings, slider tracks, checkboxes, bars and HUD icons 3:1 against what is next to them. Measure after post-processing, over the worst point of a moving backdrop. Godot's
Luminancealone is wrong for this; WCAG's formula is:static double Contrast(Color a, Color b) { double la = a.SrgbToLinear().Luminance, lb = b.SrgbToLinear().Luminance; return (Math.Max(la, lb) + 0.05) / (Math.Min(la, lb) + 0.05); }- Never colour alone: selected, locked, disabled, error, rarity and team states also get an icon, shape, pattern or word.
- Colours that mean something (friendly, enemy, danger, faction A) are defined once, in the theme or one static class, and scenes and code use the names; then a colour that fails a test is fixed everywhere at once.
- Two things that must never be confused are blue and orange: they stay apart for protanopes, deuteranopes and tritanopes. Red and green of similar brightness collapse into one olive for the first two.
- Key markers (team, squad, enemy, loot, path) get a player-chosen colour in the settings, a
ColorPickerButtonor a row of swatches. Recolour the markers and the UI rather than offer a filter over the whole screen: a filter changes the world the player sees and still does not guarantee the markers differ. The options sit on an Accessibility page. - Clickable controls at least 24 x 24 px at 1080p (
CustomMinimumSize), more on a TV; touch targets 15 mm on phones (59 px at 100 DPI), 24 mm on tablets, and resizable (XAG 107). - Text is
Labels with a font, never painted into textures (logos aside): it scales, translates and can be read aloud. - A UI scale setting up to 200% (
GetWindow().ContentScaleFactor, or theme font sizes) with nothing clipped and lists scrolling one way only. Take screenshots at 200% and at the smallest resolution (section below).
Every resolution and aspect ratio
Layout bugs (blank labels, overflowing text, a game area stuck in a corner) are invisible to unit tests and headless runs: look at real frames, at the target resolution and at least one other aspect ratio, after every UI change.
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 shot -Json -Quiet -Scene res://ui/MainMenu.tscn,res://ui/Hud.tscn -Resolution 1920x1080Set a stretch mode first (canvas_items with expand for UI anchored to edges, keep for a fixed play area,
viewport with integer scaling for pixel art): without one, a larger window shows the game in the top-left corner.
The stretch table, anchoring, fonts, text over a 3D backdrop and comparing shots with a baseline: layout.md.
Phones, notches and safe areas: mobile-web.
Screen readers (1.1.1, 1.3.1, 2.5.3, 4.1.2, 4.1.3)
Godot 4.7 talks to screen readers through AccessKit; its own controls report their kind and value.
- Use real controls (
Button,CheckBox,HSlider,OptionButton,TabContainer), not ones drawn by hand. - Icon-only and custom controls get
AccessibilityName(containing any visible text) and aTooltipText. - A slider is tied to its label:
AccessibilityLabeledByNodes. - Toasts ("Saved", "Controller disconnected") set
AccessibilityLive = AccessibilityServer.AccessibilityLiveMode.Polite, errorsAssertive, so they are read without taking focus. - Leave
accessibility/general/accessibility_supporton Auto. Disabled turns screen readers off for everyone.
Time, motion and sound (1.4.2, 2.2.1, 2.2.2, 2.3.1, 2.3.3)
- Menus never time out. Auto-advancing dialogue and timed prompts can be turned off or slowed ten times.
- At most three flashes a second over about 20% of the screen, with a lower limit for saturated red (XAG 118): menu transitions, hit flashes, lightning (2.3.1, a seizure risk). Check it
against the hit rate, not one hit: a flash per hit at five hits a second fails (
game-juice). - A reduce-motion setting turns off button bounce, screen shake, parallax and camera sway; head bob and sway also get a
0 to 100% slider. Default it to on when
DisplayServer.AccessibilityShouldReduceAnimation() == 1, and a high-contrast theme whenDisplayServer.AccessibilityShouldIncreaseContrast() == 1. They return 1, 0, or -1 when the system does not say (the first is only implemented on Windows and macOS), so the settings must exist either way. - Separate volume and mute for each of
game-audio's buses, Music, Voice, SFX, Ambience and UI, apart from the master, and a mono option (XAG 105, which also names narration and voice chat when a game has them; how:game-audio). - Subtitles for all voiced dialogue, the opening cinematic included, on at first start or offered before the first line
(1.2.2, XAG 104). Size: design to 46 px at 1080p, never under 28 px, and offer a size setting. Put subtitle labels (or
their container) in the
subtitlesnode group: thetextsizerunner fails them under 28 px and warns under 46 px, scaled to each resolution's height. - Subtitle layout: bottom centre, in one place, inside a 5% safe margin; at most two lines of 38 characters (BBC; XAG 104
allows 40), broken where the sense breaks; one sentence per subtitle; on screen long enough for 180 words a minute.
Several at once: a new one enters at the bottom and pushes the oldest off the top, never a fixed row per speaker.
Tested splitting and reading time:
${CLAUDE_PLUGIN_ROOT}/examples/csharp/src/Example.Core/Ui/Subtitles.cs. - The speaker's name in text, even when colour tells speakers apart. Every sound the player must react to (hazards and ordinary enemies too, not only bosses) as captions in brackets, short subject and verb ("[door slams]"), with an arrow for off-screen speakers and sounds. A story line outranks a combat bark and is never pushed off by one.
- A solid box behind subtitles with adjustable opacity (an outline or shadow alone breaks up over busy scenes), a sans serif in sentence case, a live preview at the real size in the settings, and presets once the options are many.
Predictable and forgiving (2.5.2, 3.2.2, 3.2.3, 3.3.1, 3.3.4)
- Buttons act on release: keep
ActionModeat Button Release (the default), so sliding off cancels a press. - Confirm and Back are the same buttons, in the same place, on every screen; the button-hint bar never moves.
- Changing a setting stays in the menu; a new display mode asks to keep or revert.
- Deleting or overwriting a save, quitting unsaved and spending money ask first, with focus on the safe choice, and never by holding a button (XAG 115).
- Errors (a name that is too long, a key already bound) are said in text next to the field, with the fix if known.
- Each screen shows its title; nested menus show where you are ("Settings: Controls").
- Drag-and-drop also works by select, then place (2.5.7).
Settings every game has (Game Accessibility Guidelines)
- Every setting survives a restart (
ConfigFileunderuser://); the subtitle choice comes before the first sound. - A game-speed setting (
Engine.TimeScale), a display mode that includes Windowed on PC, and a field of view that suits the platform by default. Debug switches such as invincibility and slow motion stay in, as assist options. - Continue or Play has focus on the title screen; the pause menu has a controls page built from the input map, so it follows remapping; an accessibility page explains each option.
- Buttons never move while they can be clicked; warnings and short prompts sit near the centre or the action; instructions pair text with an input glyph or icon.
- Many options need presets by need (vision, hearing, motion, motor), each changing several settings in one choice: God of War Ragnarok's 65 to 70 options overwhelmed players without them. Offer the presets, with language, subtitles and text size, on a first-launch screen that asks first: skip, or a guided setup.
- Mark every setting that differs from its default, whether the player or a preset changed it, with colour and a symbol (Ragnarok used blue text; colour alone fails 1.4.1). Setting it back to the default clears the mark; offer a reset per setting and for all.
- A setting playtesters cannot find goes in every category they look in (Ragnarok lists auto pickup under gameplay and accessibility): one setting with one value shown on both pages, never two copies that drift apart.
- Text size belongs on that first screen: nearly 60% of Ragnarok's players moved it to large, one step above the default. Design at the default size, then check the largest for clipping and scrolling (layout.md).
- Cognitive load (panel, GDC 2024): content warnings name each topic ("serious topics" lets nobody decide), come just before the scene with a way to pause or hide it, and are listed on the store page too (the Dead Space remake). A phobia option is a graded slider (Grounded's spiders, down to a blob), since the trigger differs per person. Control prompts can stay on screen; saving works at any moment, so a hard part is never replayed.
- Add-ons that cover part of this (
docs/addons.md, read from their repositories, none run on 4.7.2): GATO (MPL-2.0; remapper, TTS, colour-blind filters; GDScript), Subtitles Importer (MIT; timed subtitle files) and ThemeGen (MIT; a Theme written from code, whichtextsizeandlayoutcheck like any.tres). Scale and contrast still come from the settings above. - A tested model (defaults, presets,
IsChanged, reset; it saves only changed values, so a default improved in a patch reaches players who never touched it):${CLAUDE_PLUGIN_ROOT}/examples/csharp/src/Example.Core/Settings/GameSettings.cs.
Narrating the world (blind and low-vision players)
Screen readers read controls, not the world: describe objects, places and tutorials through DisplayServer.TtsSpeak,
on demand only (one assist action speaks what is focused and stops it), state then name then a short description, with
music and effects ducked while it speaks and a positional cue at the object. Turn on audio/general/text_to_speech
(doctor warns when it is off). Read narration.md before building it; tested core:
${CLAUDE_PLUGIN_ROOT}/examples/csharp/src/Example.Core/Access/Narration.cs.
A turn-based or story game can aim to be playable with the screen off, a goal you can test: every state change has a
sound or a spoken cue. Kenji Eno's Real Sound was made "for the blind" (Untold History).
In play
Long text (5 to 15 words a line, reveal speed), which sounds to caption, subtitle channels, rarity and colour fixes, a high-contrast layer, world-space HUD, debug switches as assists and self-narrated menus: in-game.md.
Prove it
- A UI flow per menu (
ui-flows): drive it withui_down,ui_acceptandui_cancelactions only, nopresssteps, and assert the screen it should reach. Flows send actions directly, so also check in Project Settings > Input Map thatui_accept,ui_canceland the four directions each have a key and a joypad event. - Screenshots at every resolution in
docs/STYLE.mdand at 200% UI scale, critiqued with/lookagainst this list. - The same screens as people with colour blindness see them:
shot -ColorVision protan,deutan,tritansaves<name>.protan.png,.deutan.pngand.tritan.pngnext to each picture. Two states that look the same there need a second cue, or other colours; ask a colour-blind player too, since they cannot report a cue they never see, and ask without hints how many colours they see, and where. The research:${CLAUDE_PLUGIN_ROOT}/docs/gdc/designing-for-color-blindness.md. - Flows cannot yet assert which control has focus; check focus order by reading the scene until they can.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

