rust-webgpu-game-engine

rust-webgpu-game-engine is a skill for Claude Code, Codex from donaldfilimon/abi. It costs 44 tokens per session (936 once invoked), scanned A, original, Apache-2.0.

A guide for building and checking Rust games that run on desktop systems and in browsers with WebGPU. WebGPU is a browser and graphics API for using a computer's GPU.

In plain words
What is it for?
Supports work on winit windows, wgpu rendering, browser WebGPU, shaders, asynchronous resource lifecycles, and saved game scenarios.
Why use it?
It helps keep game simulation repeatable and separate from display, timing, storage, and hardware details, while avoiding API mistakes caused by using documentation for the wrong library version.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Supports work on winit windows, wgpu rendering, browser WebGPU, shaders, asynchronous resource lifecycles, and saved game scenarios.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/donaldfilimon/abi/rust-webgpu-game-engine
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add donaldfilimon/abi --skill rust-webgpu-game-engine
Clone the repo
git clone --depth 1 https://github.com/donaldfilimon/abi

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rust-webgpu-game-engine

README.md
[![agentmods](https://agentmods.dev/badge/skills/donaldfilimon/abi/rust-webgpu-game-engine/github.svg)](https://agentmods.dev/skills/donaldfilimon/abi/rust-webgpu-game-engine)
Your own site
<a href="https://agentmods.dev/skills/donaldfilimon/abi/rust-webgpu-game-engine"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/rust-webgpu-game-engine/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rust-webgpu-game-engine

Your own site · 80×15
<a href="https://agentmods.dev/skills/donaldfilimon/abi/rust-webgpu-game-engine"><img src="https://agentmods.dev/badge/skills/donaldfilimon/abi/rust-webgpu-game-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 936 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00044 $0.00936
Opus 5.5 $0.00018 $0.00374
Sonnet 5.5 $0.00009 $0.00187
Haiku 4.5 $0.00004 $0.00094

Measured 15d ago against content hash 27be19dfb55e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-webgpu-game-engine scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/rust-webgpu-game-engine/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Rust WebGPU Game Engine

Use this skill when implementing or debugging a custom Rust game that combines winit, wgpu, native targets, or browser WebGPU.

Start from authority boundaries

  • Keep deterministic game truth independent of windows, GPUs, wall clocks, storage, editor drafts, and advisory output.
  • Convert fixed-point state to floating point only in presentation code.
  • Let editors produce validated immutable scenarios before constructing a replacement simulation. Build replacements in temporaries and swap once.
  • Keep advisory or compute output presentation-only unless a separately designed deterministic contract explicitly authorizes it.

Research the locked APIs

Read Cargo.toml, Cargo.lock, and the pinned toolchain before coding. Query documentation for the exact locked winit, wgpu, Naga, and wasm-bindgen versions. Do not copy latest-version examples into an older lock without compiling the target. In particular, verify constructor ownership, enum variants, feature names, surface presentation, and web extension traits against the locked release.

Validate shaders before pipeline creation

  • Parse shipped WGSL with Naga and run full validation before passing it to wgpu.
  • Keep host vertex offsets, strides, buffer sizes, binding minimum sizes, and shader packing synchronized and tested.
  • Include source labels in parse and validation diagnostics.
  • Test shader contracts without requiring a live adapter; keep adapter-backed tests separate.

Keep coordinate spaces explicit

Use logical pixels for layout, primitive vertices, renderer viewport globals, and hit testing. Use physical pixels only for surface configuration. Convert pointer coordinates once at the platform boundary. Test high-DPI-sensitive transformations rather than inferring correctness from a normal-density display.

Own surfaces safely

Prefer an owned Arc<Window> when creating a 'static wgpu surface. Create native windows, instances, and surfaces on the winit thread. If native adapter/device acquisition moves to an executor, return it through a generation-checked mailbox and configure the latest surface size back on the winit thread.

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 70 lines · 44 tokens per session scan A 27be19dfb55e

Subscribe to this mod's changes

rust-webgpu-game-engine is a skill published in the GitHub repository donaldfilimon/abi (18 stars, last pushed 5d ago), licensed Apache-2.0. It adds 44 tokens to every session and 936 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

rust-webgpu-game-engine compared with skills from other repositories

rust-webgpu-game-engine next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rust-webgpu-game-enginedonaldfilimon/abiSkill185d agoApache-2.0A44Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
bevymetaspartan/cybaraSkill416d agoMITA43Claude Code, Codex
rust-best-practiceswordbricks/onequerySkill164mo agoApache-2.0A91Claude Code
rust-checkHmbown/CodeWhaleSkill41kyesterdayMITA15Claude Code, Codex
clinical-decision-supportsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A97Claude Code
immunology-assayssynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A79Claude Code, Codex