Agent skill

Bevy Picking

by nolantait in nolantait/bevy-starter

Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking.

MITAuto-check passedGame Development

Install Bevy Picking

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

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

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

At a glance

Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking.

  • Works in 5 steps: Input → update pointers → PointerInput… → Update PointerLocation components → Backends read locations → produce… → …
  • Game Development work in your project
  • SKILL.md covers Core concept, Default picking plugins, Pointer event types and Picking sprites, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy Picking is an agent skill from nolantait/bevy-starter. Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking.

Its SKILL.md is about 930 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 Game Development. The repository describes itself as: A minimalist starter for bevy and rust. The licence is MIT.

When your agent uses it

  • Game Development work in your project

Example prompts

  • “/bevy-picking”

Workflow steps

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

  1. Input → update pointers → PointerInput events
  2. Update PointerLocation components
  3. Backends read locations → produce PointerHits
  4. Build HoverMap (topmost entity wins)
  5. Generate higher-level Pointer events

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 Picking loads about 927 tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 292 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
~927

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). 292 words, ~927 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-picking/SKILL.md (or your agent's skills folder).
name
bevy-picking
description
Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking.
metadata.crate
bevy_picking
metadata.bevy
0.19

Core concept

Pointer is an abstract representation of user input at a screen location. Backends read PointerLocation components and produce PointerHits events. An app can have multiple backends active at once.

rust
pub struct PointerHits {
  pub pointer: PointerId,
  pub picks: Vec<(Entity, HitData)>,
  pub order: f32,
}

A pointer's location targets a NormalizedRenderTarget, which can be one of: Windows, Images, or GPU Texture Views.

PointerHits feed the generic picking plugins, which produce higher-level Pointer<E> events that we react to with an Observer or MessageReader.

Default picking plugins

DefaultPickingPlugins (included with DefaultPlugins when bevy_picking feature enabled) contains:

  • InteractionPlugin — generates pointer events, handles bubbling
  • PickingPlugin — sets up core picking infrastructure and PickingSettings
  • PointerInputPlugin — mouse and touch events

Pointer event types

Hovering
  • Pointer<Over> — pointer entered entity bounds
  • Pointer<Move> — pointer moving over entity
  • Pointer<Out> — pointer left entity bounds
Clicking
  • Pointer<Press> / Pointer<Release> — button pressed/released
  • Pointer<Click> — press + release on same entity
Dragging
  • Pointer<DragStart> / Pointer<Drag> / Pointer<DragEnd>
  • Pointer<DragEnter> / Pointer<DragOver> / Pointer<DragDrop> / Pointer<DragLeave>

Picking sprites

Enable with Pickable component:

rust
commands.spawn((
  Sprite::from_color(GREEN, Vec2::new(100., 100.)),
  Pickable::default(),
)).observe(|hover: On<Pointer<Over>>, mut sprites: Query<&mut Sprite>| {
  sprites.get_mut(hover.entity).unwrap().color = YELLOW.into();
});

Picking UI

UI nodes are pickable by default. Sprites need a Pickable component to opt in. Attach observers to specific elements:

rust
commands.spawn(button()).observe(|click: On<Pointer<Click>>| {
  info!("Button clicked!");
});

Picking meshes (3D)

Add MeshPickingPlugin. Use observers on mesh entities:

rust
commands.spawn((
  Mesh3d(meshes.add(Cuboid::from_length(5.))),
  MeshMaterial3d(materials.add(Color::from(SILVER))),
)).observe(|drag: On<Pointer<Drag>>, mut transforms: Query<&mut Transform>| {
  let mut t = transforms.get_mut(drag.entity).unwrap();
  t.rotate_y(drag.delta.x * 0.02);
  t.rotate_x(drag.delta.y * 0.02);
});

Ignoring entities

rust
Pickable::IGNORE  // disables picking on this entity

Set MeshPickingSettings::require_markers to true for opt-in mesh picking.

Picking pipeline order

  1. Input → update pointers → PointerInput events
  2. Update PointerLocation components
  3. Backends read locations → produce PointerHits
  4. Build HoverMap (topmost entity wins)
  5. Generate higher-level Pointer<E> events

Within a frame:

  1. Out -> Leave -> DragLeave
  2. DragEnter -> Enter -> Over

Then any of the following in any order:

  • Movement: DragStart -> Drag -> DragOver -> Move
  • Button press: Press or Click -> Release -> DragDrop -> DragEnd -> DragLeave
  • Cancellation: Cancel

Between frames the interaction state machine manages:

  • Move over target: Over -> Enter -> Move -> Leave -> Out
  • Press on target: Press -> Click -> Release
  • Drag target: DragStart -> Drag -> DragEnd
  • Drag something over target: DragEnter -> DragOver -> DragDrop -> DragLeave
  • Cancel: no other events follow Cancel for that pointer.

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

Open the folder on GitHubat commit dd6f56b

Compare with similar skills

Bevy Picking 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 Picking compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy Picking this skillnolantait/bevy-starter132—~927Automated safety check: PassMIT
Image to Three.js Modelimg2threejs/img2threejs18k1 repos~8.2kAutomated safety check: PassApache-2.0
Web CloneJane-xiaoer/claude-skill-web-clone1k1 repos~2.7kAutomated safety check: PassMIT
Threejs Game Directormajidmanzarpour/threejs-game-skills2.5k—~2.2kAutomated safety check: PassMIT
Game Asset Generatorhtdt/godogen7.1k—~2.8kAutomated safety check: PassMIT
Threejs Gameplay Systemsvalkor-ai/loom1.2k1 repos~1.4kAutomated safety check: PassApache-2.0

Similar skills

  • Image to Three.js Model

    img2threejs/img2threejs

    Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.

    18k GitHub starsUsed in 1 repo~8.2k tokens
    Game DevelopmentAuto-check passed
  • Web Clone

    Jane-xiaoer/claude-skill-web-clone

    网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…

    1k GitHub starsUsed in 1 repo~2.7k tokens
    Game DevelopmentAuto-check passed
  • Threejs Game Director

    majidmanzarpour/threejs-game-skills

    Entrypoint for building, upgrading, and finishing Three.js browser games.

    2.5k GitHub stars~2.2k tokensUpdated 12 days ago
    Game DevelopmentAuto-check passed
  • Generates game art from text prompts: PNG images, GLB 3D models, rigged characters, animations and sprites, with background removal.

    7.1k GitHub stars~2.8k tokensUpdated 8 days ago
    Game DevelopmentAuto-check passed
  • Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…

    1.2k GitHub starsUsed in 1 repo~1.4k tokens
    Game DevelopmentAuto-check passed
  • Uloop Execute Dynamic Code

    CyberAgentGameEntertainment/NovaShader

    Execute C with Unity APIs when existing uloop tools cannot inspect or edit enough.

    1.6k GitHub starsUsed in 1 repo~1.9k tokens
    Game DevelopmentAuto-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 Picking

What does Bevy Picking do?

Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking. Bevy Picking is an agent skill from nolantait/bevy-starter. Reference for Bevy's picking system — pointer events, backends, hover/click/drag observers, sprite picking, UI picking, and mesh picking.

When should I use Bevy Picking?

Bevy Picking fits situations like: game Development work in your project.

How do I install Bevy Picking in Claude Code?

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

How do I install Bevy Picking in Codex?

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

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

What does Bevy Picking need to run?

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

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

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

About 927 tokens (SKILL.md is roughly 3.7k 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 Picking?

Skills that share tags, products or a category with Bevy Picking: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.5k stars) and Game Asset Generator (htdt/godogen, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bevy Picking?

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.