/vibedgames:deployfrom vibedgames
Deploys static browser games (Vite, Phaser, Three.js, plain HTML) to vibedgames.com using the `vg deploy` CLI. Handles auth, build, and deployment.
Ships in vibedgames. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Deploy static browser games to {slug}.vibedgames.com using the vibedgames CLI.
vgnot on PATH? Don't stop to install it: run eachvg <cmd>below asnpx -y vibedgames@latest <cmd>— same flags, same output. Thevg-setupskill covers this and signing in.
If the user has no project yet, scaffold one in a single command. vg new copies an engine starter that ships with the CLI (no network needed) and drops a vibedgames.json in place so deploy works without further config:
vg new my-game # Phaser 4 + Vite + TS
vg new my-game --engine threejs # Three.js + Vite + TS starter
vg new my-game --engine react-r3f # React + R3F + drei + Vite + TS starter
vg new my-game --engine none # minimal Vite + TS + canvas (no engine)
vg new my-game --template foo/bar # a third-party GitHub template instead
Pick the engine that matches the game the user described:
phaser (the default)threejsreact-r3fnoneAfter scaffold:
cd my-game
npm install
npm run dev # local preview
The matching skill (phaser, threejs, etc.) will load automatically in Claude Code based on the deps in package.json. Pass --here to scaffold into the current directory.
The game directory must contain an index.html at the root. Typically this is the dist/ output from a build tool (Vite, webpack, etc.).
Always check auth before building or deploying. whoami exits non-zero
when unauthenticated:
vg whoami
If it prints Not logged in (or similar) or exits with an error, run
login before anything else:
vg login
Run it in the background: it waits up to 10 minutes for approval. It
prints an 8-character code and the approval URL
(https://vibedgames.com/device?user_code=…), and tries to open a
browser. Tell the user: "Approve code XXXXXXXX at ". Always pass on the URL, because the browser won't open in a
remote or headless shell. Wait for the CLI to print Logged in successfully before continuing. With no human to approve (CI, a headless
agent), the user sets VG_TOKEN to an API key from
https://vibedgames.com/settings instead; see the vg-setup skill.
Only skip this step if whoami succeeded with a name (email) line.
If the project has a build step, run it first:
npm run build
# or: pnpm build, vite build, etc.
The build output directory (usually dist/) is what gets deployed.
vg deploy ./dist --slug my-game
./dist — the directory containing index.html and all assets--slug my-game — the subdomain name (lowercase, hyphens allowed). The game will be live at https://my-game.vibedgames.comRunning vg deploy from a project root (a directory with package.json)
automatically deploys its build output when one exists — dist/, build/,
or out/, whichever has an index.html (the root index.html of a
Vite-style project is the source template, not the game). An unbuilt project
root gets a warning. Plain-HTML games (no package.json) deploy as-is.
After deploy, the CLI prints the live URL. Boot-check it headless before calling it shipped — canvas present, zero page errors, no 4xx sub-resources:
vg playtest --game my-game
vg playtest wait --fn "document.querySelector('canvas') !== null"
vg playtest errors # must be empty
vg playtest network requests # no 4xx
Full recipe in the playtest skill. Two expected non-failures: webcam / hand-tracking games throw NotSupportedError headless (no camera), and a split-artifact loader's first 404 is its probe (Rules below).
Playable on mobile? Deployed games are shared by link and frequently opened on phones. If the game is mouse/keyboard-only, add on-screen touch controls (a virtual joystick + buttons) so the link works on a phone — see the
gamepadskill (@vibedgames/gamepad). One prompt: "add touch controls".
Every game gets a share card automatically: when the served HTML has no
og: tags, the platform injects them — title from the game name, description
from the page's <meta name="description"> (add one!), and a cover image.
To ship a custom cover, drop og.jpg (1200×630+ landscape; og.png and
og.webp also work) into the deployed directory root (public/og.jpg in a
Vite project). No meta tags needed. To fully own share meta instead, add your
own og: tags — the platform then serves the page untouched.
dist/, build/, out/)vite preview, or any static server on dist/). The dev server is not the build — a wrong base or absolute asset URL breaks every asset on the deployed path and never shows locallyspace-invaders, my-cool-game)--source archive (packages/contract/src/deploy/deploy-schema.ts). The platform never splits files — a >10 MB artifact ships pre-split (x.bin.0, x.bin.1 + x.parts), and a loader that probes the unsplit path first turns that 404 into the probe, by designindex.html and the og.* cover is served max-age=31536000, immutable, so a rebaked world.bin on the same path never reaches a returning browser. Hash the filename or append ?v=REV. The edge cache is keyed per deployment id; the browser cache is yourslocalStorage. Games run inside the web app's iframe; an unguarded access throws on boot and the game is dead. Wrap reads and writes in try/catch and treat storage as best-effortvibedgames.json exists in the deploy directory, the slug is read from there automaticallyvg deployments --json lists your games (slug, size, deploy time); vg deployments delete <slug> --yes removes one and all its files, permanentlyCreate vibedgames.json in the project root to skip the --slug flag:
{
"slug": "my-game",
"name": "My Cool Game"
}
Then just: vg deploy ./dist
vg-setup skill)base in the Vite config and any /asset absolute refs; reproduce with vite preview before redeploying.vg deploy ./dist.What SKILL.md sets; muted values are Claude Code's defaults
35 skills in this plugin
/animated-spritesheetsGenerate a character's animation frames (idle, run, attack, death…) as one labeled pose board, then slice, key and pack them into an engine-ready spritesheet./animationMake 2D sprite animation read well: frame budgets per clip, timing and spacing, cancel windows, smears, secondary motion, wiring clips in Phaser. Generating frames is pixel-art / animated-spritesheets./asepriteParse Aseprite files (.ase/.aseprite) — layers, cels, tags, slices, palettes, tilesets — into JSON, durations and bounds for engines and tools.npx claudepluginhub kyh/vibedgames --plugin vibedgamesOther plugins' skills for the same job