vgpu — скилл для Claude Code: что делает и как установить
Скилл помогает создавать и отлаживать WebGPU-проекты на базе vgpu, опираясь на встроенную документацию установленного в проекте пакета.
npx skills add vercel-labs/vgpu --skill vgpu -a claude-codeЧто делает vgpu
Скилл организует работу ассистента с библиотекой vgpu, её CLI и пакетами @vgpu. Он охватывает рендеринг в браузере или Node, написание шейдеров WGSL, тесты и сборку 3D-сцен с камерами, трансформациями и физикой. Для графики скилл даёт инструкции по работе в Blender: моделирование, запекание карт нормалей и ambient occlusion, настройка LOD и проверка геометрии.
Главное требование скилла — версия-нейтральность. Ассистент не должен угадывать API по памяти или брать данные из сети, если в проекте есть локальный CLI. Для поиска справок используются локальные вызовы вроде pnpm exec vgpu docs cat или npm exec --no -- vgpu docs find.
Если локальный бинарник в node_modules отсутствует, скилл запрещает запускать команды вроде npx vgpu, способные скрытно скачать свежую версию из реестра. При несовпадении версий агент обязан запросить обновление у пользователя, а не подменять API молча.
Какие задачи решает
- настроить WebGPU-рендеринг в браузере или среде Node
- собрать иерархию 3D-сцены с камерами и анимацией
- подготовить модели в Blender и запечь текстурные карты
- проверить методы API через документацию локального пакета vgpu
- выполнить пошаговую миграцию проекта между версиями vgpu
Примеры запросов агенту
- Помоги настроить WebGPU-пайплайн для рендеринга меша через vgpu
- Найди в локальной документации vgpu методы для работы с WGSL
- Как подготовить low-poly модель в Blender и запечь ambient occlusion для vgpu?
Как установить vgpu
1Через Skills CLI (Vercel)
npx skills add vercel-labs/vgpu --skill vgpu -a claude-code2Вручную: положить файлы
~/.claude/skills/vgpu/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/vgpu/
1Через Skills CLI (Vercel)
npx skills add vercel-labs/vgpu --skill vgpu -a codex2Вручную: положить файлы
.agents/skills/vgpu/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add vercel-labs/vgpu --skill vgpu -a cursor2Вручную: положить файлы
.cursor/skills/vgpu/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install vercel-labs/vgpu vgpu2Вручную: положить файлы
.github/skills/vgpu/SKILL.md1Через Skills CLI (Vercel)
npx skills add vercel-labs/vgpu --skill vgpu -a gemini-cli2Командой платформы
gemini skills install https://github.com/vercel-labs/vgpu --path skills/vgpuВручную: положить файлы
.devin/skills/vgpu/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add vercel-labs/vgpu --skill vgpu -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о vgpu
Как установить vgpu в Claude Code?
Выполните команду npx skills add vercel-labs/vgpu --skill vgpu -a claude-code. Конфигурация скилла запишется в ~/.claude/skills/vgpu/SKILL.md.
Что делает скилл vgpu?
Он инструктирует ассистента по работе с WebGPU, написанию WGSL и сборке 3D-сцен. Скилл заставляет модель сверяться только со встроенной документацией установленной версии пакета.
Почему скилл запрещает запуск голого npx vgpu?
Команды npx vgpu или bunx vgpu могут автоматически скачать пакет из сети, если его нет локально. Скилл требует использовать локальные вызовы вроде npm exec --no -- vgpu --version, чтобы случайно не подменить зафиксированную версию проекта.
Исходный текст
SKILL.md · MIT
--- 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. --- # 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](./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](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.
© vercel-labs · MIT · vercel-labs/vgpu