Agent skill

Bevy Input

by nolantait in nolantait/bevy-starter

Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input.

MITAuto-check passed

Install Bevy Input

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

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

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

At a glance

Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input.

  • Works in 2 steps: Messages — read MessageReader for input… → Polling — resources like ButtonInput /…
  • SKILL.md covers Two approaches, Input types, ButtonInput methods and Keyboard, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy Input is an agent skill from nolantait/bevy-starter. Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input.

Its SKILL.md is about 810 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-input”

Workflow steps

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

  1. Messages — read MessageReader for input emitted by Bevy's input systems
  2. Polling — resources like ButtonInput / Touches, or querying components like Gamepad

What it can do on your machine

Read from SKILL.md and the folder at commit 821df7d. 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 Input loads about 806 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 173 words of instructions outside code blocks.

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

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 821df7d, republished under its MIT licence (© nolantait). 173 words, ~806 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-input/SKILL.md (or your agent's skills folder).
name
bevy-input
description
Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input.
metadata.crate
bevy_input
metadata.bevy
0.19

Two approaches

  1. Messages — read MessageReader<T> for input emitted by Bevy's input systems
  2. Polling — resources like ButtonInput<T> / Touches, or querying components like Gamepad

Input types

TypeDescription
ButtonInput<T>A "press-able" input, such as KeyCode or MouseButton
Axis<T>Position data from certain input devices
TouchesA collection of Touches that have happened
TouchInputMessages representing touch-based input
GamepadComponent on each connected controller, holding its button/axis state
GamepadAxisEnum describing the axes available on a gamepad

ButtonInput methods

MethodReturns true
pressed(k)Between press and release
just_pressed(k)On the frame the press was processed
just_released(k)On the frame the release was processed
any_pressed([k1, k2])Any in list pressed

Keyboard

rust
fn jump(input: Res<ButtonInput<KeyCode>>) {
  if input.just_pressed(KeyCode::Space) { /* jump */ }
}
Physical vs logical keys
  • key_code — physical position on keyboard (use for gameplay)
  • logical_key — mapped to OS layout (use for text)

Mouse

rust
fn shoot(mouse: Res<ButtonInput<MouseButton>>) {
  if mouse.just_pressed(MouseButton::Left) { }
}

Mouse motion, cursor, wheel, gestures — read via MessageReader:

rust
fn mouse_events(
  mut motion: MessageReader<MouseMotion>,
  mut cursor: MessageReader<CursorMoved>,
  mut wheel: MessageReader<MouseWheel>,
) {
  for ev in motion.read() { }
  for ev in cursor.read() { }
  for ev in wheel.read() { }
}

Touch

rust
fn touch(touches: Res<Touches>) {
  for touch in touches.iter_just_pressed() { }
  for touch in touches.iter_just_released() { }
  for touch in touches.iter() { }
}

Gamepad

Gamepad is a component on each connected controller. Poll its own state, or use the ButtonInput<GamepadButton> / Axis<GamepadAxis> resources:

rust
fn gamepad(gamepads: Query<&Gamepad>, buttons: Res<ButtonInput<GamepadButton>>) {
  for pad in &gamepads {
    if pad.just_pressed(GamepadButton::South) { }
    if buttons.just_pressed(GamepadButton::South) { }
  }
}
Haptics
rust
commands.queue(GamepadRumbleRequest::Add {
  gamepad: entity,
  intensity: GamepadRumbleIntensity::strong_motor(0.5),
  duration: Duration::from_millis(300),
});

Modifiers (Shift/Ctrl)

rust
let shift = input.any_pressed([KeyCode::ShiftLeft, KeyCode::ShiftRight]);
let ctrl = input.any_pressed([KeyCode::ControlLeft, KeyCode::ControlRight]);
if ctrl && shift && input.just_pressed(KeyCode::KeyA) { }

Enhanced input (observer pattern)

Use observers to avoid scheduling issues with FixedUpdate:

rust
fn apply_movement(trigger: On<Fire<Move>>, mut players: Query<&mut Transform>) {
  let mut t = players.get_mut(trigger.context).unwrap();
  t.translation += trigger.value.extend(0.0);
}

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

Open the folder on GitHubat commit 821df7d

Compare with similar skills

Bevy Input 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 Input compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy Input this skillnolantait/bevy-starter132—~806Automated safety check: PassMIT
Input Keyboard Mouse Touchautonomous-ai/openharness1.1k—~4.6kAutomated safety check: PassMIT
Uloop Simulate Mouse InputCyberAgentGameEntertainment/NovaShader1.6k1 repos~2kAutomated safety check: PassMIT
Search Inputthedaviddias/Front-End-Checklist74k—~402Automated safety check: PassMIT
Input Typesthedaviddias/Front-End-Checklist74k—~487Automated safety check: PassMIT
Keyboard Navigationthedaviddias/Front-End-Checklist74k—~567Automated safety check: PassMIT

Similar skills

  • Input Keyboard Mouse Touch

    autonomous-ai/openharness

    A skill your agent uses when handling user input in Phaser 4.

    1.1k GitHub stars~4.6k tokensUpdated today
    Auto-check passed
  • Uloop Simulate Mouse Input

    CyberAgentGameEntertainment/NovaShader

    Simulate Mouse.current input in PlayMode through Unity Input System.

    1.6k GitHub starsUsed in 1 repo~2k tokens
    Game DevelopmentAuto-check passed
  • Search Input

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Make search inputs accessible.

    74k GitHub stars~402 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Input Types

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing templates, rendered HTML, or shared components related to Use semantic input type attributes.

    74k GitHub stars~487 tokensUpdated 2 days ago
    Auto-check passed
  • Keyboard Navigation

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Enable keyboard navigation for all elements.

    74k GitHub stars~567 tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Paste Inputs

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing rendered HTML, interactive components, or design-system patterns related to Allow pasting into form inputs.

    74k GitHub stars~443 tokensUpdated 2 days ago
    Frontend & DesignAuto-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 16 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 16 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 16 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 16 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 16 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 16 days ago
    Auto-check passed

Questions about Bevy Input

What does Bevy Input do?

Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input. Bevy Input is an agent skill from nolantait/bevy-starter. Reference for handling input in Bevy — keyboard, mouse, touch, gamepad, events vs resources, physical vs logical keys, and enhanced input.

How do I install Bevy Input in Claude Code?

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

How do I install Bevy Input in Codex?

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

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

What does Bevy Input need to run?

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

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

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

About 806 tokens (SKILL.md is roughly 3.2k 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 Input?

Skills that share tags, products or a category with Bevy Input: Input Keyboard Mouse Touch (autonomous-ai/openharness, 1.1k stars), Uloop Simulate Mouse Input (CyberAgentGameEntertainment/NovaShader, 1.6k stars), Search Input (thedaviddias/Front-End-Checklist, 74k stars) and Input Types (thedaviddias/Front-End-Checklist, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Bevy Input?

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 September 22, 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.