bevy-custom-assets

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

A guide to loading custom asset file formats in Bevy 0.20, such as game data or configuration files. It covers assets that refer to other assets and reading files with advanced access needs.

In plain words
What is it for?
Use it to create an asset loader, load levels or sidecar data, connect referenced textures, and read files that require seeking or full-file reads.
Why use it?
It removes the need to force every game file into Bevy's built-in formats. It also clarifies loader types, dependencies, settings, and common compiler errors.

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 Use it to create an asset loader, load levels or sidecar data, connect referenced textures, and read files that require seeking or full-file reads.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shinyobjectz/raea-skills/bevy-custom-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-custom-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-custom-assets

README.md
[![agentmods](https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-custom-assets/github.svg)](https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-custom-assets)
Your own site
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-custom-assets"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-custom-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-custom-assets

Your own site · 80×15
<a href="https://agentmods.dev/skills/shinyobjectz/raea-skills/bevy-custom-assets"><img src="https://agentmods.dev/badge/skills/shinyobjectz/raea-skills/bevy-custom-assets.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,158 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.00104 $0.02158
Opus 5.5 $0.00042 $0.00863
Sonnet 5.5 $0.00021 $0.00432
Haiku 4.5 $0.00010 $0.00216

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

Security

Grade A, and why

bevy-custom-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 7d 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-custom-assets/SKILL.md · 191 lines

How it starts

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

Bevy 0.20 — Custom asset loaders

When to use this skill

  • Loading a custom binary or text format (game data, sidecar configs).
  • Producing an asset that depends on other assets (a level that references textures).
  • Loading a dependency with settings (is_srgb = false) or by erased type.
  • Random access into the file (reader.seekable()), or writing your own Reader.
  • Compiler errors: "MyLoader: TypePath is not implemented", "no method loader", "missing trait item seekable".

Canonical pattern

use bevy::asset::io::Reader;
use bevy::asset::{Asset, AssetApp, AssetLoader, LoadContext};
use bevy::image::ImageLoaderSettings;
use bevy::prelude::*;
use bevy::reflect::TypePath;

#[derive(Asset, TypePath, Debug)]
pub struct LevelDef {
    pub name: String,
    pub gravity: f32,
    #[dependency] // counted toward `LoadedWithDependencies`
    pub thumbnail: Handle<Image>,
    #[dependency]
    pub normal_map: Handle<Image>,
}

#[derive(TypePath)] // required on the loader itself since 0.18
pub struct LevelLoader;

impl AssetLoader for LevelLoader {
    type Asset = LevelDef;
    type Settings = ();
    type Error = BevyError; // any `Error` converts via `?`

    async fn load(
        &self,
        reader: &mut dyn Reader,
        _settings: &Self::Settings,
        load_context: &mut LoadContext<'_>,
    ) -> Result<Self::Asset, Self::Error> {
        let mut bytes = Vec::new();
        reader.read_to_end(&mut bytes).await?;
        let text = String::from_utf8(bytes)?;

        let mut level = LevelDef {
            name: String::new(),
            gravity: 9.81,
            thumbnail: Handle::default(),
            normal_map: Handle::default(),
        };
        for line in text.lines() {
            let Some((key, value)) = line.split_once('=') else { continue };
            match key.trim() {
                "name" => level.name = value.trim().to_owned(),
                "gravity" => level.gravity = value.trim().parse()?,
                // Dependencies go through `LoadContext`, never `AssetServer`.
                "thumbnail" => level.thumbnail = load_context.load(value.trim().to_owned()),
                // 0.19+: settings, type erasure, untyped loads use `load_builder()`.
                "normal_map" => {
                    level.normal_map = load_context
                        .load_builder()
                        .with_settings(|s: &mut ImageLoaderSettings| s.is_srgb = false)
                        .load(value.trim().to_owned());
                }
                _ => {}
            }
        }
        Ok(level)
    }

    fn extensions(&self) -> &[&str] {
        &["level"]
    }
}

pub struct LevelLoaderPlugin;
impl Plugin for LevelLoaderPlugin {
    fn build(&self, app: &mut App) {
        app.init_asset::<LevelDef>()
            .register_asset_loader(LevelLoader);
    }
}

Read the full file on GitHub · 191 lines

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. 7d ago First seen · 191 lines · 104 tokens per session scan A 7dd81d786616

Subscribe to this mod's changes

bevy-custom-assets is a skill published in the GitHub repository shinyobjectz/raea-skills (39 stars, last pushed 2d ago), licensed Apache-2.0. It adds 104 tokens to every session and 2,158 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-custom-assets compared with skills from other repositories

bevy-custom-assets next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bevy-custom-assetsshinyobjectz/raea-skillsSkill392d agoApache-2.0A104Claude Code
bevy-ecsgamedev-skills/awesome-gamedev-agent-skillsSkill13k3d agoApache-2.0A102Claude Code
bevy-ecs-patternsmakifbaysal/tasktrooperSkill123yesterdayApache-2.0A74Claude Code, Codex
bevy-game-enginelaurigates/claude-pluginsSkill60todayMITA48Claude Code
bevy-ecs-patternslaurigates/claude-pluginsSkill60todayMITA37Claude Code
ags-ambient1llu50ry/mcp-gamehackingSkill3921mo agoMITA41Claude Code, Codex
bevyTerminalSkills/skillsSkill22425d agoApache-2.0B116Claude Code, Codex