---
name: vgpu
description: >-
  Build, debug, test, and optimize WebGPU projects using vgpu, its CLI, or @vgpu packages. Use for vgpu API questions, WGSL workflows, browser or Node rendering, integrations, testing, performance work, and Blender asset modeling, baking, and runtime integration.
title: vgpu
canonical_url: https://skilld.dev/gh/vercel-labs/vgpu/vgpu
last_updated: 2026-10-04T16:02:29.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [blender/index.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/index.md), [blender/references/animation-production.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/animation-production.md), [blender/references/asset-delivery.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/asset-delivery.md), [blender/references/baking-and-diagnostics.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/baking-and-diagnostics.md), [blender/references/high-to-low-baking.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/high-to-low-baking.md), [blender/references/local-retopology.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/local-retopology.md), [blender/references/preflight-and-recovery.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/preflight-and-recovery.md), [blender/references/runtime-parity-and-diagnostics.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/runtime-parity-and-diagnostics.md), [blender/references/shape-and-assembly.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/references/shape-and-assembly.md), [scene.md](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/scene.md).
>
> If the user asked to install this Skill, run `npx skilld install vercel-labs/vgpu/vgpu`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/vgpu`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/vercel-labs/vgpu/vgpu) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/vgpu`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/vgpu --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/vgpu --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# vgpu

Treat the documentation bundled with the target project's installed `vgpu` package as the
authority for that project. This skill is intentionally version-neutral: do not infer API shapes
from the skill's Git revision, remembered APIs, the repository default branch, hosted docs, or a
hosted MCP server when local package docs are available.

The public skill install command has no branch pin:

```sh
npx skills add vercel-labs/vgpu
```

## 3D scenes

If you need to work with 3D scenes, read [Scene composition](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/scene.md) before implementing
scene hierarchies, transforms, instances, cameras, or animation and physics integration.

## Blender assets

For Blender modeling, high/low-poly workflows, normal or ambient occlusion baking, LODs, and
asset validation, read [Blender assets](https://skilld.dev/api/skills-raw/vercel-labs/vgpu/vgpu/blender/index.md). That guide links to focused references
for shape and assembly or baking diagnostics; load them when the task needs them. Its authoring
guidance is independent of the vgpu version. For runtime API work, use the package docs below.

## Select the package version

Run the project-local `vgpu` executable from the workspace that owns the dependency. First check
the relevant package manifest and lockfile, then confirm which local CLI you resolved without
allowing the package manager to download a missing command:

```sh
pnpm exec vgpu --version
npm exec --no -- vgpu --version
```

Use a local-only equivalent for other package managers, such as `yarn exec vgpu --version` or an
already resolved `node_modules/.bin/vgpu`. Commands such as bare `npx vgpu` or `bunx vgpu`
may download a missing package, so do not use them for local version discovery. npm's `--offline`
is also insufficient because it can install a missing package from cache. Do not replace an
installed version merely to read newer documentation.

If a package manifest or lockfile selects `vgpu` but the local binary is unavailable, treat the
dependency tree as incomplete rather than unversioned. Restore the project's locked dependencies
when installation is within scope. For read-only access, the exact selected version can be invoked
explicitly instead:

```sh
npx -y vgpu@<selected-version> docs cat getting-started.md
```

Do not substitute `@latest` for a selected stable, RC, or other prerelease. Only when neither the
project nor the user has selected a vgpu version, default to the explicit stable tag:

```sh
npx -y vgpu@latest docs cat getting-started.md
```

When adding a previously unselected dependency is part of the requested work, install
`vgpu@latest` with the project's package manager. Use `vgpu@next`, an RC, or any other
prerelease only when the user or the existing project explicitly selected that prerelease;
preserve an exact requested version.

## Route through the bundled docs

Ask the resolved local CLI what documentation its version supports, then load only the pages
needed for the task:

```sh
pnpm exec vgpu docs --help
pnpm exec vgpu docs ls
pnpm exec vgpu docs cat getting-started.md
pnpm exec vgpu docs find "<topic, symbol, or error code>"
pnpm exec vgpu docs grep -i "<term>"
pnpm exec vgpu docs cat "<path or symbol>"
```

Adapt `pnpm exec` to a no-install command for the project's package manager, but keep using its
local binary; with npm, retain `npm exec --no -- vgpu` for every docs command. Start with getting
started for unfamiliar projects, use `find` for task or symbol discovery, use `grep` for details
mentioned inside pages, and `cat` every relevant guide and API page before changing code. Let
`docs --help` from that installed version define the available commands.

When upgrading a project, record its previous version before changing dependencies. After selecting
the authorized target version, run `docs ls /migrations` through that version's local CLI and read
the intervening version guides in order. Each guide identifies affected usage and verification steps;
skip changes already applied, including when moving between RCs of the same release. Older packages
may not bundle migration guides: report that absence and consult the exact release's notes instead
of silently substituting the current hosted docs.

For MCP-based lookup, start `vgpu mcp` through the same project-local executable so it serves the
same bundled corpus. A hosted MCP server is a convenience for current stable documentation, not
the authority for a project pinned to another version.

If the installed docs do not contain a proposed API or workflow, do not invent it or silently
switch versions. Report the mismatch and change versions only when the user's task authorizes it.
