blockbench-gpt-image-textures
БесплатноЗапускает вложенные скриптыНе проверенGenerate Blockbench texture atlases, skins and tiles with OpenAI GPT Image 2.5 (Flare or Sunburst) on fal.ai, writing the model's expected UV layout into the…
от jasonjgardner★ 30 звёзд на GitHubОб этом скилле
GPT Image 2.5 Textures for Blockbench
Generate a texture image with GPT Image 2.5 on fal.ai and land it on an existing Blockbench UV layout. The prompt must carry the UV layout: which pixel rectangle of the image belongs to which face. Without it the model paints a picture, not an atlas.
Load blockbench-use first for discovery and verification rules, and blockbench-texturing for UV inspection and cleanup painting.
Pick a model
| Model | fal endpoint | Use for |
|---|---|---|
| Flare (default) | openai/gpt-image-2.5/flare/text-to-image |
Fast drafts, most atlases, transparent backgrounds |
| Sunburst | openai/gpt-image-2.5/sunburst/text-to-image |
Final high-resolution atlases with intricate detail; slower |
Both accept the same parameters and share /edit variants that take reference images. Details, pricing and recipes: references/fal-api.md.
Workflow
1. Establish the UV layout first
The atlas layout must exist in Blockbench before prompting. Run get_capabilities: include_tools=true, then list_textures. If no texture or UVs exist, generate a native texture template as described in the texturing skill, then continue. Do not invent a layout in the prompt that the model does not have.
Collect the layout:
list_textures # frame_size and uv_size of the target atlas
get_cube_uv: id="<cube uuid>" # one call per textured cube
get_mesh_info: mesh_id="<uuid>", include_uv=true # meshes, if any
Save the raw results into one JSON file:
{ "textures": [ ...list_textures... ], "cubes": [ ...get_cube_uv results... ],
"meshes": [ { "name": "cloth", "faces": [ { "key": "f1", "uv": [[40,40],[56,40],[56,52],[40,52]] } ] } ] }
2. Compute the canvas and regions
fal rejects images under 655,360 pixels, so a 64x64 atlas cannot be generated at native size. Generate an integer upscale and downsample afterwards. The script picks the scale and converts every face rectangle into generated-image pixels:
node scripts/uv_layout_prompt.mjs inspection.json --texture <atlas name|uuid> > layout.json
node scripts/uv_layout_prompt.mjs inspection.json --format text # human-readable check
Output includes image_size (pass to fal unchanged), canvas.texel_scale, one region per face with px and texels rectangles, and shared_regions for faces that reuse the same pixels. An exit code of 2 means the atlas aspect exceeds 3:1; generate a padded canvas and crop with --crop in step 5, or split the atlas.
3. Write the prompt with the layout inside it
Structure the prompt as JSON. The layout block is mandatory and comes straight from step 2. Read references/uv-layout-prompting.md for the full template, region-description rules and worked examples. Minimum shape:
{
"type": "UV texture atlas for a low-poly 3D game model, flat orthographic texture sheet, not a 3D render",
"subject": "brown alpaca, cartoon Minecraft style",
"style": "crisp pixel art, each texel a solid 16x16 px block, no anti-aliasing, 12-color palette, flat unlit colors",
"canvas": { "width": 1024, "height": 1024, "texel_scale": 16, "represents": "64x64 texel atlas" },
"background": "fully transparent outside the listed regions",
"regions": [
{ "name": "head/north (face)", "px": [128, 128, 256, 256], "paint": "front of the head: two dark eyes, muzzle, no outline" },
{ "name": "head/up", "px": [128, 0, 256, 128], "paint": "top of head fur, seam-continuous with head/north" }
],
"rules": [
"paint every region edge to edge; leave everything else transparent",
"no labels, grid lines, borders, drop shadows or text anywhere",
"adjacent faces of one cube must continue seamlessly across their shared edge",
"regions listed as shared receive identical content"
]
}
Describe what each face shows, not the 3D scene. Name regions by cube and direction, keep the pixel rectangles exactly as computed, and mention rotation or mirroring the script reported.
4. Generate
FAL_KEY=... node scripts/fal_gpt_image.mjs --prompt-file prompt.json --model flare \
--width 1024 --height 1024 --background transparent --quality medium --num 2 --out ./output --label alpaca
Use --width/--height from layout.json image_size. --background transparent yields real alpha on Flare; verify alpha on Sunburst output before relying on it. Start with medium quality and --num 2 to pick a candidate; high or xhigh only for finals. --dry-run prints the request body for review. Download happens inside the script; fal URLs expire.
5. Downscale to the atlas
Skip this step when texel_scale is 1. Otherwise sample the centre of each texel block with nearest-neighbour and snap alpha for pixel art:
python scripts/resize_to_atlas.py output/alpaca_<ts>.png output/alpaca_64.png --widt
Установить blockbench-gpt-image-textures в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл blockbench-gpt-image-textures?
Generate Blockbench texture atlases, skins and tiles with OpenAI GPT Image 2.5 (Flare or Sunburst) on fal.ai, writing the model's expected UV layout into the prompt so painted regions land on the right faces. Use when asked to AI-generate, concept, or repaint a texture for a Blockbench model, or to call openai/gpt-image-2.5/flare/text-to-image or openai/gpt-image-2.5/sunburst/text-to-image. Triggers on gpt image 2.5, gpt-image-2.5, flare, sunburst, fal.ai texture, generate texture with AI, UV-aware prompt, texture atlas prompt, AI skin, AI texture sheet.
Как установить скилл blockbench-gpt-image-textures?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл blockbench-gpt-image-textures запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic