bevy-testing

bevy-testing is a skill for Claude Code from chrisgliddon/bevy-skills. It costs 57 tokens per session (1,271 once invoked), scanned A, original, MIT.

A guide to testing Bevy 0.19 applications by advancing them one controlled update at a time and checking their world state or output.

In plain words
What is it for?
Use it to create small test applications, control time and input, test fixed updates and messages, drain asynchronous work, inspect entities and resources, and perform visual regression checks.
Why use it?
It makes timers, fixed-rate systems, messages, observers, and background tasks predictable without real-time delays. It also supports tests that run without a window or compare captured graphics.

Skill for Claude Code

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

Part of the bevy-skills plugin — 31 skills shipped together

Good fit Use it to create small test applications, control time and input, test fixed updates and messages, drain asynchronous work, inspect entities and resources, and perform visual regression checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrisgliddon/bevy-skills/bevy-testing
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 chrisgliddon/bevy-skills --skill bevy-testing
Clone the repo
git clone --depth 1 https://github.com/chrisgliddon/bevy-skills

Made for: Claude Code.

Or install bevy-skills, the plugin that ships this one along with the rest of its 31 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrisgliddon/bevy-skills/bevy-testing.svg)](https://agentmods.dev/skills/chrisgliddon/bevy-skills/bevy-testing)
Your own site
<a href="https://agentmods.dev/skills/chrisgliddon/bevy-skills/bevy-testing"><img src="https://agentmods.dev/badge/skills/chrisgliddon/bevy-skills/bevy-testing.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,271 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00057 $0.01271
Opus 5 $0.00028 $0.00635
Sonnet 5 $0.00011 $0.00254
Haiku 4.5 $0.00006 $0.00127

Measured 8d ago against content hash 4b4091d66b1b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

bevy-testing 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 8d 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-testing/SKILL.md · 127 lines

How it starts

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

Bevy 0.19 — deterministic testing

When to use this skill

  • Systems/plugins need a minimal App harness and direct world assertions.
  • Fixed schedules, timers, messages, or observers need deterministic stepping.
  • Async work must complete in tests without arbitrary sleeps.
  • Rendered output needs capture-based visual regression.

Build the smallest App that owns the behaviour under test, control its clock and inputs, step it explicitly, then inspect world state or emitted output. Do not call App::run() in an ordinary unit/integration test.

Canonical pattern

use bevy::{prelude::*, time::{TimePlugin, TimeUpdateStrategy}};

#[derive(Resource, Default)]
struct TickCount(u32);

fn count_tick(mut count: ResMut<TickCount>) {
    count.0 += 1;
}

#[test]
fn fixed_system_runs_exactly_three_times() {
    let mut app = App::new();
    app.add_plugins(TimePlugin)
        .insert_resource(Time::<Fixed>::from_hz(60.0))
        .insert_resource(TimeUpdateStrategy::FixedTimesteps(1))
        .init_resource::<TickCount>()
        .add_systems(FixedUpdate, count_tick);

    // The first update initializes Bevy's real-time clock; it has zero delta.
    app.update();

    for _ in 0..3 {
        app.update();
    }

    assert_eq!(app.world().resource::<TickCount>().0, 3);
}

After the first clock-initialising update, FixedTimesteps(n) makes each app.update() advance by the fixed timestep times n and run exactly n fixed loops. Use ManualDuration when the test must exercise zero-tick frames, accumulated time, or catch-up. Use ManualInstant when exact absolute instants matter and advance its resource before each update.

Gotchas

  • The first app.update() initialises real time with zero delta; warm it up before counting FixedTimesteps ticks or assert that zero-step frame deliberately.
  • Running FixedUpdate directly bypasses fixed-main clock/message semantics.
  • Deferred Commands are invisible until a synchronization point.
  • Async completion must use an injected fake or a bounded predicate loop, never sleep.
  • DefaultPlugins adds platform/render/audio state most world tests do not need.

Read the full file on GitHub · 127 lines

Files

What ships with it

3 files 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. 8d ago First seen · 127 lines · 57 tokens per session scan A 4b4091d66b1b

Subscribe to this mod's changes

bevy-testing is a skill published in the GitHub repository chrisgliddon/bevy-skills (11 stars, last pushed 13d ago), licensed MIT. It adds 57 tokens to every session and 1,271 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

tests-run

Execute Unity tests (EditMode or PlayMode) and return per-test results. Supports filtering by test assembly, namespace, class, and method. Refreshes the AssetDatabase first; defers execution across domain reloads if scripts changed. Precondition: every open scene must be saved — dirty scenes abort the run.

IvanMurzak/Unity-MCP · 68 tokens

unity-agent-workflows

Use for AI-assisted Unity work that needs live repo discovery, project-derived routing, runtime-owner proof, runtime-visible output hard stops, runtime numeric proof for repeated visible-output failures, state-step guards, multi-agent scope ownership, modular C#/asmdef safety, UI/scene/visual asset gates, data-first…

hashgraph-online/awesome-codex-plugins · 146 tokens

testing-bgs-modpack

A checklist and decision guide for checking a newly installed batch of Bethesda Game Studios game modifications before accepting it as ready.

hashgraph-online/awesome-codex-plugins · 101 tokens

prototype

Concept prototype — validate the core idea is worth designing before writing GDDs. Run right after /brainstorm and /setup-engine. Routes to HTML, Engine, or Paper path based on game type. Produces a throwaway build and a PROCEED/PIVOT/KILL verdict.

Donchitos/Claude-Code-Game-Studios · 61 tokens

sprite-gen

Generate clean 2D game sprites and animation atlases with a component-row pipeline: base identity, numeric sprite-request SSoT, per-state layout guides, image-gen row strips, chroma-key alpha cleanup, connected-component frame extraction, cell-based atlas composition, QA reports, and runtime manifest framelayout. Its…

aldegad/sprite-gen · 291 tokens