# Bevy custom assets

> Bevy custom assets is an open-source agent skill for developer tools. Guides an agent through writing Bevy 0.20 custom asset loaders and readers. It is available on Claude Code and Cursor.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Cursor
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-custom-assets
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-custom-assets
- **Collection:** https://github.com/shinyobjectz/raea-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-custom-assets)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-custom-assets)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Bevy assets](https://ai-powered.com/skills/bevy-assets): Bevy assets is an open-source agent skill for developer tools.
- [Bevy save load](https://ai-powered.com/skills/bevy-save-load): Bevy save load is an open-source agent skill for developer tools.
- [Bevy](https://ai-powered.com/skills/bevy-shinyobjectz): Bevy is an open-source agent skill for developer tools.
- [Bevy rendering](https://ai-powered.com/skills/bevy-rendering): Bevy rendering is an open-source agent skill for developer tools.
- [Bevy ecs components](https://ai-powered.com/skills/bevy-ecs-components): Bevy ecs components is an open-source agent skill for developer tools.
- [Bevy ecs queries](https://ai-powered.com/skills/bevy-ecs-queries): Bevy ecs queries is an open-source agent skill for developer tools.
- [Bevy cargo features](https://ai-powered.com/skills/bevy-cargo-features): Bevy cargo features is an open-source agent skill for developer tools.
- [Bevy migration 0 17 to 0 18](https://ai-powered.com/skills/bevy-migration-0-17-to-0-18): Bevy migration 0 17 to 0 18 is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-custom-assets
