Agent skill

Bevy UI

by nolantait in nolantait/bevy-starter

Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position.

MITAuto-check passedFrontend & Design

Install Bevy UI

skills CLI
$ npx skills add nolantait/bevy-starter --skill bevy-ui -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nolantait/bevy-starter bevy-ui --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nolantait/bevy-starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/bevy-ui .claude/skills/bevy-ui && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bevy-ui
GitHub stars
132
Token cost
~1k tokens
SKILL.md length
195 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position.

  • Tasks that involve CSS and styling
  • SKILL.md covers Core concept, Node layout, Val types and Colors, plus 8 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy UI is an agent skill from nolantait/bevy-starter. Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position.

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering CSS and styling. The repository describes itself as: A minimalist starter for bevy and rust. The licence is MIT.

When your agent uses it

  • Tasks that involve CSS and styling

Example prompts

  • “/bevy-ui”

What it can do on your machine

Read from SKILL.md and the folder at commit dd6f56b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are rust).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bevy UI loads about 1k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 195 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nolantait/bevy-starter at commit dd6f56b, republished under its MIT licence (© nolantait). 195 words, ~1,022 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-ui/SKILL.md (or your agent's skills folder).
name
bevy-ui
description
Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position.
metadata.crate
bevy_ui
metadata.bevy
0.19

Core concept

UI is built with entities + components. Node controls layout via Flexbox or CSS Grid (powered by taffy).

UI is rendered independently of camera viewport (stays put when camera moves). Use UiTargetCamera to follow a camera.

Node layout

rust
commands.spawn((
  Node {
    width: Val::Percent(100.),
    height: Val::Percent(100.),
    justify_content: JustifyContent::Center,
    align_items: AlignItems::Center,
    ..default()
  },
  BackgroundColor(Color::srgb(0.65, 0.65, 0.65)),
));

All children set their UiTransform relative to their parent, so a child ends up laid out inside its parent. Never modify UiTransform/UiGlobalTransform directly; position nodes through the Node layout and style fields. Node fields include direction (InlineDirection), border_radius (BorderRadius), and scrollbar_width in addition to the usual flex/grid properties.

Val types

TypeDescription
Val::AutoAutomatic
Val::Px(f32)Pixel value
Val::Percent(f32)Percentage of parent
Val::Vw(f32) / Val::Vh(f32)Viewport width/height %
Val::VMin(f32) / Val::VMax(f32)Viewport min/max %

Helper functions: px(10.), percent(50.), vw(20.), etc.

Colors

rust
// From CSS palette
use bevy::color::palettes::css::{BLACK, BLUE, WHITE};

// SRGB
let color = Color::srgb(0.0, 0.0, 0.0);
let color: Hsla = Srgba::rgb(1.0, 0.0, 1.0).into();
// Alpha: .set_alpha(), .with_alpha()

Text in UI

rust
commands.spawn((
  Node { position_type: PositionType::Absolute, bottom: px(5.), right: px(5.), ..default() },
  Text::new("Hello"),
  TextColor(Color::BLACK),
  TextLayout::new_with_justify(Justify::Center),
));

Buttons and interaction

Using picking observers:

rust
fn on_hover(event: On<Pointer<Over>>, mut commands: Commands) {
  commands.entity(event.entity).insert(BackgroundColor(GREEN.into()));
}

Or querying Interaction component directly:

rust
fn button_system(mut query: Query<(&Interaction, &mut BackgroundColor), (Changed<Interaction>, With<Button>)>) {
  for (interaction, mut color) in &mut query {
    match interaction {
      Interaction::Pressed => *color = PRESSED_BUTTON.into(),
      Interaction::Hovered => *color = HOVERED_BUTTON.into(),
      Interaction::None => *color = NORMAL_BUTTON.into(),
    }
  }
}

Children

rust
commands.spawn((container, children![(child_node, child_text)]));

Z-ordering

First node in UiStack is furthest, rendered first. Last node receives interactions first.

  • ZIndex — local z-order within parent
  • GlobalZIndex — global z-order across all nodes

Widgets

bevy_ui_widgets (buttons, checkboxes, sliders, radio groups, scrollbars, menus) is enabled by default as part of the ui feature collection. The larger styled and themed bevy_feathers set requires enabling the bevy_feathers feature.

Relative cursor position

rust
use bevy::ui::RelativeCursorPosition;

// Spawn on a node to auto-track:
commands.spawn((Node { .. }, RelativeCursorPosition::default()));

// Query:
fn cursor_pos(query: Query<&RelativeCursorPosition>) {
  if let Ok(cursor) = query.single() {
    if let Some(pos) = cursor.normalized {
      info!("({:.1}, {:.1})", pos.x, pos.y);
    }
  }
}

Scrolling

rust
Node {
  overflow: Overflow::scroll_y(),
  ..default()
}

Spawning UI elements structure

rust
fn button() -> impl Bundle {
  (
    Button,
    Node { width: px(150), height: px(65), border: UiRect::all(px(5)),
           justify_content: JustifyContent::Center,
           align_items: AlignItems::Center, ..default() },
    BorderColor::all(Color::WHITE),
    BackgroundColor(Color::BLACK),
    children![(Text::new("Button"), TextColor(Color::srgb(0.9, 0.9, 0.9)))],
  )
}

© nolantait, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/bevy-ui of nolantait/bevy-starter.

Open the folder on GitHubat commit dd6f56b

Compare with similar skills

Bevy UI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bevy UI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy UI this skillnolantait/bevy-starter132—~1kAutomated safety check: PassMIT
Tailwindcss Developmentanonaddy/anonaddy4.9k10 repos~865Automated safety check: PassMIT
UI StylingOhh-889/skyroc79513 repos~2.5kAutomated safety check: PassMIT
MCP Developmentcoollabsio/coolify63k1 repos~949Automated safety check: PassMIT
Web Animation DesignbaptisteArno/typebot.io11k2 repos~2.7kAutomated safety check: PassCustom licence
UI UX Pro Maxsaoudi-h/solar-icons18618 repos~11kAutomated safety check: NotesCustom licence

Similar skills

  • Tailwindcss Development

    anonaddy/anonaddy

    Always invoke when the user's message includes 'tailwind' in any form.

    4.9k GitHub starsUsed in 10 repos~865 tokens
    Frontend & DesignAuto-check passed
  • UI Styling

    Ohh-889/skyroc

    Create beautiful, accessible user interfaces with shadcn/ui components (built on Radix UI + Tailwind), Tailwind CSS utility-first styling, and canvas-based visual designs.

    795 GitHub starsUsed in 13 repos~2.5k tokens
    Frontend & DesignAuto-check passed
  • MCP Development

    coollabsio/coolify

    A skill your agent uses for Laravel MCP development. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 1 repo~949 tokens
    Frontend & DesignAuto-check passed
  • Web Animation Design

    baptisteArno/typebot.io

    Guides easing, timing and animation choices for UI motion, based on a web animation course, and reviews existing animations in a before-and-after table.

    11k GitHub starsUsed in 2 repos~2.7k tokens
    Frontend & DesignAuto-check passed
  • UI UX Pro Max

    saoudi-h/solar-icons

    UI/UX design intelligence for web and mobile. An agent skill from saoudi-h/solar-icons.

    186 GitHub starsUsed in 18 repos~11k tokens
    Frontend & DesignAuto-check: notes
  • Ink Tui Wizard

    novuhq/novu

    Build terminal user interfaces (TUIs) using Ink (React for CLIs) and @inkjs/ui with a reactive, session-driven wizard pattern.

    40k GitHub stars~1.9k tokensUpdated today
    Frontend & DesignAuto-check passed

More from nolantait/bevy-starter

All 24 skills in this repo
  • Bevy Events

    nolantait/bevy-starter

    Reference for events, messages, and observers in Bevy — Message/MessageReader/MessageWriter, Event/EntityEvent, triggers, observers, and propagation.

    132 GitHub stars~867 tokensUpdated today
    Auto-check passed
  • Avian

    nolantait/bevy-starter

    Reference for Avian physics engine — rigid bodies, colliders, joints, spatial queries, collision events, character controllers, and debug rendering.

    132 GitHub stars~3k tokensUpdated today
    Auto-check passed
  • Bevy Assets

    nolantait/bevy-starter

    Reference for loading, managing, and tracking assets in Bevy — AssetServer, handles, loading states, events, custom loaders, and hot reloading.

    132 GitHub stars~871 tokensUpdated today
    Auto-check passed
  • Bevy Audio

    nolantait/bevy-starter

    Reference for playing and controlling audio in Bevy — AudioPlayer, AudioSink, spatial audio, volume, and playback settings.

    132 GitHub stars~713 tokensUpdated today
    Auto-check passed
  • Bevy Bsn

    nolantait/bevy-starter

    Reference for Bevy Scene Notation (BSN) — the bsn!. An agent skill from nolantait/bevy-starter.

    132 GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Bevy Cameras

    nolantait/bevy-starter

    Reference for cameras in Bevy — Camera2d, Camera3d, viewports, projection, render layers, mouse-to-world, and free camera controllers.

    132 GitHub stars~976 tokensUpdated today
    Auto-check passed

Questions about Bevy UI

What does Bevy UI do?

Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position. Bevy UI is an agent skill from nolantait/bevy-starter. Reference for Bevy UI — Node layout (Flexbox/CSS Grid), Val types, text, colors, buttons, interaction, scrolling, and relative cursor position.

When should I use Bevy UI?

Bevy UI fits situations like: tasks that involve CSS and styling.

How do I install Bevy UI in Claude Code?

Run `npx skills add nolantait/bevy-starter --skill bevy-ui -a claude-code`. Or copy the skill folder (.agents/skills/bevy-ui in nolantait/bevy-starter) into .claude/skills/bevy-ui in your project. Claude Code loads it when a task matches its description.

How do I install Bevy UI in Codex?

Run `npx skills add nolantait/bevy-starter --skill bevy-ui -a codex`. Or copy the skill folder (.agents/skills/bevy-ui in nolantait/bevy-starter) into .agents/skills/bevy-ui in your project. Codex loads it when a task matches its description.

Can I use Bevy UI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nolantait/bevy-starter --skill bevy-ui -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bevy-ui, .gemini/skills/bevy-ui, .github/skills/bevy-ui and .opencode/skills/bevy-ui in your project.

What does Bevy UI need to run?

SKILL.md names no scripts, command-line tools or credentials: Bevy UI is instructions for the agent only.

Does Bevy UI access the network?

SKILL.md names 1 domain. As links in the text: github.com. This is read from the text; nothing was executed.

Is Bevy UI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bevy UI use?

Bevy UI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bevy UI use?

About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bevy UI?

Skills that share tags, products or a category with Bevy UI: Tailwindcss Development (anonaddy/anonaddy, 4.9k stars), UI Styling (Ohh-889/skyroc, 795 stars), MCP Development (coollabsio/coolify, 63k stars) and Web Animation Design (baptisteArno/typebot.io, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bevy UI?

nolantait (a GitHub user) maintains it in nolantait/bevy-starter, which has 132 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 8, 2026.

Source: nolantait/bevy-starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.