bevy-commands

Document Bevy ECS Commands for spawning, modifying, and removing entities.

125|10|Updated Nov 22, 2022
One-click install
npx skills add https://github.com/nolantait/bevy-starter --skill bevy-commands
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bevy-commands
Source: https://github.com/nolantait/bevy-starter/tree/main/.agents/skills/bevy-commands
Command: npx skills add https://github.com/nolantait/bevy-starter --skill bevy-commands

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a concise reference for Bevy Commands, detailing how to spawn and despawn entities, insert and remove components, implement custom commands, and extend the Commands API for common game logic.

Core Features & Use Cases

  • Spawning and despawning entities using the Commands system.
  • Inserting, removing, and bundling components on entities.
  • Chaining and using EntityCommands for fluent command sequences.
  • Defining and applying custom commands and trait extensions, plus basic testing patterns.

Quick Start

Spawn an entity with components via Commands in a Bevy app and observe deferred execution at the schedule boundary.

Frequently Asked Questions about bevy-commands

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I spawn and despawn entities using Bevy ECS Commands?

Bevy ECS Commands streamlines entity management by documenting how to spawn, despawn, insert, and remove components using the Commands system parameter. It covers deferred execution at the schedule boundary.

What is deferred execution when modifying entities with Bevy Commands?

Bevy Commands uses deferred execution to queue structural changes like spawning and despawning entities, applying them at the schedule boundary to maintain ECS data consistency.

How do I chain EntityCommands for fluent component insertion in Bevy?

EntityCommands chaining in Bevy allows fluent insertion, removal, and bundling of components on entities within a single command sequence, streamlining component modification workflows.

Can I implement custom commands and trait extensions in Bevy ECS?

Bevy ECS supports defining and applying custom Command implementations and trait extensions, allowing developers to encapsulate common game logic workflows like spawning NPCs within the Commands API.

Does this Bevy Commands reference apply to Bevy ECS 0.19 projects?

This reference applies to Bevy-based projects using Bevy ECS 0.19, documenting Commands system parameter usage, EntityCommands chaining, and custom Command implementations for that version.

What are the limitations of using Commands for direct entity access in Bevy?

Because Bevy Commands use deferred execution, structural changes are not immediately visible within the same system execution cycle; they are applied at the schedule boundary, limiting direct entity access.