bevy-assets

bevy-assets is a skill for Claude Code from shinyobjectz/raea-skills. It costs 105 tokens per session (2,171 once invoked), scanned A, original, Apache-2.0.

A guide for loading and using files in Bevy 0.20, a Rust game engine. It covers models, textures, sounds, glTF scenes, loading progress, file paths, asset settings, and development-time file reloading.

In plain words
What is it for?
It helps load models, images, audio, and scenes; check their readiness; change loaded data; configure image loading; and write custom asset loaders.
Why use it?
It prevents errors caused by using game assets before they are ready or keeping the wrong kind of reference to them. It also explains how to react when assets and their dependencies finish loading.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions OpenCode.

Part of the raea plugin — 66 skills, 4 hooks shipped together

Good fit It helps load models, images, audio, and scenes; check their readiness; change loaded data; configure image loading; and write custom asset loaders.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinyobjectz/raea-skills/bevy-assets
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shinyobjectz/raea-skills --skill bevy-assets
Clone the repo
git clone --depth 1 https://github.com/shinyobjectz/raea-skills

Made for: Claude Code.

Or install raea, the plugin that ships this one along with the rest of its 66 skills, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bevy-assets

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-assets/github.svg)](https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-assets)
Your own site
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-assets"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-assets/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bevy-assets

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-assets"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-assets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,171 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02171
Opus 5.5 $0.00042 $0.00868
Sonnet 5.5 $0.00021 $0.00434
Haiku 4.5 $0.00011 $0.00217

Measured 4d ago against content hash c65f07133443, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bevy-assets scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/bevy/pack/bevy-assets/SKILL.md · 165 lines

How it starts

The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bevy 0.20 — Assets

When to use this skill

  • Loading a model, texture, audio file, or glTF scene.
  • Reading the loaded data back from Assets<T> once it is ready.
  • Reacting to load progress (AssetEvent::Added / LoadedWithDependencies).
  • Loading with per-asset settings (sRGB off, sampler, untyped loads).
  • Enabling hot-reload during development.
  • Writing your own loader: see bevy-custom-assets.

Canonical pattern

use bevy::asset::AssetPath;
use bevy::image::ImageLoaderSettings;
use bevy::prelude::*;

fn main() {
    App::new()
        .add_plugins(DefaultPlugins.set(AssetPlugin {
            // Hot-reload on file change. Dev-only; needs the `file_watcher` feature.
            watch_for_changes_override: Some(true),
            ..default()
        }))
        .init_resource::<MyHandles>()
        .add_systems(Startup, load_handles)
        .add_systems(Update, (react_to_loads, check_ready, tint_material))
        .run();
}

#[derive(Resource, Default)]
struct MyHandles {
    hero: Handle<WorldAsset>,
    bricks: Handle<Image>,
    normal_map: Handle<Image>,
    ground: Handle<StandardMaterial>,
}

fn load_handles(
    mut commands: Commands,
    asset_server: Res<AssetServer>,
    mut handles: ResMut<MyHandles>,
) {
    // glTF scenes are addressed by sub-asset label. 0.19+: `Scene` -> `WorldAsset`.
    handles.hero = asset_server.load("models/hero.glb#Scene0");
    commands.spawn(WorldAssetRoot(handles.hero.clone())); // was `SceneRoot` in 0.18

    handles.bricks = asset_server.load("textures/bricks.png");

    // 0.19+: advanced loads go through one builder. Replaces `load_with_settings`,
    // `load_acquire`, `load_untyped`, ... (deleted in 0.20).
    handles.normal_map = asset_server
        .load_builder()
        .with_settings(|s: &mut ImageLoaderSettings| s.is_srgb = false)
        .load("textures/bricks_normal.png");
}

fn react_to_loads(mut ev: MessageReader<AssetEvent<Image>>, images: Res<Assets<Image>>) {
    for event in ev.read() {
        if let AssetEvent::LoadedWithDependencies { id } = event {
            if let Some(img) = images.get(*id) {
                info!("image loaded: {}x{}", img.width(), img.height());
            }
        }
    }
}

fn check_ready(asset_server: Res<AssetServer>, handles: Res<MyHandles>) {
    // `LoadState` has no `PartialEq` (`Failed` carries an `Arc<AssetLoadError>`): use the predicates.
    if asset_server.load_state(&handles.hero).is_loaded() {
        // Safe to read Assets<WorldAsset> now.
    }
}

fn tint_material(handles: Res<MyHandles>, mut materials: ResMut<Assets<StandardMaterial>>) {
    // 0.19+: `get_mut` returns `AssetMut`, which emits `AssetEvent::Modified`
    // only on `DerefMut`. Compare first to avoid a GPU re-upload every frame.
    let Some(mut mat) = materials.get_mut(&handles.ground) else {
        return;
    };
    if mat.base_color != Color::WHITE {
        mat.base_color = Color::WHITE;
    }
}

Read the full file on GitHub · 165 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 165 lines · 105 tokens per session scan A c65f07133443

Subscribe to this mod's changes

bevy-assets is a skill published in the GitHub repository shinyobjectz/raea-skills (38 stars, last pushed today), licensed Apache-2.0. It adds 105 tokens to every session and 2,171 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-26.

Related

bevy-assets compared with skills from other repositories

bevy-assets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bevy-assetsshinyobjectz/raea-skillsSkill38todayApache-2.0A105Claude Code
bevy-ecsgamedev-skills/awesome-gamedev-agent-skillsSkill12k18d agoApache-2.0A102Claude Code
bevy-ecs-patternsmakifbaysal/tasktrooperSkill123todayApache-2.0A74Claude Code, Codex
bevy-game-enginelaurigates/claude-pluginsSkill60yesterdayMITA48Claude Code
bevy-ecs-patternslaurigates/claude-pluginsSkill60yesterdayMITA37Claude Code
ags-ambient1llu50ry/mcp-gamehackingSkill3921mo agoMITA41Claude Code, Codex
bevyTerminalSkills/skillsSkill21922d agoApache-2.0B116Claude Code, Codex