Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    bevy_rui

    1

    Build Bevy 0.20.1 desktop apps, IDEs, and 9-slice game UIs in Rust with bevy_rui—24 widgets, 46 runnable examples, and zero legacy Bevy hallucinations.

    $5

    /mo

    Subscription · cancel anytime

    Secure checkout via Stripe

    • Always the latest version
    • Delivered live to your agent via MCP
    • Cancel anytime, access ends at period end
    Security scanned
    bevy_rui

    bevy_rui

    Example session with this skill installed

    Create a Bevy 0.20.1 desktop settings window using bevy_rui with two tabs ("Audio" and "Graphics"), a master volume slider, a VSync checkbox, a Save button that logs when clicked, and live Update systems that print when the slider or checkbox changes.

    • Read your context and instructions
    • Compiled the bevy_rui

    Created a complete, compiling

    Bevy 0.20.1 + bevy_rui 0.1.7 settings window using RuiPlugin, tabs, slider, checkbox, On<Activate> observers, and reactive ECS Changed<T> queries.

    1. Cargo.toml

    [package]
    name = "bevy_rui_settings_demo"
    version = "0.1.0"
    edition = "2024"
    
    [dependencies]
    bevy = "0.20.1"
    bevy_rui = "0.1.7"
    

    2. src/main.rs

    use bevy::{prelude::*, text::FontSize, ui_widgets::Activate};
    use bevy_rui::prelude::*;
    
    fn main() {
        App::new()
            .add_plugins(DefaultPlugins)
            .add_plugins(RuiPlugin)
            .add_systems(Startup, setup_ui)
            .add_systems(Update, (on_slider_changed, on_checkbox_changed))
            .run();
    }
    
    fn setup_ui(mut commands: Commands) {
        commands.spawn(Camera2d);
    
        commands.rui_root(
    
            |s| {
    
                s.justify_content = JustifyContent::Center;
                s.align_items = AlignItems::Center;
            },
    
            |ui| {
    
                ui.reborrow().window(
                    "Game Settings",
                    true,
    
                    |s| {
    
                        s.width = Val::Px(420.0);
                        s.left = Val::Auto;
                        s.top = Val::Auto;
                    },
    
                    |win, _| {
    
                        let mut w = win.reborrow();
                        w.reborrow().tabs(
                            0,
    
                            |s| {
    
                                s.width = Val::Percent(100.0);
                                s.height = Val::Px(190.0);
                            },
    
                            |tabs| {
    
                                tabs.tab(
                                    "Audio",
                                    false,
    
                                    |n, _| {
    
                                        n.padding = UiRect::all(Val::Px(12.0));
                                        n.row_gap = Val::Px(10.0);
                                    },
    
                                    |tab| {
    
                                        let mut t = tab.reborrow();
                                        t.reborrow().label("Master Volume", |f, _| {
                                            f.font_size = FontSize::Px(15.0);
                                        });
                                        t.reborrow().slider(0.0, 100.0, 80.0, |s| {
                                            s.width = Val::Percent(100.0);
                                        });
                                    },
                                );
    
                                tabs.tab(
                                    "Graphics",
                                    false,
    
                                    |n, _| {
    
                                        n.padding = UiRect::all(Val::Px(12.0));
                                        n.row_gap = Val::Px(10.0);
                                    },
    
                                    |tab| {
    
                                        tab.reborrow().checkbox("Enable VSync", true, |_| {});
                                    },
                                );
                            },
                        );
    
                        w.reborrow()
                            .button(
    
                                |s| {
    
                                    s.width = Val::Percent(100.0);
                                    s.height = Val::Px(38.0);
                                    s.margin = UiRect::top(Val::Px(10.0));
                                },
    
                                |btn| {
    
                                    btn.reborrow()
                                        .label("Save Settings", |f, _| f.font_size = FontSize::Px(15.0))
                                        .insert(RuiThemeElement::ButtonText);
                                },
                            )
                            .observe(|_: On<Activate>| {
                                info!("Settings saved!");
                            });
                    },
                );
            },
        );
    }
    
    fn on_slider_changed(q: Query<&RuiSlider, Changed<RuiSlider>>) {
        for slider in &q {
            info!("Master Volume: {:.0}%", slider.value);
        }
    }
    
    fn on_checkbox_changed(q: Query<&RuiCheckbox, Changed<RuiCheckbox>>) {
        for cb in &q {
            info!("VSync enabled: {}", cb.checked);
        }
    }
    

    Next Steps

    1. Run cargo check and cargo run to launch the interactive window.
    2. To restyle this window with 9-slice game textures, insert a RuiTheme resource in Startup and configure image_panel and image_button_*.
    $5/mo

    Subscription · always the latest version

    • Secure checkout via Stripe
    • Cancel anytime
    • Delivered live via MCP

    About this skill

    bevy_rui equips your AI coding agent with complete mastery of the bevy_rui retained-mode UI widget library for Bevy 0.20.1 (Rust edition 2024).

    Why You Need This Skill

    LLMs routinely hallucinate outdated Bevy 0.14/0.15 UI APIs (TextBundle, ButtonBundle, Parent, Trigger<Pointer<Click>>, EventReader, bare f32 font sizes). This skill eliminates those errors by grounding your agent in Bevy 0.20.1 patterns and 46 compiling examples.

    What's Included (100% Self-Contained)

    • SKILL.md Golden Rules: Enforces .reborrow(), On<Activate> observers, FontSize::Px(...), MessageReader, ChildOf/Children, and reactive ECS state queries.
    • 24 Widget Reference (references/widgets-reference.md): Exact signatures and state components for accordion, button, canvas_layer, checkbox, clipboard, code_editor, color_picker, context_menu, debug_colors, docks, dropdown, file_dialog, label, layout, menu, progress_bar, resizer, scrollview, slider, tabs, textbox, tooltip, viewport, and windows.
    • Desktop & IDE Guide (references/app-and-ide-guide.md): Multi-pane dock splits, menu bars, syntax-highlighted code_editor, and live 2D/3D camera viewport panels.
    • 9-Slice Game UI Guide (references/game-ui-9slice-guide.md): Complete RuiTheme 9-slice texture recipes (TextureSlicer, ImagePlugin::default_nearest(), contrast labels, and camera-targeted canvas_layer HUDs).
    • 46 Runnable Examples (examples/): 23 desktop/app examples (example_<widget>.rs) + 23 9-slice game UI examples (example_game_<widget>.rs) so your agent always has working, compilable code to reference.
    • Optional Live WebMCP Companion: Pair with https://mcp.robalexa.com/mcp for live multi-version AST inspection and project scaffolding.

    Crate & Docs

    Requires bevy_rui 0.1.7+ and Rust 2024 edition. Does not include raw image assets for 9-slice themes.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 day ago

    Requires

    Rust (edition 2024)
    Cargo
    Bevy 0.20.1

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Network Access
    Listed1 day ago

    What's inside

    Frequently Asked Questions

    This skill provides specialized architectural patterns and code generation rules specifically for Bevy 0.20 and the bevy_rui library, solving common UI boilerplate issues and preventing borrow-checker errors related to ChildSpawnerCommands.

    The skill is built for Rust 2024 and Bevy 0.20.1; it is highly recommended to use bevy_rui version 0.1.7 or higher to ensure the generated reactive ECS queries and widget hierarchies function correctly.

    You receive a specialized AI skill package that includes pre-configured UI blueprints, 9-slice HUD templates, and automated event-handling logic designed to integrate directly with your existing Bevy project.

    While the skill generates the code for 9-slice HUDs and layouts, it does not include image files; you must provide your own PNG assets and font files in your local directory for the textures to render.

    The skill uses the rui_blueprint command to generate a main entry point and then instructs you on wiring up systems to monitor state changes like Changed<RuiSlider> or Changed<RuiTextbox>.

    New in Game Development