Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

generate2dsprite

БесплатноЗапускает вложенные скриптыНе проверен

Make game-ready 2D characters, creatures, props, icons and FX as master stills, sprite sheets or animation clips. Plan size, motion and finish; generate the…

gabrielmoreiraот gabrielmoreira★ 23 звезды на GitHub

Об этом скилле

Generate 2D Sprite

Make the smallest asset bundle the game needs, at its real display size, camera and style. Game logic (collision, damage, timing) stays independent of the art.

Use when

  • A character, creature, prop, item, icon or FX is needed as a master still, a sheet or clips.
  • Frames already exist (generated, painted, code-drawn) and need clips, palettes or an engine export.

Do not use when

Capability check (once per session)

Run python "<skill-dir>/../generate2dmedia/scripts/forge_doctor.py" --host-tools <tools> --save <output>/doctor.json, where <tools> lists the media tools in your own tool list (image_gen, image_edit, image_to_video) or none. Its ROUTES block shows which API keys are configured (yes or no), the local readiness and the resolved order. If encoding.stdout fails, set PYTHONUTF8=1.

Art source

Image generation is the default art source for characters, creatures, props, icons and FX. Record it as art_source (api, host_image, existing, or code only on request) and name the route in your reply. A route the user names explicitly wins.

  1. API, when a key is configured: OpenAI (OPENAI_API_KEY), Google Gemini (GEMINI_API_KEY), xAI (XAI_API_KEY), BytePlus Seedream (ARK_API_KEY) or fal.ai (FAL_KEY), in the environment or the user config file (route-media.md). The configured key is the owner's consent, so there is no per-call question.
  2. Local: your own image tool (Codex image_gen, Grok's native tool) when you have one, otherwise the user's signed-in Codex CLI, then Grok CLI.
  3. codeart2d only when the user explicitly asks for code-drawn art, or when route_media.py prints no-route (exit 3). Then say "code-drawn, no image model".

Hibit FX are the one exception: fx_pixelfx.py check sends them to pixelfx when the user has it installed (route A, third-party code-drawn FX, credited and disclosed), else to the image route (route B). See hibit.md.

Every image goes through one command: python "<skill-dir>/../generate2dmedia/scripts/route_media.py" image --prompt-file <txt> --reference <png> --size 1024x1024 --out-dir <new>. It picks the route in that order and prints one JSON line with route, artifact, sha256 and estimateUsd; resolve --kind image says which route would run. Existing art the user supplies is always welcome. Never claim a generation that did not happen; keep the prompt and contract and report a missing capability.

  • Finish: HD is the default: full colour, clean alpha, one registration and a premultiplied area downscale to the game height. The pixel finish (one shared palette, binary alpha, no dither) is an option when the user asks for pixel art; the hibit finish (flat lineless art from the model, then one character palette, a majority-vote downscale and an outline colour taken from the image) when they want the hi-bit look (hibit.md). Never prompt an image model for a logical pixel grid; the pixel look comes from the finish.
  • Pixel looks (only on request): when the user wants the characters themselves as classic small pixel sprites, pixel_look.py makes a real 1x sprite that follows a reference picture (a sprite the user likes: the look comes from that picture, never from words), makes every pose and view from that master on its own lattice so the build cannot change, and video2dsprite pixel_motion.py makes the motion (pixel-looks.md). It is not a default and replaces nothing above; it is the one place where a model is asked for pixels, because the grid it draws is then measured and followed, never trusted.
  • Characters: approve one master still per character, then animate it with video2dsprite: one image-to-video clip per action, all from that master (sprite_set.py). Keep every action's body height from the master's rest pose.
  • Sheets are for FX, icons and props (and frames the user supplies), not for character animation.

Master still (every character animation starts here)

One approved master still per character, then one image-to-video clip per action from it (video2dsprite); sheets are for FX, icons and props. Wording: prompt-rules.md; commands, framing and master.json: master-still.md.

  1. Spec (--spec <json> and/or flags): --name, --subject, --identity (long and precise), `--facing left|rig
Полный SKILL.md на GitHub

Установить generate2dsprite в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

agents/openai.yamlreferences/action-recipes.mdreferences/animation-planning.mdreferences/character-animation.mdreferences/engine-export.mdreferences/frames-and-clips.mdreferences/hibit.mdreferences/master-still.mdreferences/modes.mdreferences/palette-and-pixels.mdreferences/pixel-looks.mdreferences/processing.mdreferences/prompt-rules.mdreferences/runtime-integration.mdreferences/schemas/common.schema.jsonreferences/schemas/host.schema.jsonreferences/schemas/sprite.schema.jsonreferences/video-handoff.mdscripts/assemble_frames.pyscripts/build_animation_clips.pyscripts/export_engine.pyscripts/forge_core.pyscripts/forge_hibit.pyscripts/forge_index.pyscripts/forge_matte.pyscripts/forge_palette.pyscripts/forge_pixelgrid.pyscripts/fx_pixelfx.pyscripts/generate2dsprite.pyscripts/hibit_fx.pyscripts/make_anchor_layout.pyscripts/make_layout_guide.pyscripts/master_still.pyscripts/palette_tool.pyscripts/pixel_look.pyscripts/pixel_reduce.pyscripts/plan_guide.pyscripts/scale_frames.pyscripts/sheet_qc.py

FAQ

Что делает скилл generate2dsprite?

Make game-ready 2D characters, creatures, props, icons and FX as master stills, sprite sheets or animation clips. Plan size, motion and finish; generate the art (image generation is the default, through generate2dmedia route_media.py - the API when a key is configured, else the local Codex or Grok CLI); approve one master still per character; then key, slice, register, scale, palette, QA and export frames for a game engine (Aseprite JSON, Godot SpriteFrames or Sprite3D). HD finish by default, pixel finish on request. Character animation is one image-to-video clip per action from the master (video2dsprite); sheets are for FX, icons and props. Use for sprites, masters, sheets, frame-by-frame animation and packaging frames from any source. Not for maps, tiles or backgrounds (generate2dmap), video clips (video2dsprite), code-drawn art (codeart2d, only on request) or calling an image or video API by itself (generate2dmedia).

Как установить скилл generate2dsprite?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл generate2dsprite запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить generate2dsprite с