# Bevy UI

> Bevy UI is an open-source agent skill for developer tools. Guides an agent in building Bevy 0.20 UI with nodes, buttons, text and focus. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-ui
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-ui
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill gives a coding agent the Bevy 0.20 conventions for building user interfaces. It covers spawning Node-based layouts, using the headless ui_widgets Button with Hovered, Pressed and Activate, styling text through TextFont with FontSource and FontSize, and setting background, border and corner radius values. It also explains keyboard and screen-reader wiring with InputFocus, TabIndex and AccessibleLabel.

The skill includes a complete canonical button example that mirrors Bevy's own button example, plus topic references for layout, text, interaction, colors, palettes, accessibility, children spawning and known pitfalls. A gotchas list flags deprecated 0.18 and 0.19 forms such as ui::Interaction, changed-based button matching and old font and radius fields, so the agent can migrate code. It points to related skills for migration, cameras, queries and localization.

It is written for Rust projects using the Bevy engine and assumes a Bevy 0.20 dependency with the ui feature enabled.

## When your agent uses it

> Use when building Bevy 0.20 UI with `Node`, `ui_widgets::Button`, `Hovered` / `Pressed` / `Activate`, `children![]`, `TextFont` with `FontSource` and `FontSize`, `BorderRadius` / `CornerRadius`, `BackgroundColor`, `BorderColor`, `InputFocus`, or `AccessibleLabel`, or when `ui::Interaction` and `Changed<Interaction>` show deprecation warnings.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-ui)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-ui)

## Features

- **Node layout recipes:** Covers Node, Val units and flexbox patterns for arranging panels and containers.
- **Headless button widget:** Explains ui_widgets Button with hover polling, press state and click events.
- **Text styling rules:** Details TextFont, FontSource, FontSize and text justification changes in 0.20.
- **Colors and borders:** Shows BackgroundColor, BorderColor, corner radius and palette constants.
- **Focus and accessibility:** Covers InputFocus, tab order and accessible labels for keyboard and screen readers.
- **Deprecation migration notes:** Lists stale patterns from earlier Bevy versions and their 0.20 replacements.

## Good for

- Build a centered button that changes color on hover and press
- Migrate a Bevy 0.18 UI file to the 0.20 text and button APIs
- Add keyboard focus and screen-reader labels to menu buttons
- Create a full-screen flex layout with nested text labels
- Replace deprecated Interaction-based click handling with Activate observers

## Install

### Claude Code

This skill ships in the `raea` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add shinyobjectz/raea-skills
/plugin install raea@raea
```

Or copy only this skill to `~/.claude/skills/bevy-ui`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/bevy-ui &&
cp -R "$tmp/skills/bevy/pack/bevy-ui" ~/.claude/skills/bevy-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/bevy-ui` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/bevy-ui` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/bevy-ui &&
cp -R "$tmp/skills/bevy/pack/bevy-ui" ~/.agents/skills/bevy-ui &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/bevy-ui` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/bevy-ui` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/bevy-ui &&
cp -R "$tmp/skills/bevy/pack/bevy-ui" ~/.cursor/skills/bevy-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/bevy-ui` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-ui
```

Or copy the folder to `~/.gemini/skills/bevy-ui` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/bevy-ui`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/bevy-ui &&
cp -R "$tmp/skills/bevy/pack/bevy-ui" ~/.copilot/skills/bevy-ui &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/bevy-ui` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/shinyobjectz/raea-skills.git
```

Then copy `raea-skills/skills/bevy/pack/bevy-ui` into your agent's skills folder as `bevy-ui`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Which Bevy version does Bevy UI target?

It targets Bevy 0.20, and the gotchas cover what changed from 0.18 and 0.19.

### Does Bevy UI change how the agent handles clicks?

It directs the agent to use the ui_widgets Button with Activate events rather than the deprecated Interaction component.

### Do I need any extra features enabled?

Yes, with default features disabled the ui feature collection must be added, since 0.19 no longer implies it from 2d or 3d.

### How do I install Bevy UI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/bevy-ui to use it in all your projects, or to .claude/skills/bevy-ui in one project. Or install the raea plugin, which includes it: /plugin marketplace add shinyobjectz/raea-skills, then /plugin install raea@raea.

### Does Bevy UI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Bevy UI?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Bevy UI?

The closest alternatives to Bevy UI are Bevy a11y, Bevy, Bevy migration 0 19 to 0 20, Bevy audio and Bevy ecs components.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Bevy a11y](https://ai-powered.com/skills/bevy-a11y): Bevy a11y is an open-source agent skill for developer tools.
- [Bevy](https://ai-powered.com/skills/bevy-shinyobjectz): Bevy is an open-source agent skill for developer tools.
- [Bevy migration 0 19 to 0 20](https://ai-powered.com/skills/bevy-migration-0-19-to-0-20): Bevy migration 0 19 to 0 20 is an open-source agent skill for developer tools.
- [Bevy audio](https://ai-powered.com/skills/bevy-audio): Bevy audio is an open-source agent skill for developer tools.
- [Bevy ecs components](https://ai-powered.com/skills/bevy-ecs-components): Bevy ecs components is an open-source agent skill for developer tools.
- [Bevy testing](https://ai-powered.com/skills/bevy-testing): Bevy testing is an open-source agent skill for developer tools.
- [Bevy core concepts](https://ai-powered.com/skills/bevy-core-concepts): Bevy core concepts is an open-source agent skill for developer tools.
- [Bevy cargo features](https://ai-powered.com/skills/bevy-cargo-features): Bevy cargo features is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-ui
