Skip to content
Skill

Bevy custom assets

Guides an agent through writing Bevy 0.20 custom asset loaders and readers

Bevy custom assets is an open-source agent skill for developer tools. It is available on Claude Code and Cursor.

Scripts
None
Platforms
Claude Code, Cursor
GitHub stars
38
Last commit
License
MIT
Listing updated

Similar skills

About Bevy custom assets

This skill covers building Bevy asset loaders for custom file formats. It shows a loader struct with the TypePath derive, an asset type whose handle fields are marked as dependencies, and a plugin that registers both. It explains how to load dependent assets through LoadContext, including loads with image settings and type-erased loads, so that dependency tracking works correctly.

The guidance also covers random access into a file via reader.seekable() with a fallback to streaming when seeking is unavailable, and how to implement the Reader trait on a custom in-memory reader. Migration notes list changes between Bevy 0.18, 0.19 and 0.20, such as renamed loader builder methods, the removed asset_bytes helper and boxed error variants.

The examples are Rust code that relies on Bevy's async task system rather than Tokio. The skill assumes familiarity with the Bevy asset server and expects the developer to work in a Rust project targeting Bevy 0.20.

When your agent uses it

Use when implementing `AssetLoader` for a custom format, deriving `TypePath` on the loader, loading dependencies through `LoadContext::load` or `LoadContext::load_builder().with_settings(..).load(..)`, marking handle fields `#[dependency]`, reading with `Reader::read_to_end`, seeking via `Reader::seekable` / `AsyncSeekExt`, or implementing the required `Reader::seekable` on your own reader in Bevy 0.20.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (8 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

Or copy only this skill to ~/.claude/skills/bevy-custom-assets:

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

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

Claude Code docs on skills

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

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

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

Codex docs on skills

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

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

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

Cursor docs on skills

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

gemini skills install https://github.com/shinyobjectz/raea-skills.git --path skills/bevy/pack/bevy-custom-assets

Or copy the folder to ~/.gemini/skills/bevy-custom-assets yourself.

Gemini CLI docs on skills

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

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

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

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Custom loader scaffolding
Shows how to define an AssetLoader with its settings, error type, file extensions and plugin registration.
Dependency tracking
Explains loading dependent assets through LoadContext and marking handle fields so loaded-with-dependencies events fire correctly.
Loads with settings
Covers passing per-load settings such as sRGB handling and loading assets by erased or untyped type.
Random access reading
Demonstrates seeking within a reader and falling back to a full read when the source cannot seek.
Custom Reader implementation
Shows how to implement the Reader trait with async read and seek on a custom source.
Bevy 0.18 to 0.20 migration
Lists renamed and removed APIs and the changed error types across recent Bevy releases.

Good for

  • Write a loader that turns a custom level text file into a Bevy asset
  • Make a loaded asset depend on textures and track when they finish loading
  • Load a normal map without sRGB conversion from inside a custom loader
  • Read a file footer by seeking, with a fallback for non-seekable sources
  • Port an existing Bevy asset loader from version 0.19 to 0.20

Bevy custom assets FAQ

Which Bevy version does Bevy custom assets target?

It targets Bevy 0.20 and includes migration notes for changes from 0.18 and 0.19.

Why must dependencies be loaded through LoadContext?

Loading through the asset server inside a loader does not register the dependency, so the loaded-with-dependencies event can fire too early.

What does the skill require from the loader type?

The loader struct itself must derive TypePath, and it must be Send, Sync and 'static.

Does the skill include scripts or run any tools?

No. It contains only a single SKILL.md with Rust code examples and no scripts.

How do I install Bevy custom assets in Claude Code?

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

Does Bevy custom assets 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 custom assets?

Claude Code and Cursor. 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 custom assets?

The closest alternatives to Bevy custom assets are Bevy assets, Bevy save load, Bevy, Bevy rendering and Bevy ecs components.

Where this comes from

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

More from shinyobjectz/raea-skills

  1. Check and consult a project's generated vocabulary before naming anything

    • Open source
    • 38 GitHub stars
    • Knowledge and memory
  2. Blank template for authoring new raea skills with a standard section layout

    • Open source
    • 38 GitHub stars
    • Developer tools
  3. Lets an agent write and render video, motion graphics and 3D scenes as React code

    • Open source
    • 38 GitHub stars
    • Design and media
  4. Routes Bevy 0.20 tasks to the right sibling skill and pins the engine version

    • Open source
    • 38 GitHub stars
    • Developer tools
  5. Guides an agent through accessibility design and audits for Bevy 0.20 games

    • Open source
    • 38 GitHub stars
    • Developer tools
  6. Guides an agent through Bevy 0.20 animation: graphs, blending, events and easing

    • Open source
    • 38 GitHub stars
    • Developer tools