Skip to content
Skill

Bevy testing

Guides deterministic Bevy 0.20 tests with stepped time, headless apps and async draining

Bevy testing is an open-source agent skill for developer tools. It is available on Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Windsurf and Goose.

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

Similar skills

About Bevy testing

This skill teaches an agent how to test Bevy 0.20 code with a minimal App harness that it controls directly. It covers stepping the app with explicit clock settings, running fixed-timestep systems a known number of times, and inspecting world state or emitted messages afterward. It warns against calling App::run in ordinary tests and against relying on DefaultPlugins when no window, renderer or audio is part of the behaviour under test.

The guidance also explains how to finish async work inside tests without sleeping, using an injected fake executor or a bounded predicate loop that fails with useful task state. It covers the lifecycle of Bevy tasks, including cancellation on drop, and calls for tests of completion, failure and stale results. A review checklist asks for explicit seeds, isolated global state and retained actual, expected and diff images for visual failures.

The skill lists several Bevy 0.20 API changes that affect tests, such as observer generics, iter_many returning Result and renamed state and event helpers. It links to companion skills for input, physics, profiling and migration, and to three reference documents on app and time, messages and observers, and visual regression.

When your agent uses it

Use when testing Bevy 0.20 with `App::update`, `TimeUpdateStrategy`, `FixedUpdate`, `MessageCursor`, or `On<E>` observers: deterministic stepping, async-task draining with `poll_once` and no sleeps, headless worlds, and capture-based visual regression.

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 4 files (17 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-testing:

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

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

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/bevy-testing 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-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.agents/skills/bevy-testing &&
rm -rf "$tmp"

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

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/bevy-testing 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-testing &&
cp -R "$tmp/skills/bevy/pack/bevy-testing" ~/.cursor/skills/bevy-testing &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/bevy-testing 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-testing

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

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/bevy-testing 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-testing into your agent's skills folder as bevy-testing. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Deterministic time stepping
Shows how to control the app clock and advance fixed-timestep systems by an exact number of ticks.
Headless app setup
Explains which minimal plugins to add so world tests avoid window, renderer and audio dependencies.
Async task draining
Describes polling Bevy tasks with bounded loops or fake executors instead of sleeps.
Observer and message testing
Covers message cursors, observer effects and deferred command synchronization points.
Visual regression capture
Outlines capturing screenshots and comparing them against versioned baselines with tolerances.
Bevy 0.20 migration notes
Lists renamed and changed APIs that affect test code, such as observer generics and iter_many.

Good for

  • Write a unit test that runs a FixedUpdate system exactly three times
  • Test a Bevy async task for completion, cancellation and failure paths
  • Set up a headless Bevy app for testing gameplay logic without a window
  • Add screenshot-based visual regression tests for a rendered scene
  • Check observer and message behaviour in a Bevy plugin

Bevy testing FAQ

Which Bevy version does Bevy testing target?

It targets Bevy 0.20 and notes changes from 0.19 and 0.20 that affect tests.

Does Bevy testing tell the agent to run App::run in tests?

No. It says not to call App::run in ordinary unit or integration tests.

How does Bevy testing handle async tasks in tests?

It recommends an injected deterministic executor or stepping the app until a completion predicate holds, with a strict maximum and no sleeps.

Are there scripts or extra files included?

The skill folder has no scripts. It references three deep-dive documents on app and time, messages and observers, and visual regression.

How do I install Bevy testing in Claude Code?

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

Does Bevy testing 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 testing?

Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Windsurf and Goose. 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 testing?

The closest alternatives to Bevy testing are Bevy core concepts, Bevy, Bevy ecs queries, Bevy migration 0 19 to 0 20 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