/bevy-skills:bevy-a11yfrom bevy-skills
Audits and designs game accessibility in Bevy 0.20: screen readers, focus navigation, remapping, captions, contrast, and motion safety.
Ships in bevy-skills. 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; scripts run unread.
Accessibility is a cross-cutting product requirement. Start during input, UI, audio, camera, narrative, multiplayer, and save-system design; retrofitting only labels and captions will not solve inaccessible game mechanics.
Use all four layers:
WCAG AAA is not a universal native-game certification, and automated checks do not establish conformance. Record scope, exceptions, devices, test builds, findings, and remediation evidence. See requirements.
DefaultPlugins includes InputFocusPlugin. Add navigation plugins explicitly and
put the accessible name on the same entity as the interactive control:
use bevy::{
input_focus::{
directional_navigation::DirectionalNavigationPlugin,
tab_navigation::TabNavigationPlugin,
},
picking::hover::Hovered,
prelude::*,
ui::auto_directional_navigation::AutoDirectionalNavigation,
ui_widgets::Button,
};
fn main() {
App::new()
.add_plugins((
DefaultPlugins,
TabNavigationPlugin,
DirectionalNavigationPlugin,
))
.add_systems(Startup, setup)
.run();
}
fn setup(mut commands: Commands) {
commands.spawn(Camera2d);
commands.spawn((
Button,
Hovered::default(),
AccessibleLabel::new("Start game"),
AutoDirectionalNavigation::default(),
children![Text::new("Start game")],
));
}
ui_widgets::Button requires an AccessKit Role::Button node. Read interaction state
as (&Hovered, Has<Pressed>); ui::Interaction and ui::prelude::Button are deprecated.
Focus, hover, pointer capture, and screen-reader focus are related but not identical. Test keyboard, D-pad/stick, switch-style scanning, touch, pointer, and a real screen reader. Use AccessKit nodes for custom widgets and expose changing value/state—not only a static label. See screen readers and navigation.
Adaptive controllers normally arrive through standard gamepad/HID mappings. Do not
gate features on a brand, vendor ID, or a particular device name. Treat every
Gamepad entity as capabilities and bindings:
use bevy::prelude::*;
fn read_gamepads(gamepads: Query<(Entity, &Gamepad)>) {
for (entity, gamepad) in &gamepads {
let move_axis = gamepad.left_stick();
let activate = gamepad.just_pressed(GamepadButton::South);
let extra = gamepad.just_pressed(GamepadButton::Other(0));
let _sample = (entity, move_axis, activate, extra);
}
}
With default-features = false, native discovery requires Bevy's bevy_gilrs
feature, not only gamepad. leafwing-input-manager 0.22 is a compatible optional
action layer, but it does not create accessible settings, UI, persistence, or mechanic
alternatives for you. See input and adaptive controllers.
| Area | Non-negotiable implementation |
|---|---|
| Blind/low vision | semantic UI, full non-pointer navigation, narration/audio description, text scale, strong focus/contrast, non-colour cues |
| Deaf/hard of hearing | closed captions with speaker and meaningful sound cues, visual/haptic equivalents, independent mix controls |
| Motor | full remapping, simultaneous devices, no mandatory holds/mashing/chords, timing/aim/movement assists, pauseability where possible |
| Cognitive/learning | consistent navigation, plain language, objective history, tutorials, adjustable pacing/difficulty, low-distraction modes |
| Speech/communication | no voice-only requirement, accessible text chat, speech-to-text/text-to-speech where communication is core |
| Photosensitive/vestibular | flash safety, reduced motion, shake/FOV/blur controls, no essential parallax/auto-motion |
Read visual, cognitive, and motion and captions, audio, and communication.
scripts/audit_input_map.py on the action manifest before input freezes.scripts/check_contrast.py on every theme/state pair; sample image/video
backgrounds separately.scripts/validate_captions.py on source and localized VTT/SRT files.Script formats and CI examples are in tooling.
ui::prelude::Button and ui::Interaction are deprecated. Spawn
bevy::ui_widgets::Button and read (&Hovered, Has<Pressed>). Stale output
queries Changed<Interaction>.FocusCause gained Auto (focus granted by AutoFocus). An exhaustive
match on Navigated | Pressed no longer compiles.Escape in a focused EditableText clears InputFocus and keeps bubbling.
A dialog cancel observer fires on the same press; test original_event_target()
for two-step behaviour. EditableText needs a sibling TextInput to be a widget.On<PointerClick>, not On<Pointer<Click>>;
the position is event.pointer.position.GamepadButton::Other(u32) and GamepadAxis::Other(u32) (were u8).TextFont::default() size is FontSize::Rem(1.); Val::Rem sizes scale
with the RemSize resource, which is the hook for a user text-scale setting.InputFocus fields are private; use set(entity, cause), get(), clear().
UiWidgetsPlugins ships in DefaultPlugins; tab/directional plugins stay explicit.bevy_input_focus is no longer implied by the picking feature; ui pulls it in.bevy-input-actions — logical actions,
remapping, device hot-plug, Steam Deck, and adaptive-controller integration.bevy-audio — captions/cue boundary, category mixes,
spatial limitations, and browser audio startup.bevy-ui — layout, text, interaction, and focus APIs.bevy-cargo-features — controller and UI backends.bevy-fluent — localized text and captions.bevy-cameras — shake, FOV, and viewport controls.bevy-physics — accessible character movement, aim,
and timing mechanics built over physics.bevy-testing — deterministic checks and capture evidence.bevy-core-concepts — schedule architecture.bevy-migration-0-19-to-0-20 — deprecated
Button/Interaction, flat pointer events, FocusCause::Auto.references/captions-audio-communication.md (opens in a new tab)references/input-and-adaptive-controllers.md (opens in a new tab)references/requirements.md (opens in a new tab)references/screen-readers-and-navigation.md (opens in a new tab)references/testing-and-evidence.md (opens in a new tab)references/tooling.md (opens in a new tab)references/visual-cognitive-motion.md (opens in a new tab)scripts/audit_input_map.py (opens in a new tab)scripts/check_contrast.py (opens in a new tab)scripts/validate_captions.py (opens in a new tab)tests/fixtures/contrast.json (opens in a new tab)tests/fixtures/en-US.vtt (opens in a new tab)tests/fixtures/fr-FR.vtt (opens in a new tab)tests/fixtures/input-map.json (opens in a new tab)tests/test_scripts.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
32 skills in this plugin
/bevyUse when starting any Bevy task, choosing between Update and FixedUpdate, picking Cargo feature flags, or recalling which sibling skill covers ECS, assets, rendering, UI, or migration. Routes to the right Bevy 0.20 skill and pins the engine version for downstream snippets./bevy-animationUse when wiring `AnimationPlayer` + `AnimationGraphHandle`, building an `AnimationGraph` from glTF clips, blending state-driven animations with `AnimationTransitions::play`, isolating body parts with `AnimationMask`, firing gameplay sync via `#[derive(AnimationEvent)]` + `On<E>` observers, tweening with `AnimatableCurve` / `EaseFunction` / `CubicSegment::new_bezier_easing` from `bevy::curve`, or applying the 12 Basic Principles of Animation to 3D characters in Bevy 0.20./npx claudepluginhub chrisgliddon/bevy-skills --plugin bevy-skillsOther plugins' skills for the same job