# Bevy diagnostics profiling

> Bevy diagnostics profiling is an open-source agent skill for developer tools. Guides an agent through profiling Bevy 0.20 games with diagnostics, tracing and render. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/shinyobjectz/raea-skills/tree/main/skills/bevy/pack/bevy-diagnostics-profiling
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-diagnostics-profiling
- **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 gives a coding agent a structured approach to measuring performance in Bevy 0.20 projects. It covers registering custom diagnostic paths with units, recording gauges and counters from ECS systems, and reading values from the diagnostics store for displays or exporters. It also explains when to use built-in plugins such as frame time, entity count, system information and render diagnostics, and how to enable the render debug overlay.

The skill separates three kinds of evidence: continuous diagnostics over time, tracing spans that show where execution time goes, and render pass measurements. It advises coarse, low-cardinality tracing spans, release-like captures, and treating missing GPU timings as unsupported rather than zero. It also notes platform limits, such as which backends expose timestamp queries and that desktop results do not establish Steam Deck or browser budgets.

The agent works with Rust Bevy code and optional tracing backends such as Tracy or Chrome traces. Reference files cover diagnostics and tracing, render and platform profiling, and budgets and telemetry for queue, task and upload metrics.

## When your agent uses it

> Use when profiling Bevy 0.20 with `DiagnosticPath`, `DiagnosticsStore`, `info_span!`, `RenderDiagnosticsPlugin`, or the `RenderDebugOverlay`: custom metrics, CPU/GPU pass timings, queue/task/upload telemetry, stale-result counts, and native, Steam Deck, or WebGPU budgets.

## 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-diagnostics-profiling)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-diagnostics-profiling)

## Features

- **Custom diagnostic metrics:** Registers namespaced diagnostic paths with units and records measurements from ECS systems.
- **Tracing spans for causality:** Adds coarse info spans and explains enabling Tracy or Chrome trace backends in optimised builds.
- **Render pass timings:** Covers RenderDiagnosticsPlugin CPU and GPU timings and backend support differences.
- **Render debug overlay setup:** Explains enabling the Bevy 0.20 render debug overlay under the dev feature.
- **Platform budget guidance:** Outlines native, Steam Deck and WebGPU acceptance budgets and profiling rules.
- **Review checklist:** Provides a checklist for units, percentiles, overhead and repeatable captures.

## Good for

- Add a custom metric for a job queue depth in my Bevy game
- Find out which render passes take the most GPU time
- Instrument a voxel meshing pipeline with tracing spans
- Check whether my Bevy build meets a frame budget on Steam Deck
- Enable the render debug overlay in my Bevy 0.20 project

## 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-diagnostics-profiling`:

```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-diagnostics-profiling &&
cp -R "$tmp/skills/bevy/pack/bevy-diagnostics-profiling" ~/.claude/skills/bevy-diagnostics-profiling &&
rm -rf "$tmp"
```

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/bevy-diagnostics-profiling` yourself.

### VS Code

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

```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-diagnostics-profiling &&
cp -R "$tmp/skills/bevy/pack/bevy-diagnostics-profiling" ~/.copilot/skills/bevy-diagnostics-profiling &&
rm -rf "$tmp"
```

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

## FAQ

### What does Bevy diagnostics profiling need to run?

It targets Bevy 0.20 Rust projects. Tracing output needs the bevy trace_tracy or trace_chrome features enabled in an optimised build.

### Does Bevy diagnostics profiling change my code automatically?

No scripts are included. It gives the agent patterns and guidance for adding diagnostics, spans and profiling checks.

### Why is GPU time missing on some platforms?

Render timestamp queries are supported on Vulkan and DX12. Metal, WebGPU and WebGL2 expose CPU render timings only, and missing GPU values should not be read as zero cost.

### Which tools does the skill reference?

It references Tracy, Chrome tracing, vendor GPU profilers and RenderDoc, noting RenderDoc is a graphics debugger rather than a performance profiler.

### How do I install Bevy diagnostics profiling in Claude Code?

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

### Does Bevy diagnostics profiling 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 diagnostics profiling?

Claude Code, Codex, Cursor, 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 diagnostics profiling?

The closest alternatives to Bevy diagnostics profiling are Bevy testing, Bevy rendering, Bevy ecs components, Bevy a11y and Bevy ecs queries.

## Where this comes from

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

## Alternatives

- [Bevy testing](https://ai-powered.com/skills/bevy-testing): Bevy testing 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 a11y](https://ai-powered.com/skills/bevy-a11y): Bevy a11y 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 porting](https://ai-powered.com/skills/bevy-porting): Bevy porting is an open-source agent skill for developer tools.
- [Bevy cameras](https://ai-powered.com/skills/bevy-cameras): Bevy cameras is an open-source agent skill for developer tools.
- [Bevy animation](https://ai-powered.com/skills/bevy-animation): Bevy animation is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/bevy-diagnostics-profiling
