Agent skill

Bevy Commands

by nolantait in nolantait/bevy-starter

Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing.

MITAuto-check passed

Install Bevy Commands

skills CLI
$ npx skills add nolantait/bevy-starter --skill bevy-commands -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nolantait/bevy-starter bevy-commands --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nolantait/bevy-starter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/bevy-commands .claude/skills/bevy-commands && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
bevy-commands
GitHub stars
132
Token cost
~783 tokens
SKILL.md length
141 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing.

  • Works in 5 steps: #[component(on_add = ...)] → #[component(on_insert = ...)] → #[component(on_discard = ...)] → …
  • SKILL.md covers Basics, Spawning components, Required components and Component lifecycle hooks, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy Commands is an agent skill from nolantait/bevy-starter. Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing.

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: A minimalist starter for bevy and rust. The licence is MIT.

Example prompts

  • “/bevy-commands”

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. #[component(on_add = ...)]
  2. #[component(on_insert = ...)]
  3. #[component(on_discard = ...)]
  4. #[component(on_remove = ...)]
  5. #[component(on_despawn = ...)]

What it can do on your machine

Read from SKILL.md and the folder at commit dd6f56b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are rust).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Bevy Commands loads about 783 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 141 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~783

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nolantait/bevy-starter at commit dd6f56b, republished under its MIT licence (© nolantait). 141 words, ~783 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-commands/SKILL.md (or your agent's skills folder).
name
bevy-commands
description
Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing.
metadata.crate
bevy_ecs
metadata.bevy
0.19

Basics

Commands is a system parameter that queues mutations into a CommandQueue. Bevy applies them at a sync point: an ApplyDeferred system inserted after command-producing systems that others depend on, as well as at the end of every schedule.

rust
fn spawn(mut commands: Commands) {
  commands.spawn_empty();
}

Spawning components

rust
commands.spawn(Player).insert(Transform::default());
// or with a tuple bundle
commands.spawn((Player, Transform::from_xyz(1., 1., 1.)));

Required components

rust
#[derive(Component)]
#[require(Transform)]
struct Player;
// now: commands.spawn(Player) auto-adds Transform

A bare #[require(Foo)] uses Foo::default(), so Foo must implement Default. If you provide a constructor instead, Default is not required. Required components are resolved recursively.

Component lifecycle hooks

Components have five life-cycle hooks for side effects that must happen:

  1. #[component(on_add = ...)]
  2. #[component(on_insert = ...)]
  3. #[component(on_discard = ...)]
  4. #[component(on_remove = ...)]
  5. #[component(on_despawn = ...)]

The hook systems take a DeferredWorld and a HookContext:

rust
use bevy::ecs::lifecycle::HookContext;
use bevy::ecs::world::DeferredWorld;

#[derive(Component, Default)]
#[component(on_add = on_ship_added)]
enum Ship {
  Destroyer,
  Frigate,
  #[default]
  Scout,
}

fn on_ship_added(mut world: DeferredWorld, context: HookContext) {
  world
    .commands()
    .entity(context.entity)
    .insert(Position { x: 0, y: 0 });
}

EntityCommands chaining

spawn/spawn_empty return EntityCommands for chaining:

rust
commands
  .spawn(Player)
  .insert(Transform::default())
  .insert(Name::new("Player 1"));

Despawning

rust
for entity in &query {
  commands.entity(entity).despawn();
}

Commands are deferred

Commands don't execute immediately — they're queued until the next sync point, where Bevy runs its ApplyDeferred system.

Custom commands

Implement the Command trait:

rust
struct SpawnPlanet { radius: f32, position: Vec2 }

impl Command for SpawnPlanet {
  fn apply(self, world: &mut World) {
    let mesh = world.resource_scope(|_w, mut meshes: Mut<Assets<Mesh>>| {
      meshes.add(Circle::new(self.radius))
    });
    // ...
    world.spawn((Planet::new(self.radius), Mesh2d(mesh), Transform::from_translation(self.position.extend(0.))));
  }
}
// usage:
commands.queue(SpawnPlanet { radius: 100., position: Vec2::ZERO });

Extending the Commands API

rust
trait MyExt {
  fn do_thing(&mut self);
}
impl<'w, 's> MyExt for Commands<'w, 's> {
  fn do_thing(&mut self) { info!("thing done"); }
}

Testing commands

rust
use bevy::ecs::world::CommandQueue;

let mut world = World::default();
let mut queue = CommandQueue::default();
queue.push(MyCommand);
queue.apply(&mut world);

© nolantait, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/bevy-commands of nolantait/bevy-starter.

Open the folder on GitHubat commit dd6f56b

Compare with similar skills

Bevy Commands next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Bevy Commands compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy Commands this skillnolantait/bevy-starter132—~783Automated safety check: PassMIT
Spawnalirezarezvani/claude-skills28k—~829Automated safety check: PassMIT
Twenty Syncable Entity Cache and Transformtwentyhq/twenty58k—~2.4kAutomated safety check: PassCustom licence
Dead Code Removercode-yeongyu/oh-my-openagent70k—~1.8kAutomated safety check: PassCustom licence
Twenty Syncable Entity Typestwentyhq/twenty58k—~2.8kAutomated safety check: PassCustom licence
Remove Bg AutomationComposioHQ/awesome-claude-skills77k3 repos~738Automated safety check: PassNone

Similar skills

  • Spawn

    alirezarezvani/claude-skills

    Launch N parallel subagents in isolated git worktrees to compete on the session task.

    28k GitHub stars~829 tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Walks through step 2 of adding a syncable entity to the Twenty server: a cache service for flat entity maps and utilities that transform entities and DTOs into universal flat entities.

    58k GitHub stars~2.4k tokensUpdated today
    Backend & APIsAuto-check passed
  • Dead Code Remover

    code-yeongyu/oh-my-openagent

    Finds unused code in a TypeScript project, confirms each candidate has no references through the language server, then hands removals to parallel agents.

    70k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks through the first of six steps for adding a syncable entity to Twenty's server: metadata name, TypeORM entity, flat types and central constants.

    58k GitHub stars~2.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Remove Bg Automation

    ComposioHQ/awesome-claude-skills

    Automate Remove Bg tasks via Rube MCP (Composio). An agent skill from ComposioHQ/awesome-claude-skills.

    77k GitHub starsUsed in 3 repos~738 tokens
    Productivity & AutomationAuto-check passed
  • Remove AI Slops

    code-yeongyu/oh-my-openagent

    Removes AI-generated code smells from branch changes or an explicit file list behind regression tests.

    70k GitHub stars~5.3k tokensUpdated today
    Testing & QAAuto-check passed

More from nolantait/bevy-starter

All 24 skills in this repo
  • Bevy Events

    nolantait/bevy-starter

    Reference for events, messages, and observers in Bevy — Message/MessageReader/MessageWriter, Event/EntityEvent, triggers, observers, and propagation.

    132 GitHub stars~867 tokensUpdated yesterday
    Auto-check passed
  • Avian

    nolantait/bevy-starter

    Reference for Avian physics engine — rigid bodies, colliders, joints, spatial queries, collision events, character controllers, and debug rendering.

    132 GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Bevy Assets

    nolantait/bevy-starter

    Reference for loading, managing, and tracking assets in Bevy — AssetServer, handles, loading states, events, custom loaders, and hot reloading.

    132 GitHub stars~871 tokensUpdated yesterday
    Auto-check passed
  • Bevy Audio

    nolantait/bevy-starter

    Reference for playing and controlling audio in Bevy — AudioPlayer, AudioSink, spatial audio, volume, and playback settings.

    132 GitHub stars~713 tokensUpdated yesterday
    Auto-check passed
  • Bevy Bsn

    nolantait/bevy-starter

    Reference for Bevy Scene Notation (BSN) — the bsn!. An agent skill from nolantait/bevy-starter.

    132 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Bevy Cameras

    nolantait/bevy-starter

    Reference for cameras in Bevy — Camera2d, Camera3d, viewports, projection, render layers, mouse-to-world, and free camera controllers.

    132 GitHub stars~976 tokensUpdated yesterday
    Auto-check passed

Questions about Bevy Commands

What does Bevy Commands do?

Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing. Bevy Commands is an agent skill from nolantait/bevy-starter. Reference for Bevy Commands — spawning/despawning entities, inserting/removing components, custom commands, trait extensions, and testing.

How do I install Bevy Commands in Claude Code?

Run `npx skills add nolantait/bevy-starter --skill bevy-commands -a claude-code`. Or copy the skill folder (.agents/skills/bevy-commands in nolantait/bevy-starter) into .claude/skills/bevy-commands in your project. Claude Code loads it when a task matches its description.

How do I install Bevy Commands in Codex?

Run `npx skills add nolantait/bevy-starter --skill bevy-commands -a codex`. Or copy the skill folder (.agents/skills/bevy-commands in nolantait/bevy-starter) into .agents/skills/bevy-commands in your project. Codex loads it when a task matches its description.

Can I use Bevy Commands in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nolantait/bevy-starter --skill bevy-commands -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/bevy-commands, .gemini/skills/bevy-commands, .github/skills/bevy-commands and .opencode/skills/bevy-commands in your project.

What does Bevy Commands need to run?

SKILL.md names no scripts, command-line tools or credentials: Bevy Commands is instructions for the agent only.

Does Bevy Commands access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Bevy Commands safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Bevy Commands use?

Bevy Commands is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Bevy Commands use?

About 783 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Bevy Commands?

Skills that share tags, products or a category with Bevy Commands: Spawn (alirezarezvani/claude-skills, 28k stars), Twenty Syncable Entity Cache and Transform (twentyhq/twenty, 58k stars), Dead Code Remover (code-yeongyu/oh-my-openagent, 70k stars) and Twenty Syncable Entity Types (twentyhq/twenty, 58k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bevy Commands?

nolantait (a GitHub user) maintains it in nolantait/bevy-starter, which has 132 GitHub stars. The repository holds 24 skills in this directory. The repository was last updated on October 8, 2026.

Source: nolantait/bevy-starter on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.