Agent skill

Bevy Relationships

by nolantait in nolantait/bevy-starter

Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal.

MITAuto-check passedDevelopment

Install Bevy Relationships

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

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

GitHub CLI
$ gh skill install nolantait/bevy-starter bevy-relationships --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-relationships .claude/skills/bevy-relationships && 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-relationships
GitHub stars
132
Token cost
~722 tokens
SKILL.md length
152 words
Files
1
Skills in repo
24
Repo updated
First seen
Licence
MIT

At a glance

Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal.

  • Tasks that involve Diagrams
  • SKILL.md covers Built-in parent/child, Custom relationships, Querying relationships and Limitations
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy Relationships is an agent skill from nolantait/bevy-starter. Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal.

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

It sits in Development, covering Diagrams. The repository describes itself as: A minimalist starter for bevy and rust. The licence is MIT.

When your agent uses it

  • Tasks that involve Diagrams

Example prompts

  • “/bevy-relationships”

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 Relationships loads about 722 tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 152 words of instructions outside code blocks.

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

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). 152 words, ~722 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-relationships/SKILL.md (or your agent's skills folder).
name
bevy-relationships
description
Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal.
metadata.crate
bevy_ecs
metadata.bevy
0.19

Built-in parent/child

Two components kept in sync:

  • ChildOf(Entity) — the relationship, added to child entities
  • Children(Vec<Entity>) — the target, auto-maintained on parent

The built-in hierarchy is wired into Bevy's transform and visibility propagation, so a parent's Transform and Visibility are inherited by its children automatically.

Children is declared with linked_spawn: despawning the parent also despawns its children and their descendants. Use detach_children or detach_all_children first if you want to keep them alive.

Spawning children
rust
// Via with_children
commands.spawn(Fleet).with_children(|parent| {
  parent.spawn((Ship, Name::new("Ship 1")));
});

// Via children! macro
commands.spawn((Fleet, children![(Ship, Name::new("Ship 2"))]));

Custom relationships

Define a Relationship and a RelationshipTarget:

rust
#[derive(Component)]
#[relationship(relationship_target = ShipAttachments)]
struct AttachedToShip(pub Entity);

#[derive(Component)]
#[relationship_target(relationship = AttachedToShip, linked_spawn)]
struct ShipAttachments(Vec<Entity>);

The RelationshipTarget must hold a collection implementing RelationshipSourceCollection — e.g. Vec<Entity>, an entity hash set, or a single Entity. linked_spawn means despawning the entity holding the RelationshipTarget also despawns the entities holding the Relationship. Without it, those Relationship components are still removed, but the entities stay alive.

Spawning with custom relationship
rust
let ship = commands.spawn(Ship).id();
commands.spawn((GunTurret, AttachedToShip(ship)));

// Or with related! macro:
commands.spawn((Ship, related!(ShipAttachments[
  (GunTurret, Name::new("Turret 1")),
])));

Querying relationships

rust
// Parent → children
fn from_ship(ships: Query<&ShipAttachments>, turrets: Query<&Name, With<GunTurret>>) {
  for attachments in &ships {
    for &attachment in &attachments.0 {
      if let Ok(name) = turrets.get(attachment) { }
    }
  }
}

// Children → parent (iter_ancestors)
fn from_turret(turrets: Query<Entity, With<AttachedToShip>>, att: Query<&AttachedToShip>) {
  for turret in &turrets {
    for parent in att.iter_ancestors(turret) { }
  }
}

// Parent → children (iter_descendants)
fn from_ship_desc(ships: Query<Entity, With<Ship>>, att: Query<&ShipAttachments>) {
  for ship in &ships {
    for child in att.iter_descendants(ship) { }
  }
}

Limitations

  • No native many-to-many relationships
  • ChildOf can only point to a single entity
  • Relationships don't fragment archetypes like other components

© 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-relationships of nolantait/bevy-starter.

Open the folder on GitHubat commit dd6f56b

Compare with similar skills

Bevy Relationships 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 Relationships compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy Relationships this skillnolantait/bevy-starter132—~722Automated safety check: PassMIT
Archify Diagramstt-a1i/archify81k—~2.9kAutomated safety check: PassMIT
JSON Canvasheyitsnoah/claudesidian2.6k18 repos~3.5kAutomated safety check: PassMIT
Diagram Designcathrynlavery/diagram-design48k1 repos~7.6kAutomated safety check: PassMIT
Fireworks Tech Graphtisfeng/Easydict15k1 repos~1.4kAutomated safety check: PassMIT
Excalidraw Diagramcoleam00/excalidraw-diagram-skill5k2 repos~6.1kAutomated safety check: PassNone

Similar skills

  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    81k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • JSON Canvas

    heyitsnoah/claudesidian

    Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections.

    2.6k GitHub starsUsed in 18 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Diagram Design

    cathrynlavery/diagram-design

    Creates branded diagrams, from architecture, flowchart and sequence to charts and maps, as self-contained HTML with inline SVG, with import from draw.io, Mermaid and Excalidraw.

    48k GitHub starsUsed in 1 repo~7.6k tokens
    DevelopmentAuto-check passed
  • Fireworks Tech Graph

    tisfeng/Easydict

    Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF.

    15k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Excalidraw Diagram

    coleam00/excalidraw-diagram-skill

    Create Excalidraw diagram JSON files that make visual arguments.

    5k GitHub starsUsed in 2 repos~6.1k tokens
    DevelopmentAuto-check passed
  • Draw.io Diagram Studio

    Agents365-ai/drawio-skill

    Creates and edits editable draw.io diagrams from descriptions, code, infrastructure files, SQL and API schemas, with sync, review, test and export tools.

    10k GitHub stars~2.4k tokensUpdated 8 days ago
    DevelopmentAuto-check: notes

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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    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 2 days ago
    Auto-check passed

Categories

Questions about Bevy Relationships

What does Bevy Relationships do?

Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal. Bevy Relationships is an agent skill from nolantait/bevy-starter. Reference for Bevy entity relationships — ChildOf/Children hierarchy, custom relationships with Relationship/RelationshipTarget, spawning children, and traversal.

When should I use Bevy Relationships?

Bevy Relationships fits situations like: tasks that involve Diagrams.

How do I install Bevy Relationships in Claude Code?

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

How do I install Bevy Relationships in Codex?

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

Can I use Bevy Relationships 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-relationships -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-relationships, .gemini/skills/bevy-relationships, .github/skills/bevy-relationships and .opencode/skills/bevy-relationships in your project.

What does Bevy Relationships need to run?

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

Does Bevy Relationships 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 Relationships 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 Relationships use?

Bevy Relationships 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 Relationships use?

About 722 tokens (SKILL.md is roughly 2.9k 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 Relationships?

Skills that share tags, products or a category with Bevy Relationships: Archify Diagrams (tt-a1i/archify, 81k stars), JSON Canvas (heyitsnoah/claudesidian, 2.6k stars), Diagram Design (cathrynlavery/diagram-design, 48k stars) and Fireworks Tech Graph (tisfeng/Easydict, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bevy Relationships?

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.