# Bevy capture

> Bevy capture is an open-source agent skill for developer tools. Lets an agent wire Bevy cameras to record MP4, GIF or PNG frame sequences. 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-capture
- **Repository:** https://github.com/shinyobjectz/raea-skills
- **GitHub stars:** 38
- **License:** MIT
- **Skill name:** bevy-capture
- **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 guides an agent through adding the bevy_capture crate to a Bevy app so a Camera2d or Camera3d renders off-screen and its frames are written to video or image files. It covers the CapturePlugin and CaptureBundle setup, starting and stopping a recording, and pausing and resuming it mid-run.

The skill compares the available encoders: an in-process OpenH264 MP4 encoder, ffmpeg-based encoders that either collect frames or pipe them to a child process, a GIF encoder and a per-frame PNG writer. It explains which Cargo features each one needs and which ones require ffmpeg on the system path. It also includes a canonical Rust example and notes on deterministic offline rendering.

The guidance is tied to the crate's 0.6.0 API, which pins Bevy 0.19, so the skill includes a porting note for using the crate with Bevy 0.20 through a Cargo patch. Users should expect to read the referenced encoder and porting documents for details beyond the main file.

## When your agent uses it

> Use when adding `CapturePlugin` to record a `Camera3d` or `Camera2d` to video, spawning `CaptureBundle` with `RenderTarget::target_headless`, calling `Capture::start` with `Mp4Openh264Encoder`, `Mp4FfmpegCliEncoder`, `Mp4FfmpegCliPipeEncoder`, `GifEncoder` or `FramesEncoder`, pausing with `Capture::pause`, or hitting "failed to select a version for bevy_capture" because the crate still pins Bevy 0.19 while your app is on 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-capture)
- [License: MIT](https://github.com/shinyobjectz/raea-skills/tree/HEAD/skills/bevy/pack/bevy-capture)

## Features

- **Camera recording setup:** Shows how to attach CapturePlugin and CaptureBundle to a 2D or 3D camera rendering to an off-screen target.
- **Multiple encoder options:** Covers in-process H.264, ffmpeg CLI, GIF and PNG-per-frame encoders with their feature flags.
- **Pause and resume control:** Explains pausing, resuming and stopping a capture so encoders finish cleanly.
- **Deterministic offline rendering:** Describes a fixed-timestep, windowless setup for reproducible frame output.
- **Bevy 0.20 porting notes:** Documents the version mismatch with the published crate and a Cargo patch workaround.
- **Common gotcha troubleshooting:** Lists frequent errors such as missing encoder features, first-frame readiness and WASM limits.

## Good for

- Record a gameplay clip from a Bevy camera to MP4
- Export a short looping GIF of a Bevy scene for a README
- Save a PNG sequence of frames for offline compositing
- Set up headless frame capture for automated visual regression tests
- Pause and resume a recording during a Bevy cinematic

## 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-capture`:

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Does Bevy capture work with the released bevy_capture crate on Bevy 0.20?

Not directly. The published 0.6.0 crate pins Bevy 0.19, so the skill recommends a Cargo patch pointing to a fork that bumps the Bevy requirement until upstream publishes a 0.20 build.

### Which encoders need ffmpeg installed?

The two ffmpeg-based encoders, Mp4FfmpegCliEncoder and Mp4FfmpegCliPipeEncoder, need ffmpeg on the system path. The OpenH264, GIF and frames encoders do not.

### Are there licensing concerns with the H.264 encoder?

The skill notes that the OpenH264 binary is Cisco-licensed and suggests an ffmpeg encoder if a project's policy forbids it.

### Can the capture run in a browser build?

The skill says only the frames and GIF encoders avoid native dependencies, and neither can write files without JavaScript interop.

### How do I install Bevy capture in Claude Code?

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

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

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 capture?

The closest alternatives to Bevy capture are Bevy cameras, Bevy rendering, Bevy animation, Bevy audio and Bevy testing.

## Where this comes from

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

## Alternatives

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

---
Source: https://ai-powered.com/skills/bevy-capture
