/vibedgames:generatefrom vibedgames
Runs the `vg generate` CLI to search models, inspect schemas and pricing, execute endpoints, upload inputs, and track async jobs. The base skill that all other media skills in this repo build on.
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.
Read when SKILL.md points to them.
vg generate is the agent-first CLI for generating images, video, and audio. It works in a terminal for humans (pretty output) and equally well for agents (structured JSON when piped or with --json). All other skills in this repo call vg generate for execution; they do not wrap any model HTTP API directly. Every call is forwarded through a single vibedgames server proc that attaches the credentials and proxies the request.
Vibedgames runtime. The vibedgames server holds the model API keys, so the only setup is a signed-in
vg. Ifvgisn't on PATH or says you're not logged in, follow thevg-setupskill (no global install needed:npx -y vibedgames@lateststands in forvg). The CLI exposesrun,status,models,schema,upload,pricing, anddocs— the read/write surface that maps to the queue, platform, storage, and docs APIs.
For the full command surface (every flag, every option, every example), see references/full-reference.md. For setup details, see the Setup section below.
--json when an agent will read the output. Pretty mode is for humans only.vg generate models "<query>" to discover, vg generate models --endpoint_id <id> to verify.vg generate schema <endpoint_id> --json shows the exact field names. Guessed flags fail with 422.--download, not curl. The CLI handles authentication, naming, and file format detection.--async for long-running generation. Image work usually completes inline; video/audio/3D usually need queue + status polling.| Command | Purpose |
|---|---|
vg generate models <query> | Search the catalog (or --category, or --endpoint_id) |
vg generate schema <endpoint_id> | Inspect inputs/outputs (compact or --format openapi) |
vg generate run <endpoint_id> --<param> <value> | Execute a model |
vg generate status <endpoint_id> <request_id> | Poll an async job (with --result, --cancel, --download) |
vg generate upload <path> | Upload a local file (returns a URL usable as a model input) |
vg generate pricing <endpoint_id> | Check cost per call |
vg generate docs <query> | Search generative-model documentation |
Images can run through your own Codex plan. Opt in once with
vg config set generate.provider codex: OpenAI image runs (openai/gpt-image-*) then go to the localcodexCLI on the user's own Codex plan, with no vibedgames auth or credits, while every other endpoint (Flux, video, audio, 3D) stays on the vibedgames catalog. A run Codex can't serve (--async, a URL reference) uses vibedgames and says so on stderr.--provider codex|vibedgamesdecides a single run, and the literal endpointcodexalways uses Codex. On the codex path: images only, synchronous, local reference files only, and output is saved straight to disk — readdownloaded_files[]from the--jsonresult (there are no URLs). Ifcodexis missing the run exits non-zero; rerun with--provider vibedgames. Full contract (recognized inputs, JSON shape, failure semantics): full-reference.md.
Every vg generate run debits the account's credit balance: an estimated hold at submit, corrected to the actual cost when the result is fetched. Failed or cancelled jobs are refunded automatically. New accounts start at $0.00 — credit is added with a code, or bought by card where card purchases are open.
vg credits (or vg credits --json for agents). vg generate pricing <id> --json estimates cost before running.vg credits redeem <CODE> if the human gave you a code. Otherwise, when vg credits --json shows purchases_enabled: true, vg credits buy <usd> --json (whole dollars, 5–500) returns a checkout url: hand it to the human — paying takes a person at a browser — then re-check vg credits --json until balance_micro rises. Never open or pay it yourself. With purchases_enabled: false, a code is the only way: ask the human for one.insufficient_credits:, STOP. Retries cannot succeed — the balance is exhausted, and switching endpoints or re-queueing will fail the same way. Tell the human the balance and offer the ways to add credit above (a code, or a vg credits buy link for them to pay while purchases are open); resume once vg credits shows a positive balance.unknown_endpoint:, the endpoint id has no published price, so it cannot be billed or run. Retrying the same id fails the same way. Check it with vg generate models --endpoint_id <id> --json (usually a typo or a retired id), or find another with vg generate models "<task>" --json.The canonical genmedia loop that every domain skill (character-design, cinematography, storytelling, …) runs:
vg generate models --endpoint_id <id> --json; fall back to vg generate models "<task>" --json / vg generate docs "<topic>" --json only when no routed endpoint covers the role.vg generate schema <id> --json for exact fields, vg generate pricing <id> --json when cost matters. Use only schema-supported fields (seed, reference image, image strength, negative prompt) and record what you used.vg generate upload <path> --json; reuse the returned URL.--async then vg generate status <id> <request_id> --json to poll.--download "./outputs/<dir>/{request_id}_{index}.{ext}", reading paths from downloaded_files[] — never curl URLs.vg generate run fal-ai/flux/dev \
--prompt "a cat on the moon" \
--download "./out/{request_id}_{index}.{ext}" \
--json
REQ=$(vg generate run fal-ai/veo3.1 --prompt "a dog running" --async --field request_id)
vg generate status fal-ai/veo3.1 "$REQ" \
--download "./out/{request_id}_{index}.{ext}" \
--json
If a job's outcome is ever ambiguous, recover — don't resubmit.
request_id the moment a submit returns (--field request_id, or request_id in the --json result) and resume with vg generate status <endpoint_id> <request_id>.run after an ambiguous failure (connection lost, unclear response). Reconcile the request id or job history first; if none can be recovered, say so and get authorization before a potentially duplicate paid request.status, --download) with backoff. A single transient error is not a completed recovery — exhausting bounded retries leaves the job pending, not permission to submit again.URL=$(vg generate upload ./photo.jpg --field url)
vg generate run fal-ai/nano-banana-pro/edit \
--image_urls "$URL" \
--prompt "make the sky stormy" \
--download "./out/{request_id}_{index}.{ext}" \
--json
vg generate models "background removal product image" --json
vg generate models --category text-to-video --limit 5 --json
vg generate docs "webhook callbacks" --json
if command -v vg >/dev/null 2>&1; then
vg whoami --json # exits 1 when signed out
else
npx -y vibedgames@latest whoami --json # no install: npx stands in for vg
fi
Signing in and the no-install fallback are in the vg-setup skill. The vibedgames server holds the model API keys, so there is no per-machine API-key step. See full-reference.md for output modes and JSON conventions.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./ask-meInterview the user about a fuzzy game idea, one question at a time, until it is build-ready. Skip when they already know what to build./asset-pipelineAudit 2D game art on disk: validate an asset manifest against PNGs, probe sprite sheets and tilesets for occupied frames, report sizes, fix sprite baselines./capacitor-iosShip a Three.js + Vite app on Capacitor iOS: GLTF loading, animation UI, OrbitControls touch mapping, Swift Package Manager, iOS sync and run troubleshooting.npx claudepluginhub kyh/vibedgames --plugin vibedgamesOther plugins' skills for the same job