Agent skill

Bevy Windows

by nolantait in nolantait/bevy-starter

Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering.

MITAuto-check passed

Install Bevy Windows

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

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

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

At a glance

Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering.

  • SKILL.md covers Window component, Physical vs logical size, Configuring the primary window and Querying windows, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Bevy Windows is an agent skill from nolantait/bevy-starter. Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering.

Its SKILL.md is about 800 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-windows”

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 Windows loads about 804 tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 81 words of instructions outside code blocks.

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

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). 81 words, ~804 tokens.

Download SKILL.mdSave it as .claude/skills/bevy-windows/SKILL.md (or your agent's skills folder).
name
bevy-windows
description
Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering.
metadata.crate
bevy_window
metadata.bevy
0.19

Window component

The Window component holds all window settings (position, size, title, etc.). The PrimaryWindow marker is added to the default window.

rust
fn log(window: Single<&Window>) {
  info!("width: {}, height: {}", window.width(), window.height());
}

Physical vs logical size

  • Physical size — actual pixels on monitor (unscaled)
  • Logical size — physical / scale_factor
  • Requested size — logical size submitted to API

Configuring the primary window

rust
app.add_plugins(DefaultPlugins.set(WindowPlugin {
  primary_window: Some(Window {
    title: "My Game".into(),
    resolution: WindowResolution::new(500, 300).with_scale_factor_override(1.0),
    present_mode: PresentMode::AutoVsync,
    ..default()
  }),
  ..default()
}));

Querying windows

rust
fn inspect(windows: Query<&Window, With<PrimaryWindow>>) {
  for window in &windows {
    let logical = (window.width(), window.height());
    let physical = (window.physical_width(), window.physical_height());
    let cursor = window.cursor_position(); // Option<Vec2>
  }
}

Changing resolution at runtime

rust
fn resize(mut window: Single<&mut Window>, keys: Res<ButtonInput<KeyCode>>) {
  if keys.just_pressed(KeyCode::Digit1) {
    window.resolution.set(800., 600.);
  }
}

Changing title

rust
fn title(mut windows: Query<&mut Window>, time: Res<Time>) {
  if let Ok(mut window) = windows.single_mut() {
    window.title = format!("FPS: {:.0}", 1.0 / time.delta_secs());
  }
}

Cursor

rust
use bevy::window::{CursorGrabMode, CursorOptions};

fn toggle_cursor(mut cursor: Single<&mut CursorOptions, With<Window>>, input: Res<ButtonInput<KeyCode>>) {
  if input.just_pressed(KeyCode::Space) {
    cursor.visible = !cursor.visible;
    cursor.grab_mode = match cursor.grab_mode {
      CursorGrabMode::None => CursorGrabMode::Locked,
      _ => CursorGrabMode::None,
    };
  }
}

Closing on Escape

rust
pub fn close_on_esc(mut commands: Commands, windows: Query<(Entity, &Window)>, input: Res<ButtonInput<KeyCode>>) {
  for (window, _) in windows.iter().filter(|(_, w)| w.focused) {
    if input.just_pressed(KeyCode::Escape) {
      commands.entity(window).despawn();
    }
  }
}

Window events

WindowEvent enum covers: WindowResized, WindowMoved, WindowFocused, WindowCloseRequested, WindowCreated, WindowDestroyed, CursorMoved, KeyboardInput, MouseWheel, and more.

Reactive windows (power saving)

rust
app.insert_resource(WinitSettings {
  focused_mode: UpdateMode::Continuous,
  unfocused_mode: UpdateMode::reactive_low_power(Duration::from_millis(10)),
});

Screenshot

rust
use bevy::render::view::screenshot::{save_to_disk, Screenshot};

fn take_screenshot(mut commands: Commands, input: Res<ButtonInput<KeyCode>>) {
  if input.just_pressed(KeyCode::Space) {
    commands.spawn(Screenshot::primary_window()).observe(save_to_disk("screenshot.png"));
  }
}

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

Open the folder on GitHubat commit dd6f56b

Compare with similar skills

Bevy Windows 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 Windows compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Bevy Windows this skillnolantait/bevy-starter132—~804Automated safety check: PassMIT
Windows Desktop E2Eaffaan-m/ECC276k1 repos~7.6kAutomated safety check: PassMIT
Windows Desktop E2Eaffaan-m/ECC276k—~5.5kAutomated safety check: PassMIT
Logical Propertiesthedaviddias/Front-End-Checklist74k—~526Automated safety check: PassMIT
Physical Addressthedaviddias/Front-End-Checklist74k—~574Automated safety check: PassMIT
Writing Kea LogicsPostHog/posthog40k—~2.3kAutomated safety check: PassCustom licence

Similar skills

  • E2E testing for Windows native desktop apps (WPF, WinForms, Win32/MFC, Qt) using pywinauto and Windows UI Automation.

    276k GitHub starsUsed in 1 repo~7.6k tokens
    Testing & QAAuto-check passed
  • E2E testing for Windows native desktop apps (WPF, WinForms, Win32/MFC, Qt) using pywinauto and Windows UI Automation.

    276k GitHub stars~5.5k tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Logical Properties

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing stylesheets, component styles, and responsive behavior related to Use CSS logical properties for i18n and RTL support.

    74k GitHub stars~526 tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Physical Address

    thedaviddias/Front-End-Checklist

    A skill your agent uses when auditing local business websites, e-commerce sites, or any site where a physical presence affects trust or local search visibility.

    74k GitHub stars~574 tokensUpdated 3 days ago
    Marketing & SEOAuto-check passed
  • Writing Kea Logics

    PostHog/posthog

    Official

    Guide for writing or reviewing PostHog kea logic files (Logic.ts / Logic.tsx).

    40k GitHub stars~2.3k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Windows Hardening

    sickn33/agentic-awesome-skills

    Harden Windows servers per security baselines and CIS benchmarks.

    47k GitHub starsUsed in 2 repos~4.4k tokens
    Auto-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 Windows

What does Bevy Windows do?

Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering. Bevy Windows is an agent skill from nolantait/bevy-starter. Reference for Bevy windows — Window component, physical vs logical size, resolution, cursors, multi-window, events, screenshots, and reactive rendering.

How do I install Bevy Windows in Claude Code?

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

How do I install Bevy Windows in Codex?

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

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

What does Bevy Windows need to run?

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

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

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

About 804 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 Windows?

Skills that share tags, products or a category with Bevy Windows: Windows Desktop E2E (affaan-m/ECC, 276k stars), Windows Desktop E2E (affaan-m/ECC, 276k stars), Logical Properties (thedaviddias/Front-End-Checklist, 74k stars) and Physical Address (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 Windows?

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.