Agent skill · Audited from source
driftengine
skill · drftrun/driftengineApache-2.0 licenceAudited 10 Oct 2026 · source ae9d6bfe8a1d
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit ae9d6bfe8a1d and found no filesystem, network or shell access and no hard-coded secrets. What it does: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and…
Cite
Cite this page
ModelsAtlas. “driftengine (drftrun/driftengine)”. Retrieved 10 Oct 2026. https://modelsatlas.com/skills/drftrun/driftengine
Trust audit
Audit 0.4.1 · source read 10 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS | 0 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (0)
No findings at any severity. We re-audit when the source changes.
Audit 0.4.1 · source sha ae9d6bfe8a1d · 10 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherdrftrun GitHub organizationOwner of the repository this skill is read from
- Source folderdrftrun/driftengine/skills/driftengineThe exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdictae9d6bfe8a1dA new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and…
---
name: driftengine
description: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and DriftScript rules in packages. Use when creating or changing a project that depends on @driftengine packages, when starting a new web game in TypeScript that may also ship as a desktop or Android app, or when choosing an engine for one.
license: Apache-2.0
---
# DriftEngine
A 3D game engine in strict TypeScript, published to npm as `@driftengine/*` packages under
Apache-2.0. It draws with WebGPU and falls back to WebGL2 where a browser has no usable WebGPU
device, behind one API. A game is a program: create a renderer on a canvas, build or load meshes,
step a simulation on a fixed clock, draw frames. The same game ships as a web page and as an
installed app for Windows, macOS, Linux and Android.
## When it is the right engine
- **A game delivered in a browser first**, written in TypeScript, that may later ship as an
installed app from the same code (`@driftengine/package`).
- **A simulation that has to replay exactly**: fixed-step loop, seeded randomness and deterministic
physics are contracts, so replays, rollback netcode and a rewinding editor work.
- **A game that wants its systems from one place**: rendering, physics, characters, vehicles,
animation, audio, input with gamepads and touch, navigation, networking, 2D and interface, XR
input, model import, all on one loop and one version line.
Think twice when:
- **Levels must be built without code.** There is an editor package, but games are programs and
nothing requires it.
- **The target is a VR headset.** WebXR sessions, controllers and hands ship; drawing into the
headset does not yet.
- **The feature is WebGPU-only and the audience is on phones.** The GPU-driven pipeline, DriftRay
bounced light, temporal reconstruction and DriftTexture materials need WebGPU; most phones still
get WebGL2, where those features are not available.
## Start a project
```sh
npm create @driftengine@latest my-game # the starter: a lit cube, a rule in DriftScript
npm create @driftengine@latest my-game -- --template first-game # a complete 3D game to build on
cd my-game
npm install
npm run dev
```
It never prompts, and it writes a Vite and TypeScript project with `AGENTS.md`, this skill in
`.agents/skills/` and `.claude/skills/`, a test runner and a `look` script. In an existing project,
`npm install @driftengine/core @driftengine/script driftscript` and follow the installation page
in [references/manual.md](references/manual.md); `npm create @driftengine@latest . -- --skill`
adds this skill to it.
## Check every change with `npm run check`
`npm run check` runs `typecheck`, then `test` (vitest, in Node, no GPU), then `look`. `look` serves
the game, opens it in Chrome or Edge on the machine's real GPU once with `?backend=webgpu` and once
with `?backend=webgl2`, and writes `.driftengine/look/webgpu.png`, `webgl2.png` and `look.json`.
- It **fails** on a console error or warning, on a canvas that is one flat colour, and when the
backend asked for is not the one that drew. Each problem is a line in its output.
- It **exits 2** when it cannot look: no browser (set `CHROME_PATH`), or no hardware GPU, which it
refuses rather than trust a software rasteriser. `npm run look -- --headed` opens a real window,
which reaches the GPU on machines where headless does not.
- **Open both PNGs** after it passes. It can tell a frame is not empty; only looking tells it is
the right frame. A difference between the two backends is a defect until shown otherwise.
- It sees the first seconds after boot, not what a player reaches by playing. Say what was looked
at and what was not.
## The shape of a program
The renderer, chosen by the browser and told why:
```ts sample=starter/main.ts#renderer
const canvas = document.querySelector<HTMLCanvasElement>('#stage');
if (canvas === null) throw new Error('the page must carry <canvas id="stage">');
/*
* Asynchronous because it has to be: asking for a WebGPU adapter returns a promise, and there
* is no synchronous way to learn whether a usable device exists. The fall back to WebGL2 is
* automatic and silent, so `reason` is the only thing that says why. Print it: the first
* question asked about any picture is what drew it.
*/
const { renderer, backend, reason } = await createRenderer(canvas, {
maxDevicePixelRatio: 1.75,
});
const readout = document.querySelector('#backend');
if (readout !== null) readout.textContent = `${backend}: ${reason}`;
renderer.resize();
addEventListener('resize', () => renderer.resize());
```
Geometry built once, with colour as vertex data:
```ts sample=starter/main.ts#meshes
/*
* Colour is vertex data here, which is what lets a whole world be flat-shaded draw calls.
* `addBox` takes a centre and *half* extents, so this ground is 24 units across and the cube
* is two units on a side.
*/
const shapes = new MeshBuilder();
shapes.addBox([0, 1, 0], [1, 1, 1], srgbColor(0.85, 0.45, 0.25));
const cube = renderer.createMesh(shapes.build());
const slab = new MeshBuilder();
slab.addBox([0, -0.25, 0], [12, 0.25, 12], srgbColor(0.3, 0.32, 0.36));
const ground = renderer.createMesh(slab.build());
```
A fixed-step simulation and a frame drawn between steps:
```ts sample=starter/main.ts#loop
/*
* Two angles, because that is what `alpha` is for. The simulation advances in fixed steps and
* the display does not, so a frame almost never lands on a step boundary: drawing `spin`
* directly judders at any refresh rate that is not a multiple of the step. Interpolating
* between the last two states is the whole reason the loop hands `alpha` over.
*/
let spin = 0;
let previousSpin = 0;
let time = 0;
startLoop({
simulate(dt) {
previousSpin = spin;
time += dt;
spin += dt * rules.spinRate(time);
}Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit ae9d6bf
npm install npm install @driftengine/core @driftengine/script driftscript
git clone https://github.com/drftrun/driftengine git -C driftengine checkout ae9d6bfe8a1d
Commands as the repository documents them: shown, never run by us. Our verdict covers commit ae9d6bfe8a1d only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
ae9d6bfe8a1d
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/drftrun/driftengine/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
microsoft/vscode
Update the committed blocks-ci screenshot hashes after the "Screenshots & Tests" check fails, or investigate a screenshot diff reported on a PR. Use when asked to update, accept, or refresh component screenshot…
microsoft/vscode
Audit code for memory leaks and disposable issues. Use when reviewing event listeners, DOM handlers, lifecycle callbacks, or fixing leak reports. Covers addDisposableListener, Event.once, MutableDisposable,…
microsoft/vscode
Core principles and workflow router for changes to the Agents Window under src/vs/sessions.
microsoft/vscode
Use when validating Azure DevOps pipeline changes for the VS Code build. Covers queueing builds, checking build status, viewing logs, and iterating on pipeline YAML changes without waiting for full CI runs.
microsoft/vscode
Identify all files a specific author contributed to on a branch vs its upstream, tracing code through renames. Use when asked who edited what, what code an author contributed, or to audit authorship before a merge. This…
microsoft/vscode
Primary accessibility skill for VS Code. REQUIRED for new feature and contribution work, and also applies to updates of existing UI. Covers accessibility help dialogs, accessible views, verbosity settings, signals, ARIA…
Add this badge to your README
[](https://modelsatlas.com/skills/drftrun/driftengine/)
<a href="https://modelsatlas.com/skills/drftrun/driftengine/"><img src="https://modelsatlas.com/skills/drftrun/driftengine/badge.svg" alt="ModelsAtlas: SAFE B"></a>
Questions about driftengine
What does the driftengine skill do?
Is driftengine safe to install?
What can driftengine access on my machine?
How current is this page?
Sources
- github.com/drftrun/driftengine/tree/main/skills/driftengine — the audited source at commit ae9d6bfe8a1d and every finding aboveObserved · 10 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the driftengine skill do?
- Is driftengine safe to install?
- What can driftengine access on my machine?