Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Comfyui Asset Generation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tipoli5890-comfyui-asset-generation-game-studio)
---
name: comfyui-asset-generation
description: >-
Generate BGM, sound effects, video, or a 3D model from an image on a
self-hosted ComfyUI server.
---
# ComfyUI asset generation
Create standalone audio, video or 3D assets through an existing ComfyUI
installation. Works from Claude Code or Codex alike. Do not install models, change server settings, expose ports, or
infer permission to upload private inputs unless the user authorizes those actions.
## Start here — route by task
| Task | Read or use |
|---|---|
| API, config, uploads, submission, download; a server over LAN or a private network (only `/history` proves completion) | `reference/comfyui-api.md`, `scripts/comfy_asset_client.py` |
| "Run this in the cloud", "no GPU here", local / cloud / hybrid: which backend each stage uses (fal, Tripo, Meshy, OpenAI), `.game-assets/config.toml`, keys from environment variables | `reference/backends.md`, `scripts/backend_config.py` (`resolve <stage> --json` before a stage run by hand), `scripts/cloud_client.py` (`run <stage>` on a cloud backend) |
| "The ComfyUI queue is busy", "free the model before switching": queue order (one GPU job at a time), model reuse, switching, cleanup | `reference/operations.md` |
| Example inventory: saved workflows, model-family mapping | `reference/server-inventory.md` |
| "Generate BGM / a jingle": MiniMax Music 3 vocal-free beds and jingles | `reference/minimax-music3.md`, `templates/minimax_music3_api.json` |
| "Instrumental, no vocals": a background bed with no vocals: wording, worked captions, length, the voice check | `reference/instrumental-bgm.md`, `scripts/check_instrumental.py` |
| "Generate sound effects": Stable Audio 3 SFX or music | `reference/stable-audio3.md`, `templates/stable_audio3_medium_api.json` |
| "Make a video from this image": any MiniMax H3 mode (text-, image-, reference-to-video) | `reference/minimax-h3.md` and the matching H3 template |
| H3 semantic references or timeline guides | Also read `reference/multiframe-reference.md` |
| A multi-step clip from keyframes: first/last-frame segments, one camera across keyframes, stall and still-end measurement, assembly | `reference/h3-keyframe-segments.md`, `templates/minimax_h3_fl2v_api.json`, `scripts/video_motion.py`, `scripts/assemble_segments.py` |
| Keyframe layout maps drawn from ground coordinates, crossing moves found before generating, a camera gate with a reject-and-retry loop | `reference/h3-keyframe-segments.md` §2–3, `scripts/layout_map.py`, `scripts/camera_gate.py` |
| "Turn this image into a 3D model": a static Pixal3D / TRELLIS.2 prop from one image or four views: path choice, input, run, acceptance | `reference/image-to-3d.md`; `templates/pixal3d_image_to_model_api.json`, `templates/trellis2_image_to_model_api.json`, `templates/pixal3d_multiview_to_model_api.json` |
| Four views cleaned before upload: BiRefNet removal, RGBA + mask preview + black composite, mask polarity checked per tool, unique upload names | `reference/image-to-3d.md` (Background removal for four views) |
| A character to be rigged: multi-view only, four A-pose views at one scale, the preset the class's row names | `reference/image-to-3d.md` (A character); `templates/four_view_background_removal_api.json` (the four views' backgrounds out first), `templates/pixal3d_multiview_to_model_api.json` |
| A character in parts (`three`: body, head, hair; `fine` adds the hands): the parts plan, part views redrawn from the clean views and gated, one job per part on top of the whole-body anchor | `reference/image-to-3d-parts.md`, `scripts/part_views.py`, `scripts/hand_views.py` |
| P-H3 image edit (the default repaint model, an opt-in part redraw; `--backend qwen` for Qwen-Image-Edit-2511): its files, its family (shares a file with H3 video, still its own), its licence territory | `reference/server-inventory.md` (P-H3-Image), `reference/operations.md`; the graph is `mesh-texture-paint`'s `ph3_paint.py` |
| A layered 2D character (front or side view) for an engine's 2D bone rig or Live2D: fills, the geometric cut, rig2d.json, PSB/PSD | `reference/layered-2d.md`; `scripts/layer_split.py`, `scripts/psd_write.py`, `scripts/cubism_psd.py` |
| A 2D scene split into parallax depth layers (Qwen-Image-Layered), props apart | `reference/layered-2d.md` §3; `scripts/scene_layers.py` |
| A character picture kept in its drawn pose that breathes, blinks and talks (a versus screen, a dialogue bust) | `reference/portrait-2d.md`; `scripts/portrait_rig.py` |
| Before tuning: the project graph against the official template, node by node | `scripts/graph_diff.py`; `reference/image-to-3d-tuning.md` (Diff against the official template) |
| Generation presets (Small … Template, 70000 faces by default … Showcase; none is a target), node knobs, occlusion, sheets or slabs diagnosed by stage, a mesh that came out tilted, shredded or discoloured | `reference/image-to-3d-tuning.md`; gate every GLB with `scripts/inspect_glb.py` (`--class` + `--budgets ART_DIRECTION.md` for a class's row) |
| What a class of asset may cost: the preset ladder, the `3D asset classes` and `3D budgets` tables and their default rows, gltf-transform or Blender | `reference/budgets.md` |
| H3 character motion transfer, pace matching, or side-by-side QA | Also read `reference/h3-motion-transfer.md`; normalize non-24 fps sources with `scripts/prepare_h3_motion_reference.py` |
## Working contract
- Resolve the server URL in this order: explicit `--server`,
`COMFYUI_SERVER_URL`, `.game-assets/local.toml`, then the local config
documented in `reference/comfyui-api.md`. Never put private server addresses in reusable
templates or references.
- Before the first submission, check `/system_stats`, `/queue`, required node
classes, and live model choices. Saved workflow dropdowns are not proof that a
model is installed.
- Keep at most one running or pending workflow. Wait for terminal history before
submitting the next job.
- Reuse a loaded model for consecutive work in the same model family. Before a
model-family switch, or after the final known job, wait for an empty queue and
call `/free`.
- Preserve saved UI workflows. Submit an API-format copy or a template from this
skill; a UI workflow, especially one containing subgraphs, is not itself an API
graph.
- A successful `POST /prompt` only queues work. Completion requires terminal
`/history/{prompt_id}`, successful output download, and media inspection.
- Stop after one unchanged validation or runtime failure. Report the failing node
instead of repeatedly consuming GPU time.
## Execution outline
1. Resolve configuration and verify server reachability without changing state.
2. Select T2V, I2V, R2V, multi-frame, music, SFX, or image-to-3D (one image or
four views) from the actual inputs and requested outcome.
3. Verify every node and model filename used by the selected API graph against
live `/object_info`.
4. Upload only authorized inputs, override the closest template's inputs with
`--set NODE.INPUT=VALUE` (or edit a copy when the graph itself changes), and
submit one job.
5. Wait for terminal history, download every declared output, and validate its
codec, duration, dimensions or sample properties, and non-zero size. A GLB
passes `scripts/inspect_glb.py` and a look at every QA render under `3d/qa/`. A
background bed passes `scripts/check_instrumental.py`, or a listen.
6. Keep the model loaded only for a known next job in the same family. Otherwise
follow `reference/operations.md` and release it.
## Scope — what this skill does NOT do
- **Rigging a character** — skeleton, skin weights, Avatar, animation clips. The 3D templates
here produce an unrigged mesh; a character takes the multi-view path and is rigged locally in
`character-autorig` (Auto-Rig Pro onto the humanoid contract; a custom body in
`blender-character-rig`), its clips from `humanoid-motion` or `blender-retarget`, in the order
`game-character-pipeline` sets.
- **Repainting a generated mesh's texture** — the image-to-3D texture is a guess, kept as the
prior; the base colour is repainted view by view from the concept art with an image-edit model
on this server (P-H3-Image by default, Qwen-Image-Edit-2511 with `--backend qwen`):
`mesh-texture-paint`. This skill generates the mesh.
- **A video turned into a 3D humanoid clip** — a two-camera H3 video solved onto the rig:
`humanoid-motion`. This skill generates the video.
- **A clip turned into a transparent sprite loop** — the canvas, keying every frame, the loop
period or one-shot cut and the frames handed to an engine: `sprite-from-video`. This skill
generates the clip.
- **Images and sprites** — reference art, icons, sprite sheets, chroma-key transparency and the
art-bible discipline, and the source image or turnaround sheet an image-to-3D job starts from:
`codex-visual`.
- **Video playback inside a game build** (an engine's video player, transcoding for mobile): not
covered anywhere in this family yet; treat H3 output as a delivered media file.
- **Installing or reconfiguring ComfyUI, models or ports**: left to the user, on request only.
Related: `game-character-pipeline` (the stage order S0–S13), `codex-visual` (source images, the
review sheet composer), `mesh-texture-paint` (the texture repainted), `blender-retarget`, `blender-character-rig`,
`art-asset-registry` (the ledger the client's `record` feeds).
## Hand-off to an engine
Outputs here are engine-neutral files. An engine plugin (`unity-dev`, `godot-dev`, `unreal-dev`)
imports them: `reference/engine-handoff.md`. Handed over: audio, video, GLBs with their inspect
JSON, layered PSB/PSD with `rig2d.json`.
## Boundaries
- MiniMax H3's reliable trained range is approximately 5–15 seconds per video;
disclose when a request exceeds that tested range.
- Image-to-3D yields an unrigged mesh: one mesh, one material, no skeleton, no real-world
scale.
- Keep engine import, compression, middleware, and Unity/Unreal/Godot integration
in downstream skills.
- Do not expose unauthenticated ComfyUI to the public internet. Prefer LAN or an
authenticated private overlay network.
- Open weights do not imply unrestricted commercial rights. Check the applicable
model and output license when commercial use matters; an image-to-3D graph
loads several components, so check the licence of each one's weights. P-H3-Image (the default
texture repaint) is under the MiniMax H3 Community License, which excludes some territories and their
outputs: a game sold there redraws and repaints with `--backend qwen` (Apache-2.0); the territory
rows are in `art-asset-registry` → `reference/licences.md`.