Ai asset generation

From MRCalderon3D/everything-game-dev-code · View interactive version

Ai asset generation is an AI agent skill from the GitHub repository MRCalderon3D/everything-game-dev-code. Generate real game assets (images, skyboxes, 3D models, SFX, music, voice, video) from text prompts through the provider registry, with provenance and acceptance gates.

How to use this skill

Skill file

AI Asset Generation

Purpose

Generate production-candidate game assets from text prompts through the generative

provider registry (manifests/asset-providers.json) so projects can move from

procedural placeholders to real content without leaving the scaffold — while

keeping generation engine-neutral, reproducible, provenance-tracked, and subject

to the same acceptance gates as authored content.

Optional Capability — Gate Before Use

AI generation is an optional layer, not a dependency. It is available only when the

active provider's API key is set in the environment (FAL_KEY for the default

fal.ai provider). The scaffold's asset workflow does not require it:

generated content.

exactly as before the capability existed — placeholder-asset-pipeline and the

engine placeholder commands (/unity-placeholders, /godot-placeholders,

/web-placeholders) for sprites, 3D primitives, and procedural audio. A project

built entirely on placeholders is a fully valid, shippable-to-prototype outcome;

generation is an enhancement, never a gate.

Detecting the gate is cheap: the generator (scripts/generate-assets.js) reads the

key from the environment and reports clearly when it is missing, pointing back to

the placeholder path. Never fabricate or hand-place assets to "stand in" for the API.

Resolution Order and Cost

nativeFirstCapabilities), if the running harness has a native image generator

(e.g. Codex $imagegen), use it instead of the paid API — keep the same names,

paths, and acceptance gates. Fall to the API only when no native generator exists

and a key is set; fall to placeholders otherwise. model3d/sfx/music/speech/

video have no native path — API or placeholders only.

refuses runs at or above confirmOverUsd without --yes. For a single asset the

user explicitly asked for, dry-run, show the estimate, and proceed if cheap. For

autonomous or batch flows, get a clear yes on the total before running. Iterate on

the cheap default model; reserve the expensive alternative and video for finals.

budget, balanced, or premium — and pass --quality (default balanced). The

registry's byQuality map picks the model per capability (e.g. image: flux-schnell /

nano-banana-2 / nano-banana-pro; video: Wan / Seedance / Veo). Budget can keep a whole

video run under the cost gate; premium crosses it and needs --yes. Tier sets the

spend; the gate prevents surprises.

Use When

lines, or intro/cinematic video that no artist is available to produce

instead of one-off results pasted from a chat tool

Inputs

provider's apiKeyEnv environment variable (never committed)

names and paths (drop-in replacement contract)

Process

  1. classify each requested asset by capability: image, skybox, model3d,

sfx, music, speech, or video

  1. define the acceptance contract before generating (for raster assets this is the

generated-raster-asset-pipeline contract: background policy, display size,

collision envelope; for audio: length, loopability, loudness target; for 3D:

poly budget, scale, pivot; for video: duration, aspect ratio, codec)

  1. resolve the model from the registry — do not hardcode model ids in project code;

pass --model only to deviate intentionally

  1. dry-run first to review the resolved payload:

node scripts/generate-assets.js --type <capability> --prompt "..." --out <staging> --dry-run

  1. generate with a fixed --seed where the model supports it, iterating on the

cheap/fast default model and switching to the higher-fidelity alternative for finals

  1. review candidates against the acceptance contract before any engine import
  2. move accepted files into the project under the placeholder names and paths, keep

the .provenance.json sidecar next to each accepted asset, and record raster

assets in the project's generated-assets.json manifest

  1. import through the active engine layer only (Unity/Unreal/Godot/web import rules

stay in their engine packs), then run the matching review command

(/art-2d-pass, /art-3d-pass, /audio-pass)

Outputs

integrated under the project's existing names and paths

request id, timestamp, source URLs, license note

what was rejected and why

Quality Bar

treated as unlicensed third-party content

can be regenerated or deliberately re-rolled

"the AI made it" exemption from naming, budget, or review rules

import folders directly

video (the costliest capability) before batch runs

Common Failure Modes

catalog rotates — the registry is the only source of truth

raster acceptance contract; validate:generated-assets catches PNGs)

projection and horizon continuity

was never defined before generation

text was never source-controlled

with an accepted still would have art-directed for a fraction of the cost

Related Agents

Related Commands

Related Skills

Notes

every capability; the design is provider-agnostic and a second provider is a

manifest entry away.

registry — generated meshes are static; route rigging through the

rigging-skinning-pipeline skill and a dedicated tool or provider.

same catalog interactively for exploration; reproducible production runs should go

through scripts/generate-assets.js so provenance is written.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.